[U-Boot] [PATCH v3 2/3] ARM: TI: Enable DISPLAY_CPUINFO on all SoCs
Lokesh Vutla
lokeshvutla at ti.com
Tue Oct 4 06:04:51 CEST 2016
Create a common Kconfig entry for DISPLAY_CPUINFO and select it for all
TI SoCs.
Reviewed-by: Tom Rini <trini at konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla at ti.com>
---
arch/arm/Kconfig | 6 ++++++
common/Kconfig | 8 ++++++++
include/configs/ti_armv7_keystone2.h | 1 -
include/configs/ti_omap4_common.h | 1 -
include/configs/ti_omap5_common.h | 1 -
5 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index f55d5b2..683ef66 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -439,6 +439,7 @@ config ARCH_KEYSTONE
select CPU_V7
select SUPPORT_SPL
select CMD_POWEROFF
+ select DISPLAY_CPUINFO
config ARCH_MESON
bool "Amlogic Meson"
@@ -489,22 +490,26 @@ config OMAP34XX
select CPU_V7
select SUPPORT_SPL
select USE_TINY_PRINTF
+ select DISPLAY_CPUINFO
config OMAP44XX
bool "OMAP44XX SoC"
select CPU_V7
select SUPPORT_SPL
select USE_TINY_PRINTF
+ select DISPLAY_CPUINFO
config OMAP54XX
bool "OMAP54XX SoC"
select CPU_V7
select SUPPORT_SPL
+ select DISPLAY_CPUINFO
config AM43XX
bool "AM43XX SoC"
select CPU_V7
select SUPPORT_SPL
+ select DISPLAY_CPUINFO
help
Support for AM43xx SOC from Texas Instruments.
The AM43xx high performance SOC features a Cortex-A9
@@ -516,6 +521,7 @@ config AM33XX
bool "AM33XX SoC"
select CPU_V7
select SUPPORT_SPL
+ select DISPLAY_CPUINFO
help
Support for AM335x SOC from Texas Instruments.
The AM335x high performance SOC features a Cortex-A8
diff --git a/common/Kconfig b/common/Kconfig
index c69c141..665c7ab 100644
--- a/common/Kconfig
+++ b/common/Kconfig
@@ -219,4 +219,12 @@ config VERSION_VARIABLE
Any change to this variable will be reverted at the
next reset.
+config DISPLAY_CPUINFO
+ bool
+ default n
+ help
+ Display information about the CPU that U-Boot is running on
+ when U-Boot starts up. The function print_cpuinfo() is called
+ to do this.
+
source "common/spl/Kconfig"
diff --git a/include/configs/ti_armv7_keystone2.h b/include/configs/ti_armv7_keystone2.h
index c42dedb..b39899f 100644
--- a/include/configs/ti_armv7_keystone2.h
+++ b/include/configs/ti_armv7_keystone2.h
@@ -15,7 +15,6 @@
/* U-Boot Build Configuration */
#define CONFIG_SKIP_LOWLEVEL_INIT /* U-Boot is a 2nd stage loader */
#define CONFIG_BOARD_EARLY_INIT_F
-#define CONFIG_DISPLAY_CPUINFO
/* SoC Configuration */
#define CONFIG_ARCH_CPU_INIT
diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h
index 4115c78..eeeca24 100644
--- a/include/configs/ti_omap4_common.h
+++ b/include/configs/ti_omap4_common.h
@@ -17,7 +17,6 @@
*/
#define CONFIG_OMAP4430 1 /* which is in a 4430 */
#define CONFIG_MISC_INIT_R
-#define CONFIG_DISPLAY_CPUINFO 1
#define CONFIG_DISPLAY_BOARDINFO 1
#define CONFIG_SYS_THUMB_BUILD
diff --git a/include/configs/ti_omap5_common.h b/include/configs/ti_omap5_common.h
index a483850..1601f98 100644
--- a/include/configs/ti_omap5_common.h
+++ b/include/configs/ti_omap5_common.h
@@ -17,7 +17,6 @@
#ifndef __CONFIG_TI_OMAP5_COMMON_H
#define __CONFIG_TI_OMAP5_COMMON_H
-#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
/* Common ARM Erratas */
--
2.9.3
More information about the U-Boot
mailing list