diff options
| author | Tom Rini <[email protected]> | 2022-05-12 16:45:08 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-06-06 12:09:00 -0400 |
| commit | 167f699ba142193e67cade8d19127cfda723ce38 (patch) | |
| tree | 4ed758645cf4107e2310b5da4a5279b447649e54 /common | |
| parent | b7fbdc55c7c72e97595f1f3233c0e9477c97c52b (diff) | |
Convert CONFIG_SYS_BOOTPARAMS_LEN to Kconfig
This converts the following to Kconfig:
CONFIG_SYS_BOOTPARAMS_LEN
Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'common')
| -rw-r--r-- | common/Kconfig | 12 | ||||
| -rw-r--r-- | common/board_r.c | 4 |
2 files changed, 14 insertions, 2 deletions
diff --git a/common/Kconfig b/common/Kconfig index a96842a5c11..84db2e43f15 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -659,6 +659,18 @@ config MISC_INIT_R help Enabling this option calls 'misc_init_r' function +config SYS_MALLOC_BOOTPARAMS + bool "Malloc a buffer to use for bootparams" + help + In some cases rather than using a known location to store the + bi_boot_params portion of gd we need to allocate it from our malloc pool. + +config SYS_BOOTPARAMS_LEN + hex "Size of the bootparam buffer to malloc in bytes" + depends on SYS_MALLOC_BOOTPARAMS + default 0x20000 if MIPS || RCAR_GEN3 + default 0x10000 + config ID_EEPROM bool "Enable I2C connected system identifier EEPROM" help diff --git a/common/board_r.c b/common/board_r.c index 6f4aca2077d..22b5deaa8c2 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -457,7 +457,7 @@ static int initr_env(void) return 0; } -#ifdef CONFIG_SYS_BOOTPARAMS_LEN +#ifdef CONFIG_SYS_MALLOC_BOOTPARAMS static int initr_malloc_bootparams(void) { gd->bd->bi_boot_params = (ulong)malloc(CONFIG_SYS_BOOTPARAMS_LEN); @@ -713,7 +713,7 @@ static init_fnc_t init_sequence_r[] = { initr_pvblock, #endif initr_env, -#ifdef CONFIG_SYS_BOOTPARAMS_LEN +#ifdef CONFIG_SYS_MALLOC_BOOTPARAMS initr_malloc_bootparams, #endif INIT_FUNC_WATCHDOG_RESET |
