]> git.sur5r.net Git - u-boot/commitdiff
ARM: DRA7x/AM57xx: Get rid of CONFIG_AM57XX
authorNishanth Menon <nm@ti.com>
Tue, 29 Nov 2016 09:52:00 +0000 (15:22 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 3 Dec 2016 18:21:11 +0000 (13:21 -0500)
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.

Acked-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
arch/arm/include/asm/arch-omap5/clock.h
arch/arm/include/asm/arch-omap5/hardware.h
arch/arm/include/asm/arch-omap5/omap.h
arch/arm/mach-omap2/omap5/boot.c
arch/arm/mach-omap2/omap5/hw_data.c
drivers/mmc/omap_hsmmc.c
drivers/power/palmas.c
drivers/spi/ti_qspi.c
drivers/usb/dwc3/ti_usb_phy.c
include/configs/am57xx_evm.h
scripts/config_whitelist.txt

index 551c9277f2a74fa3a0c8e050a4987d690f6b1fb6..f6ea1df1a450867fae7a50d0145d8801030e3926 100644 (file)
  */
 #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 */
index a5bd600092891515e584ed2301595ff16b0a4037..d24d6458cc877f8d4750290df7538a5545aeebcd 100644 (file)
@@ -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
 
index ef8e9752450e9c59638ded3eacdbfc2f8b3bfa20..b5e5519fbde54be62cd5c1fd5d8cef551a2859fc 100644 (file)
 #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
index 583beccad5a14a7303158595a0c018dae07aeb37..18750b810a3a0461bd53671bfe2893cd384e50b4 100644 (file)
@@ -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,
index fc9913582480a4f29a941f61afc5f5ee29602c67..02f086b2fbae3ed5100a000b9f160afaae92eae5 100644 (file)
@@ -456,7 +456,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
@@ -472,7 +472,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,
index fceafe1f156e81b055d2039f5b627aea2d927304..020db98462830a9878c0dfa8b369f77eefdd2749 100644 (file)
@@ -700,8 +700,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 */
@@ -712,7 +711,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
index 6430fe004d57af8509538f6fec9713f0c8e3ee4a..cfbc9dc52208c3434f5e062acd9c14d11ecae334 100644 (file)
@@ -27,7 +27,7 @@ int palmas_mmc1_poweron_ldo(void)
 {
        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
index da0488659049cd8f781838de0e6d813fa943ed2b..6f9f983524d1f051158f5508b32cbeb75fb109dc 100644 (file)
@@ -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;
index 4159e5a667cfe58b7ba62073199ecbcc36e7f396..218a8e586c8d9ab9466371106853e486ac2bee8d 100644 (file)
@@ -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
index c457fd4b5406cab48687ad67b921fa256062a7c0..cfd1f147050608df2984d08aafaf58ae03cc143d 100644 (file)
@@ -14,7 +14,7 @@
 
 #include <environment/ti/dfu.h>
 
-#define CONFIG_AM57XX
+#define CONFIG_DRA7XX
 
 #ifdef CONFIG_SPL_BUILD
 #define CONFIG_IODELAY_RECALIBRATION
index b3ed48b82f5e9e5a786186b3aa7d40673c9b5a57..0cb1321de15990b9f2edd75a2081677e905fcb54 100644 (file)
@@ -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