From: Yu-Chien Peter Lin <peterlin@andestech.com>
To: Leo Yu-Chi Liang <ycliang@andestech.com>
Cc: <u-boot@lists.denx.de>
Subject: Re: [PATCH v2 2/2] riscv: ae350: Adjust the memory layout of ae350
Date: Wed, 15 Feb 2023 15:15:05 +0000 [thread overview]
Message-ID: <Y+z2+Rq9X659XB2B@APC323> (raw)
In-Reply-To: <20230214124250.16256-2-ycliang@andestech.com>
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 <ycliang@andestech.com>
Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
> ---
> 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
prev parent reply other threads:[~2023-02-15 7:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 12:42 [PATCH v2 1/2] riscv: Rename Andes cpu and board names Leo Yu-Chi Liang
2023-02-14 12:42 ` [PATCH v2 2/2] riscv: ae350: Adjust the memory layout of ae350 Leo Yu-Chi Liang
2023-02-15 15:15 ` Yu-Chien Peter Lin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y+z2+Rq9X659XB2B@APC323 \
--to=peterlin@andestech.com \
--cc=u-boot@lists.denx.de \
--cc=ycliang@andestech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox