]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
omap3: Drop CONFIG_OMAP3_EVM, switch to CONFIG_TARGET_OMAP3_EVM when needed
authorTom Rini <trini@konsulko.com>
Sat, 13 May 2017 02:33:18 +0000 (22:33 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 15 May 2017 14:39:58 +0000 (10:39 -0400)
We make use of CONFIG_OMAP3_EVM today to know when to do a specific
tweak in MUSB.  This can be tested on via CONFIG_TARGET_OMAP3_EVM
instead, so switch there so we can drop the now unused symbol
CONFIG_OMAP3_EVM.  In investigating what to do about the symbol usage we
see that the cairo board defines the same function, but never called it
(as it does not define CONFIG_OMAP3_EVM) and was just returning anyhow,
so drop that function from that board.

Cc: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
board/quipos/cairo/cairo.c
drivers/usb/musb/omap3.c
drivers/usb/musb/omap3.h
include/configs/omap3_evm.h
scripts/config_whitelist.txt

index 7a1a61e3869745da5f3c9026b5265ca7d1b4b8dd..5e2f486f8e7674d89174f9ac335c8a6f06f7a649 100644 (file)
 
 DECLARE_GLOBAL_DATA_PTR;
 
-/*
- * MUSB port on OMAP3EVM Rev >= E requires extvbus programming.
- */
-u8 omap3_evm_need_extvbus(void)
-{
-       u8 retval = 0;
-
-       /* TODO: verify if cairo handheld platform needs extvbus programming */
-
-       return retval;
-}
-
 /*
  * Routine: board_init
  * Description: Early hardware init.
index 97da529b44e99d30c7267d47b3f161e50697a749..99b4291a27d8edbbfd1ecc6ef2cf36fc7abc6af6 100644 (file)
@@ -118,7 +118,7 @@ int musb_platform_init(void)
                stdby &= ~OMAP3_OTG_FORCESTDBY_STANDBY;
                writel(stdby, &otg->forcestdby);
 
-#ifdef CONFIG_OMAP3_EVM
+#ifdef CONFIG_TARGET_OMAP3_EVM
                musb_cfg.extvbus = omap3_evm_need_extvbus();
 #endif
 
index ae645c72de7485d922a272de5125c1c45657b328..d91ad0a85b327419b86e263eb1d08b2fa6b2b0a7 100644 (file)
@@ -32,7 +32,7 @@
 
 int musb_platform_init(void);
 
-#ifdef CONFIG_OMAP3_EVM
+#ifdef CONFIG_TARGET_OMAP3_EVM
 extern u8 omap3_evm_need_extvbus(void);
 #endif
 
index c4cac83bb8b0dba101d2030400c32196f2ca43a0..2239a029c4dd23d6dcd309b04dcb67f33776b1f4 100644 (file)
@@ -87,8 +87,6 @@
 
 #define CONFIG_SDRC                    /* The chip has SDRC controller */
 
-#define CONFIG_OMAP3_EVM               /* This is a OMAP3 EVM */
-
 /*
  * Clock related definitions
  */
index 87719048ca9605f6da9e4415e309b5d47e87a9f0..4382b6aa1a1f6d477d7f9029adb9f43ccbb30b92 100644 (file)
@@ -1981,7 +1981,6 @@ CONFIG_OF_STDOUT_PATH
 CONFIG_OF_SUPPORT_OLD_DEVICE_TREES
 CONFIG_OMAP3_AM3517CRANE
 CONFIG_OMAP3_DEVKIT8000
-CONFIG_OMAP3_EVM
 CONFIG_OMAP3_GPIO_2
 CONFIG_OMAP3_GPIO_3
 CONFIG_OMAP3_GPIO_4