* [U-Boot] [PATCH] mx23: Fix the size of internal RAM
@ 2013-04-26 17:00 Fabio Estevam
2013-04-26 17:22 ` Otavio Salvador
2013-04-26 18:11 ` Marek Vasut
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2013-04-26 17:00 UTC (permalink / raw)
To: u-boot
From: Fabio Estevam <fabio.estevam@freescale.com>
mx23 has 32kB of internal RAM.
While at it, use IRAM_BASE_ADDR and IRAM_SIZE as the other i.MX SoCs.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
arch/arm/include/asm/arch-mxs/regs-base.h | 3 +++
include/configs/mx23_olinuxino.h | 4 ++--
include/configs/mx23evk.h | 4 ++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/arch/arm/include/asm/arch-mxs/regs-base.h b/arch/arm/include/asm/arch-mxs/regs-base.h
index 2d9f96b..855f9d6 100644
--- a/arch/arm/include/asm/arch-mxs/regs-base.h
+++ b/arch/arm/include/asm/arch-mxs/regs-base.h
@@ -28,6 +28,7 @@
#ifndef __MXS_REGS_BASE_H__
#define __MXS_REGS_BASE_H__
+#include <asm/sizes.h>
/*
* Register base addresses for i.MX23
*/
@@ -69,6 +70,8 @@
#define MXS_USBPHY0_BASE 0x8007C000
#define MXS_USBCTRL0_BASE 0x80080000
#define MXS_DRAM_BASE 0x800E0000
+#define IRAM_BASE_ADDR 0x00000000
+#define IRAM_SIZE SZ_32K
/*
* Register base addresses for i.MX28
diff --git a/include/configs/mx23_olinuxino.h b/include/configs/mx23_olinuxino.h
index 38ad7f4..7659f52 100644
--- a/include/configs/mx23_olinuxino.h
+++ b/include/configs/mx23_olinuxino.h
@@ -77,8 +77,8 @@
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
/* Point initial SP in SRAM so SPL can use it too. */
-#define CONFIG_SYS_INIT_RAM_ADDR 0x00000000
-#define CONFIG_SYS_INIT_RAM_SIZE (128 * 1024)
+#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
+#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
#define CONFIG_SYS_INIT_SP_OFFSET \
(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
diff --git a/include/configs/mx23evk.h b/include/configs/mx23evk.h
index e5a15a4..c5264a6 100644
--- a/include/configs/mx23evk.h
+++ b/include/configs/mx23evk.h
@@ -72,8 +72,8 @@
#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1
/* Point initial SP in SRAM so SPL can use it too. */
-#define CONFIG_SYS_INIT_RAM_ADDR 0x00000000
-#define CONFIG_SYS_INIT_RAM_SIZE (128 * 1024)
+#define CONFIG_SYS_INIT_RAM_ADDR IRAM_BASE_ADDR
+#define CONFIG_SYS_INIT_RAM_SIZE IRAM_SIZE
#define CONFIG_SYS_INIT_SP_OFFSET \
(CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] mx23: Fix the size of internal RAM
2013-04-26 17:00 [U-Boot] [PATCH] mx23: Fix the size of internal RAM Fabio Estevam
@ 2013-04-26 17:22 ` Otavio Salvador
2013-04-26 18:11 ` Marek Vasut
1 sibling, 0 replies; 3+ messages in thread
From: Otavio Salvador @ 2013-04-26 17:22 UTC (permalink / raw)
To: u-boot
On Fri, Apr 26, 2013 at 2:00 PM, Fabio Estevam <festevam@gmail.com> wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> mx23 has 32kB of internal RAM.
>
> While at it, use IRAM_BASE_ADDR and IRAM_SIZE as the other i.MX SoCs.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> arch/arm/include/asm/arch-mxs/regs-base.h | 3 +++
> include/configs/mx23_olinuxino.h | 4 ++--
> include/configs/mx23evk.h | 4 ++--
> 3 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/include/asm/arch-mxs/regs-base.h b/arch/arm/include/asm/arch-mxs/regs-base.h
> index 2d9f96b..855f9d6 100644
> --- a/arch/arm/include/asm/arch-mxs/regs-base.h
> +++ b/arch/arm/include/asm/arch-mxs/regs-base.h
> @@ -28,6 +28,7 @@
> #ifndef __MXS_REGS_BASE_H__
> #define __MXS_REGS_BASE_H__
>
> +#include <asm/sizes.h>
> /*
> * Register base addresses for i.MX23
> */
> @@ -69,6 +70,8 @@
> #define MXS_USBPHY0_BASE 0x8007C000
> #define MXS_USBCTRL0_BASE 0x80080000
> #define MXS_DRAM_BASE 0x800E0000
> +#define IRAM_BASE_ADDR 0x00000000
> +#define IRAM_SIZE SZ_32K
Please fix the indenting to be the same.
--
Otavio Salvador O.S. Systems
E-mail: otavio at ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] mx23: Fix the size of internal RAM
2013-04-26 17:00 [U-Boot] [PATCH] mx23: Fix the size of internal RAM Fabio Estevam
2013-04-26 17:22 ` Otavio Salvador
@ 2013-04-26 18:11 ` Marek Vasut
1 sibling, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2013-04-26 18:11 UTC (permalink / raw)
To: u-boot
Dear Fabio Estevam,
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> mx23 has 32kB of internal RAM.
>
> While at it, use IRAM_BASE_ADDR and IRAM_SIZE as the other i.MX SoCs.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> arch/arm/include/asm/arch-mxs/regs-base.h | 3 +++
> include/configs/mx23_olinuxino.h | 4 ++--
> include/configs/mx23evk.h | 4 ++--
> 3 files changed, 7 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/include/asm/arch-mxs/regs-base.h
> b/arch/arm/include/asm/arch-mxs/regs-base.h index 2d9f96b..855f9d6 100644
> --- a/arch/arm/include/asm/arch-mxs/regs-base.h
> +++ b/arch/arm/include/asm/arch-mxs/regs-base.h
> @@ -28,6 +28,7 @@
> #ifndef __MXS_REGS_BASE_H__
> #define __MXS_REGS_BASE_H__
>
> +#include <asm/sizes.h>
> /*
> * Register base addresses for i.MX23
> */
> @@ -69,6 +70,8 @@
> #define MXS_USBPHY0_BASE 0x8007C000
> #define MXS_USBCTRL0_BASE 0x80080000
> #define MXS_DRAM_BASE 0x800E0000
> +#define IRAM_BASE_ADDR 0x00000000
> +#define IRAM_SIZE SZ_32K
It's called OCRAM in the datasheet. And it's 128K on MX28.
[...]
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-26 18:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26 17:00 [U-Boot] [PATCH] mx23: Fix the size of internal RAM Fabio Estevam
2013-04-26 17:22 ` Otavio Salvador
2013-04-26 18:11 ` Marek Vasut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox