diff options
author | Valentin Longchamp <valentin.longchamp@keymile.com> | 2014-04-30 15:01:45 +0200 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-05-13 08:26:55 -0700 |
commit | 848b31ab0f56d828b1d986c48b495d15abb73a65 (patch) | |
tree | 8986432821fc34bd74141aa59be6b02232a89093 /include | |
parent | 18794944c6f60b912db8509012d10793f35586ae (diff) | |
download | u-boot-imx-848b31ab0f56d828b1d986c48b495d15abb73a65.zip u-boot-imx-848b31ab0f56d828b1d986c48b495d15abb73a65.tar.gz u-boot-imx-848b31ab0f56d828b1d986c48b495d15abb73a65.tar.bz2 |
kmp204x: update the CONFIG_PRAM and CONFIG_KM_RESERVED_PRAM defines
This prevents u-boot from accessing into the reserved memory areas that
we have for /var and the logbooks.
Signed-off-by: Valentin Longchamp <valentin.longchamp@keymile.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/km/kmp204x-common.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/configs/km/kmp204x-common.h b/include/configs/km/kmp204x-common.h index f9bcef3..e4c5e7b 100644 --- a/include/configs/km/kmp204x-common.h +++ b/include/configs/km/kmp204x-common.h @@ -139,10 +139,12 @@ unsigned long get_board_sys_clk(unsigned long dummy); #define CONFIG_KM_PNVRAM 0x80000 /* physical RAM MTD size [hex] */ #define CONFIG_KM_PHRAM 0x100000 -/* resereved pram area at the end of memroy [hex] */ -#define CONFIG_KM_RESERVED_PRAM 0x0 -/* enable protected RAM */ -#define CONFIG_PRAM 0 +/* reserved pram area at the end of memory [hex] + * u-boot reserves some memory for the MP boot page */ +#define CONFIG_KM_RESERVED_PRAM 0x1000 +/* set the default PRAM value to at least PNVRAM + PHRAM when pram env variable + * is not valid yet, which is the case for when u-boot copies itself to RAM */ +#define CONFIG_PRAM ((CONFIG_KM_PNVRAM + CONFIG_KM_PHRAM)>>10) #define CONFIG_KM_CRAMFS_ADDR 0x2000000 #define CONFIG_KM_KERNEL_ADDR 0x1000000 /* max kernel size 15.5Mbytes */ |