Reverse-engineered from Windows Mobile driver (TIACXWLN.dll).
TNETW1251, NVS magic signature 0x00EE1250).ref_clock): 19.2 MHz (verified via NVS byte 0x67 != 0; 40 MHz is explicitly rejected by DriverEntry).MMC controller at 0x41100000, identification clock 19.5 MHz >> 6 = 304.68 kHz, full speed 19.5 MHz).wl1251 + wl1251_sdio (drivers/net/wireless/ti/wl1251/).| Domain | Pin / Register | Mask | Direction / Polarity | Function |
|---|---|---|---|---|
| PXA270 MMC | GPIO 32 | 0x00000001 |
Output (ALT2) |
MMCLK (SDIO Clock) |
| PXA270 MMC | GPIO 92 | 0x10000000 |
Bidir (ALT1) |
MMDAT0 (SDIO Data 0) |
| PXA270 MMC | GPIO 109 | 0x00002000 |
Bidir (ALT1) |
MMDAT1 (SDIO Data 1) |
| PXA270 MMC | GPIO 110 | 0x00004000 |
Bidir (ALT1) |
MMDAT2 (SDIO Data 2) |
| PXA270 MMC | GPIO 111 | 0x00008000 |
Bidir (ALT1) |
MMDAT3 (SDIO Data 3) |
| PXA270 MMC | GPIO 112 | 0x00010000 |
Bidir (ALT1) |
MMCMD (SDIO Command) |
| PXA270 GPIO | GPIO 35 (0x23) |
0x00000008 |
Input (Falling Edge) | WIFI_IRQ (Hardware Interrupt) |
| PXA270 GPIO | GPIO 54 | 0x00400000 |
Output (1 = ON) |
WIFI_PWR_EN (Base power/oscillator enable) |
| PXA270 GPIO | GPIO 72 | 0x00000100 |
Output (Active-Low) | WIFI_RESET (0 = Reset, 1 = Run) |
| PXA270 GPIO | GPIO 113 | 0x00020000 |
Input (Active-Low) | WIFI_READY (0 = Ready) |
CPLD1 (+0x2) |
GPIOB7 | 0x0080 |
Output (1 = ON) |
Wi-Fi Status LED |
CPLD1 (+0x4) |
GPIOC3 | 0x0008 |
Output (1 = ON) |
wifi_pwr3 (Power rail 3) |
CPLD1 (+0x4) |
GPIOC6 | 0x0040 |
Output (1 = ON) |
wifi_pwr4 (Power rail 4) |
CPLD2 (GPIOI) |
GPIOI6 | 0x0040 |
Output (1 = ON) |
wifi_pwr1 (Power rail 1) |
CPLD2 (GPIOI) |
GPIOI7 | 0x0080 |
Output (1 = ON) |
wifi_pwr2 (Power rail 2) |
FUN_1001e4f4)1 and GPIO 72 (WIFI_RESET) = 1.Cpin (+0x4) bit 6 (0x0040 / wifi_pwr4) = 1.GPIOI bits 6 & 7 (0x00C0 / wifi_pwr1 & wifi_pwr2) = 1.Cpin (+0x4) bit 3 (0x0008 / wifi_pwr3) = 1.0, wait 32 ms, then set GPIO 72 = 1.CMD0 / CMD5 initialization sequence.Bpin (+0x2) bit 7 (0x0080) = 1 to turn on the Wi-Fi LED.Clear CPLD1 Bpin (0x80) -> CPLD2 GPIOI (0x80) -> CPLD2 GPIOI (0x40) -> CPLD1 Cpin (0x08) -> CPLD1 Cpin (0x40) -> GPIO 72 = 0 -> GPIO 54 = 0.
(Note: Windows Mobile also uses a shared memory flag at 0x398 and event _BTWlanCoexitNotified for Bluetooth/WLAN PTA antenna coexistence).
The bootloader copies the 752-byte (0x2F0) NVS calibration data (including the factory MAC address and 19.2 MHz clock flag) into RAM at virtual address 0xAC031000 (verified in FUN_1001f1f8).
To extract the NVS file from Windows Mobile using HaRET for Linux /lib/firmware/wl1251-nvs.bin:
pwf wl1251-nvs.bin 0xac031000 0x2f0
Place both wl1251-fw.bin (from standard linux-firmware) and wl1251-nvs.bin inside /lib/firmware/ on your Linux rootfs.