pine64 / bl602-docs

Documentation of the BL602 IC
https://pine64.github.io/bl602-docs/
65 stars 41 forks source link

[Wifi Phy] Add some info about wifi #7

Closed Yangff closed 3 years ago

Yangff commented 3 years ago

Extracted from phy_init.

        23014204 b7  07  c0  44    lui        a5,0x44c00
        23014208 80  43           c.lw       s0,0x0 (a5=>MDM_NXVERSION )

The begin of this mem region is likely to be MDM_NXVERSION and 0x44c0000 is the memory region for wifi phy. But in the following code it says (((uint32_t)rxnssmax << 4) & ~((uint32_t)0x00000070)) == 0", so it can also be some data packed together.

  puVar6 = agcmem;
  puVar4 = (uint32_t *)&DAT_54c0a000;
  do {
    uVar3 = *puVar6;
    puVar5 = puVar4 + 1;
    puVar6 = puVar6 + 1;
    *puVar4 = uVar3;
    puVar4 = puVar5;
  } while (puVar5 != (uint32_t *)0x54c0a800);

Here it moves AGC ucode to AGC memory, so 0x54c0_a000 should be the begining of AGC ucode region.