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.arib...@3adev.fr> Cc: Marek Vasut <ma...@denx.de> Signed-off-by: Tom Rini <tr...@konsulko.com> --- board/quipos/cairo/cairo.c | 12 ------------ drivers/usb/musb/omap3.c | 2 +- drivers/usb/musb/omap3.h | 2 +- include/configs/omap3_evm.h | 2 -- scripts/config_whitelist.txt | 1 - 5 files changed, 2 insertions(+), 17 deletions(-) diff --git a/board/quipos/cairo/cairo.c b/board/quipos/cairo/cairo.c index 7a1a61e38697..5e2f486f8e76 100644 --- a/board/quipos/cairo/cairo.c +++ b/board/quipos/cairo/cairo.c @@ -26,18 +26,6 @@ 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. */ diff --git a/drivers/usb/musb/omap3.c b/drivers/usb/musb/omap3.c index 97da529b44e9..99b4291a27d8 100644 --- a/drivers/usb/musb/omap3.c +++ b/drivers/usb/musb/omap3.c @@ -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 diff --git a/drivers/usb/musb/omap3.h b/drivers/usb/musb/omap3.h index ae645c72de74..d91ad0a85b32 100644 --- a/drivers/usb/musb/omap3.h +++ b/drivers/usb/musb/omap3.h @@ -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 diff --git a/include/configs/omap3_evm.h b/include/configs/omap3_evm.h index c4cac83bb8b0..2239a029c4dd 100644 --- a/include/configs/omap3_evm.h +++ b/include/configs/omap3_evm.h @@ -87,8 +87,6 @@ #define CONFIG_SDRC /* The chip has SDRC controller */ -#define CONFIG_OMAP3_EVM /* This is a OMAP3 EVM */ - /* * Clock related definitions */ diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index 87719048ca96..4382b6aa1a1f 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -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 -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot