PMU Spur Avoid (bool avoid)
- Save original core index and switch to chip common
- If the chip ID is 43224 or 43225
- If avoid
- Write 0 to the PLL Control Address (0x65E)
- Write 0x11500010 to the PLL Control Data (0x660)
- Write 1 to the PLL Control Address
- Write 0x0C000C06 to the PLL Control Data
- Write 2 to the PLL Control Address
- Write 0x03000A08 to the PLL Control Data
- Write 3 to the PLL Control Address
- Write 0x00000000 to the PLL Control Data
- Write 4 to the PLL Control Address
- Write 0x200005C0 to the PLL Control Data
- Write 5 to the PLL Control Address
- Write 0x88888815 to the PLL Control Data
- Otherwise
- Write 0 to the PLL Control Address
- Write 0x11100010 to the PLL Control Data
- Write 1 to the PLL Control Address
- Write 0x000c0c06 to the PLL Control Data
- Write 2 to the PLL Control Address
- Write 0x03000a08 to the PLL Control Data
- Write 3 to the PLL Control Address
- Write 0x00000000 to the PLL Control Data
- Write 4 to the PLL Control Address
- Write 0x200005c0 to the PLL Control Data
- Write 5 to the PLL Control Address
- Write 0x88888855 to the PLL Control Data
- Set tmp to 0x0400
- If avoid
- Else if chip ID is 0x4716
- If avoid
- Write 0 to the PLL Control Address
- Write 0x11500060 to the PLL Control Data
- Write 1 to the PLL Control Address
- Write 0x080C0C06 to the PLL Control Data
- Write 2 to the PLL Control Address
- Write 0x0F600000 to the PLL Control Data
- Write 3 to the PLL Control Address
- Write 0x00000000 to the PLL Control Data
- Write 4 to the PLL Control Address
- Write 0x2001E924 to the PLL Control Data
- Write 5 to the PLL Control Address
- Write 0x88888815 to the PLL Control Data
- Otherwise
- Write 0 to the PLL Control Address
- Write 0x11100060 to the PLL Control Data
- Write 1 to the PLL Control Address
- Write 0x080c0c06 to the PLL Control Data
- Write 2 to the PLL Control Address
- Write 0x03000000 to the PLL Control Data
- Write 3 to the PLL Control Address
- Write 0x00000000 to the PLL Control Data
- Write 4 to the PLL Control Address
- Write 0x200005c0 to the PLL Control Data
- Write 5 to the PLL Control Address
- Write 0x88888815 to the PLL Control Data
- Set tmp to 0x0600
- If avoid
- Else if chip ID is 0x4322, 0x4340 or 0x4341
- Write 0 to the PLL Control Address
- Write 0x11100070 to the PLL Control Data
- Write 1 to the PLL Control Address
- Write 0x1014140a to the PLL Control Data
- Write 5 to the PLL Control Address
- Write 0x88888854 to the PLL Control Data
- Write 2 to the PLL Control Address
- If avoid
- Write 0x05201828 to the PLL Control Data
- Otherwise
- Write 0x05001828 to the PLL Control Data
- Set tmp to 0x400
- Set the bit(s) in tmp in PMU Control (Address 0x600)
- Restore the original core index