freemyipod r311 - Code Review

Jump to: navigation, search
Repository:freemyipod
Revision:r310‎ | r311 | r312 >
Date:00:14, 2 December 2010
Author:theseven
Status:new
Tags:
Comment:
emBIOS: Enable SYSCFG parsing for S5L8702
Modified paths:
  • /embios/trunk/target/ipodnano3g/targetinit.c (modified) (history)

Diff [purge]

Index: embios/trunk/target/ipodnano3g/targetinit.c
@@ -28,6 +28,8 @@
2929 #define sysi ((uint8_t*)0x2203fdf0)
3030 #define sysiword ((uint32_t*)0x2203fdf0)
3131
 32+uint8_t nor[0x1000] INITBSS_ATTR __attribute__((aligned(16)));
 33+uint32_t* norword INITBSS_ATTR = (uint32_t*)nor;
3234
3335 void targetinit_late()
3436 {
@@ -35,7 +37,8 @@
3638
3739 clickwheel_init();
3840
39 -/* uint32_t scfg_size = norword[0x401];
 41+ bootflash_readraw(nor, 0x1000, sizeof(nor));
 42+ uint32_t scfg_size = norword[0x401];
4043 uint32_t scfg_entrycount = norword[0x405];
4144 if (norword[0x400] == 0x53436667 && scfg_size <= 0x1000
4245 && scfg_entrycount * 0x14 + 0x18 == scfg_size)
@@ -123,5 +126,4 @@
124127 sysiword[0x4a] = 0x53797349;
125128 sysiword[0x4b] = 0x2203fdf0;
126129 }
127 -*/
128130 }