[U-Boot] [PATCH 23/31] powerpc: mgcoge, mgsuvd, kmeter1: activate pram data area
Heiko Schocher
hs at denx.de
Wed Jan 28 10:40:29 CET 2009
This patch activates a protected area (pram)
that will not be used by the linux kernel.
This is done for all keymile boards
Signed-off-by: Thomas Herzmann <thomas.herzmann at keymile.com>
Signed-off-by: Heiko Schocher <hs at denx.de>
---
include/configs/keymile-common.h | 20 +++++++++++++-------
include/configs/kmeter1.h | 2 ++
include/configs/mgcoge.h | 2 ++
include/configs/mgsuvd.h | 2 ++
4 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/include/configs/keymile-common.h b/include/configs/keymile-common.h
index 4ff6fb7..f91afe2 100644
--- a/include/configs/keymile-common.h
+++ b/include/configs/keymile-common.h
@@ -194,18 +194,21 @@
":${hostname}:${netdev}:off panic=1\0" \
"addboardid=setenv bootargs ${bootargs} " \
"hwKey=${IVM_HWKey} boardId=0x${IVM_BoardId} \0" \
+ "addpram=setenv bootargs ${bootargs} " \
+ "mem=${mem} pram=${pram}\0" \
+ "pram=" xstr(CONFIG_PRAM) "k\0" \
"net_nfs=tftp ${kernel_addr_r} ${kernel_file}; " \
"tftp ${fdt_addr_r} ${fdt_file}; " \
- "run nfsargs addip addcon addboardid;" \
+ "run nfsargs addip addcon addboardid addpram;" \
"bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
"net_self=tftp ${kernel_addr_r} ${kernel_file}; " \
"tftp ${fdt_addr_r} ${fdt_file}; " \
"tftp ${ramdisk_addr} ${ramdisk_file}; " \
- "run ramargs addip; " \
+ "run ramargs addip addboardid addpram; " \
"bootm ${kernel_addr_r} ${ramdisk_addr} ${fdt_addr_r}\0"\
"flash_nfs=run nfsargs addip addcon;" \
"bootm ${kernel_addr} - ${fdt_addr}\0" \
- "flash_self=run ramargs addip addcon;" \
+ "flash_self=run ramargs addip addcon addboardid addpram;" \
"bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0" \
"bootcmd=run mtdargs addip addcon addboardid addpram; " \
"bootm ${actual_kernel_addr} - ${actual_fdt_addr} \0" \
@@ -229,14 +232,17 @@
"setenv backup_rootfs ${bank1_rootfs} \0" \
"setbank0=run actual0 backup1 \0" \
"setbank1=run actual1 backup0 \0" \
- "release=setenv bootcmd \'run mtdargs addip addcon addboardid;" \
+ "release=setenv bootcmd " \
+ "\'run mtdargs addip addcon addboardid addpram;" \
"bootm ${actual_kernel_addr} - ${actual_fdt_addr} \'; " \
"saveenv \0" \
- "develop=setenv bootcmd \'run nfsargs addip addcon addboardid;" \
+ "develop=setenv bootcmd " \
+ "\'run nfsargs addip addcon addboardid addpram;" \
"bootm ${actual_kernel_addr} - ${actual_fdt_addr} \'; " \
"saveenv \0" \
- "developall=setenv bootcmd \'run load_fdt load_kernel nfsargs " \
- "addip addcon addboardid; " \
+ "developall=setenv bootcmd " \
+ "\'run load_fdt load_kernel nfsargs " \
+ "addip addcon addboardid addpram; " \
"bootm ${actual_kernel_addr} - ${actual_fdt_addr} \'; " \
"saveenv \0" \
"new_esw_script=new_esw_0x${IVM_BoardId}_0x${IVM_HWKey}.scr \0" \
diff --git a/include/configs/kmeter1.h b/include/configs/kmeter1.h
index feb6150..2eafac6 100644
--- a/include/configs/kmeter1.h
+++ b/include/configs/kmeter1.h
@@ -438,6 +438,8 @@
#define BOOTFLASH_START F0000000
+#define CONFIG_PRAM 512 /* protected RAM [KBytes] */
+
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_KM_DEF_ENV \
"rootpath=/opt/eldk/ppc_82xx\0" \
diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h
index fad5c09..987adbc 100644
--- a/include/configs/mgcoge.h
+++ b/include/configs/mgcoge.h
@@ -82,6 +82,8 @@
#define BOOTFLASH_START FE000000
+#define CONFIG_PRAM 512 /* protected RAM [KBytes] */
+
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_KM_DEF_ENV \
"rootpath=/opt/eldk/ppc_82xx\0" \
diff --git a/include/configs/mgsuvd.h b/include/configs/mgsuvd.h
index bf4e8b0..66bcc73 100644
--- a/include/configs/mgsuvd.h
+++ b/include/configs/mgsuvd.h
@@ -56,6 +56,8 @@
#define BOOTFLASH_START F0000000
+#define CONFIG_PRAM 512 /* protected RAM [KBytes] */
+
#define CONFIG_EXTRA_ENV_SETTINGS \
CONFIG_KM_DEF_ENV \
"rootpath=/opt/eldk/ppc_8xx\0" \
--
1.6.0.6
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
More information about the U-Boot
mailing list