Commit e28e84d2 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Greg Kroah-Hartman

staging/wilc1000: remove WILC_SDIO/WILC_SPI macros

The last remaining user of WILC_SDIO macro checks for the correct
time to wait in an interrupt for the PLL to settle. We can
replace this with a runtime check and remove both WILC_SDIO and
WILC_SPI, as we no longer need conditional compilation based on
the hardware type.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5547c1f0
obj-$(CONFIG_WILC1000) += wilc1000.o obj-$(CONFIG_WILC1000) += wilc1000.o
ccflags-$(CONFIG_WILC1000_SDIO) += -DWILC_SDIO -DCOMPLEMENT_BOOT ccflags-$(CONFIG_WILC1000_SDIO) += -DCOMPLEMENT_BOOT
ccflags-$(CONFIG_WILC1000_SPI) += -DWILC_SPI
ccflags-y += -DSTA_FIRMWARE=\"atmel/wilc1000_fw.bin\" \ ccflags-y += -DSTA_FIRMWARE=\"atmel/wilc1000_fw.bin\" \
-DAP_FIRMWARE=\"atmel/wilc1000_ap_fw.bin\" \ -DAP_FIRMWARE=\"atmel/wilc1000_ap_fw.bin\" \
......
...@@ -1067,7 +1067,10 @@ static void wilc_pllupdate_isr_ext(u32 int_stats) ...@@ -1067,7 +1067,10 @@ static void wilc_pllupdate_isr_ext(u32 int_stats)
g_wlan.hif_func.hif_clear_int_ext(PLL_INT_CLR); g_wlan.hif_func.hif_clear_int_ext(PLL_INT_CLR);
mdelay(WILC_PLL_TO); if (g_wlan.io_type == HIF_SDIO)
mdelay(WILC_PLL_TO_SDIO);
else
mdelay(WILC_PLL_TO_SPI);
while (!(ISWILC1000(wilc_get_chipid(true)) && --trials)) { while (!(ISWILC1000(wilc_get_chipid(true)) && --trials)) {
PRINT_D(TX_DBG, "PLL update retrying\n"); PRINT_D(TX_DBG, "PLL update retrying\n");
......
...@@ -134,11 +134,8 @@ ...@@ -134,11 +134,8 @@
#define WILC_CFG_RSP_STATUS 2 #define WILC_CFG_RSP_STATUS 2
#define WILC_CFG_RSP_SCAN 3 #define WILC_CFG_RSP_SCAN 3
#ifdef WILC_SDIO #define WILC_PLL_TO_SDIO 4
#define WILC_PLL_TO 4 #define WILC_PLL_TO_SPI 2
#else
#define WILC_PLL_TO 2
#endif
#define ABORT_INT BIT(31) #define ABORT_INT BIT(31)
/*******************************************/ /*******************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment