All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 23/31] powerpc: mgcoge, mgsuvd, kmeter1: activate pram data area
Date: Wed, 28 Jan 2009 10:40:29 +0100	[thread overview]
Message-ID: <4980280D.2090403@denx.de> (raw)

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@keymile.com>
Signed-off-by: Heiko Schocher <hs@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

                 reply	other threads:[~2009-01-28  9:40 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4980280D.2090403@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.