Subversion Repositories freemyipod

Rev

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

Rev 221 Rev 262
Line 48... Line 48...
48
 
48
 
49
void power_init(void)
49
void power_init(void)
50
{
50
{
51
    pmu_init();
51
    pmu_init();
52
    pmu_write(0x1e, 15);  /* Vcore = 1.000V */
52
    pmu_write(0x1e, 15);  /* Vcore = 1.000V */
-
 
53
    pmu_ldo_set_voltage(2, 0x11); /* LCD   = 2.600V */
53
}                          
54
}                          
54
 
55
 
55
bool charging_state(void)
56
bool charging_state(void)
56
{
57
{
57
    return (PDAT11 & 0x10) ? false : true;
58
    return (PDAT11 & 0x10) ? false : true;