]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
T104xRDB: Remove non-TARGET_T1042D4RDB variants
authorTom Rini <trini@konsulko.com>
Fri, 2 Dec 2022 21:42:51 +0000 (16:42 -0500)
committerTom Rini <trini@konsulko.com>
Thu, 22 Dec 2022 15:31:49 +0000 (10:31 -0500)
At this point only the TARGET_T1042D4RDB variant of this is supported in
tree, so remove the remaining parts of the other platforms.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/powerpc/cpu/mpc85xx/Kconfig
arch/powerpc/include/asm/fsl_secure_boot.h
board/freescale/t104xrdb/Kconfig
board/freescale/t104xrdb/cpld.h
board/freescale/t104xrdb/eth.c
board/freescale/t104xrdb/t104xrdb.c
include/configs/T104xRDB.h

index 03373bf86926a09fe4e603db77c6a3029a71938e..3275d4fa9b88af5309884b8a48344019ffc922ed 100644 (file)
@@ -200,14 +200,6 @@ config TARGET_T1024RDB
        imply CMD_EEPROM
        imply PANIC_HANG
 
-config TARGET_T1042RDB
-       bool "Support T1042RDB"
-       select ARCH_T1042
-       select BOARD_LATE_INIT if CHAIN_OF_TRUST
-       select SUPPORT_SPL
-       select PHYS_64BIT
-       select SYS_L3_SIZE_256KB
-
 config TARGET_T1042D4RDB
        bool "Support T1042D4RDB"
        select ARCH_T1042
@@ -217,15 +209,6 @@ config TARGET_T1042D4RDB
        select SYS_L3_SIZE_256KB
        imply PANIC_HANG
 
-config TARGET_T1042RDB_PI
-       bool "Support T1042RDB_PI"
-       select ARCH_T1042
-       select BOARD_LATE_INIT if CHAIN_OF_TRUST
-       select SUPPORT_SPL
-       select PHYS_64BIT
-       select SYS_L3_SIZE_256KB
-       imply PANIC_HANG
-
 config TARGET_T2080QDS
        bool "Support T2080QDS"
        select ARCH_T2080
index 09f37ec3e49a7121e584d8c49c457866c49a4829..236098e718efa0cea579ae50e31988adb38fa973 100644 (file)
@@ -17,9 +17,7 @@
 
 #if defined(CONFIG_TARGET_T2080QDS) || \
        defined(CONFIG_TARGET_T2080RDB) || \
-       defined(CONFIG_TARGET_T1042RDB) || \
        defined(CONFIG_TARGET_T1042D4RDB) || \
-       defined(CONFIG_TARGET_T1042RDB_PI) || \
        defined(CONFIG_ARCH_T1024)
 #undef CFG_SYS_INIT_L3_ADDR
 #define CFG_SYS_INIT_L3_ADDR                   0xbff00000
index e33d3173650ccd9d7bb9803fd63848bcdff10c0a..e4814915e33278dc357094b4593d233760febee5 100644 (file)
@@ -1,6 +1,4 @@
-if TARGET_T1040RDB || TARGET_T1040D4RDB || \
-       TARGET_T1042RDB || TARGET_T1042D4RDB || \
-       TARGET_T1042RDB_PI
+if TARGET_T1042D4RDB
 
 config SYS_BOARD
        default "t104xrdb"
