diff options
author | Holger Brunck <holger.brunck@keymile.com> | 2011-03-14 16:01:04 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-04-30 00:44:27 +0200 |
commit | de3ad13de53fa678e5408d899dcfedec44780994 (patch) | |
tree | 106d9fbb5ebd75aa10bdae29927d0b8e7a6cf342 /include/configs/mgcoge.h | |
parent | f41ee960d25ce9959767da262e5bb7631f5a3188 (diff) | |
download | u-boot-imx-de3ad13de53fa678e5408d899dcfedec44780994.zip u-boot-imx-de3ad13de53fa678e5408d899dcfedec44780994.tar.gz u-boot-imx-de3ad13de53fa678e5408d899dcfedec44780994.tar.bz2 |
arm, ppc: rework environment variables for keymile boards
This patch reworks all headerfiles for keymile boards. Furthermore
the environment variables are refactored.
Changes:
- introduce km-powerpc.h file and extract ppc specific parts to it
- move ARM specific options and vaiables to km_arm.h
- sort the environment variables to logical groups
- enhance the description of the environment variables
- remove KM specific HW key and board id from kernel command line
Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Kim Phillips <kim.phillips@freescale.com>
cc: Kim Phillips <kim.phillips@freescale.com>
cc: Wolfgang Denk <wd@denx.de>
cc: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'include/configs/mgcoge.h')
-rw-r--r-- | include/configs/mgcoge.h | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h index a28d14b..a7222f4 100644 --- a/include/configs/mgcoge.h +++ b/include/configs/mgcoge.h @@ -37,6 +37,7 @@ /* include common defines/options for all Keymile boards */ #include "keymile-common.h" +#include "km-powerpc.h" /* * Select serial console configuration @@ -80,28 +81,28 @@ #define BOOTFLASH_START 0xFE000000 -#define MTDIDS_DEFAULT "nor0=boot,nor1=app" -#define MTDPARTS_DEFAULT \ - "mtdparts=boot:384k(u-boot),128k(env),128k(envred),3456k(free);" \ - "app:3m(esw0),10m(rootfs0),3m(esw1),10m(rootfs1),1m(var),5m(cfg)" +#define CONFIG_KM_CONSOLE_TTY "ttyCPM0" + +#define MTDIDS_DEFAULT "nor3=app" +#define MTDPARTS_DEFAULT "mtdparts=" \ + "app:" \ + "768k(u-boot)," \ + "128k(env)," \ + "128k(envred)," \ + "3072k(free)," \ + "-(" CONFIG_KM_UBI_PARTITION_NAME ")" -#ifndef CONFIG_KM_DEF_ENV /* if not set by keymile-common.h */ -#define CONFIG_KM_DEF_ENV "km-common=empty\0" -#endif /* * Default environment settings */ -#define CONFIG_EXTRA_ENV_SETTINGS \ +#define CONFIG_EXTRA_ENV_SETTINGS \ CONFIG_KM_DEF_ENV \ - "rootpath=/opt/eldk/ppc_82xx\0" \ - "addcon=setenv bootargs ${bootargs} " \ - "console=ttyCPM0,${baudrate}\0" \ - "mtdids=nor0=boot,nor1=app \0" \ - "partition=nor1,5 \0" \ - "new_env=prot off FE060000 FE09FFFF; era FE060000 FE09FFFF \0" \ "EEprom_ivm=pca9544a:70:4 \0" \ - "mtdparts=" MK_STR(MTDPARTS_DEFAULT) "\0" \ "unlock=yes\0" \ + "newenv=" \ + "prot off 0xFE0C0000 +0x40000 && " \ + "era 0xFE0C0000 +0x40000\0" \ + "rootpath=/opt/eldk/ppc_82xx\0" \ "" #define CONFIG_SYS_SDRAM_BASE 0x00000000 |