ARM: DRA7/AM57xx: Get rid of CONFIG_AM57XX
Subsystems (7)
cover ARM: DRA7/AM57xx: Get rid of CONFIG_AM57XX
CONFIG_AM57XX is redundant as DRA7 and AM57xx uses the same SoC type. This series removes this config.
Nishanth Menon (2):
usb: xhci: Remove assumption of DWC instance based on DRA7 SoC type
ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX
arch/arm/include/asm/arch-omap5/clock.h | 2 +- arch/arm/include/asm/arch-omap5/hardware.h | 2 +- arch/arm/include/asm/arch-omap5/omap.h | 6 +++--- arch/arm/mach-omap2/omap5/boot.c | 2 +- arch/arm/mach-omap2/omap5/hw_data.c | 4 ++-- drivers/mmc/omap_hsmmc.c | 5 ++--- drivers/power/palmas.c | 2 +- drivers/spi/ti_qspi.c | 2 +- drivers/usb/dwc3/ti_usb_phy.c | 4 ++-- include/configs/am57xx_evm.h | 2 +- include/linux/usb/xhci-omap.h | 4 ++-- scripts/config_whitelist.txt | 1 - 12 files changed, 17 insertions(+), 19 deletions(-)
Signature · 1 line
2.10.1
PATCH 1/2 usb: xhci: Remove assumption of DWC instance based on DRA7 SoC type
From: Nishanth Menon <[email protected]>
Both AM57xx and DRA7xx share the same set of base addresses for DWC controllers. The usage however differ with DWC2 instance used typically in AM57xx evms while DWC1 instances used in DRA7x platforms.
Use TARGET_SOC config to differentiate so that CONFIG_AM57XX can be dropped.
Eventually, this needs to be dt-fied.
--- include/linux/usb/xhci-omap.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/usb/xhci-omap.h +2 -2
@@ -10,11 +10,11 @@#ifndef _ASM_ARCH_XHCI_OMAP_H_#define _ASM_ARCH_XHCI_OMAP_H_ -#ifdef CONFIG_DRA7XX +#ifdef CONFIG_TARGET_DRA7XX_EVM #define OMAP_XHCI_BASE 0x488d0000#define OMAP_OCP1_SCP_BASE 0x4A081000#define OMAP_OTG_WRAPPER_BASE 0x488c0000 -#elif definedCONFIG_AM57XX +#elif definedCONFIG_TARGET_AM57XX_EVM #define OMAP_XHCI_BASE 0x48890000#define OMAP_OCP1_SCP_BASE 0x4A084c00#define OMAP_OTG_WRAPPER_BASE 0x48880000
Signature · 1 line
2.10.1
PATCH 1/2 usb: xhci: Remove assumption of DWC instance based on DRA7 SoC type
Quoted 6 lines · Lokesh Vutla
From: Nishanth Menon <[email protected]>
Both AM57xx and DRA7xx share the same set of base addresses for DWC controllers. The usage however differ with DWC2 instance used typically in AM57xx evms while DWC1 instances used in DRA7x platforms.
Quoted 6 lines
Use
TARGET_SOCconfig to differentiate so thatCONFIG_AM57XXcan be dropped.Eventually, this needs to be dt-fied.
Signed-off-by Nishanth Menon <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
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/20161129/c2a38909/attachment.sig>
PATCH 1/2 usb: xhci: Remove assumption of DWC instance based on DRA7 SoC type
In reply to Lokesh VutlaQuoted 6 lines · Lokesh Vutla
From: Nishanth Menon <[email protected]>
Both AM57xx and DRA7xx share the same set of base addresses for DWC controllers. The usage however differ with DWC2 instance used typically in AM57xx evms while DWC1 instances used in DRA7x platforms.
Quoted 7 lines
Use
TARGET_SOCconfig to differentiate so thatCONFIG_AM57XXcan be dropped.Eventually, this needs to be dt-fied.
Signed-off-by Nishanth Menon <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>Reviewed-by Tom Rini <[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/20161203/c8684003/attachment.sig>
PATCH 2/2 ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX
In reply to Lokesh VutlaFrom: Nishanth Menon <[email protected]>
CONFIG_AM57XX is just an unnecessary macro that is redundant given So, remove the same instead of spreading through out the u-boot source code and getting in the way to maintain common code for DRA7x family.
--- arch/arm/include/asm/arch-omap5/clock.h | 2 +- arch/arm/include/asm/arch-omap5/hardware.h | 2 +- arch/arm/include/asm/arch-omap5/omap.h | 6 +++--- arch/arm/mach-omap2/omap5/boot.c | 2 +- arch/arm/mach-omap2/omap5/hw_data.c | 4 ++-- drivers/mmc/omap_hsmmc.c | 5 ++--- drivers/power/palmas.c | 2 +- drivers/spi/ti_qspi.c | 2 +- drivers/usb/dwc3/ti_usb_phy.c | 4 ++-- include/configs/am57xx_evm.h | 2 +- scripts/config_whitelist.txt | 1 - 11 files changed, 15 insertions(+), 17 deletions(-)
arch/arm/include/asm/arch-omap5/clock.h +1 -1
@@ -377,7 +377,7 @@*/ #define CONFIG_DEFAULT_OMAP_RESET_TIME_MAX_USEC 31219 -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )#define V_OSCK 20000000/* Clock output from T2 */ #else #define V_OSCK 19200000/* Clock output from T2 */
arch/arm/include/asm/arch-omap5/hardware.h +1 -1
@@ -24,7 +24,7 @@#define GPMC_BASE 0x50000000/* EDMA3 Base address for DRA7XX and AM57XX */ -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )#define EDMA3_BASE 0x43300000#endif
arch/arm/include/asm/arch-omap5/omap.h +3 -3
@@ -29,13 +29,13 @@#define CONTROL_CORE_ID_CODE 0x4A002204#define CONTROL_WKUP_ID_CODE 0x4AE0C204 -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )#define CONTROL_ID_CODE CONTROL_WKUP_ID_CODE#else #define CONTROL_ID_CODE CONTROL_CORE_ID_CODE#endif -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )#define DRA7_USB_OTG_SS1_BASE 0x48890000#define DRA7_USB_OTG_SS1_GLUE_BASE 0x48880000#define DRA7_USB3_PHY1_PLL_CTRL 0x4A084C00
@@ -185,7 +185,7 @@ struct s32ktimer {* much larger) and do not, at this time, make use of the additional * space. */ -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )#define NON_SECURE_SRAM_START 0x40300000#define NON_SECURE_SRAM_END 0x40380000/* Not inclusive */ #define NON_SECURE_SRAM_IMG_END 0x4037E000
arch/arm/mach-omap2/omap5/boot.c +1 -1
@@ -12,7 +12,7 @@#include <spl.h> static u32 boot_devices[] = { -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )BOOT_DEVICE_MMC2 ,BOOT_DEVICE_NAND , BOOT_DEVICE_MMC1,
arch/arm/mach-omap2/omap5/hw_data.c +2 -2
@@ -472,7 +472,7 @@ void enable_basic_clocks(void)void enable_basic_uboot_clocks (void ) { u32 const clk_domains_essential[] = { -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX ) (*prcm)->cm_ipu_clkstctrl,#endif 0
@@ -488,7 +488,7 @@ void enable_basic_uboot_clocks(void) (*prcm)->cm_l4per_i2c2_clkctrl, (*prcm)->cm_l4per_i2c3_clkctrl, (*prcm)->cm_l4per_i2c4_clkctrl, -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX ) (*prcm)->cm_ipu_i2c5_clkctrl, #else (*prcm)->cm_l4per_i2c5_clkctrl,
drivers/mmc/omap_hsmmc.c +2 -3
@@ -671,8 +671,7 @@ int omap_mmc_init(int dev_index, uint host_caps_mask, uint f_max, int cd_gpio,case 1 : priv_data->base_addr = (struct hsmmc *)OMAP_HSMMC2_BASE ;#if (defined(CONFIG_OMAP44XX ) || defined(CONFIG_OMAP54XX ) || \ - defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) || \ - defined(CONFIG_AM33XX ) || \ + defined(CONFIG_DRA7XX ) || defined(CONFIG_AM33XX ) || \ defined(CONFIG_AM43XX ) || defined(CONFIG_SOC_KEYSTONE )) && \ defined(CONFIG_HSMMC2_8BIT )/* Enable 8-bit interface for eMMC on OMAP4/5 or DRA7XX */
@@ -683,7 +682,7 @@ int omap_mmc_init(int dev_index, uint host_caps_mask, uint f_max, int cd_gpio,#ifdef OMAP_HSMMC3_BASE case 2 : priv_data->base_addr = (struct hsmmc *)OMAP_HSMMC3_BASE ; -#if (defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX )) && defined(CONFIG_HSMMC3_8BIT ) +#if defined(CONFIG_DRA7XX ) && defined(CONFIG_HSMMC3_8BIT )/* Enable 8-bit interface for eMMC on DRA7XX */ host_caps_val |=MMC_MODE_8BIT ;#endif
drivers/power/palmas.c +1 -1
@@ -46,7 +46,7 @@ int palmas_mmc1_poweron_ldo(uint voltage) {u8 val =0 ; -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )/* * Currently valid for the dra7xx_evm board: * Set TPS659038 LDO1 to 3.0 V
drivers/spi/ti_qspi.c +1 -1
@@ -383,7 +383,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, priv->base = (struct ti_qspi_regs *)QSPI_BASE ; priv->mode = mode; -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX ) priv->ctrl_mod_mmap = (void *)CORE_CTRL_IO ; priv->slave.memory_map = (void *)MMAP_START_ADDR_DRA ; priv->fclk =QSPI_DRA7XX_FCLK ;
drivers/usb/dwc3/ti_usb_phy.c +2 -2
@@ -193,7 +193,7 @@ void ti_usb2_phy_power(struct ti_usb_phy *phy, int on) val =readl (phy->usb2_phy_power);if (on) { -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )if (phy->index ==1 ) val &= ~OMAP_CTRL_USB2_PHY_PD ;else
@@ -205,7 +205,7 @@ void ti_usb2_phy_power(struct ti_usb_phy *phy, int on) AM437X_CTRL_USB2_OTGSESSEND_EN);#endif }else { -#if defined(CONFIG_DRA7XX ) || defined(CONFIG_AM57XX ) +#if defined(CONFIG_DRA7XX )if (phy->index ==1 ) val |=OMAP_CTRL_USB2_PHY_PD ;else
include/configs/am57xx_evm.h +1 -1
@@ -12,7 +12,7 @@#ifndef __CONFIG_AM57XX_EVM_H#define __CONFIG_AM57XX_EVM_H -#define CONFIG_AM57XX +#define CONFIG_DRA7XX #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION
scripts/config_whitelist.txt +0 -1
@@ -86,7 +86,6 @@ CONFIG_AM335X_USB1 CONFIG_AM335X_USB1_MODE CONFIG_AM33XX CONFIG_AM437X_USB2PHY2_HOST -CONFIG_AM57XX CONFIG_AMBAPP_IOAREA CONFIG_AMCC_DEF_ENV CONFIG_AMCC_DEF_ENV_NOR_UPD
Signature · 1 line
2.10.1
PATCH 2/2 ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX
Quoted 9 lines · Lokesh Vutla
From: Nishanth Menon <[email protected]>
CONFIG_AM57XXis just an unnecessary macro that is redundant given So, remove the same instead of spreading through out the u-boot source code and getting in the way to maintain common code for DRA7x family.Acked-by Andrew F. Davis <[email protected]>Signed-off-by Nishanth Menon <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>
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/20161129/6002e193/attachment.sig>
PATCH 2/2 ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX
In reply to Lokesh VutlaQuoted 10 lines · Lokesh Vutla
From: Nishanth Menon <[email protected]>
CONFIG_AM57XXis just an unnecessary macro that is redundant given So, remove the same instead of spreading through out the u-boot source code and getting in the way to maintain common code for DRA7x family.Acked-by Andrew F. Davis <[email protected]>Signed-off-by Nishanth Menon <[email protected]>Signed-off-by Lokesh Vutla <[email protected]>Reviewed-by Tom Rini <[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/20161203/df8b9147/attachment.sig>