photon: wlan support

This commit is contained in:
Simon Piriou
2017-03-26 17:42:53 +02:00
parent 1f71c8ced8
commit e5c4a28c3a
22 changed files with 19028 additions and 684 deletions
+10
View File
@@ -61,6 +61,16 @@ SECTIONS
*(.text .text.*)
*(.fixup)
*(.gnu.warning)
. = ALIGN(0x4);
wlan_firmware_image_location = .;
*(.wlan_firmware_image .wlan_firmware_image.*)
wlan_firmware_image_end = .;
. = ALIGN(0x4);
wlan_nvram_image_location = .;
*(.wlan_nvram_image .wlan_nvram_image.*)
wlan_nvram_image_end = .;
*(.rodata .rodata.*)
*(.gnu.linkonce.t.*)
*(.glue_7)
+1
View File
@@ -55,6 +55,7 @@ endif
ifeq ($(CONFIG_PHOTON_WLAN),y)
CSRCS += stm32_wlan.c
CSRCS += stm32_wlan_firmware.c
endif
ifeq ($(CONFIG_STM32_OTGHS),y)
+4 -6
View File
@@ -99,20 +99,18 @@ void bcmf_board_initialize(int minor)
* Name: bcmf_board_setup_oob_irq
****************************************************************************/
void bcmf_board_setup_oob_irq(int minor)
void bcmf_board_setup_oob_irq(int minor, xcpt_t func, void *arg)
{
if (minor != SDIO_WLAN0_MINOR)
{
return;
}
/* Configure reset pin */
/* Configure interrupt pin */
stm32_configgpio(GPIO_WLAN0_RESET);
stm32_configgpio(GPIO_WLAN0_OOB_INT);
/* Put wlan chip in reset state */
bcmf_board_reset(minor, true);
stm32_gpiosetevent(GPIO_WLAN0_OOB_INT, true, false, false, func, arg);
}
/****************************************************************************
File diff suppressed because it is too large Load Diff