ARM: TI: Enable DISPLAY_{CPU/BOARD}INFO
v3 cover ARM: TI: Enable DISPLAY_{CPU/BOARD}INFO
This series adds ID code detection support for AM437x and enables CONFIG_DISPLAY_{CPU/BOARD}INFO on all TI platforms.
This series is based on top of Andrew's (Kconfig: Separate AM33XX SOC config from target board config) patch[1]
I specifically did not use tools/moveconfig.py as Tom suggested to select these configs from targets instead of enabling it in defconfigs.
Changes since v2:
- Rebased on top of latest master: "53fec16 - Prepare v2016.11-rc1"
Lokesh Vutla (3):
ARM: AM437X: Add Silicon ID support
ARM: TI: Enable DISPLAY_CPUINFO on all SoCs
ARM: TI: Enable DISPLAY_BOARDINFO on all boards
arch/arm/Kconfig | 6 ++++++ arch/arm/cpu/armv7/am33xx/Kconfig | 11 +++++++++++ arch/arm/cpu/armv7/am33xx/sys_info.c | 5 ++++- arch/arm/cpu/armv7/omap3/Kconfig | 8 ++++++++ arch/arm/cpu/armv7/omap5/Kconfig | 4 ++++ arch/arm/include/asm/arch-am33xx/cpu.h | 3 ++- arch/arm/mach-keystone/Kconfig | 4 ++++ arch/powerpc/cpu/ppc4xx/Kconfig | 14 ++++++++++++++ board/amcc/acadia/Kconfig | 4 ---- board/amcc/bamboo/Kconfig | 4 ---- board/amcc/bubinga/Kconfig | 4 ---- board/amcc/canyonlands/Kconfig | 4 ---- board/amcc/katmai/Kconfig | 4 ---- board/amcc/kilauea/Kconfig | 4 ---- board/amcc/luan/Kconfig | 4 ---- board/amcc/makalu/Kconfig | 4 ---- board/amcc/redwood/Kconfig | 4 ---- board/amcc/sequoia/Kconfig | 4 ---- board/amcc/walnut/Kconfig | 4 ---- board/amcc/yosemite/Kconfig | 4 ---- board/amcc/yucca/Kconfig | 4 ---- board/liebherr/lwmon5/Kconfig | 4 ---- common/Kconfig | 16 ++++++++++++++++ include/configs/ti_armv7_keystone2.h | 1 - include/configs/ti_omap4_common.h | 2 -- include/configs/ti_omap5_common.h | 3 --- 26 files changed, 69 insertions(+), 64 deletions(-)
Signature · 1 line
2.9.3
PATCH v3 1/3 ARM: AM437X: Add Silicon ID support
Add silicon ID code for AM437x silicon. This can be used to print the cpu info using CONFIG_DISPLAY_CPUINFO.
Also printing "CPU :" along with cpu name in order to be consistent with other OMAP platforms.
--- arch/arm/cpu/armv7/am33xx/sys_info.c | 5 ++++- arch/arm/include/asm/arch-am33xx/cpu.h | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-)
arch/arm/cpu/armv7/am33xx/sys_info.c +4 -1
@@ -95,6 +95,9 @@ int print_cpuinfo(void)case TI81XX : cpu_s ="TI81XX" ;break ; +case AM437X : + cpu_s ="AM437X" ; +break ;default : cpu_s ="Unknown CPU type" ;break ;
@@ -110,7 +113,7 @@ int print_cpuinfo(void)else sec_s ="?" ; -printf ("%s-%s rev %s\n" , cpu_s, sec_s, rev_s); +printf ("CPU : %s-%s rev %s\n" , cpu_s, sec_s, rev_s);return 0 ; }
arch/arm/include/asm/arch-am33xx/cpu.h +2 -1
@@ -43,7 +43,8 @@#define HS_DEVICE 0x2#define GP_DEVICE 0x3 -/* cpu-id for AM33XX and TI81XX family */ +/* cpu-id for AM43XX AM33XX and TI81XX family */ +#define AM437X 0xB98C#define AM335X 0xB944#define TI81XX 0xB81E#define DEVICE_ID (CTRL_BASE + 0x0600)
Signature · 1 line
2.9.3
PATCH v3 1/3 ARM: AM437X: Add Silicon ID support
Quoted 7 lines · Lokesh Vutla
Add silicon ID code for AM437x silicon. This can be used to print the cpu info using
CONFIG_DISPLAY_CPUINFO.
Also printing "CPU :" along with cpu name in order to be consistent with other OMAP platforms.Reviewed-by Tom Rini <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20161008/7c00f89c/attachment.sig>
PATCH v3 2/3 ARM: TI: Enable DISPLAY_CPUINFO on all SoCs
In reply to Lokesh VutlaCreate a common Kconfig entry for DISPLAY_CPUINFO and select it for all TI SoCs.
--- 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(-)
arch/arm/Kconfig +6 -0
@@ -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
common/Kconfig +8 -0
@@ -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"
include/configs/ti_armv7_keystone2.h +0 -1
@@ -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
include/configs/ti_omap4_common.h +0 -1
@@ -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
include/configs/ti_omap5_common.h +0 -1
@@ -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 */
Signature · 1 line
2.9.3
PATCH v3 3/3 ARM: TI: Enable DISPLAY_BOARDINFO on all boards
In reply to Lokesh VutlaDelete board specific Kconfig entries for DISPLAY_BOARDINFO and create a common entry. Select it for all TI SoCs and the boards that already has Kconfig entry.
--- arch/arm/cpu/armv7/am33xx/Kconfig | 11 +++++++++++ arch/arm/cpu/armv7/omap3/Kconfig | 8 ++++++++ arch/arm/cpu/armv7/omap5/Kconfig | 4 ++++ arch/arm/mach-keystone/Kconfig | 4 ++++ arch/powerpc/cpu/ppc4xx/Kconfig | 14 ++++++++++++++ board/amcc/acadia/Kconfig | 4 ---- board/amcc/bamboo/Kconfig | 4 ---- board/amcc/bubinga/Kconfig | 4 ---- board/amcc/canyonlands/Kconfig | 4 ---- board/amcc/katmai/Kconfig | 4 ---- board/amcc/kilauea/Kconfig | 4 ---- board/amcc/luan/Kconfig | 4 ---- board/amcc/makalu/Kconfig | 4 ---- board/amcc/redwood/Kconfig | 4 ---- board/amcc/sequoia/Kconfig | 4 ---- board/amcc/walnut/Kconfig | 4 ---- board/amcc/yosemite/Kconfig | 4 ---- board/amcc/yucca/Kconfig | 4 ---- board/liebherr/lwmon5/Kconfig | 4 ---- common/Kconfig | 8 ++++++++ include/configs/ti_omap4_common.h | 1 - include/configs/ti_omap5_common.h | 2 -- 22 files changed, 49 insertions(+), 59 deletions(-)
arch/arm/cpu/armv7/am33xx/Kconfig +11 -0
@@ -10,6 +10,7 @@ config TARGET_AM335X_EVM select DM_SERIAL select DM_GPIO select TI_I2C_BOARD_DETECT + select DISPLAY_BOARDINFO help This option specifies support for the AM335x GP and HS EVM development platforms. The AM335x
@@ -23,29 +24,34 @@ config TARGET_AM335X_BALTOS select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_AM335X_IGEP0033 bool "Support am335x_igep0033" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_AM335X_SHC bool "Support am335x based shc board from bosch" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_AM335X_SL50 bool "Support am335x_sl50" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_BAV335X bool "Support bav335x" select DM select DM_SERIAL + select DISPLAY_BOARDINFO help The BAV335x OEM Network Processor integrates all the functions of an embedded network computer in a small, easy to use SODIMM module which
@@ -60,24 +66,28 @@ config TARGET_CM_T335 select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_PCM051 bool "Support pcm051" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_PENGWYN bool "Support pengwyn" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_PEPPER bool "Support pepper" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO endchoice
@@ -97,6 +107,7 @@ config SPL_I2C_SUPPORT config TARGET_AM43XX_EVM bool "Support am43xx_evm" select TI_I2C_BOARD_DETECT + select DISPLAY_BOARDINFO help This option specifies support for the AM43xx GP and HS EVM development platforms.The AM437x
arch/arm/cpu/armv7/omap3/Kconfig +8 -0
@@ -48,6 +48,7 @@ config TARGET_OMAP3_BEAGLE select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_CM_T35 bool "CompuLab CM-T3530 and CM-T3730 boards"
@@ -60,6 +61,7 @@ config TARGET_DEVKIT8000 select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_OMAP3_EVM bool "TI OMAP3 EVM"
@@ -69,18 +71,21 @@ config TARGET_OMAP3_IGEP00X0 select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_OMAP3_OVERO bool "OMAP35xx Gumstix Overo" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_OMAP3_ZOOM1 bool "TI Zoom1" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_AM3517_CRANE bool "am3517_crane"
@@ -102,6 +107,7 @@ config TARGET_OMAP3_LOGIC select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_NOKIA_RX51 bool "Nokia RX51"
@@ -117,12 +123,14 @@ config TARGET_OMAP3_CAIRO select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO config TARGET_SNIPER bool "LG Optimus Black" select DM select DM_SERIAL select DM_GPIO + select DISPLAY_BOARDINFO endchoice
arch/arm/cpu/armv7/omap5/Kconfig +4 -0
@@ -39,18 +39,22 @@ choice config TARGET_CM_T54 bool "CompuLab CM-T54" + select DISPLAY_BOARDINFO config TARGET_OMAP5_UEVM bool "TI OMAP5 uEVM board" + select DISPLAY_BOARDINFO config TARGET_DRA7XX_EVM bool "TI DRA7XX" select TI_I2C_BOARD_DETECT select PHYS_64BIT + select DISPLAY_BOARDINFO config TARGET_AM57XX_EVM bool "AM57XX" select TI_I2C_BOARD_DETECT + select DISPLAY_BOARDINFO endchoice
arch/arm/mach-keystone/Kconfig +4 -0
@@ -6,15 +6,19 @@ choice config TARGET_K2HK_EVM bool "TI Keystone 2 Kepler/Hawking EVM" + select DISPLAY_BOARDINFO config TARGET_K2E_EVM bool "TI Keystone 2 Edison EVM" + select DISPLAY_BOARDINFO config TARGET_K2L_EVM bool "TI Keystone 2 Lamar EVM" + select DISPLAY_BOARDINFO config TARGET_K2G_EVM bool "TI Keystone 2 Galileo EVM" + select DISPLAY_BOARDINFO endchoice
arch/powerpc/cpu/ppc4xx/Kconfig +14 -0
@@ -10,51 +10,65 @@ choice config TARGET_LWMON5 bool "Support lwmon5" + select DISPLAY_BOARDINFO config TARGET_T3CORP bool "Support t3corp" config TARGET_ACADIA bool "Support acadia" + select DISPLAY_BOARDINFO config TARGET_BAMBOO bool "Support bamboo" + select DISPLAY_BOARDINFO config TARGET_BUBINGA bool "Support bubinga" + select DISPLAY_BOARDINFO config TARGET_CANYONLANDS bool "Support canyonlands" select DM select DM_SERIAL + select DISPLAY_BOARDINFO config TARGET_KATMAI bool "Support katmai" select PHYS_64BIT + select DISPLAY_BOARDINFO config TARGET_KILAUEA bool "Support kilauea" + select DISPLAY_BOARDINFO config TARGET_LUAN bool "Support luan" + select DISPLAY_BOARDINFO config TARGET_MAKALU bool "Support makalu" + select DISPLAY_BOARDINFO config TARGET_REDWOOD bool "Support redwood" + select DISPLAY_BOARDINFO config TARGET_SEQUOIA bool "Support sequoia" + select DISPLAY_BOARDINFO config TARGET_WALNUT bool "Support walnut" + select DISPLAY_BOARDINFO config TARGET_YOSEMITE bool "Support yosemite" + select DISPLAY_BOARDINFO config TARGET_YUCCA bool "Support yucca" + select DISPLAY_BOARDINFO config TARGET_CPCI2DP bool "Support CPCI2DP"
board/amcc/acadia/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "acadia" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/bamboo/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "bamboo" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/bubinga/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "bubinga" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/canyonlands/Kconfig +0 -4
@@ -30,8 +30,4 @@ config ARCHES endchoice -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/katmai/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "katmai" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/kilauea/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "kilauea" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/luan/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "luan" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/makalu/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "makalu" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/redwood/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "redwood" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/sequoia/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "sequoia" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/walnut/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "walnut" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/yosemite/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "yosemite" -config DISPLAY_BOARDINFO - bool - default y - endif
board/amcc/yucca/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "yucca" -config DISPLAY_BOARDINFO - bool - default y - endif
board/liebherr/lwmon5/Kconfig +0 -4
@@ -9,8 +9,4 @@ config SYS_VENDOR config SYS_CONFIG_NAME default "lwmon5" -config DISPLAY_BOARDINFO - bool - default y - endif
common/Kconfig +8 -0
@@ -227,4 +227,12 @@ config DISPLAY_CPUINFO when U-Boot starts up. The function print_cpuinfo() is called to do this. +config DISPLAY_BOARDINFO + bool + default n + help + Display information about the board that U-Boot is running on + when U-Boot starts up. The board function checkboard() is called + to do this. + source "common/spl/Kconfig"
include/configs/ti_omap4_common.h +0 -1
@@ -17,7 +17,6 @@*/ #define CONFIG_OMAP4430 1/* which is in a 4430 */ #define CONFIG_MISC_INIT_R -#define CONFIG_DISPLAY_BOARDINFO 1#define CONFIG_SYS_THUMB_BUILD
include/configs/ti_omap5_common.h +0 -2
@@ -17,8 +17,6 @@#ifndef __CONFIG_TI_OMAP5_COMMON_H#define __CONFIG_TI_OMAP5_COMMON_H -#define CONFIG_DISPLAY_BOARDINFO -/* Common ARM Erratas */ #define CONFIG_ARM_ERRATA_798870
Signature · 1 line
2.9.3