Skip to content

Commit

Permalink
Remove unused platform code
Browse files Browse the repository at this point in the history
This patch removed unused platform code.
remove PANDA_BOARD code.
remove ALLWINNER_A31 code.

Signed-off-by: Jude.Lee <[email protected]>
  • Loading branch information
globalgang committed Nov 13, 2015
1 parent 12a3156 commit b121144
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
19 changes: 1 addition & 18 deletions wilc3000/at_pwr_dev_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,27 +798,10 @@ void release_bus(enum BUS_RELEASE release, int source)
}
EXPORT_SYMBOL(release_bus);

#if defined(PLAT_SAMA5D4)
extern void atmci_rescan_card(unsigned id,unsigned insert);
#define WILC_SDIO_CARD_ID 0
#define _linux_wlan_device_detection() {}
#define _linux_wlan_device_removal() {}
#define _linux_wlan_device_power_on() {}
#define _linux_wlan_device_power_off() {}
#elif defined(PANDA_BOARD)
#define _linux_wlan_device_detection() mmc_start_host(mmc_host_backup[2])
#define _linux_wlan_device_removal() mmc_stop_host(mmc_host_backup[2])
#define _linux_wlan_device_power_on() {}
#define _linux_wlan_device_power_off() {}
#elif defined(PLAT_ALLWINNER_A31)
extern void sw_mci_rescan_card(unsigned id, unsigned insert);
extern void wifi_pm_power(int on);
#define ATWILC_SDIO_CARD_ID 1
#define _linux_wlan_device_power_on() wifi_pm_power(1)
#define _linux_wlan_device_power_off() wifi_pm_power(0)
#define _linux_wlan_device_detection() sw_mci_rescan_card(ATWILC_SDIO_CARD_ID,1)
#define _linux_wlan_device_removal() sw_mci_rescan_card(ATWILC_SDIO_CARD_ID,0)
#endif

static int linux_wlan_device_power(int on_off)
{
Expand Down Expand Up @@ -871,7 +854,7 @@ int at_pwr_power_up(int source)
PRINT_WRN(PWRDEV_DBG, "Device already up. request source is %s\n",
(source == PWR_DEV_SRC_WIFI ? "Wifi" : "BT"));
} else {
printk("PLAT_ALLWINNER_A31 POWER UP\n");
printk("POWER UP\n");
linux_wlan_device_power(0);
linux_wlan_device_power(1);
msleep(100);
Expand Down
5 changes: 0 additions & 5 deletions wilc3000/linux_wlan_common.h
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ enum debug_region{
#endif
#define LINUX_TX_SIZE (64 * 1024)

#if defined(PANDA_BOARD)
#define MODALIAS "WILC_SPI"
#define GPIO_NUM 139
#endif /* PANDA_BOARD */

#if defined(PLAT_SAMA5D4)
#define MODALIAS "wilc_spi"
#define GPIO_NUM 46
Expand Down

0 comments on commit b121144

Please sign in to comment.