Commit a807ab33035fe2e9b63aac2e7475525ca8d90adc
Committed by
Tom Rini
1 parent
f59961e343
Exists in
v2017.01-smarct4x
and in
25 other branches
spl: Kconfig: Move SPL_DISPLAY_PRINT to Kconfig
Move this option to Kconfig and tidy up existing uses. Also add a function comment to the header file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 6 changed files with 22 additions and 2 deletions Side-by-side Diff
arch/arm/cpu/armv7/omap4/Kconfig
arch/arm/cpu/armv7/omap5/Kconfig
common/spl/Kconfig
... | ... | @@ -61,6 +61,15 @@ |
61 | 61 | location is used. Normally we put the device tree at the end of BSS |
62 | 62 | but with this option enabled, it goes at _image_binary_end. |
63 | 63 | |
64 | +config SPL_DISPLAY_PRINT | |
65 | + depends on SPL | |
66 | + bool "Display a board-specific message in SPL" | |
67 | + help | |
68 | + If this option is enabled, U-Boot will call the function | |
69 | + spl_display_print() immediately after displaying the SPL console | |
70 | + banner ("U-Boot SPL ..."). This function should be provided by | |
71 | + the board. | |
72 | + | |
64 | 73 | config TPL |
65 | 74 | bool |
66 | 75 | depends on SPL && SUPPORT_TPL |
include/configs/ti_omap4_common.h
... | ... | @@ -151,7 +151,6 @@ |
151 | 151 | * So moving TEXT_BASE down to non-HS limit. |
152 | 152 | */ |
153 | 153 | #define CONFIG_SPL_TEXT_BASE 0x40300000 |
154 | -#define CONFIG_SPL_DISPLAY_PRINT | |
155 | 154 | #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds" |
156 | 155 | #define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_SDRAM_BASE + \ |
157 | 156 | (128 << 20)) |
include/configs/ti_omap5_common.h
... | ... | @@ -160,7 +160,6 @@ |
160 | 160 | #define CONFIG_SPL_TEXT_BASE 0x40300000 |
161 | 161 | #endif |
162 | 162 | |
163 | -#define CONFIG_SPL_DISPLAY_PRINT | |
164 | 163 | #define CONFIG_SPL_LDSCRIPT "$(CPUDIR)/omap-common/u-boot-spl.lds" |
165 | 164 | #define CONFIG_SYS_SPL_ARGS_ADDR (CONFIG_SYS_SDRAM_BASE + \ |
166 | 165 | (128 << 20)) |
include/spl.h
... | ... | @@ -122,6 +122,13 @@ |
122 | 122 | */ |
123 | 123 | int spl_start_uboot(void); |
124 | 124 | |
125 | +/** | |
126 | + * spl_display_print() - Display a board-specific message in SPL | |
127 | + * | |
128 | + * If CONFIG_SPL_DISPLAY_PRINT is enabled, U-Boot will call this function | |
129 | + * immediately after displaying the SPL console banner ("U-Boot SPL ..."). | |
130 | + * This function should be provided by the board. | |
131 | + */ | |
125 | 132 | void spl_display_print(void); |
126 | 133 | |
127 | 134 | /* NAND SPL functions */ |