return 0;
}
+void *up_wlan_get_firmware(void)
+{
+ return (void *)0x04048000;
+}
+
void up_wlan_init(struct netif *dev)
{
struct ip_addr ipaddr;
return 0;
}
+void *up_wlan_get_firmware(void)
+{
+ return (void *)0x04048000;
+}
+
struct netif *wlan_netif;
void up_wlan_init(struct netif *dev)
#define WIFI2AP_PMU_SPARE0 ((void *)(PMU_ALIVE_BASE + 0x0900)) /* Control PMU_SPARE0 */
/* Wi-Fi Firmware load address */
-#define WLAN_FW_LOAD_ADDR 0x04048000
-
-#define WIFI_FW_LOAD_BASE (WLAN_FW_LOAD_ADDR >> 12) /* Base address where the Wi-Fi firmware is loaded */
#define WIFI_IRAM_MEM_BASE 0x2020 /* Base address for iRAM mappings */
#define WIFI_IMEM_SIZE 0x800 /* Mapped flash region up to the top of the iram_shared block (8 MB) */
int r;
char *build_id;
struct fwhdr *fwhdr = &mxman->fwhdr;
- char *fw = (void *)WLAN_FW_LOAD_ADDR;
+ char *fw = (void *)up_wlan_get_firmware();
r = fwhdr_init(fw, fwhdr, fwhdr_parsed_ok, &mxman->check_crc);
if (r) {
if (enable_platform_mif_arm_reset || !reset) {
if (!reset) { /* Release from reset */
/* Set WIFI_MEM_BA0 */
- val = WIFI_FW_LOAD_BASE;
+ val = up_wlan_get_firmware() >> 12;
putreg32(val, WIFI2AP_MEM_CONFIG1);
/* Set WIFI_MEM_BA1 */