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/km_arm.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/km_arm.h')
-rw-r--r-- | include/configs/km_arm.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/include/configs/km_arm.h b/include/configs/km_arm.h index b3cd5a3..a7c080b 100644 --- a/include/configs/km_arm.h +++ b/include/configs/km_arm.h @@ -48,8 +48,29 @@ /* include common defines/options for all Keymile boards */ #include "keymile-common.h" -#undef CONFIG_CMD_DTT -#undef CONFIG_BOOTCOUNT_LIMIT + +#define CONFIG_ENV_SIZE (128 << 10) /* NAND chip block size */ +#define CONFIG_SYS_MEMTEST_START 0x00400000 /* 4M */ +#define CONFIG_SYS_MEMTEST_END 0x007fffff /*(_8M -1) */ +#define CONFIG_SYS_LOAD_ADDR 0x00800000 /* default load adr- 8M */ + +/* pseudo-non volatile RAM [hex] */ +#define CONFIG_KM_PNVRAM 0x80000 +/* physical RAM MTD size [hex] */ +#define CONFIG_KM_PHRAM 0x17F000 + +#define CONFIG_KM_CRAMFS_ADDR 0x2400000 +#define CONFIG_KM_KERNEL_ADDR 0x2000000 /* 4096KBytes */ + +#define CONFIG_KM_DEF_ENV_CPU \ + "addmtdparts=setenv bootargs ${bootargs} ${mtdparts}\0" \ + "boot=bootm ${actual_kernel_addr} - -\0" \ + "cramfsloadfdt=echo \\\\c\0" \ + "tftpfdt=echo \\\\c\0" \ + CONFIG_KM_DEF_ENV_UPDATE \ + "" + + #define CONFIG_MD5 /* get_random_hex on krikwood needs MD5 support */ #define CONFIG_SKIP_LOWLEVEL_INIT /* disable board lowlevel_init */ |