diff options
author | Simon Glass <sjg@chromium.org> | 2016-10-17 20:12:36 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-23 18:33:19 -0400 |
commit | 8f925584145efecd9a6323801689cffd69cf0b09 (patch) | |
tree | 82accc506b462a88717656ea4cea2deab308acf7 /include | |
parent | 98af87997670af840ef178f76b4d6888534a6700 (diff) | |
download | u-boot-imx-8f925584145efecd9a6323801689cffd69cf0b09.zip u-boot-imx-8f925584145efecd9a6323801689cffd69cf0b09.tar.gz u-boot-imx-8f925584145efecd9a6323801689cffd69cf0b09.tar.bz2 |
Convert CONSOLE_PRE_CONSOLE_BUFFER options to Kconfig
Move these option to Kconfig and tidy up existing uses.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/global_data.h | 2 | ||||
-rw-r--r-- | include/configs/sunxi-common.h | 6 | ||||
-rw-r--r-- | include/configs/tbs2910.h | 4 |
3 files changed, 1 insertions, 11 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index dc4cbdb..e02863d 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -45,7 +45,7 @@ typedef struct global_data { unsigned long board_type; #endif unsigned long have_console; /* serial_init() was called */ -#ifdef CONFIG_PRE_CONSOLE_BUFFER +#if CONFIG_IS_ENABLED(PRE_CONSOLE_BUFFER) unsigned long precon_buf_idx; /* Pre-Console buffer index */ #endif unsigned long env_addr; /* Address of Environment struct */ diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 33f2ab7..634a4c7 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -68,7 +68,6 @@ #define CONFIG_SYS_SDRAM_BASE 0x20000000 #define CONFIG_SYS_LOAD_ADDR 0x22000000 /* default load address */ #define CONFIG_SYS_TEXT_BASE 0x2a000000 -#define CONFIG_PRE_CON_BUF_ADDR 0x2f000000 /* Note SPL_STACK_R_ADDR is set through Kconfig, we include it here * since it needs to fit in with the other values. By also #defining it * we get warnings if the Kconfig value mismatches. */ @@ -79,7 +78,6 @@ #define CONFIG_SYS_SDRAM_BASE 0x40000000 #define CONFIG_SYS_LOAD_ADDR 0x42000000 /* default load address */ #define CONFIG_SYS_TEXT_BASE 0x4a000000 -#define CONFIG_PRE_CON_BUF_ADDR 0x4f000000 /* Note SPL_STACK_R_ADDR is set through Kconfig, we include it here * since it needs to fit in with the other values. By also #defining it * we get warnings if the Kconfig value mismatches. */ @@ -371,10 +369,6 @@ extern int soft_i2c_gpio_scl; #ifndef CONFIG_SPL_BUILD #include <config_distro_defaults.h> -/* Enable pre-console buffer to get complete log on the VGA console */ -#define CONFIG_PRE_CONSOLE_BUFFER -#define CONFIG_PRE_CON_BUF_SZ 4096 /* Aprox 2 80*25 screens */ - #ifdef CONFIG_ARM64 /* * Boards seem to come with at least 512MB of DRAM. diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index d877336..90e4982 100644 --- a/include/configs/tbs2910.h +++ b/include/configs/tbs2910.h @@ -50,10 +50,6 @@ #define CONFIG_CONSOLE_MUX #define CONFIG_CONS_INDEX 1 -#define CONFIG_PRE_CONSOLE_BUFFER -#define CONFIG_PRE_CON_BUF_SZ 4096 -#define CONFIG_PRE_CON_BUF_ADDR 0x7C000000 - /* *** Command definition *** */ #define CONFIG_CMD_BMODE #define CONFIG_CMD_PART |