Patchwork [U-Boot,V2] atmel: eb_cpux9k2: add ram target configuration

login
register
mail settings
Submitter esw@bus-elektronik.de
Date Sept. 4, 2012, 7:37 a.m.
Message ID <1346744226-8132-1-git-send-email-esw@bus-elektronik.de>
Download mbox | patch
Permalink /patch/181512/
State Accepted
Delegated to: Andreas Bießmann
Headers show

Comments

esw@bus-elektronik.de - Sept. 4, 2012, 7:37 a.m.
From: Jens Scharsig <js_at_ng@scharsoft.de>

* add ram target for EB+CPUx9k2 board (eb_cpux9k2_ram_config)

Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
Signed-off-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
---
fix code styling

 boards.cfg                   |    3 ++-
 include/configs/eb_cpux9k2.h |    7 ++++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
Andreas Bießmann - Sept. 4, 2012, 7:57 p.m.
Dear Jens Scharsig,

On 04.09.2012 09:37, Jens Scharsig (BuS Elektronik) wrote:
> From: Jens Scharsig <js_at_ng@scharsoft.de>
>
> * add ram target for EB+CPUx9k2 board (eb_cpux9k2_ram_config)
>
> Signed-off-by: Jens Scharsig <js_at_ng@scharsoft.de>
> Signed-off-by: Jens Scharsig (BuS Elektronik) <esw@bus-elektronik.de>
> ---

applied to u-boot-atmel/master, thnaks!

Best regards

Andreas Bießmann

Patch

diff --git a/boards.cfg b/boards.cfg
index 72e7803..613d6b2 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -60,7 +60,8 @@  integratorcp_cm920t          arm         arm920t     integrator          armltd
 a320evb                      arm         arm920t     -                   faraday        a320
 at91rm9200ek                 arm         arm920t     at91rm9200ek        atmel          at91        at91rm9200ek
 at91rm9200ek_ram             arm         arm920t     at91rm9200ek        atmel          at91        at91rm9200ek:RAMBOOT
-eb_cpux9k2                   arm         arm920t     -                   BuS            at91
+eb_cpux9k2                   arm         arm920t     eb_cpux9k2          BuS            at91        eb_cpux9k2
+eb_cpux9k2_ram               arm         arm920t     eb_cpux9k2          BuS            at91        eb_cpux9k2:RAMBOOT
 cpuat91                      arm         arm920t     cpuat91             eukrea         at91        cpuat91
 cpuat91_ram                  arm         arm920t     cpuat91             eukrea         at91        cpuat91:RAMBOOT
 mx1ads                       arm         arm920t     -                   -              imx
diff --git a/include/configs/eb_cpux9k2.h b/include/configs/eb_cpux9k2.h
index d4104de..9371ec3 100644
--- a/include/configs/eb_cpux9k2.h
+++ b/include/configs/eb_cpux9k2.h
@@ -44,7 +44,12 @@ 
 #define MACH_TYPE_EB_CPUX9K2		1977
 #define CONFIG_MACH_TYPE		MACH_TYPE_EB_CPUX9K2
 /*--------------------------------------------------------------------------*/
-#define CONFIG_SYS_TEXT_BASE 		0x00000000
+#ifndef CONFIG_RAMBOOT
+#define CONFIG_SYS_TEXT_BASE		0x00000000
+#else
+#define CONFIG_SKIP_LOWLEVEL_INIT
+#define CONFIG_SYS_TEXT_BASE		0x21f00000
+#endif
 #define CONFIG_SYS_LOAD_ADDR		0x21000000  /* default load address */
 
 #define CONFIG_SYS_BOOT_SIZE		0x00 /* 0 KBytes */