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 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 90FE9C636CC for ; Wed, 15 Feb 2023 07:20:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7EEFD859FC; Wed, 15 Feb 2023 08:20:08 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 55D1E859FF; Wed, 15 Feb 2023 08:20:06 +0100 (CET) Received: from Atcsqr.andestech.com (60-248-80-70.hinet-ip.hinet.net [60.248.80.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 7BFC3859E5 for ; Wed, 15 Feb 2023 08:20:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=andestech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peterlin@andestech.com Received: from mail.andestech.com (ATCPCS16.andestech.com [10.0.1.222]) by Atcsqr.andestech.com with ESMTP id 31F7JvgC066972 for ; Wed, 15 Feb 2023 15:19:57 +0800 (+08) (envelope-from peterlin@andestech.com) Received: from APC323 (10.0.12.98) by ATCPCS16.andestech.com (10.0.1.222) with Microsoft SMTP Server id 14.3.498.0; Wed, 15 Feb 2023 15:19:54 +0800 Date: Wed, 15 Feb 2023 15:15:05 +0000 From: Yu-Chien Peter Lin To: Leo Yu-Chi Liang CC: Subject: Re: [PATCH v2 2/2] riscv: ae350: Adjust the memory layout of ae350 Message-ID: References: <20230214124250.16256-1-ycliang@andestech.com> <20230214124250.16256-2-ycliang@andestech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20230214124250.16256-2-ycliang@andestech.com> User-Agent: Mutt/2.2.9 (2022-11-12) X-Originating-IP: [10.0.12.98] X-DNSRBL: X-MAIL: Atcsqr.andestech.com 31F7JvgC066972 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Tue, Feb 14, 2023 at 08:42:50PM +0800, Leo Yu-Chi Liang wrote: > Adjust the initial stack pointer address to 0x10000000(256M) > > Signed-off-by: Leo Yu-Chi Liang Reviewed-by: Yu Chien Peter Lin > --- > Change v1 -> v2: > * Modify the address from 0x1000000(16MB) to 0x10000000(256MB) > --- > configs/ae350_rv32_spl_defconfig | 6 +++--- > configs/ae350_rv32_spl_xip_defconfig | 6 +++--- > configs/ae350_rv64_spl_defconfig | 6 +++--- > configs/ae350_rv64_spl_xip_defconfig | 6 +++--- > 4 files changed, 12 insertions(+), 12 deletions(-) > > diff --git a/configs/ae350_rv32_spl_defconfig b/configs/ae350_rv32_spl_defconfig > index e328308e097..f2fe276c5c8 100644 > --- a/configs/ae350_rv32_spl_defconfig > +++ b/configs/ae350_rv32_spl_defconfig > @@ -1,7 +1,9 @@ > CONFIG_RISCV=y > -CONFIG_TEXT_BASE=0x01200000 > +CONFIG_TEXT_BASE=0x01800000 > CONFIG_SYS_MALLOC_LEN=0x80000 > CONFIG_NR_DRAM_BANKS=2 > +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x10000000 > CONFIG_ENV_SECT_SIZE=0x1000 > CONFIG_DEFAULT_DEVICE_TREE="ae350_32" > CONFIG_SYS_PROMPT="RISC-V # " > @@ -12,8 +14,6 @@ CONFIG_TARGET_AE350=y > CONFIG_RISCV_SMODE=y > # CONFIG_AVAILABLE_HARTS is not set > CONFIG_DISTRO_DEFAULTS=y > -CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > -CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xffff00 > CONFIG_SYS_MONITOR_LEN=786432 > CONFIG_FIT=y > CONFIG_SPL_LOAD_FIT_ADDRESS=0x00200000 > diff --git a/configs/ae350_rv32_spl_xip_defconfig b/configs/ae350_rv32_spl_xip_defconfig > index da8edf44d4c..4ed5e2cad99 100644 > --- a/configs/ae350_rv32_spl_xip_defconfig > +++ b/configs/ae350_rv32_spl_xip_defconfig > @@ -1,7 +1,9 @@ > CONFIG_RISCV=y > -CONFIG_TEXT_BASE=0x01200000 > +CONFIG_TEXT_BASE=0x01800000 > CONFIG_SYS_MALLOC_LEN=0x80000 > CONFIG_NR_DRAM_BANKS=2 > +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x10000000 > CONFIG_ENV_SECT_SIZE=0x1000 > CONFIG_DEFAULT_DEVICE_TREE="ae350_32" > CONFIG_SPL_TEXT_BASE=0x80000000 > @@ -13,8 +15,6 @@ CONFIG_TARGET_AE350=y > CONFIG_RISCV_SMODE=y > CONFIG_SPL_XIP=y > CONFIG_DISTRO_DEFAULTS=y > -CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > -CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xffff00 > CONFIG_SYS_MONITOR_LEN=786432 > CONFIG_FIT=y > CONFIG_SPL_LOAD_FIT_ADDRESS=0x80010000 > diff --git a/configs/ae350_rv64_spl_defconfig b/configs/ae350_rv64_spl_defconfig > index 9c5018c4462..90dfc7d02ee 100644 > --- a/configs/ae350_rv64_spl_defconfig > +++ b/configs/ae350_rv64_spl_defconfig > @@ -1,7 +1,9 @@ > CONFIG_RISCV=y > -CONFIG_TEXT_BASE=0x01200000 > +CONFIG_TEXT_BASE=0x01800000 > CONFIG_SYS_MALLOC_LEN=0x80000 > CONFIG_NR_DRAM_BANKS=2 > +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x10000000 > CONFIG_ENV_SECT_SIZE=0x1000 > CONFIG_DEFAULT_DEVICE_TREE="ae350_64" > CONFIG_SYS_PROMPT="RISC-V # " > @@ -13,8 +15,6 @@ CONFIG_ARCH_RV64I=y > CONFIG_RISCV_SMODE=y > # CONFIG_AVAILABLE_HARTS is not set > CONFIG_DISTRO_DEFAULTS=y > -CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > -CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xfffe70 > CONFIG_FIT=y > CONFIG_SPL_LOAD_FIT_ADDRESS=0x00200000 > CONFIG_SYS_MONITOR_BASE=0x88000000 > diff --git a/configs/ae350_rv64_spl_xip_defconfig b/configs/ae350_rv64_spl_xip_defconfig > index 9351deffa3b..f174638f692 100644 > --- a/configs/ae350_rv64_spl_xip_defconfig > +++ b/configs/ae350_rv64_spl_xip_defconfig > @@ -1,7 +1,9 @@ > CONFIG_RISCV=y > -CONFIG_TEXT_BASE=0x01200000 > +CONFIG_TEXT_BASE=0x01800000 > CONFIG_SYS_MALLOC_LEN=0x80000 > CONFIG_NR_DRAM_BANKS=2 > +CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > +CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x10000000 > CONFIG_ENV_SECT_SIZE=0x1000 > CONFIG_DEFAULT_DEVICE_TREE="ae350_64" > CONFIG_SPL_TEXT_BASE=0x80000000 > @@ -14,8 +16,6 @@ CONFIG_ARCH_RV64I=y > CONFIG_RISCV_SMODE=y > CONFIG_SPL_XIP=y > CONFIG_DISTRO_DEFAULTS=y > -CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y > -CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xfffe70 > CONFIG_FIT=y > CONFIG_SPL_LOAD_FIT_ADDRESS=0x80010000 > CONFIG_SYS_MONITOR_BASE=0x88000000