Patchwork [U-Boot,4/4] SMDK5250: Modify IRAM stack pointer address

login
register
mail settings
Submitter Rajeshwari Birje
Date Dec. 28, 2012, 12:08 p.m.
Message ID <1356696525-21001-5-git-send-email-rajeshwari.s@samsung.com>
Download mbox | patch
Permalink /patch/208476/
State Changes Requested
Delegated to: Minkyu Kang
Headers show

Comments

Rajeshwari Birje - Dec. 28, 2012, 12:08 p.m.
IRAM stack pointer address to enable u-boot booting
after conversion of lowlevel_init.S to lowlevel_init_c.c.
Added CONFIG_CMD_BOOTZ to boot zImage.dtb kernel image.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
 include/configs/exynos5250-dt.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
Simon Glass - Dec. 28, 2012, 3:47 p.m.
Hi Rajeshwari,

On Fri, Dec 28, 2012 at 4:08 AM, Rajeshwari Shinde
<rajeshwari.s@samsung.com> wrote:
> IRAM stack pointer address to enable u-boot booting
> after conversion of lowlevel_init.S to lowlevel_init_c.c.
> Added CONFIG_CMD_BOOTZ to boot zImage.dtb kernel image.
>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>

Acked-by: Simon Glass <sjg@chromium.org>

I believe the chip actually has a lot more than 80KB of SRAM. Should
we set the top to the very top of SRAM?

> ---
>  include/configs/exynos5250-dt.h |    7 ++++---
>  1 files changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/include/configs/exynos5250-dt.h b/include/configs/exynos5250-dt.h
> index 59182f4..ae42e4b 100644
> --- a/include/configs/exynos5250-dt.h
> +++ b/include/configs/exynos5250-dt.h
> @@ -199,9 +199,9 @@
>
>  #define CONFIG_DOS_PARTITION
>
> -#define CONFIG_IRAM_STACK      0x02050000
> -
> -#define CONFIG_SYS_INIT_SP_ADDR        (CONFIG_SYS_LOAD_ADDR - 0x1000000)
> +#define CONFIG_IRAM_TOP                0x02050000
> +#define CONFIG_SYS_INIT_SP_ADDR        (CONFIG_IRAM_TOP - 0x800)
> +#define CONFIG_IRAM_STACK      CONFIG_SYS_INIT_SP_ADDR
>
>  /* I2C */
>  #define CONFIG_SYS_I2C_INIT_BOARD
> @@ -297,4 +297,5 @@
>  #define CONFIG_SHA1
>  #define CONFIG_SHA256
>
> +#define CONFIG_CMD_BOOTZ
>  #endif /* __CONFIG_H */
> --
> 1.7.4.4
>


Regards,
Simon

Patch

diff --git a/include/configs/exynos5250-dt.h b/include/configs/exynos5250-dt.h
index 59182f4..ae42e4b 100644
--- a/include/configs/exynos5250-dt.h
+++ b/include/configs/exynos5250-dt.h
@@ -199,9 +199,9 @@ 
 
 #define CONFIG_DOS_PARTITION
 
-#define CONFIG_IRAM_STACK	0x02050000
-
-#define CONFIG_SYS_INIT_SP_ADDR	(CONFIG_SYS_LOAD_ADDR - 0x1000000)
+#define CONFIG_IRAM_TOP		0x02050000
+#define CONFIG_SYS_INIT_SP_ADDR	(CONFIG_IRAM_TOP - 0x800)
+#define CONFIG_IRAM_STACK	CONFIG_SYS_INIT_SP_ADDR
 
 /* I2C */
 #define CONFIG_SYS_I2C_INIT_BOARD
@@ -297,4 +297,5 @@ 
 #define CONFIG_SHA1
 #define CONFIG_SHA256
 
+#define CONFIG_CMD_BOOTZ
 #endif	/* __CONFIG_H */