From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E996C433DB for ; Wed, 10 Mar 2021 03:35:45 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 829FD64FED for ; Wed, 10 Mar 2021 03:35:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 829FD64FED Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:46926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJpdP-000250-J7 for qemu-devel@archiver.kernel.org; Tue, 09 Mar 2021 22:35:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJpca-0000m6-QZ; Tue, 09 Mar 2021 22:34:52 -0500 Received: from exmail.andestech.com ([60.248.187.195]:45045 helo=ATCSQR.andestech.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJpcT-0000JV-Tt; Tue, 09 Mar 2021 22:34:52 -0500 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id 12A3Y77s085585; Wed, 10 Mar 2021 11:34:07 +0800 (GMT-8) (envelope-from dylan@andestech.com) Received: from atcfdc88.andestech.com (10.0.15.120) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.487.0; Wed, 10 Mar 2021 11:34:05 +0800 From: Dylan Jhong To: , , , , , Subject: [PATCH 0/3] Support Andes AE350 Platform Date: Wed, 10 Mar 2021 11:33:55 +0800 Message-ID: <20210310033358.30499-1-dylan@andestech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.15.120] X-DNSRBL: X-MAIL: ATCSQR.andestech.com 12A3Y77s085585 Received-SPF: pass client-ip=60.248.187.195; envelope-from=dylan@andestech.com; helo=ATCSQR.andestech.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ruinland@andestech.com, Dylan Jhong , alankao@andestech.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" The following patches support Andes's Linux BSP booting on qemu using 'andes_ae350' machine. This patchset has implemented the basic components of AE350 platform, which are 1. PLIC(external interrupts), 2. PLICSW(interprocessor interrupts), 3. PLMT(timer interrupts), 4. UART(16550a), 5. Virtio MMIO, 6. Device tree Dylan Jhong (3): Andes RISC-V PLIC Andes RISC-V PLMT Andes AE350 RISC-V Machine default-configs/devices/riscv32-softmmu.mak | 1 + default-configs/devices/riscv64-softmmu.mak | 1 + hw/intc/Kconfig | 3 + hw/intc/andes_plic.c | 505 ++++++++++++++++++++ hw/intc/meson.build | 1 + hw/riscv/Kconfig | 7 + hw/riscv/andes_ae350.c | 501 +++++++++++++++++++ hw/riscv/meson.build | 1 + hw/timer/Kconfig | 3 + hw/timer/andes_plmt.c | 225 +++++++++ hw/timer/meson.build | 1 + include/hw/intc/andes_plic.h | 130 +++++ include/hw/riscv/andes_ae350.h | 93 ++++ include/hw/timer/andes_plmt.h | 50 ++ 14 files changed, 1522 insertions(+) create mode 100644 hw/intc/andes_plic.c create mode 100644 hw/riscv/andes_ae350.c create mode 100644 hw/timer/andes_plmt.c create mode 100644 include/hw/intc/andes_plic.h create mode 100644 include/hw/riscv/andes_ae350.h create mode 100644 include/hw/timer/andes_plmt.h -- 2.17.1 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lJpcc-0000mm-Qh for mharc-qemu-riscv@gnu.org; Tue, 09 Mar 2021 22:34:54 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:42666) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJpca-0000m6-QZ; Tue, 09 Mar 2021 22:34:52 -0500 Received: from exmail.andestech.com ([60.248.187.195]:45045 helo=ATCSQR.andestech.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJpcT-0000JV-Tt; Tue, 09 Mar 2021 22:34:52 -0500 Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id 12A3Y77s085585; Wed, 10 Mar 2021 11:34:07 +0800 (GMT-8) (envelope-from dylan@andestech.com) Received: from atcfdc88.andestech.com (10.0.15.120) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.487.0; Wed, 10 Mar 2021 11:34:05 +0800 From: Dylan Jhong To: , , , , , CC: , , Dylan Jhong Subject: [PATCH 0/3] Support Andes AE350 Platform Date: Wed, 10 Mar 2021 11:33:55 +0800 Message-ID: <20210310033358.30499-1-dylan@andestech.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.0.15.120] X-DNSRBL: X-MAIL: ATCSQR.andestech.com 12A3Y77s085585 Received-SPF: pass client-ip=60.248.187.195; envelope-from=dylan@andestech.com; helo=ATCSQR.andestech.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2021 03:34:53 -0000 The following patches support Andes's Linux BSP booting on qemu using 'andes_ae350' machine. This patchset has implemented the basic components of AE350 platform, which are 1. PLIC(external interrupts), 2. PLICSW(interprocessor interrupts), 3. PLMT(timer interrupts), 4. UART(16550a), 5. Virtio MMIO, 6. Device tree Dylan Jhong (3): Andes RISC-V PLIC Andes RISC-V PLMT Andes AE350 RISC-V Machine default-configs/devices/riscv32-softmmu.mak | 1 + default-configs/devices/riscv64-softmmu.mak | 1 + hw/intc/Kconfig | 3 + hw/intc/andes_plic.c | 505 ++++++++++++++++++++ hw/intc/meson.build | 1 + hw/riscv/Kconfig | 7 + hw/riscv/andes_ae350.c | 501 +++++++++++++++++++ hw/riscv/meson.build | 1 + hw/timer/Kconfig | 3 + hw/timer/andes_plmt.c | 225 +++++++++ hw/timer/meson.build | 1 + include/hw/intc/andes_plic.h | 130 +++++ include/hw/riscv/andes_ae350.h | 93 ++++ include/hw/timer/andes_plmt.h | 50 ++ 14 files changed, 1522 insertions(+) create mode 100644 hw/intc/andes_plic.c create mode 100644 hw/riscv/andes_ae350.c create mode 100644 hw/timer/andes_plmt.c create mode 100644 include/hw/intc/andes_plic.h create mode 100644 include/hw/riscv/andes_ae350.h create mode 100644 include/hw/timer/andes_plmt.h -- 2.17.1