Editing Iplloader
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 352: | Line 352: | ||
0xBC100058 |= 0x00800000; // Enable GPIO clock | 0xBC100058 |= 0x00800000; // Enable GPIO clock | ||
0xBC100050 |= 0x0000608E; // Enable bus clock for AW (which is GE) (RegA, RegB, Edram), KIRK, NAND (EMCSM) and APB (for syscon?) | 0xBC100050 |= 0x0000608E; // Enable bus clock for AW (which is GE) (RegA, RegB, Edram), KIRK, NAND (EMCSM) and APB (for syscon?) | ||
0xBC10004C &= ~0x408; | 0xBC10004C &= ~0x408; // Clear reset for AW and KIRK | ||
0xBC100078 |= 2; | 0xBC100078 |= 2; // IO enable NAND (EMCSM) | ||
0xBE240000 &= ~0x10; | 0xBE240000 &= ~0x10; // Disable GPIO pin 4 output | ||
0xBE240040 |= 0x10; | 0xBE240040 |= 0x10; // Enable GPIO pin 4 input | ||
sleep(1); | sleep(1); // Wait a bit | ||
0xBD500010 = 1; | 0xBD500010 = 1; // Initialize GE Edram | ||
while (*0xBD500010 & 1 != 0) {} // Wait for the Edram to be initialized | while (*0xBD500010 & 1 != 0) {} // Wait for the Edram to be initialized | ||
0xBD500040 = 1; | 0xBD500040 = 1; // Finish initializing GE Edram | ||
if (*0xBC100068 >> 16 != 0) { // Unknown bits | if (*0xBC100068 >> 16 != 0) { // Unknown bits |