am335x_guardian: Enable SPL_OF_CONTROL
Subsystems (13)
PATCH 1/17 am335x_guardian: Enable SPL_OF_CONTROL
To make the USB options enabled in SPL easier to configure, make use of SPL_OF_CONTROL, to mirror full U-Boot.
--- configs/am335x_guardian_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/am335x_guardian_defconfig +1 -0
@@ -60,6 +60,7 @@ CONFIG_CMD_UBI=y # CONFIG_ISO_PARTITION is not set # CONFIG_SPL_EFI_PARTITION is not set CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_ENV_OVERWRITE=y CONFIG_ENV_IS_IN_NAND=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
Signature · 1 line
2.17.1
PATCH 2/17 am335x_boneblack_vboot: Enable SPL_OF_CONTROL
To make the USB options enabled in SPL easier to configure, make use of SPL_OF_CONTROL, to mirror full U-Boot.
--- configs/am335x_boneblack_vboot_defconfig | 1 + 1 file changed, 1 insertion(+)
configs/am335x_boneblack_vboot_defconfig +1 -0
@@ -32,6 +32,7 @@ CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2 # CONFIG_CMD_SETEXPR is not set CONFIG_BOOTP_DNS2=y CONFIG_OF_CONTROL=y +CONFIG_SPL_OF_CONTROL=y CONFIG_ENV_OVERWRITE=y CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
Signature · 1 line
2.17.1
PATCH 3/17 am335x: Remove legacy non-DM_USB code
In reply to Tom RiniWith all SPL cases covered now by having SPL_OF_CONTROL enabled, we can drop legacy code related to AM335x MUSB options.
--- arch/arm/mach-omap2/am33xx/board.c | 126 ------------------------- include/configs/am335x_evm.h | 12 --- include/configs/am335x_guardian.h | 5 - include/configs/baltos.h | 12 --- include/configs/chiliboard.h | 4 - include/configs/siemens-am33x-common.h | 8 -- 6 files changed, 167 deletions(-)
arch/arm/mach-omap2/am33xx/board.c +0 -126
@@ -205,130 +205,6 @@ int cpu_mmc_init(struct bd_info *bis)/* Board type field bit shift for RTC only with DDR in self-refresh mode */ #define RTC_BOARD_TYPE_SHIFT 16 -/* AM33XX has two MUSB controllers which can be host or gadget */ -#if (defined(CONFIG_USB_MUSB_GADGET ) || defined(CONFIG_USB_MUSB_HOST )) && \ - (defined(CONFIG_AM335X_USB0 ) || defined(CONFIG_AM335X_USB1 )) && \ - (!CONFIG_IS_ENABLED (DM_USB ) || !CONFIG_IS_ENABLED (OF_CONTROL )) && \ - (!defined(CONFIG_SPL_BUILD ) || defined(CONFIG_SPL_MUSB_NEW )) - -static struct musb_hdrc_config musb_config = { - .multipoint =1 , - .dyn_fifo =1 , - .num_eps =16 , - .ram_bits =12 , -}; - -#if CONFIG_IS_ENABLED (DM_USB ) && !CONFIG_IS_ENABLED (OF_CONTROL ) -static struct ti_musb_plat usb0 = { - .base = (void *)USB0_OTG_BASE , - .ctrl_mod_base = &((struct ctrl_dev *)CTRL_DEVICE_BASE )->usb_ctrl0, - .plat = { - .config = &musb_config, - .power =50 , - .platform_ops = &musb_dsps_ops, - }, -}; - -static struct ti_musb_plat usb1 = { - .base = (void *)USB1_OTG_BASE , - .ctrl_mod_base = &((struct ctrl_dev *)CTRL_DEVICE_BASE )->usb_ctrl1, - .plat = { - .config = &musb_config, - .power =50 , - .platform_ops = &musb_dsps_ops, - }, -}; - -U_BOOT_DRVINFOS (am33xx_usbs) = { -#if CONFIG_AM335X_USB0_MODE == MUSB_PERIPHERAL - {"ti-musb-peripheral" , &usb0 }, -#elif CONFIG_AM335X_USB0_MODE == MUSB_HOST - {"ti-musb-host" , &usb0 }, -#endif -#if CONFIG_AM335X_USB1_MODE == MUSB_PERIPHERAL - {"ti-musb-peripheral" , &usb1 }, -#elif CONFIG_AM335X_USB1_MODE == MUSB_HOST - {"ti-musb-host" , &usb1 }, -#endif -}; - -int arch_misc_init (void ) -{ -return 0 ; -} -#else -static struct ctrl_dev *cdev = (struct ctrl_dev *)CTRL_DEVICE_BASE ; - -/* USB 2.0 PHY Control */ -#define CM_PHY_PWRDN (1 << 0) -#define CM_PHY_OTG_PWRDN (1 << 1) -#define OTGVDET_EN (1 << 19) -#define OTGSESSENDEN (1 << 20) - -static void am33xx_usb_set_phy_power (u8 on,u32 *reg_addr) -{ -if (on) { -clrsetbits_le32 (reg_addr,CM_PHY_PWRDN |CM_PHY_OTG_PWRDN , -OTGVDET_EN |OTGSESSENDEN ); - }else { -clrsetbits_le32 (reg_addr,0 ,CM_PHY_PWRDN |CM_PHY_OTG_PWRDN ); - } -} - -#ifdef CONFIG_AM335X_USB0 -static void am33xx_otg0_set_phy_power (struct udevice *dev,u8 on) -{ -am33xx_usb_set_phy_power (on, &cdev->usb_ctrl0); -} - -struct omap_musb_board_data otg0_board_data = { - .set_phy_power = am33xx_otg0_set_phy_power, -}; - -static struct musb_hdrc_platform_data otg0_plat = { - .mode =CONFIG_AM335X_USB0_MODE , - .config = &musb_config, - .power =50 , - .platform_ops = &musb_dsps_ops, - .board_data = &otg0_board_data, -}; -#endif - -#ifdef CONFIG_AM335X_USB1 -static void am33xx_otg1_set_phy_power (struct udevice *dev,u8 on) -{ -am33xx_usb_set_phy_power (on, &cdev->usb_ctrl1); -} - -struct omap_musb_board_data otg1_board_data = { - .set_phy_power = am33xx_otg1_set_phy_power, -}; - -static struct musb_hdrc_platform_data otg1_plat = { - .mode =CONFIG_AM335X_USB1_MODE , - .config = &musb_config, - .power =50 , - .platform_ops = &musb_dsps_ops, - .board_data = &otg1_board_data, -}; -#endif - -int arch_misc_init (void ) -{ -#ifdef CONFIG_AM335X_USB0 -musb_register (&otg0_plat, &otg0_board_data, - (void *)USB0_OTG_BASE ); -#endif -#ifdef CONFIG_AM335X_USB1 -musb_register (&otg1_plat, &otg1_board_data, - (void *)USB1_OTG_BASE ); -#endif -return 0 ; -} -#endif - -#else /* CONFIG_USB_MUSB_* && CONFIG_AM335X_USB* && !CONFIG_DM_USB */ -int arch_misc_init (void ) {struct udevice *dev;
@@ -349,8 +225,6 @@ int arch_misc_init(void)return 0 ; } -#endif /* CONFIG_USB_MUSB_* && CONFIG_AM335X_USB* && !CONFIG_DM_USB */ -#if !CONFIG_IS_ENABLED (SKIP_LOWLEVEL_INIT ) #if defined(CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC) || \
include/configs/am335x_evm.h +0 -12
@@ -212,18 +212,6 @@* in memory. */ -/* -* USB configuration. We enable MUSB support, both for host and for -* gadget. We set USB0 as peripheral and USB1 as host, based on the -* board schematic and physical port wired to each. Then for host we -* add mass storage support and for gadget we add both RNDIS ethernet -* and DFU. -*/ -#define CONFIG_AM335X_USB0 -#define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL -#define CONFIG_AM335X_USB1 -#define CONFIG_AM335X_USB1_MODE MUSB_HOST -/* * Disable MMC DM for SPL build and can be re-enabled after adding * DM support in SPL
include/configs/am335x_guardian.h +0 -5
@@ -146,9 +146,4 @@#endif /* CONFIG_MTD_RAW_NAND */ -#define CONFIG_AM335X_USB0 -#define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL -#define CONFIG_AM335X_USB1 -#define CONFIG_AM335X_USB1_MODE MUSB_HOST -#endif /* ! __CONFIG_AM335X_GUARDIAN_H */
include/configs/baltos.h +0 -12
@@ -232,18 +232,6 @@#endif #endif -/* -* USB configuration. We enable MUSB support, both for host and for -* gadget. We set USB0 as peripheral and USB1 as host, based on the -* board schematic and physical port wired to each. Then for host we -* add mass storage support and for gadget we add both RNDIS ethernet -* and DFU. -*/ -#define CONFIG_AM335X_USB0 -#define CONFIG_AM335X_USB0_MODE MUSB_HOST -#define CONFIG_AM335X_USB1 -#define CONFIG_AM335X_USB1_MODE MUSB_OTG -/* NAND support */ #ifdef CONFIG_MTD_RAW_NAND #define GPMC_NAND_ECC_LP_x8_LAYOUT 1
include/configs/chiliboard.h +0 -4
@@ -146,10 +146,6 @@#define CONFIG_SYS_NAND_U_BOOT_OFFS 0x000c0000/* NAND: SPL related configs */ -/* USB configuration */ -#define CONFIG_AM335X_USB1 -#define CONFIG_AM335X_USB1_MODE MUSB_HOST -/* * Disable MMC DM for SPL build and can be re-enabled after adding * DM support in SPL
include/configs/siemens-am33x-common.h +0 -8
@@ -115,14 +115,6 @@*/ #ifndef CONFIG_SPL_BUILD -/* -* USB configuration -*/ -#define CONFIG_AM335X_USB0 -#define CONFIG_AM335X_USB0_MODE MUSB_PERIPHERAL -#define CONFIG_AM335X_USB1 -#define CONFIG_AM335X_USB1_MODE MUSB_HOST -/* USB DRACO ID as default */ #define CONFIG_USBD_HS
Signature · 1 line
2.17.1
PATCH 4/17 keystone2: Move CONFIG_AEMIF_CNTRL_BASE out of CONFIG namespace
In reply to Tom RiniThis is only used in the aemif driver that is otherwise currently keystone2 centric. Moving forward, if this is applicable to some other platform then such base addresses should be able to be obtained via the device tree. Use KS2_AEMIF_CNTRL_BASE directly now rather than indirectly.
--- drivers/memory/ti-aemif.c | 9 ++++----- include/configs/ti_armv7_keystone2.h | 2 -- 2 files changed, 4 insertions(+), 7 deletions(-)
drivers/memory/ti-aemif.c +4 -5
@@ -9,11 +9,10 @@#include <common.h> #include <asm/ti-common/ti-aemif.h> -#define AEMIF_WAITCYCLE_CONFIG (CONFIG_AEMIF_CNTRL_BASE + 0x4) -#define AEMIF_NAND_CONTROL (CONFIG_AEMIF_CNTRL_BASE + 0x60) -#define AEMIF_ONENAND_CONTROL (CONFIG_AEMIF_CNTRL_BASE + 0x5c) -#define AEMIF_CONFIG (cs) (CONFIG_AEMIF_CNTRL_BASE + 0x10 \ - + (cs * 4)) +#define AEMIF_WAITCYCLE_CONFIG (KS2_AEMIF_CNTRL_BASE + 0x4) +#define AEMIF_NAND_CONTROL (KS2_AEMIF_CNTRL_BASE + 0x60) +#define AEMIF_ONENAND_CONTROL (KS2_AEMIF_CNTRL_BASE + 0x5c) +#define AEMIF_CONFIG (cs) (KS2_AEMIF_CNTRL_BASE + 0x10 + (cs * 4))#define AEMIF_CFG_SELECT_STROBE (v) ((v) ? 1 << 31 : 0)#define AEMIF_CFG_EXTEND_WAIT (v) ((v) ? 1 << 30 : 0)
include/configs/ti_armv7_keystone2.h +0 -2
@@ -108,8 +108,6 @@#define CONFIG_KSNET_SERDES_SGMII2_BASE KS2_SGMII_SERDES2_BASE#define CONFIG_KSNET_SERDES_LANES_PER_SGMII KS2_LANES_PER_SGMII_SERDES -#define CONFIG_AEMIF_CNTRL_BASE KS2_AEMIF_CNTRL_BASE -/* I2C Configuration */ #define CONFIG_SYS_DAVINCI_I2C_SPEED 100000#define CONFIG_SYS_DAVINCI_I2C_SLAVE 0x10/* SMBus host address */
Signature · 1 line
2.17.1
Re: [PATCH 04/17] keystone2: Move CONFIG_AEMIF_CNTRL_BASE out of CONFIG namespace
Quoted 7 lines · Tom Rini
This is only used in the aemif driver that is otherwise currently keystone2 centric. Moving forward, if this is applicable to some other platform then such base addresses should be able to be obtained via the device tree. Use
KS2_AEMIF_CNTRL_BASEdirectly now rather than indirectly.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 5/17 usb: phy: ti: Remove non-DM PHY code
In reply to Tom RiniAt this point in time, all platforms that had previously used drivers/usb/phy/omap_usb_phy.c have been migrated to DM and related options. Remove this now unused code and some related unused defines.
--- configs/am43xx_evm_defconfig | 1 - configs/am43xx_evm_qspiboot_defconfig | 1 - configs/am43xx_evm_rtconly_defconfig | 1 - configs/am43xx_evm_usbhost_boot_defconfig | 1 - configs/am43xx_hs_evm_defconfig | 1 - configs/cm_t43_defconfig | 1 - drivers/usb/phy/Kconfig | 3 - drivers/usb/phy/Makefile | 1 - drivers/usb/phy/omap_usb_phy.c | 267 ---------------------- include/configs/am43xx_evm.h | 2 - include/configs/am57xx_evm.h | 2 - include/configs/cm_t43.h | 1 - include/configs/dra7xx_evm.h | 2 - 13 files changed, 284 deletions(-) delete mode 100644 drivers/usb/phy/omap_usb_phy.c
configs/am43xx_evm_defconfig +0 -1
@@ -82,7 +82,6 @@ CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_DWC3_PHY_OMAP=y -CONFIG_OMAP_USB_PHY=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" CONFIG_USB_GADGET_VENDOR_NUM=0x0403
configs/am43xx_evm_qspiboot_defconfig +0 -1
@@ -60,7 +60,6 @@ CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_PHY_OMAP=y -CONFIG_OMAP_USB_PHY=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" CONFIG_USB_GADGET_VENDOR_NUM=0x0403
configs/am43xx_evm_rtconly_defconfig +0 -1
@@ -63,7 +63,6 @@ CONFIG_USB_XHCI_DWC3=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_PHY_OMAP=y -CONFIG_OMAP_USB_PHY=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" CONFIG_USB_GADGET_VENDOR_NUM=0x0403
configs/am43xx_evm_usbhost_boot_defconfig +0 -1
@@ -83,7 +83,6 @@ CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_DWC3_PHY_OMAP=y -CONFIG_OMAP_USB_PHY=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" CONFIG_USB_GADGET_VENDOR_NUM=0x0403
configs/am43xx_hs_evm_defconfig +0 -1
@@ -87,7 +87,6 @@ CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_DWC3_PHY_OMAP=y -CONFIG_OMAP_USB_PHY=y CONFIG_USB_GADGET=y CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" CONFIG_USB_GADGET_VENDOR_NUM=0x0403
configs/cm_t43_defconfig +0 -1
@@ -91,4 +91,3 @@ CONFIG_OMAP3_SPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y -CONFIG_OMAP_USB_PHY=y
drivers/usb/phy/Kconfig +0 -3
@@ -8,8 +8,5 @@ comment "USB Phy" config TWL4030_USB bool "TWL4030 PHY" -config OMAP_USB_PHY - bool "OMAP PHY" - config ROCKCHIP_USB2_PHY bool "Rockchip USB2 PHY"
drivers/usb/phy/Makefile +0 -1
@@ -4,5 +4,4 @@ # Tom Rix <[email protected]> obj-$(CONFIG_TWL4030_USB) += twl4030.o -obj-$(CONFIG_OMAP_USB_PHY) += omap_usb_phy.o obj-$(CONFIG_ROCKCHIP_USB2_PHY) += rockchip_usb2_phy.o
drivers/usb/phy/omap_usb_phy.c deleted +0 -267
267 lines not on this page · raw message
include/configs/am43xx_evm.h +0 -2
@@ -55,8 +55,6 @@#if defined(CONFIG_SPL_USB_HOST ) || !defined(CONFIG_SPL_BUILD )#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1#define CONFIG_USB_XHCI_OMAP - -#define CONFIG_AM437X_USB2PHY2_HOST #endif #if defined(CONFIG_SPL_BUILD ) && !defined(CONFIG_SPL_USB_GADGET )
include/configs/am57xx_evm.h +0 -2
@@ -51,8 +51,6 @@/* USB xHCI HOST */ #define CONFIG_USB_XHCI_OMAP -#define CONFIG_OMAP_USB3PHY1_HOST -/* SATA */ #define CONFIG_SCSI_AHCI_PLAT #define CONFIG_SYS_SCSI_MAX_SCSI_ID 1
include/configs/cm_t43.h +0 -1
@@ -47,7 +47,6 @@/* USB support */ #define CONFIG_USB_XHCI_OMAP -#define CONFIG_AM437X_USB2PHY2_HOST /* Power */ #define CONFIG_POWER_TPS65218
include/configs/dra7xx_evm.h +0 -2
@@ -77,8 +77,6 @@/* USB xHCI HOST */ #define CONFIG_USB_XHCI_OMAP -#define CONFIG_OMAP_USB2PHY2_HOST -/* SATA */ #define CONFIG_SCSI_AHCI_PLAT
Signature · 1 line
2.17.1
Re: [PATCH 05/17] usb: phy: ti: Remove non-DM PHY code
Quoted 5 lines · Tom Rini
At this point in time, all platforms that had previously used
drivers/usb/phy/omap_usb_phy.chave been migrated to DM and related options. Remove this now unused code and some related unused defines.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 6/17 Convert CONFIG_USB_XHCI_OMAP to Kconfig
In reply to Tom RiniThis converts the following to Kconfig:
CONFIG_USB_XHCI_OMAP
--- configs/am43xx_evm_defconfig | 1 + configs/am43xx_evm_qspiboot_defconfig | 1 + configs/am43xx_evm_rtconly_defconfig | 1 + configs/am43xx_evm_usbhost_boot_defconfig | 1 + configs/am43xx_hs_evm_defconfig | 1 + configs/am57xx_evm_defconfig | 1 + configs/am57xx_hs_evm_defconfig | 1 + configs/am57xx_hs_evm_usb_defconfig | 1 + configs/cm_t43_defconfig | 1 + configs/dra7xx_evm_defconfig | 1 + configs/dra7xx_hs_evm_defconfig | 1 + configs/dra7xx_hs_evm_usb_defconfig | 1 + drivers/usb/host/Kconfig | 10 ++++++++++ include/configs/am43xx_evm.h | 1 - include/configs/am57xx_evm.h | 3 --- include/configs/cm_t43.h | 3 --- include/configs/dra7xx_evm.h | 3 --- 17 files changed, 22 insertions(+), 10 deletions(-)
configs/am43xx_evm_defconfig +1 -0
@@ -78,6 +78,7 @@ CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_GENERIC=y
configs/am43xx_evm_qspiboot_defconfig +1 -0
@@ -57,6 +57,7 @@ CONFIG_TI_QSPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_PHY_OMAP=y
configs/am43xx_evm_rtconly_defconfig +1 -0
@@ -60,6 +60,7 @@ CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_PHY_OMAP=y
configs/am43xx_evm_usbhost_boot_defconfig +1 -0
@@ -79,6 +79,7 @@ CONFIG_OMAP_TIMER=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_GENERIC=y
configs/am43xx_hs_evm_defconfig +1 -0
@@ -83,6 +83,7 @@ CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_GENERIC=y
configs/am57xx_evm_defconfig +1 -0
@@ -108,6 +108,7 @@ CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y
configs/am57xx_hs_evm_defconfig +1 -0
@@ -104,6 +104,7 @@ CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y
configs/am57xx_hs_evm_usb_defconfig +1 -0
@@ -112,6 +112,7 @@ CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y
configs/cm_t43_defconfig +1 -0
@@ -91,3 +91,4 @@ CONFIG_OMAP3_SPI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y
configs/dra7xx_evm_defconfig +1 -0
@@ -124,6 +124,7 @@ CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_GENERIC=y
configs/dra7xx_hs_evm_defconfig +1 -0
@@ -127,6 +127,7 @@ CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_GENERIC=y
configs/dra7xx_hs_evm_usb_defconfig +1 -0
@@ -121,6 +121,7 @@ CONFIG_DM_USB_GADGET=y CONFIG_SPL_DM_USB_GADGET=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_XHCI_DWC3=y +CONFIG_USB_XHCI_OMAP=y CONFIG_USB_DWC3=y CONFIG_USB_DWC3_GENERIC=y CONFIG_USB_GADGET=y
drivers/usb/host/Kconfig +10 -0
@@ -57,6 +57,16 @@ config USB_XHCI_OCTEON family SoCs. This is a driver for the dwc3 to provide the glue logic to configure the controller. +config USB_XHCI_OMAP + bool "Support for TI OMAP family xHCI USB controller" + depends on ARCH_OMAP2PLUS + help + Enables support for the on-chip xHCI controller found on some TI SoC + families. Note that some families have multiple contollers while + others only have something such as DesignWare-based controllers. + Consult the SoC documentation to determine if this option applies + to your hardware. + config USB_XHCI_PCI bool "Support for PCI-based xHCI USB controller" depends on DM_USB
include/configs/am43xx_evm.h +0 -1
@@ -54,7 +54,6 @@#if defined(CONFIG_SPL_USB_HOST ) || !defined(CONFIG_SPL_BUILD )#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1 -#define CONFIG_USB_XHCI_OMAP #endif #if defined(CONFIG_SPL_BUILD ) && !defined(CONFIG_SPL_USB_GADGET )
include/configs/am57xx_evm.h +0 -3
@@ -48,9 +48,6 @@#define CONFIG_NET_RETRY_COUNT 10#define PHY_ANEG_TIMEOUT 8000/* PHY needs longer aneg time at 1G */ -/* USB xHCI HOST */ -#define CONFIG_USB_XHCI_OMAP -/* SATA */ #define CONFIG_SCSI_AHCI_PLAT #define CONFIG_SYS_SCSI_MAX_SCSI_ID 1
include/configs/cm_t43.h +0 -3
@@ -45,9 +45,6 @@/* CPSW Ethernet support */ #define CONFIG_SYS_RX_ETH_BUFFER 64 -/* USB support */ -#define CONFIG_USB_XHCI_OMAP -/* Power */ #define CONFIG_POWER_TPS65218
include/configs/dra7xx_evm.h +0 -3
@@ -74,9 +74,6 @@/* SPI SPL */ -/* USB xHCI HOST */ -#define CONFIG_USB_XHCI_OMAP -/* SATA */ #define CONFIG_SCSI_AHCI_PLAT
Signature · 1 line
2.17.1
Re: [PATCH 06/17] Convert CONFIG_USB_XHCI_OMAP to Kconfig
Quoted 4 lines · Tom Rini
This converts the following to
Kconfig:
CONFIG_USB_XHCI_OMAPSigned-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 7/17 compulab: Clean up some unused symbols
In reply to Tom RiniSince cm_t35 was removed, CONFIG_CM_T3X does not exist. This lets us simplify the code in board/compulab/common/eeprom.c a bit.
--- board/compulab/common/eeprom.c | 43 ---------------------------------- include/configs/cm_t335.h | 2 -- include/configs/cm_t43.h | 1 - 3 files changed, 46 deletions(-)
board/compulab/common/eeprom.c +0 -43
@@ -385,43 +385,8 @@ int eeprom_field_update_date(struct eeprom_field *field, char *value)#define LAYOUT_VERSION_VER2 3#define LAYOUT_VERSION_VER3 4 -extern struct eeprom_field layout_unknown[1 ]; -#define DEFINE_PRINT_UPDATE (x) eeprom_field_print_##x, eeprom_field_update_##x -#ifdef CONFIG_CM_T3X -struct eeprom_field layout_legacy[5 ] = { - {"MAC address" ,6 ,NULL ,DEFINE_PRINT_UPDATE (mac) }, - {"Board Revision" ,2 ,NULL ,DEFINE_PRINT_UPDATE (bin) }, - {"Serial Number" ,8 ,NULL ,DEFINE_PRINT_UPDATE (bin) }, - {"Board Configuration" ,64 ,NULL ,DEFINE_PRINT_UPDATE (ascii) }, - {RESERVED_FIELDS ,176 ,NULL , eeprom_field_print_reserved, - eeprom_field_update_ascii }, -}; -#else -#define layout_legacy layout_unknown -#endif - -#if defined(CONFIG_CM_T3X ) -struct eeprom_field layout_v1[12 ] = { - {"Major Revision" ,2 ,NULL ,DEFINE_PRINT_UPDATE (bin_ver) }, - {"Minor Revision" ,2 ,NULL ,DEFINE_PRINT_UPDATE (bin_ver) }, - {"1st MAC Address" ,6 ,NULL ,DEFINE_PRINT_UPDATE (mac) }, - {"2nd MAC Address" ,6 ,NULL ,DEFINE_PRINT_UPDATE (mac) }, - {"Production Date" ,4 ,NULL ,DEFINE_PRINT_UPDATE (date) }, - {"Serial Number" ,12 ,NULL ,DEFINE_PRINT_UPDATE (bin_rev) }, - {RESERVED_FIELDS ,96 ,NULL ,DEFINE_PRINT_UPDATE (reserved) }, - {"Product Name" ,16 ,NULL ,DEFINE_PRINT_UPDATE (ascii) }, - {"Product Options #1" ,16 ,NULL ,DEFINE_PRINT_UPDATE (ascii) }, - {"Product Options #2" ,16 ,NULL ,DEFINE_PRINT_UPDATE (ascii) }, - {"Product Options #3" ,16 ,NULL ,DEFINE_PRINT_UPDATE (ascii) }, - {RESERVED_FIELDS ,64 ,NULL , eeprom_field_print_reserved, - eeprom_field_update_ascii }, -}; -#else -#define layout_v1 layout_unknown -#endif -struct eeprom_field layout_v2[15 ] = { {"Major Revision" ,2 ,NULL ,DEFINE_PRINT_UPDATE (bin_ver) }, {"Minor Revision" ,2 ,NULL ,DEFINE_PRINT_UPDATE (bin_ver) },
@@ -464,14 +429,6 @@ struct eeprom_field layout_v3[16] = {void eeprom_layout_assign (struct eeprom_layout *layout,int layout_version) {switch (layout->layout_version) { -case LAYOUT_VERSION_LEGACY : - layout->fields = layout_legacy; - layout->num_of_fields =ARRAY_SIZE (layout_legacy); -break ; -case LAYOUT_VERSION_VER1 : - layout->fields = layout_v1; - layout->num_of_fields =ARRAY_SIZE (layout_v1); -break ;case LAYOUT_VERSION_VER2 : layout->fields = layout_v2; layout->num_of_fields =ARRAY_SIZE (layout_v2);
include/configs/cm_t335.h +0 -2
@@ -10,8 +10,6 @@#ifndef __CONFIG_CM_T335_H#define __CONFIG_CM_T335_H -#define CONFIG_CM_T335 -#include <configs/ti_am335x_common.h> #undef CONFIG_MAX_RAM_BANK_SIZE
include/configs/cm_t43.h +0 -1
@@ -8,7 +8,6 @@#ifndef __CONFIG_CM_T43_H#define __CONFIG_CM_T43_H -#define CONFIG_CM_T43 #define CONFIG_MAX_RAM_BANK_SIZE (2048 << 20)/* 2GB */ #define CONFIG_SYS_TIMERBASE 0x48040000/* Use Timer2 */
Signature · 1 line
2.17.1
Re: [PATCH 07/17] compulab: Clean up some unused symbols
Quoted 6 lines · Tom Rini
Since
cm_t35was removed,CONFIG_CM_T3Xdoes not exist. This lets us simplify the code inboard/compulab/common/eeprom.ca bit.Cc Igor Grinberg <[email protected]>Cc Nikita Kiryanov <[email protected]>Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 8/17 ti: keystone: Clean up or migrate some NAND related options.
In reply to Tom RiniThe COFNIG_KEYSTONE_RBL_NAND option is always enabled for the driver on keystone platforms, but not older davinci platforms. Use def_bool for the symbol. For CONFIG_KEYSTONE_NAND_MAX_RBL_PAGE, it's only used within the driver and derived from another symbol, so remove CONFIG from the name. Finally, CONFIG_KEYSTONE_NAND_MAX_RBL_SIZE is a bit more fixed. For now, use the value directly. Long term, as part of DM'ifying NAND, this should come from the device tree.
--- drivers/mtd/nand/raw/Kconfig | 4 ++++ drivers/mtd/nand/raw/davinci_nand.c | 12 ++++++------ include/configs/ti_armv7_keystone2.h | 2 -- 3 files changed, 10 insertions(+), 8 deletions(-)
drivers/mtd/nand/raw/Kconfig +4 -0
@@ -105,6 +105,10 @@ config NAND_DAVINCI Enable this driver for NAND flash controllers available in TI Davinci and Keystone2 platforms +config KEYSTONE_RBL_NAND + depends on ARCH_KEYSTONE + def_bool y + config NAND_DENALI bool select SYS_NAND_SELF_INIT
drivers/mtd/nand/raw/davinci_nand.c +6 -6
@@ -347,9 +347,9 @@ static struct nand_ecclayout nand_keystone_rbl_4bit_layout_oobfirst = { };#ifdef CONFIG_SYS_NAND_PAGE_2K -#define CONFIG_KEYSTONE_NAND_MAX_RBL_PAGE CONFIG_KEYSTONE_NAND_MAX_RBL_SIZE >> 11 +#define KEYSTONE_NAND_MAX_RBL_PAGE (0x100000 >> 11)#elif defined(CONFIG_SYS_NAND_PAGE_4K ) -#define CONFIG_KEYSTONE_NAND_MAX_RBL_PAGE CONFIG_KEYSTONE_NAND_MAX_RBL_SIZE >> 12 +#define KEYSTONE_NAND_MAX_RBL_PAGE (0x100000 >> 12)#endif /**
@@ -371,7 +371,7 @@ static int nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip,struct nand_ecclayout *saved_ecc_layout;/* save current ECC layout and assign Keystone RBL ECC layout */ -if (page <CONFIG_KEYSTONE_NAND_MAX_RBL_PAGE ) { +if (page <KEYSTONE_NAND_MAX_RBL_PAGE ) { saved_ecc_layout = chip->ecc.layout; chip->ecc.layout = &nand_keystone_rbl_4bit_layout_oobfirst; mtd->oobavail = chip->ecc.layout->oobavail;
@@ -402,7 +402,7 @@ static int nand_davinci_write_page(struct mtd_info *mtd, struct nand_chip *chip, err:/* restore ECC layout */ -if (page <CONFIG_KEYSTONE_NAND_MAX_RBL_PAGE ) { +if (page <KEYSTONE_NAND_MAX_RBL_PAGE ) { chip->ecc.layout = saved_ecc_layout; mtd->oobavail = saved_ecc_layout->oobavail; }
@@ -433,7 +433,7 @@ static int nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip *struct nand_ecclayout *saved_ecc_layout = chip->ecc.layout;/* save current ECC layout and assign Keystone RBL ECC layout */ -if (page <CONFIG_KEYSTONE_NAND_MAX_RBL_PAGE ) { +if (page <KEYSTONE_NAND_MAX_RBL_PAGE ) { chip->ecc.layout = &nand_keystone_rbl_4bit_layout_oobfirst; mtd->oobavail = chip->ecc.layout->oobavail; }
@@ -463,7 +463,7 @@ static int nand_davinci_read_page_hwecc(struct mtd_info *mtd, struct nand_chip * }/* restore ECC layout */ -if (page <CONFIG_KEYSTONE_NAND_MAX_RBL_PAGE ) { +if (page <KEYSTONE_NAND_MAX_RBL_PAGE ) { chip->ecc.layout = saved_ecc_layout; mtd->oobavail = saved_ecc_layout->oobavail; }
include/configs/ti_armv7_keystone2.h +0 -2
@@ -119,8 +119,6 @@/* EEPROM definitions */ /* NAND Configuration */ -#define CONFIG_KEYSTONE_RBL_NAND -#define CONFIG_KEYSTONE_NAND_MAX_RBL_SIZE CONFIG_ENV_OFFSET#define CONFIG_SYS_NAND_MASK_CLE 0x4000#define CONFIG_SYS_NAND_MASK_ALE 0x2000#define CONFIG_SYS_NAND_CS 2
Signature · 1 line
2.17.1
Re: [PATCH 08/17] ti: keystone: Clean up or migrate some NAND related options.
Quoted 9 lines · Tom Rini
The
COFNIG_KEYSTONE_RBL_NANDoption is always enabled for the driver on keystone platforms, but not older davinci platforms. Usedef_boolfor the symbol. ForCONFIG_KEYSTONE_NAND_MAX_RBL_PAGE, it's only used within the driver and derived from another symbol, so remove CONFIG from the name. Finally,CONFIG_KEYSTONE_NAND_MAX_RBL_SIZEis a bit more fixed. For now, use the value directly. Long term, as part of DM'ifying NAND, this should come from the device tree.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 9/17 ti: keystone: dma: Migrate to Kconfig
In reply to Tom RiniMove the main option for handling drivers/dma/keystone_nav* to Kconfig, and enable it by default. All of the sub-symbols are not configurable, so remove them from the CONFIG namespace.
--- drivers/dma/Kconfig | 8 +++++++ drivers/dma/keystone_nav.c | 30 +++++++++++++-------------- drivers/dma/keystone_nav_cfg.c | 24 ++++++++++----------- include/configs/ti_armv7_keystone2.h | 31 ---------------------------- 4 files changed, 34 insertions(+), 59 deletions(-)
drivers/dma/Kconfig +8 -0
@@ -53,6 +53,14 @@ config TI_EDMA3 This driver support data transfer between memory regions. +config TI_KSNAV + bool "TI Keystone Navigator DMA driver" + depends on ARCH_KEYSTONE + default y + select DMA_LEGACY + help + Enable the Keystone Navigator driver for Keystone 2 platforms. + config APBH_DMA bool "Support APBH DMA" depends on MX23 || MX28 || MX6 || MX7 || IMX8 || IMX8M
drivers/dma/keystone_nav.c +15 -15
@@ -11,20 +11,20 @@#include <linux/delay.h> struct qm_config qm_memmap = { - .stat_cfg =CONFIG_KSNAV_QM_QUEUE_STATUS_BASE , - .queue = (void *)CONFIG_KSNAV_QM_MANAGER_QUEUES_BASE , - .mngr_vbusm =CONFIG_KSNAV_QM_BASE_ADDRESS , - .i_lram =CONFIG_KSNAV_QM_LINK_RAM_BASE , - .proxy = (void *)CONFIG_KSNAV_QM_MANAGER_Q_PROXY_BASE , - .status_ram =CONFIG_KSNAV_QM_STATUS_RAM_BASE , - .mngr_cfg = (void *)CONFIG_KSNAV_QM_CONF_BASE , - .intd_cfg =CONFIG_KSNAV_QM_INTD_CONF_BASE , - .desc_mem = (void *)CONFIG_KSNAV_QM_DESC_SETUP_BASE , - .region_num =CONFIG_KSNAV_QM_REGION_NUM , - .pdsp_cmd =CONFIG_KSNAV_QM_PDSP1_CMD_BASE , - .pdsp_ctl =CONFIG_KSNAV_QM_PDSP1_CTRL_BASE , - .pdsp_iram =CONFIG_KSNAV_QM_PDSP1_IRAM_BASE , - .qpool_num =CONFIG_KSNAV_QM_QPOOL_NUM , + .stat_cfg =KS2_QM_QUEUE_STATUS_BASE , + .queue = (void *)KS2_QM_MANAGER_QUEUES_BASE , + .mngr_vbusm =KS2_QM_BASE_ADDRESS , + .i_lram =KS2_QM_LINK_RAM_BASE , + .proxy = (void *)KS2_QM_MANAGER_Q_PROXY_BASE , + .status_ram =KS2_QM_STATUS_RAM_BASE , + .mngr_cfg = (void *)KS2_QM_CONF_BASE , + .intd_cfg =KS2_QM_INTD_CONF_BASE , + .desc_mem = (void *)KS2_QM_DESC_SETUP_BASE , + .region_num =KS2_QM_REGION_NUM , + .pdsp_cmd =KS2_QM_PDSP1_CMD_BASE , + .pdsp_ctl =KS2_QM_PDSP1_CTRL_BASE , + .pdsp_iram =KS2_QM_PDSP1_IRAM_BASE , + .qpool_num =KS2_QM_QPOOL_NUM , };/*
@@ -252,7 +252,7 @@ int ksnav_init(struct pktdma_cfg *pktdma, struct rx_buff_desc *rx_buffers)writel (0 , &pktdma->global->emulation_control);/* Set QM base address, only for K2x devices */ -writel (CONFIG_KSNAV_QM_BASE_ADDRESS , &pktdma->global->qm_base_addr[0 ]); +writel (KS2_QM_BASE_ADDRESS , &pktdma->global->qm_base_addr[0 ]);/* Enable all channels. The current state isn't important */ for (j =0 ; j < pktdma->tx_ch_num; j++) {
drivers/dma/keystone_nav_cfg.c +11 -13
@@ -8,19 +8,17 @@#include <asm/ti-common/keystone_nav.h> -#ifdef CONFIG_KSNAV_PKTDMA_NETCP /* NETCP Pktdma */ struct pktdma_cfg netcp_pktdma = { - .global = (void *)CONFIG_KSNAV_NETCP_PDMA_CTRL_BASE , - .tx_ch = (void *)CONFIG_KSNAV_NETCP_PDMA_TX_BASE , - .tx_ch_num =CONFIG_KSNAV_NETCP_PDMA_TX_CH_NUM , - .rx_ch = (void *)CONFIG_KSNAV_NETCP_PDMA_RX_BASE , - .rx_ch_num =CONFIG_KSNAV_NETCP_PDMA_RX_CH_NUM , - .tx_sched = (u32 *)CONFIG_KSNAV_NETCP_PDMA_SCHED_BASE , - .rx_flows = (void *)CONFIG_KSNAV_NETCP_PDMA_RX_FLOW_BASE , - .rx_flow_num =CONFIG_KSNAV_NETCP_PDMA_RX_FLOW_NUM , - .rx_free_q =CONFIG_KSNAV_NETCP_PDMA_RX_FREE_QUEUE , - .rx_rcv_q =CONFIG_KSNAV_NETCP_PDMA_RX_RCV_QUEUE , - .tx_snd_q =CONFIG_KSNAV_NETCP_PDMA_TX_SND_QUEUE , + .global = (void *)KS2_NETCP_PDMA_CTRL_BASE , + .tx_ch = (void *)KS2_NETCP_PDMA_TX_BASE , + .tx_ch_num =KS2_NETCP_PDMA_TX_CH_NUM , + .rx_ch = (void *)KS2_NETCP_PDMA_RX_BASE , + .rx_ch_num =KS2_NETCP_PDMA_RX_CH_NUM , + .tx_sched = (u32 *)KS2_NETCP_PDMA_SCHED_BASE , + .rx_flows = (void *)KS2_NETCP_PDMA_RX_FLOW_BASE , + .rx_flow_num =KS2_NETCP_PDMA_RX_FLOW_NUM , + .rx_free_q =KS2_NETCP_PDMA_RX_FREE_QUEUE , + .rx_rcv_q =KS2_NETCP_PDMA_RX_RCV_QUEUE , + .tx_snd_q =KS2_NETCP_PDMA_TX_SND_QUEUE , }; -#endif
include/configs/ti_armv7_keystone2.h +0 -31
@@ -70,37 +70,6 @@#define CONFIG_SYS_SGMII_LINERATE_MHZ 1250#define CONFIG_SYS_SGMII_RATESCALE 2 -/* Keyston Navigator Configuration */ -#define CONFIG_TI_KSNAV -#define CONFIG_KSNAV_QM_BASE_ADDRESS KS2_QM_BASE_ADDRESS -#define CONFIG_KSNAV_QM_CONF_BASE KS2_QM_CONF_BASE -#define CONFIG_KSNAV_QM_DESC_SETUP_BASE KS2_QM_DESC_SETUP_BASE -#define CONFIG_KSNAV_QM_STATUS_RAM_BASE KS2_QM_STATUS_RAM_BASE -#define CONFIG_KSNAV_QM_INTD_CONF_BASE KS2_QM_INTD_CONF_BASE -#define CONFIG_KSNAV_QM_PDSP1_CMD_BASE KS2_QM_PDSP1_CMD_BASE -#define CONFIG_KSNAV_QM_PDSP1_CTRL_BASE KS2_QM_PDSP1_CTRL_BASE -#define CONFIG_KSNAV_QM_PDSP1_IRAM_BASE KS2_QM_PDSP1_IRAM_BASE -#define CONFIG_KSNAV_QM_MANAGER_QUEUES_BASE KS2_QM_MANAGER_QUEUES_BASE -#define CONFIG_KSNAV_QM_MANAGER_Q_PROXY_BASE KS2_QM_MANAGER_Q_PROXY_BASE -#define CONFIG_KSNAV_QM_QUEUE_STATUS_BASE KS2_QM_QUEUE_STATUS_BASE -#define CONFIG_KSNAV_QM_LINK_RAM_BASE KS2_QM_LINK_RAM_BASE -#define CONFIG_KSNAV_QM_REGION_NUM KS2_QM_REGION_NUM -#define CONFIG_KSNAV_QM_QPOOL_NUM KS2_QM_QPOOL_NUM - -/* NETCP pktdma */ -#define CONFIG_KSNAV_PKTDMA_NETCP -#define CONFIG_KSNAV_NETCP_PDMA_CTRL_BASE KS2_NETCP_PDMA_CTRL_BASE -#define CONFIG_KSNAV_NETCP_PDMA_TX_BASE KS2_NETCP_PDMA_TX_BASE -#define CONFIG_KSNAV_NETCP_PDMA_TX_CH_NUM KS2_NETCP_PDMA_TX_CH_NUM -#define CONFIG_KSNAV_NETCP_PDMA_RX_BASE KS2_NETCP_PDMA_RX_BASE -#define CONFIG_KSNAV_NETCP_PDMA_RX_CH_NUM KS2_NETCP_PDMA_RX_CH_NUM -#define CONFIG_KSNAV_NETCP_PDMA_SCHED_BASE KS2_NETCP_PDMA_SCHED_BASE -#define CONFIG_KSNAV_NETCP_PDMA_RX_FLOW_BASE KS2_NETCP_PDMA_RX_FLOW_BASE -#define CONFIG_KSNAV_NETCP_PDMA_RX_FLOW_NUM KS2_NETCP_PDMA_RX_FLOW_NUM -#define CONFIG_KSNAV_NETCP_PDMA_RX_FREE_QUEUE KS2_NETCP_PDMA_RX_FREE_QUEUE -#define CONFIG_KSNAV_NETCP_PDMA_RX_RCV_QUEUE KS2_NETCP_PDMA_RX_RCV_QUEUE -#define CONFIG_KSNAV_NETCP_PDMA_TX_SND_QUEUE KS2_NETCP_PDMA_TX_SND_QUEUE -/* Keystone net */ #define CONFIG_KSNET_MAC_ID_BASE KS2_MAC_ID_BASE_ADDR#define CONFIG_KSNET_NETCP_BASE KS2_NETCP_BASE
Signature · 1 line
2.17.1
Re: [PATCH 09/17] ti: keystone: dma: Migrate to Kconfig
Quoted 5 lines · Tom Rini
Move the main option for handling
drivers/dma/keystone_nav*toKconfig, and enable it by default. All of the sub-symbols are not configurable, so remove them from the CONFIG namespace.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 10/17 omapl138_lcdk: Stop using CONFIG_MACH_OMAPL138_LCDK
In reply to Tom RiniWe have one places that uses this symbol and CONFIG_TARGET_OMAPL138_LCDK works equally well, switch to that.
--- board/davinci/da8xxevm/Makefile | 2 +- include/configs/omapl138_lcdk.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
board/davinci/da8xxevm/Makefile +1 -1
@@ -7,4 +7,4 @@ obj-$(CONFIG_MACH_DAVINCI_DA830_EVM) += da830evm.o obj-$(CONFIG_MACH_DAVINCI_DA850_EVM) += da850evm.o -obj-$(CONFIG_MACH_OMAPL138_LCDK) += omapl138_lcdk.o +obj-$(CONFIG_TARGET_OMAPL138_LCDK) += omapl138_lcdk.o
include/configs/omapl138_lcdk.h +0 -1
@@ -17,7 +17,6 @@/* * SoC Configuration */ -#define CONFIG_MACH_OMAPL138_LCDK #define CONFIG_SYS_CLK_FREQ clk_get(DAVINCI_ARM_CLKID)#define CONFIG_SYS_OSCIN_FREQ 24000000#define CONFIG_SYS_TIMERBASE DAVINCI_TIMER0_BASE
Signature · 1 line
2.17.1
Re: [PATCH 10/17] omapl138_lcdk: Stop using CONFIG_MACH_OMAPL138_LCDK
Quoted 4 lines · Tom Rini
We have one places that uses this symbol and
CONFIG_TARGET_OMAPL138_LCDKworks equally well, switch to that.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 11/17 usb: ehci-omap: Drop non-DM_USB legacy code
In reply to Tom RiniNow that DM_USB is always enabled, we can drop some legacy code.
--- drivers/usb/host/ehci-omap.c | 13 ------------- 1 file changed, 13 deletions(-)
drivers/usb/host/ehci-omap.c +0 -13
@@ -183,17 +183,8 @@ int omap_ehci_hcd_stop(void)* Based on "drivers/usb/host/ehci-omap.c" from Linux 3.1 * See there for additional Copyrights. */ -#if !CONFIG_IS_ENABLED (DM_USB ) || !CONFIG_IS_ENABLED (OF_CONTROL ) - -int omap_ehci_hcd_init (int index,struct omap_usbhs_board_data *usbhs_pdata, -struct ehci_hccr **hccr,struct ehci_hcor **hcor) -{ - *hccr = (struct ehci_hccr *)(OMAP_EHCI_BASE ); - *hcor = (struct ehci_hcor *)(OMAP_EHCI_BASE +0x10 ); -#else int omap_ehci_hcd_init (int index,struct omap_usbhs_board_data *usbhs_pdata) { -#endif int ret;unsigned int i, reg =0 , rev =0 ;
@@ -304,8 +295,6 @@ int omap_ehci_hcd_init(int index, struct omap_usbhs_board_data *usbhs_pdata)return 0 ; } -#if CONFIG_IS_ENABLED (DM_USB ) -static struct omap_usbhs_board_data usbhs_bdata = { .port_mode[0 ] =OMAP_USBHS_PORT_MODE_UNUSED , .port_mode[1 ] =OMAP_USBHS_PORT_MODE_UNUSED ,
@@ -409,5 +398,3 @@ U_BOOT_DRIVER(usb_omap_ehci) = { .ops = &ehci_usb_ops, .flags = DM_FLAG_ALLOC_PRIV_DMA, }; - -#endif
Signature · 1 line
2.17.1
Re: [PATCH 11/17] usb: ehci-omap: Drop non-DM_USB legacy code
Quoted 3 lines · Tom Rini
Now that
DM_USBis always enabled, we can drop some legacy code.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 12/17 Convert CONFIG_OMAP_EHCI_PHY1_RESET_GPIO et al to Kconfig
In reply to Tom RiniThis converts the following to Kconfig:
CONFIG_OMAP_EHCI_PHY1_RESET_GPIO
CONFIG_OMAP_EHCI_PHY2_RESET_GPIO
CONFIG_OMAP_EHCI_PHY3_RESET_GPIO
To do this, we also introduce CONFIG_HAS_CONFIG_OMAP_EHCI_PHYn_RESET_GPIO options to get setting the GPIO number.
--- configs/am3517_evm_defconfig | 2 ++ configs/omap35_logic_somlv_defconfig | 2 ++ configs/omap3_beagle_defconfig | 2 ++ configs/omap3_logic_somlv_defconfig | 2 ++ configs/omap4_panda_defconfig | 4 ++++ configs/omap5_uevm_defconfig | 4 ++++ drivers/usb/host/Kconfig | 34 ++++++++++++++++++++++++++++ include/configs/am3517_evm.h | 2 -- include/configs/omap3_beagle.h | 3 --- include/configs/omap3_logic.h | 3 --- include/configs/omap4_panda.h | 2 -- include/configs/omap5_uevm.h | 3 --- include/configs/tam3517-common.h | 2 -- 13 files changed, 50 insertions(+), 15 deletions(-)
configs/am3517_evm_defconfig +2 -0
@@ -77,6 +77,8 @@ CONFIG_DM_SPI=y CONFIG_OMAP3_SPI=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y +CONFIG_HAS_OMAP_EHCI_PHY1_RESET_GPIO=y +CONFIG_OMAP_EHCI_PHY1_RESET_GPIO=57 CONFIG_USB_MUSB_HOST=y CONFIG_USB_MUSB_AM35X=y CONFIG_BCH=y
configs/omap35_logic_somlv_defconfig +2 -0
@@ -82,6 +82,8 @@ CONFIG_OMAP3_SPI=y CONFIG_USB=y # CONFIG_SPL_DM_USB is not set CONFIG_USB_EHCI_HCD=y +CONFIG_HAS_OMAP_EHCI_PHY1_RESET_GPIO=y +CONFIG_OMAP_EHCI_PHY1_RESET_GPIO=4 CONFIG_USB_MUSB_HOST=y CONFIG_USB_MUSB_OMAP2PLUS=y CONFIG_TWL4030_USB=y
configs/omap3_beagle_defconfig +2 -0
@@ -84,6 +84,8 @@ CONFIG_OMAP3_SPI=y CONFIG_USB=y # CONFIG_SPL_DM_USB is not set CONFIG_USB_EHCI_HCD=y +CONFIG_HAS_OMAP_EHCI_PHY1_RESET_GPIO=y +CONFIG_OMAP_EHCI_PHY1_RESET_GPIO=147 CONFIG_USB_OMAP3=y CONFIG_USB_MUSB_GADGET=y CONFIG_USB_MUSB_OMAP2PLUS=y
configs/omap3_logic_somlv_defconfig +2 -0
@@ -83,6 +83,8 @@ CONFIG_OMAP3_SPI=y CONFIG_USB=y # CONFIG_SPL_DM_USB is not set CONFIG_USB_EHCI_HCD=y +CONFIG_HAS_OMAP_EHCI_PHY1_RESET_GPIO=y +CONFIG_OMAP_EHCI_PHY1_RESET_GPIO=4 CONFIG_USB_MUSB_HOST=y CONFIG_USB_MUSB_OMAP2PLUS=y CONFIG_TWL4030_USB=y
configs/omap4_panda_defconfig +4 -0
@@ -40,6 +40,10 @@ CONFIG_CONS_INDEX=3 CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y +CONFIG_HAS_OMAP_EHCI_PHY1_RESET_GPIO=y +CONFIG_OMAP_EHCI_PHY1_RESET_GPIO=1 +CONFIG_HAS_OMAP_EHCI_PHY2_RESET_GPIO=y +CONFIG_OMAP_EHCI_PHY2_RESET_GPIO=62 CONFIG_USB_OMAP3=y CONFIG_USB_HOST_ETHER=y CONFIG_USB_ETHER_SMSC95XX=y
configs/omap5_uevm_defconfig +4 -0
@@ -49,6 +49,10 @@ CONFIG_CONS_INDEX=3 CONFIG_SYS_NS16550=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y +CONFIG_HAS_OMAP_EHCI_PHY2_RESET_GPIO=y +CONFIG_OMAP_EHCI_PHY2_RESET_GPIO=80 +CONFIG_HAS_OMAP_EHCI_PHY3_RESET_GPIO=y +CONFIG_OMAP_EHCI_PHY3_RESET_GPIO=79 CONFIG_USB_DWC3=y CONFIG_USB_DWC3_OMAP=y CONFIG_USB_DWC3_PHY_OMAP=y
drivers/usb/host/Kconfig +34 -0
@@ -183,6 +183,40 @@ config USB_EHCI_OMAP Enables support for the on-chip EHCI controller on OMAP3 and later SoCs. +if USB_EHCI_OMAP + +config HAS_OMAP_EHCI_PHY1_RESET_GPIO + bool "PHY #1 requires a GPIO hold to it in RESET while PHY settles" + help + Enable this to be able to configure the GPIO number used to hold the + PHY in RESET for enough time until the PHY is settled and ready. + +config OMAP_EHCI_PHY1_RESET_GPIO + int "GPIO number to hold PHY #1 in RESET" + depends on HAS_OMAP_EHCI_PHY1_RESET_GPIO + +config HAS_OMAP_EHCI_PHY2_RESET_GPIO + bool "PHY #2 requires a GPIO hold to it in RESET while PHY settles" + help + Enable this to be able to configure the GPIO number used to hold the + PHY in RESET for enough time until the PHY is settled and ready. + +config OMAP_EHCI_PHY2_RESET_GPIO + int "GPIO number to hold PHY #2 in RESET" + depends on HAS_OMAP_EHCI_PHY2_RESET_GPIO + +config HAS_OMAP_EHCI_PHY3_RESET_GPIO + bool "PHY #3 requires a GPIO hold to it in RESET while PHY settles" + help + Enable this to be able to configure the GPIO number used to hold the + PHY in RESET for enough time until the PHY is settled and ready. + +config OMAP_EHCI_PHY3_RESET_GPIO + int "GPIO number to hold PHY #3 in RESET" + depends on HAS_OMAP_EHCI_PHY3_RESET_GPIO + +endif + config USB_EHCI_VF bool "Support for Vybrid on-chip EHCI USB controller" depends on ARCH_VF610
include/configs/am3517_evm.h +0 -2
@@ -23,8 +23,6 @@*/ #ifdef CONFIG_SPL_BUILD #undef CONFIG_USB_EHCI_OMAP -#else -#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 57#endif /* I2C */
include/configs/omap3_beagle.h +0 -3
@@ -41,9 +41,6 @@#endif /* CONFIG_SPL_OS_BOOT */ #endif /* CONFIG_MTD_RAW_NAND */ -/* USB EHCI */ -#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 147 -/* Enable Multi Bus support for I2C */ #define CONFIG_I2C_MULTI_BUS
include/configs/omap3_logic.h +0 -3
@@ -27,9 +27,6 @@#ifdef CONFIG_SPL_BUILD #undef CONFIG_USB_EHCI_OMAP#endif -#ifdef CONFIG_USB_EHCI_OMAP -#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 4 -#endif /* Board NAND Info. */ #ifdef CONFIG_MTD_RAW_NAND
include/configs/omap4_panda.h +0 -2
@@ -16,8 +16,6 @@*/ /* USB UHH support options */ -#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 1 -#define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 62/* USB Networking options */
include/configs/omap5_uevm.h +0 -3
@@ -43,9 +43,6 @@/* USB UHH support options */ #define CONFIG_EHCI_HCD_INIT_AFTER_RESET -#define CONFIG_OMAP_EHCI_PHY2_RESET_GPIO 80 -#define CONFIG_OMAP_EHCI_PHY3_RESET_GPIO 79 -/* Enabled commands */ /* USB Networking options */
include/configs/tam3517-common.h +0 -2
@@ -43,8 +43,6 @@#define CONFIG_SYS_BAUDRATE_TABLE {4800, 9600, 19200, 38400, 57600,\ 115200} -/* EHCI */ -#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 25#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 0x07
Signature · 1 line
2.17.1
Re: [PATCH 12/17] Convert CONFIG_OMAP_EHCI_PHY1_RESET_GPIO et al to Kconfig
Quoted 9 lines · Tom Rini
This converts the following to
Kconfig:
CONFIG_OMAP_EHCI_PHY1_RESET_GPIO
CONFIG_OMAP_EHCI_PHY2_RESET_GPIO
CONFIG_OMAP_EHCI_PHY3_RESET_GPIOTo do this, we also introduce
CONFIG_HAS_CONFIG_OMAP_EHCI_PHYn_RESET_GPIOoptions to get setting the GPIO number.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 13/17 am3517_evm: Remove unused comments/code
In reply to Tom RiniClean up the config header file by removing some now irrelevant code / comments.
--- include/configs/am3517_evm.h | 13 ------------- 1 file changed, 13 deletions(-)
include/configs/am3517_evm.h +0 -13
@@ -14,19 +14,6 @@#include <configs/ti_omap3_common.h> -/* Hardware drivers */ - -/* -* USB configuration -* Enable CONFIG_USB_MUSB_HOST for Host functionalities MSC, keyboard -* Enable CONFIG_USB_MUSB_GADGET for Device functionalities. -*/ -#ifdef CONFIG_SPL_BUILD -#undef CONFIG_USB_EHCI_OMAP -#endif - -/* I2C */ -/* Ethernet */ #define CONFIG_NET_RETRY_COUNT 10
Signature · 1 line
2.17.1
Re: [PATCH 13/17] am3517_evm: Remove unused comments/code
Quoted 4 lines · Tom Rini
Clean up the config header file by removing some now irrelevant code / comments.
Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 14/17 omap3_logic: Remove unused comments/code
In reply to Tom RiniClean up the config header file by removing some now irrelevant code / comments.
--- include/configs/omap3_logic.h | 14 -------------- 1 file changed, 14 deletions(-)
include/configs/omap3_logic.h +0 -14
@@ -14,20 +14,6 @@#include <configs/ti_omap3_common.h> -/* -* We are only ever GP parts and will utilize all of the "downloaded image" -* area in SRAM which starts at 0x40200000 and ends at 0x4020FFFF (64KB) in -* order to allow for BCH8 to fit in. -*/ - -/* Hardware drivers */ - -/* I2C */ - -#ifdef CONFIG_SPL_BUILD -#undef CONFIG_USB_EHCI_OMAP -#endif -/* Board NAND Info. */ #ifdef CONFIG_MTD_RAW_NAND #define CONFIG_SYS_MAX_NAND_DEVICE 1/* Max number of */
Signature · 1 line
2.17.1
Re: [PATCH 14/17] omap3_logic: Remove unused comments/code
Quoted 4 lines · Tom Rini
Clean up the config header file by removing some now irrelevant code / comments.
Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 15/17 omap4_panda: Remove unused comments/code
In reply to Tom RiniClean up the config header file by removing some now irrelevant code / comments.
--- include/configs/omap4_panda.h | 14 -------------- 1 file changed, 14 deletions(-)
include/configs/omap4_panda.h +0 -14
@@ -11,20 +11,6 @@#ifndef __CONFIG_PANDA_H#define __CONFIG_PANDA_H -/* -* High Level Configuration Options -*/ - -/* USB UHH support options */ - -/* USB Networking options */ - -#define CONFIG_UBOOT_ENABLE_PADS_ALL -#include <configs/ti_omap4_common.h> -/* GPIO */ - -/* ENV related config options */ -#endif /* __CONFIG_PANDA_H */
Signature · 1 line
2.17.1
Re: [PATCH 15/17] omap4_panda: Remove unused comments/code
Quoted 4 lines · Tom Rini
Clean up the config header file by removing some now irrelevant code / comments.
Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 16/17 ti: keystone: Move away from CONFIG_SOC_KEYSTONE
In reply to Tom RiniWe have individual SOC symbols for each keystone 2 platform. Use the existing CONFIG_ARCH_KEYSTONE rather than CONFIG_SOC_KEYSTONE to encompass all of the keystone families.
--- arch/arm/dts/Makefile | 2 +- cmd/fdt.c | 2 +- common/image-fdt.c | 2 +- drivers/mmc/omap_hsmmc.c | 4 ++-- drivers/serial/ns16550.c | 4 ++-- include/configs/ti_armv7_keystone2.h | 2 -- 6 files changed, 7 insertions(+), 9 deletions(-)
arch/arm/dts/Makefile +1 -1
@@ -929,7 +929,7 @@ endif dtb-$(CONFIG_RZA1) += \ r7s72100-gr-peach-u-boot.dtb -dtb-$(CONFIG_SOC_KEYSTONE) += keystone-k2hk-evm.dtb \ +dtb-$(CONFIG_ARCH_KEYSTONE) += keystone-k2hk-evm.dtb \ keystone-k2l-evm.dtb \ keystone-k2e-evm.dtb \ keystone-k2g-evm.dtb \
cmd/fdt.c +1 -1
@@ -624,7 +624,7 @@ static int do_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) fdt_strerror(err));return CMD_RET_FAILURE ; } -#ifdef CONFIG_SOC_KEYSTONE +#ifdef CONFIG_ARCH_KEYSTONE ft_board_setup_ex (working_fdt, gd->bd);#endif }
common/image-fdt.c +1 -1
@@ -628,7 +628,7 @@ int image_setup_libfdt(bootm_headers_t *images, void *blob,if (!ft_verify_fdt (blob)) goto err; -#if defined(CONFIG_SOC_KEYSTONE ) +#if defined(CONFIG_ARCH_KEYSTONE )if (IMAGE_OF_BOARD_SETUP )ft_board_setup_ex (blob, gd->bd);#endif
drivers/mmc/omap_hsmmc.c +2 -2
@@ -42,7 +42,7 @@#include <asm/arch/mux_dra7xx.h> #include <asm/arch/dra7xx_iodelay.h> #endif -#if !defined(CONFIG_SOC_KEYSTONE ) +#if !defined(CONFIG_ARCH_KEYSTONE )#include <asm/gpio.h> #include <asm/arch/sys_proto.h> #endif
@@ -1559,7 +1559,7 @@ int omap_mmc_init(int dev_index, uint host_caps_mask, uint f_max, int cd_gpio, priv->base_addr = (struct hsmmc *)OMAP_HSMMC2_BASE ;#if (defined(CONFIG_OMAP44XX ) || defined(CONFIG_OMAP54XX ) || \ defined(CONFIG_DRA7XX ) || defined(CONFIG_AM33XX ) || \ - defined(CONFIG_AM43XX ) || defined(CONFIG_SOC_KEYSTONE )) && \ + defined(CONFIG_AM43XX ) || defined(CONFIG_ARCH_KEYSTONE )) && \ defined(CONFIG_HSMMC2_8BIT )/* Enable 8-bit interface for eMMC on OMAP4/5 or DRA7XX */ host_caps_val |=MMC_MODE_8BIT ;
drivers/serial/ns16550.c +2 -2
@@ -41,7 +41,7 @@ DECLARE_GLOBAL_DATA_PTR;#endif #endif /* !CONFIG_DM_SERIAL */ -#if defined(CONFIG_SOC_KEYSTONE ) +#if defined(CONFIG_ARCH_KEYSTONE )#define UART_REG_VAL_PWREMU_MGMT_UART_DISABLE 0#define UART_REG_VAL_PWREMU_MGMT_UART_ENABLE ((1 << 14) | (1 << 13) | (1 << 0))#undef UART_MCRVAL
@@ -267,7 +267,7 @@ void ns16550_init(struct ns16550 *com_port, int baud_divisor)/* /16 is proper to hit 115200 with 48MHz */ serial_out (0 , &com_port->mdr1);#endif -#if defined(CONFIG_SOC_KEYSTONE ) +#if defined(CONFIG_ARCH_KEYSTONE )serial_out (UART_REG_VAL_PWREMU_MGMT_UART_ENABLE , &com_port->regC);#endif }
include/configs/ti_armv7_keystone2.h +0 -2
@@ -9,8 +9,6 @@#ifndef __CONFIG_KS2_EVM_H#define __CONFIG_KS2_EVM_H -#define CONFIG_SOC_KEYSTONE -/* U-Boot Build Configuration */ /* SoC Configuration */
Signature · 1 line
2.17.1
Re: [PATCH 16/17] ti: keystone: Move away from CONFIG_SOC_KEYSTONE
Quoted 5 lines · Tom Rini
We have individual SOC symbols for each keystone 2 platform. Use the existing
CONFIG_ARCH_KEYSTONErather thanCONFIG_SOC_KEYSTONEto encompass all of the keystone families.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom
PATCH 17/17 ti: keystone: Migrate CONFIG_SOC_K2* to Kconfig
In reply to Tom RiniMove the individual keystone 2 SoC symbols to the mach Kconfig file, select them as needed.
--- arch/arm/mach-keystone/Kconfig | 16 ++++++++++++++++ include/configs/k2e_evm.h | 3 --- include/configs/k2g_evm.h | 3 --- include/configs/k2hk_evm.h | 3 --- include/configs/k2l_evm.h | 3 --- 5 files changed, 16 insertions(+), 12 deletions(-)
arch/arm/mach-keystone/Kconfig +16 -0
@@ -6,6 +6,7 @@ choice config TARGET_K2HK_EVM bool "TI Keystone 2 Kepler/Hawking EVM" + select SOC_K2HK select SPL_BOARD_INIT if SPL select CMD_DDR3 imply DM_I2C
@@ -14,6 +15,7 @@ config TARGET_K2HK_EVM config TARGET_K2E_EVM bool "TI Keystone 2 Edison EVM" + select SOC_K2E select SPL_BOARD_INIT if SPL select CMD_DDR3 imply DM_I2C
@@ -22,6 +24,7 @@ config TARGET_K2E_EVM config TARGET_K2L_EVM bool "TI Keystone 2 Lamar EVM" + select SOC_K2L select SPL_BOARD_INIT if SPL select CMD_DDR3 imply DM_I2C
@@ -31,6 +34,7 @@ config TARGET_K2L_EVM config TARGET_K2G_EVM bool "TI Keystone 2 Galileo EVM" select BOARD_LATE_INIT + select SOC_K2G select SPL_BOARD_INIT if SPL select TI_I2C_BOARD_DETECT select CMD_DDR3
@@ -40,6 +44,18 @@ config TARGET_K2G_EVM endchoice +config SOC_K2E + bool + +config SOC_K2G + bool + +config SOC_K2HK + bool + +config SOC_K2L + bool + config SYS_SOC default "keystone"
include/configs/k2e_evm.h +0 -3
@@ -11,9 +11,6 @@#include <environment/ti/spi.h> -/* Platform type */ -#define CONFIG_SOC_K2E -#ifdef CONFIG_TI_SECURE_DEVICE #define DEFAULT_SEC_BOOT_ENV \ DEFAULT_FIT_TI_ARGS \
include/configs/k2g_evm.h +0 -3
@@ -12,9 +12,6 @@#include <environment/ti/mmc.h> #include <environment/ti/spi.h> -/* Platform type */ -#define CONFIG_SOC_K2G -/* U-Boot general configuration */ #define ENV_KS2_BOARD_SETTINGS \ DEFAULT_MMC_TI_ARGS \
include/configs/k2hk_evm.h +0 -3
@@ -11,9 +11,6 @@#include <environment/ti/spi.h> -/* Platform type */ -#define CONFIG_SOC_K2HK -#ifdef CONFIG_TI_SECURE_DEVICE #define DEFAULT_SEC_BOOT_ENV \ DEFAULT_FIT_TI_ARGS \
include/configs/k2l_evm.h +0 -3
@@ -11,9 +11,6 @@#include <environment/ti/spi.h> -/* Platform type */ -#define CONFIG_SOC_K2L -#ifdef CONFIG_TI_SECURE_DEVICE #define DEFAULT_SEC_BOOT_ENV \ DEFAULT_FIT_TI_ARGS \
Signature · 1 line
2.17.1
Re: [PATCH 17/17] ti: keystone: Migrate CONFIG_SOC_K2* to Kconfig
Quoted 4 lines · Tom Rini
Move the individual keystone 2 SoC symbols to the mach
Kconfigfile, select them as needed.Signed-off-by Tom Rini <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom