Subversion Repositories freemyipod

Rev

Rev 304 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 304 Rev 311
Line 26... Line 26...
26
 
26
 
27
 
27
 
28
#define sysi ((uint8_t*)0x2203fdf0)
28
#define sysi ((uint8_t*)0x2203fdf0)
29
#define sysiword ((uint32_t*)0x2203fdf0)
29
#define sysiword ((uint32_t*)0x2203fdf0)
30
 
30
 
-
 
31
uint8_t nor[0x1000] INITBSS_ATTR __attribute__((aligned(16)));
-
 
32
uint32_t* norword INITBSS_ATTR = (uint32_t*)nor;
31
 
33
 
32
void targetinit_late()
34
void targetinit_late()
33
{
35
{
34
    int i;
36
    int i;
35
 
37
 
36
    clickwheel_init();
38
    clickwheel_init();
37
 
39
 
-
 
40
    bootflash_readraw(nor, 0x1000, sizeof(nor));
38
/*    uint32_t scfg_size = norword[0x401];
41
    uint32_t scfg_size = norword[0x401];
39
    uint32_t scfg_entrycount = norword[0x405];
42
    uint32_t scfg_entrycount = norword[0x405];
40
    if (norword[0x400] == 0x53436667 && scfg_size <= 0x1000
43
    if (norword[0x400] == 0x53436667 && scfg_size <= 0x1000
41
     && scfg_entrycount * 0x14 + 0x18 == scfg_size)
44
     && scfg_entrycount * 0x14 + 0x18 == scfg_size)
42
    {
45
    {
43
        memset(sysi, 0, 0x104);
46
        memset(sysi, 0, 0x104);
Line 121... Line 124...
121
        sysiword[0x3c] = 0x100000;
124
        sysiword[0x3c] = 0x100000;
122
        sysiword[0x3d] = 0x24000000;
125
        sysiword[0x3d] = 0x24000000;
123
        sysiword[0x4a] = 0x53797349;
126
        sysiword[0x4a] = 0x53797349;
124
        sysiword[0x4b] = 0x2203fdf0;
127
        sysiword[0x4b] = 0x2203fdf0;
125
    }
128
    }
126
*/
-
 
127
}
129
}