index 769883f9461f1665fce45acd945fe4b82c23720c..0384202fbcb88bebedb39a1e0028180f63b39ea4 100644 (file)
@@ -20,7 +20,7 @@ struct cpld_data {
        u8 int_status;          /* 0x12 - Interrupt status Register */
        u8 flash_ctl_status;    /* 0x13 - Flash control and status register */
        u8 fan_ctl_status;      /* 0x14 - Fan control and status register  */
-#if defined(CONFIG_TARGET_T1040D4RDB) || defined(CONFIG_TARGET_T1042D4RDB)
+#if defined(CONFIG_TARGET_T1042D4RDB)
        u8 int_mask;            /* 0x15 - Interrupt mask Register */
 #else
        u8 led_ctl_status;      /* 0x15 - LED control and status register */
index c011aa96fbef19151f1df9fbf4b39265121f90e0..3906c8381e0160a688be5f0d75ba6b6c53fed263 100644 (file)
@@ -39,25 +39,6 @@ int board_eth_init(struct bd_info *bis)
                int idx = i - FM1_DTSEC1;
 
                switch (fm_info_get_enet_if(i)) {
-#if defined(CONFIG_TARGET_T1040RDB) || defined(CONFIG_TARGET_T1040D4RDB)
-               case PHY_INTERFACE_MODE_SGMII:
-                       /* T1040RDB & T1040D4RDB only supports SGMII on
-                        * DTSEC3
-                        */
-                       fm_info_set_phy_address(FM1_DTSEC3,
-                                               CFG_SYS_SGMII1_PHY_ADDR);
-                       break;
-#endif
-#ifdef CONFIG_TARGET_T1042RDB
-               case PHY_INTERFACE_MODE_SGMII:
-                       /* T1042RDB doesn't supports SGMII on DTSEC1 & DTSEC2 */
-                       if ((FM1_DTSEC1 == i) || (FM1_DTSEC2 == i))
-                               fm_info_set_phy_address(i, 0);
-                       /* T1042RDB only supports SGMII on DTSEC3 */
-                       fm_info_set_phy_address(FM1_DTSEC3,
-                                               CFG_SYS_SGMII1_PHY_ADDR);
-                       break;
-#endif
 #ifdef CONFIG_TARGET_T1042D4RDB
                case PHY_INTERFACE_MODE_SGMII:
                        /* T1042D4RDB supports SGMII on DTSEC1, DTSEC2
index 45ebdd30004c51321b39b019bf1c129a191c6259..8cec71217a72905e5481a44089242b32c92135b9 100644 (file)
@@ -34,7 +34,7 @@ int checkboard(void)
        struct cpu_type *cpu = gd->arch.cpu;
        u8 sw;
 
-#if defined(CONFIG_TARGET_T1040D4RDB) || defined(CONFIG_TARGET_T1042D4RDB)
+#if defined(CONFIG_TARGET_T1042D4RDB)
        printf("Board: %sD4RDB\n", cpu->name);
 #else
        printf("Board: %sRDB\n", cpu->name);
@@ -110,23 +110,6 @@ int misc_init_r(void)
                CPLD_WRITE(misc_ctl_status, CPLD_READ(misc_ctl_status) |
                                         MISC_CTL_SG_SEL | MISC_CTL_AURORA_SEL);
 
-#if defined(CONFIG_TARGET_T1040D4RDB)
-       if (hwconfig("qe-tdm")) {
-               CPLD_WRITE(sfp_ctl_status, CPLD_READ(sfp_ctl_status) |
-                          MISC_MUX_QE_TDM);
-               printf("QECSR : 0x%02x, mux to qe-tdm\n",
-                      CPLD_READ(sfp_ctl_status));
-       }
-       /* Mask all CPLD interrupt sources, except QSGMII interrupts */
-       if (CPLD_READ(sw_ver) < 0x03) {
-               debug("CPLD SW version 0x%02x doesn't support int_mask\n",
-                     CPLD_READ(sw_ver));
-       } else {
-               CPLD_WRITE(int_mask, CPLD_INT_MASK_ALL &
-                          ~(CPLD_INT_MASK_QSGMII1 | CPLD_INT_MASK_QSGMII2));
-       }
-#endif
-
        return 0;
 }
 
index 7a5bf937e4c39c04222ce68afd39fefe463a78c1..cfde8ecf9c63ab0bff65fe7b4be3415bdf5a368e 100644 (file)
 #define CPLD_LBMAP_RESET               0xFF
 #define CPLD_LBMAP_SHIFT               0x03
 
-#if defined(CONFIG_TARGET_T1042RDB_PI)
-#define CPLD_DIU_SEL_DFP               0x80
-#elif defined(CONFIG_TARGET_T1042D4RDB)
+#if defined(CONFIG_TARGET_T1042D4RDB)
 #define CPLD_DIU_SEL_DFP               0xc0
 #endif
 
-#if defined(CONFIG_TARGET_T1040D4RDB)
-#define CPLD_INT_MASK_ALL              0xFF
-#define CPLD_INT_MASK_THERM            0x80
-#define CPLD_INT_MASK_DVI_DFP          0x40
-#define CPLD_INT_MASK_QSGMII1          0x20
-#define CPLD_INT_MASK_QSGMII2          0x10
-#define CPLD_INT_MASK_SGMI1            0x08
-#define CPLD_INT_MASK_SGMI2            0x04
-#define CPLD_INT_MASK_TDMR1            0x02
-#define CPLD_INT_MASK_TDMR2            0x01
-#endif
-
 #define CFG_SYS_CPLD_BASE      0xffdf0000
 #define CFG_SYS_CPLD_BASE_PHYS (0xf00000000ull | CFG_SYS_CPLD_BASE)
 #define CFG_SYS_CSPR2_EXT      (0xf)
 #define I2C_MUX_PCA_ADDR                0x70
 #define I2C_MUX_CH_DEFAULT      0x8
 
-#if defined(CONFIG_TARGET_T1042RDB_PI) || \
-       defined(CONFIG_TARGET_T1040D4RDB)       || \
-       defined(CONFIG_TARGET_T1042D4RDB)
+#if defined(CONFIG_TARGET_T1042D4RDB)
 /*
  * RTC configuration
  */
 #endif /* CONFIG_NOBQFMAN */
 
 #ifdef CONFIG_FMAN_ENET
-#if defined(CONFIG_TARGET_T1040RDB) || defined(CONFIG_TARGET_T1042RDB)
-#define CFG_SYS_SGMII1_PHY_ADDR             0x03
-#elif defined(CONFIG_TARGET_T1040D4RDB)
-#define CFG_SYS_SGMII1_PHY_ADDR             0x01
-#elif defined(CONFIG_TARGET_T1042D4RDB)
+#if defined(CONFIG_TARGET_T1042D4RDB)
 #define CFG_SYS_SGMII1_PHY_ADDR             0x02
 #define CFG_SYS_SGMII2_PHY_ADDR             0x03
 #define CFG_SYS_SGMII3_PHY_ADDR             0x01
 #endif
 
-#if defined(CONFIG_TARGET_T1040D4RDB) || defined(CONFIG_TARGET_T1042D4RDB)
-#define CFG_SYS_RGMII1_PHY_ADDR             0x04
-#define CFG_SYS_RGMII2_PHY_ADDR             0x05
-#else
 #define CFG_SYS_RGMII1_PHY_ADDR             0x01
 #define CFG_SYS_RGMII2_PHY_ADDR             0x02
 #endif
 
-/* Enable VSC9953 L2 Switch driver on T1040 SoC */
-#if defined(CONFIG_TARGET_T1040RDB) || defined(CONFIG_TARGET_T1040D4RDB)
-#ifdef CONFIG_TARGET_T1040RDB
-#define CFG_SYS_FM1_QSGMII11_PHY_ADDR  0x04
-#define CFG_SYS_FM1_QSGMII21_PHY_ADDR  0x08
-#else
-#define CFG_SYS_FM1_QSGMII11_PHY_ADDR  0x08
-#define CFG_SYS_FM1_QSGMII21_PHY_ADDR  0x0c
-#endif
-#endif
-#endif
-
 /*
  * Miscellaneous configurable options
  */
 #define __USB_PHY_TYPE utmi
 #define RAMDISKFILE    "t104xrdb/ramdisk.uboot"
 
-#ifdef CONFIG_TARGET_T1040RDB
-#define FDTFILE                "t1040rdb/t1040rdb.dtb"
-#elif defined(CONFIG_TARGET_T1042RDB_PI)
-#define FDTFILE                "t1042rdb_pi/t1042rdb_pi.dtb"
-#elif defined(CONFIG_TARGET_T1042RDB)
-#define FDTFILE                "t1042rdb/t1042rdb.dtb"
-#elif defined(CONFIG_TARGET_T1040D4RDB)
-#define FDTFILE                "t1042rdb/t1040d4rdb.dtb"
-#elif defined(CONFIG_TARGET_T1042D4RDB)
+#if defined(CONFIG_TARGET_T1042D4RDB)
 #define FDTFILE                "t1042rdb/t1042d4rdb.dtb"
 #endif