]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
PowerPC: Remove some unused USB code
authorTom Rini <trini@konsulko.com>
Wed, 8 Jun 2022 12:24:34 +0000 (08:24 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 28 Jun 2022 21:03:31 +0000 (17:03 -0400)
These particular code paths aren't used anymore, remove.

Signed-off-by: Tom Rini <trini@konsulko.com>
arch/powerpc/include/asm/immap_83xx.h
board/freescale/p2041rdb/p2041rdb.c
include/configs/P2041RDB.h
include/configs/corenet_ds.h

index d2443dc90d50ac955924589bf29464dd30ee1c63..6d1ddbcd27b549dd3a5fa30996d8b67daba4b78d 100644 (file)
@@ -666,19 +666,6 @@ typedef struct immap {
        u8                      res7[0xC0000];
 } immap_t;
 
-#ifndef        CONFIG_ARCH_MPC834X
-#ifdef CONFIG_HAS_FSL_MPH_USB
-#define CONFIG_SYS_MPC83xx_USB1_OFFSET  0x22000        /* use the MPH controller */
-#define CONFIG_SYS_MPC83xx_USB2_OFFSET 0
-#else
-#define CONFIG_SYS_MPC83xx_USB1_OFFSET 0
-#define CONFIG_SYS_MPC83xx_USB2_OFFSET  0x23000        /* use the DR controller */
-#endif
-#else
-#define CONFIG_SYS_MPC83xx_USB1_OFFSET 0x22000
-#define CONFIG_SYS_MPC83xx_USB2_OFFSET  0x23000
-#endif
-
 #elif defined(CONFIG_ARCH_MPC8313)
 typedef struct immap {
        sysconf83xx_t           sysconf;        /* System configuration */
@@ -944,15 +931,6 @@ struct ccsr_gpio {
 #define CONFIG_SYS_MPC83xx_ESDHC_ADDR \
                        (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_ESDHC_OFFSET)
 
-#ifndef CONFIG_SYS_MPC83xx_USB1_OFFSET
-#define CONFIG_SYS_MPC83xx_USB1_OFFSET  0x23000
-#endif
-#define CONFIG_SYS_MPC83xx_USB1_ADDR \
-                       (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_USB1_OFFSET)
-#if defined(CONFIG_ARCH_MPC834X)
-#define CONFIG_SYS_MPC83xx_USB2_ADDR \
-                       (CONFIG_SYS_IMMR + CONFIG_SYS_MPC83xx_USB2_OFFSET)
-#endif
 #define CONFIG_SYS_LBC_ADDR (&((immap_t *)CONFIG_SYS_IMMR)->im_lbc)
 
 #define CONFIG_SYS_TSEC1_OFFSET                0x24000
index 5bd2b9950602a114f622a5a1258350dff7c49cfb..2a84e9bdf556b7e6b1b40eb8b79ee722373b8101 100644 (file)
@@ -229,7 +229,7 @@ int ft_board_setup(void *blob, struct bd_info *bd)
 
        fdt_fixup_memory(blob, (u64)base, (u64)size);
 
-#if defined(CONFIG_HAS_FSL_DR_USB) || defined(CONFIG_HAS_FSL_MPH_USB)
+#if defined(CONFIG_HAS_FSL_DR_USB)
        fsl_fdt_fixup_dr_usb(blob, bd);
 #endif
 
index 261e9872a7a1498af5fe2edc0be2a25440c384a4..38acb38690d843be398500f665b69d4568def71c 100644 (file)
 #define CONFIG_LOADS_ECHO              /* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE   /* allow baudrate change */
 
-/*
-* USB
-*/
-#define CONFIG_HAS_FSL_MPH_USB
-
 #ifdef CONFIG_MMC
 #define CONFIG_SYS_FSL_ESDHC_ADDR       CONFIG_SYS_MPC85xx_ESDHC_ADDR
 #define CONFIG_SYS_FSL_ESDHC_BROKEN_TIMEOUT
index ce9e5117058295864ca77462b91aa30fa9f7486a..56b56e8a2e2c31bf3d67dc348c33e74eefc5f9a3 100644 (file)
 #define CONFIG_LOADS_ECHO              /* echo on for serial download */
 #define CONFIG_SYS_LOADS_BAUD_CHANGE   /* allow baudrate change */
 
-/*
-* USB
-*/
-#define CONFIG_HAS_FSL_MPH_USB
-
 #ifdef CONFIG_MMC
 #define CONFIG_SYS_FSL_ESDHC_ADDR       CONFIG_SYS_MPC85xx_ESDHC_ADDR
 #define CONFIG_SYS_FSL_ESDHC_BROKEN_TIMEOUT