lmb: move CONFIG_LMB in Kconfig

Migrate CONFIG_LMB in Kconfig.

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
This commit is contained in:
Patrick Delaunay 2021-03-10 10:16:25 +01:00 committed by Tom Rini
parent 6829d60702
commit 77b8cfef53
18 changed files with 8 additions and 31 deletions

View File

@ -8,6 +8,4 @@
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#define CONFIG_LMB
#endif /*__ASM_ARC_CONFIG_H_ */ #endif /*__ASM_ARC_CONFIG_H_ */

View File

@ -6,7 +6,6 @@
#ifndef _ASM_CONFIG_H_ #ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_ #define _ASM_CONFIG_H_
#define CONFIG_LMB
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#if defined(CONFIG_ARCH_LS1021A) || \ #if defined(CONFIG_ARCH_LS1021A) || \

View File

@ -6,7 +6,6 @@
#ifndef _ASM_CONFIG_H_ #ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_ #define _ASM_CONFIG_H_
#define CONFIG_LMB
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#endif #endif

View File

@ -6,8 +6,6 @@
#ifndef _ASM_CONFIG_H_ #ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_ #define _ASM_CONFIG_H_
#define CONFIG_LMB
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#endif #endif

View File

@ -6,7 +6,6 @@
#ifndef _ASM_CONFIG_H_ #ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_ #define _ASM_CONFIG_H_
#define CONFIG_LMB
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#endif #endif

View File

@ -7,6 +7,5 @@
#ifndef _ASM_CONFIG_H_ #ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_ #define _ASM_CONFIG_H_
#define CONFIG_LMB
#endif #endif

View File

@ -18,7 +18,6 @@
#define HWCONFIG_BUFFER_SIZE 256 #define HWCONFIG_BUFFER_SIZE 256
#endif #endif
#define CONFIG_LMB
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#ifndef CONFIG_MAX_MEM_MAPPED #ifndef CONFIG_MAX_MEM_MAPPED

View File

@ -7,7 +7,6 @@
#ifndef _ASM_CONFIG_H_ #ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_ #define _ASM_CONFIG_H_
#define CONFIG_LMB
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#endif #endif

View File

@ -8,8 +8,6 @@
#include <asm/processor.h> #include <asm/processor.h>
#define CONFIG_LMB
/* Timer */ /* Timer */
#define CONFIG_SYS_TIMER_COUNTS_DOWN #define CONFIG_SYS_TIMER_COUNTS_DOWN
#define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */ #define CONFIG_SYS_TIMER_COUNTER (TMU_BASE + 0xc) /* TCNT0 */

View File

@ -6,7 +6,6 @@
#ifndef _ASM_CONFIG_H_ #ifndef _ASM_CONFIG_H_
#define _ASM_CONFIG_H_ #define _ASM_CONFIG_H_
#define CONFIG_LMB
#define CONFIG_SYS_BOOT_RAMDISK_HIGH #define CONFIG_SYS_BOOT_RAMDISK_HIGH
#endif #endif

View File

@ -9,8 +9,6 @@
#include <asm/arch/core.h> #include <asm/arch/core.h>
#define CONFIG_LMB
/* /*
* Make boot parameters available in the MMUv2 virtual memory layout by * Make boot parameters available in the MMUv2 virtual memory layout by
* restricting used physical memory to the first 128MB. * restricting used physical memory to the first 128MB.

View File

@ -34,11 +34,6 @@
*/ */
#define CONFIG_BOOTP_BOOTFILESIZE #define CONFIG_BOOTP_BOOTFILESIZE
/*
* FDT options
*/
#define CONFIG_LMB
/* /*
* MEMORY ORGANIZATION * MEMORY ORGANIZATION
* -Monitor at top of sdram. * -Monitor at top of sdram.

View File

@ -34,11 +34,6 @@
*/ */
#define CONFIG_BOOTP_BOOTFILESIZE #define CONFIG_BOOTP_BOOTFILESIZE
/*
* FDT options
*/
#define CONFIG_LMB
/* /*
* MEMORY ORGANIZATION * MEMORY ORGANIZATION
* -Monitor at top of sdram. * -Monitor at top of sdram.

View File

@ -22,8 +22,6 @@
#define CONFIG_SYS_TIMER_RATE 1000000 #define CONFIG_SYS_TIMER_RATE 1000000
#endif #endif
#define CONFIG_LMB
#define CONFIG_HOST_MAX_DEVICES 4 #define CONFIG_HOST_MAX_DEVICES 4
/* /*

View File

@ -16,8 +16,6 @@
*/ */
#define CONFIG_PHYSMEM #define CONFIG_PHYSMEM
#define CONFIG_LMB
#define CONFIG_SYS_BOOTM_LEN (16 << 20) #define CONFIG_SYS_BOOTM_LEN (16 << 20)
/* SATA AHCI storage */ /* SATA AHCI storage */

View File

@ -434,7 +434,7 @@ typedef struct bootm_headers {
#define BOOTM_STATE_OS_GO (0x00000400) #define BOOTM_STATE_OS_GO (0x00000400)
int state; int state;
#ifdef CONFIG_LMB #if defined(CONFIG_LMB) && !defined(USE_HOSTCC)
struct lmb lmb; /* for memory mgmt */ struct lmb lmb; /* for memory mgmt */
#endif #endif
} bootm_headers_t; } bootm_headers_t;

View File

@ -700,6 +700,13 @@ config LIB_ELF
Support basic elf loading/validating functions. Support basic elf loading/validating functions.
This supports for 32 bit and 64 bit versions. This supports for 32 bit and 64 bit versions.
config LMB
bool "Enable the logical memory blocks library (lmb)"
default y if ARC || ARM || M68K || MICROBLAZE || MIPS || NDS32 || \
NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
help
Support the library logical memory blocks.
endmenu endmenu
config PHANDLE_CHECK_SEQ config PHANDLE_CHECK_SEQ

View File

@ -948,7 +948,6 @@ CONFIG_LEGACY_BOOTCMD_ENV
CONFIG_LINUX CONFIG_LINUX
CONFIG_LINUX_RESET_VEC CONFIG_LINUX_RESET_VEC
CONFIG_LITTLETON_LCD CONFIG_LITTLETON_LCD
CONFIG_LMB
CONFIG_LMS283GF05 CONFIG_LMS283GF05
CONFIG_LOADADDR CONFIG_LOADADDR
CONFIG_LOADCMD CONFIG_LOADCMD