From patchwork Thu Nov 14 05:52:20 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andes X-Patchwork-Id: 1194589 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=andestech.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47D9pb5PDJz9sP6 for ; Thu, 14 Nov 2019 17:01:27 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 6171AC21DEC; Thu, 14 Nov 2019 06:00:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=RDNS_DYNAMIC autolearn=no autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2D042C21CB1; Thu, 14 Nov 2019 06:00:12 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B435BC21BE5; Thu, 14 Nov 2019 06:00:10 +0000 (UTC) Received: from ATCSQR.andestech.com (59-120-53-16.HINET-IP.hinet.net [59.120.53.16]) by lists.denx.de (Postfix) with ESMTPS id 67EB8C21C29 for ; Thu, 14 Nov 2019 06:00:09 +0000 (UTC) Received: from mail.andestech.com (atcpcs16.andestech.com [10.0.1.222]) by ATCSQR.andestech.com with ESMTP id xAE614DE061886; Thu, 14 Nov 2019 14:01:04 +0800 (GMT-8) (envelope-from uboot@andestech.com) Received: from app09.andestech.com (10.0.15.117) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.123.3; Thu, 14 Nov 2019 13:59:25 +0800 From: Andes To: Date: Thu, 14 Nov 2019 13:52:20 +0800 Message-ID: <20191114055230.20289-1-uboot@andestech.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-Originating-IP: [10.0.15.117] X-DNSRBL: X-MAIL: ATCSQR.andestech.com xAE614DE061886 Cc: rickchen36@gmail.com, alankao@andestech.com, kclin@andestech.com Subject: [U-Boot] [PATCH v2 00/10] RISC-V AX25-AE350 support SPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Rick Chen This series add support for SPL to AX25-AE350. U-Boot SPL can boot from RAM or ROM and jump to OPenSbi(FW_DYNAMIC firmware) and U-Boot proper from RAM or MMC devices. Also fix some bugs of andes plic driver and improve cache configurations for SPL. Changes in v2: - Remove SYS_NS16550. - Use CONFIG_IS_ENABLED(RISCV_MMODE). - Add ALIGN(8) in ld for RV64. - Add new [PATCH v2 09/10] riscv: dts: Add #address-cells and #size-cells in nor node. - Add new [PATCH v2 10/10] doc: update AX25-AE350 RISC-V documentation. Rick Chen (10): riscv: ax25: add SPL support riscv: ax25-ae350: add SPL configuration riscv: ax25-ae350: Use generic memory size setup riscv: andes_plic: Fix some wrong configurations riscv: ax25: cache: Add SPL_RISCV_MMODE for SPL spl: cache: Allow cache drivers in SPL riscv: Fix clear bss loop in the start-up code riscv: dts: Support four cores SMP riscv: dts: Add #address-cells and #size-cells in nor node doc: update AX25-AE350 RISC-V documentation arch/riscv/cpu/ax25/Kconfig | 4 +- arch/riscv/cpu/ax25/cache.c | 60 ++++++--- arch/riscv/cpu/start.S | 4 +- arch/riscv/cpu/u-boot-spl.lds | 2 +- arch/riscv/cpu/u-boot.lds | 2 +- arch/riscv/dts/ae350_32.dts | 61 +++++++++- arch/riscv/dts/ae350_64.dts | 61 +++++++++- arch/riscv/lib/andes_plic.c | 11 +- board/AndesTech/ax25-ae350/Kconfig | 9 ++ board/AndesTech/ax25-ae350/MAINTAINERS | 4 + board/AndesTech/ax25-ae350/ax25-ae350.c | 48 +++++--- common/spl/Kconfig | 7 ++ configs/ae350_rv32_spl_defconfig | 37 ++++++ configs/ae350_rv32_spl_xip_defconfig | 39 ++++++ configs/ae350_rv64_spl_defconfig | 38 ++++++ configs/ae350_rv64_spl_xip_defconfig | 40 ++++++ doc/board/AndesTech/ax25-ae350.rst | 209 +++++++++++++++++++++++++++++++- drivers/Makefile | 1 + include/configs/ax25-ae350.h | 17 +++ 19 files changed, 601 insertions(+), 53 deletions(-) create mode 100644 configs/ae350_rv32_spl_defconfig create mode 100644 configs/ae350_rv32_spl_xip_defconfig create mode 100644 configs/ae350_rv64_spl_defconfig create mode 100644 configs/ae350_rv64_spl_xip_defconfig