km: drop KM_RESERVED_PRAM
This variable is unused since we dropped the support for the Kirkwood boards. Signed-off-by: Holger Brunck <holger.brunck@hitachienergy.com>
This commit is contained in:
@@ -29,14 +29,6 @@ config KM_PHRAM
|
||||
help
|
||||
Start address of the physical RAM, which is the mounted /var folder.
|
||||
|
||||
config KM_RESERVED_PRAM
|
||||
hex "Reserved RAM"
|
||||
default 0x0 if MPC83xx
|
||||
default 0x1000 if MPC85xx || ARCH_LS1021A
|
||||
depends on !ARCH_SOCFPGA
|
||||
help
|
||||
Reserved physical RAM area at the end of memory for special purposes.
|
||||
|
||||
config KM_CRAMFS_ADDR
|
||||
hex "CRAMFS Address"
|
||||
default 0x83000000 if ARCH_LS1021A
|
||||
|
||||
@@ -53,7 +53,7 @@ int set_km_env(void)
|
||||
char *p;
|
||||
|
||||
pnvramaddr = CFG_SYS_SDRAM_BASE + gd->ram_size -
|
||||
CONFIG_KM_RESERVED_PRAM - CONFIG_KM_PHRAM - CONFIG_KM_PNVRAM;
|
||||
CONFIG_KM_PHRAM - CONFIG_KM_PNVRAM;
|
||||
sprintf(envval, "0x%x", pnvramaddr);
|
||||
env_set("pnvramaddr", envval);
|
||||
|
||||
@@ -61,12 +61,10 @@ int set_km_env(void)
|
||||
p = env_get("rootfssize");
|
||||
if (p)
|
||||
strict_strtoul(p, 16, &rootfssize);
|
||||
pram = (rootfssize + CONFIG_KM_RESERVED_PRAM + CONFIG_KM_PHRAM +
|
||||
CONFIG_KM_PNVRAM) / 0x400;
|
||||
pram = (rootfssize + CONFIG_KM_PHRAM + CONFIG_KM_PNVRAM) / 0x400;
|
||||
env_set_ulong("pram", pram);
|
||||
|
||||
varaddr = CFG_SYS_SDRAM_BASE + gd->ram_size -
|
||||
CONFIG_KM_RESERVED_PRAM - CONFIG_KM_PHRAM;
|
||||
varaddr = CFG_SYS_SDRAM_BASE + gd->ram_size - CONFIG_KM_PHRAM;
|
||||
env_set_hex("varaddr", varaddr);
|
||||
sprintf(envval, "0x%x", varaddr);
|
||||
env_set("varaddr", envval);
|
||||
|
||||
@@ -10,8 +10,7 @@
|
||||
#define CFG_SYS_INIT_RAM_SIZE OCRAM_SIZE
|
||||
|
||||
#define CFG_PRAM ((CONFIG_KM_PNVRAM + \
|
||||
CONFIG_KM_PHRAM + \
|
||||
CONFIG_KM_RESERVED_PRAM) >> 10)
|
||||
CONFIG_KM_PHRAM) >> 10)
|
||||
|
||||
#define PHYS_SDRAM 0x80000000
|
||||
#define PHYS_SDRAM_SIZE (1u * 1024 * 1024 * 1024)
|
||||
|
||||
@@ -158,11 +158,10 @@
|
||||
/******************************************************************************
|
||||
* (PRAM usage)
|
||||
* ... -------------------------------------------------------
|
||||
* ... |ROOTFSSIZE | PNVRAM |PHRAM |RESERVED_PRAM | END_OF_RAM
|
||||
* ... |ROOTFSSIZE | PNVRAM |PHRAM | END_OF_RAM |
|
||||
* ... |<------------------- pram -------------------------->|
|
||||
* ... -------------------------------------------------------
|
||||
* @END_OF_RAM:
|
||||
* @CONFIG_KM_RESERVED_PRAM: reserved pram for special purpose
|
||||
* @CONFIG_KM_PHRAM: address for /var
|
||||
* @CONFIG_KM_PNVRAM: address for PNVRAM (for the application)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user