Subversion Repositories freemyipod

Rev

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

Rev 648 Rev 683
Line 97... Line 97...
97
    {
97
    {
98
//    case 0:
98
//    case 0:
99
//        pmu_write(0x31, 0x0b);  // Vlcd @ 2.000V
99
//        pmu_write(0x31, 0x0b);  // Vlcd @ 2.000V
100
//        break;
100
//        break;
101
    case 1:
101
    case 1:
102
        pmu_write(0x31, 0x0e);  // Vlcd @ 2.300V
102
//        pmu_write(0x31, 0x0e);  // Vlcd @ 2.300V
103
        break;
103
        break;
104
    case 2:
104
    case 2:
105
        pmu_write(0x31, 0x12);  // Vlcd @ 2.700V
105
//        pmu_write(0x31, 0x12);  // Vlcd @ 2.700V
106
        break;
106
        break;
107
//    case 3:
107
//    case 3:
108
//        pmu_write(0x31, 0x0b);  // Vlcd @ 2.000V
108
//        pmu_write(0x31, 0x0b);  // Vlcd @ 2.000V
109
//        break;
109
//        break;
110
    default:
110
//    default:
111
        pmu_write(0x31, 0x0b);  // Vlcd @ 2.000V
111
//        pmu_write(0x31, 0x0b);  // Vlcd @ 2.000V
112
    }
112
    }
113
}
113
}
114
 
114
 
115
bool displaylcd_busy() ICODE_ATTR;
115
bool displaylcd_busy() ICODE_ATTR;
116
bool displaylcd_busy()
116
bool displaylcd_busy()
Line 345... Line 345...
345
    mutex_unlock(&lcd_mutex);
345
    mutex_unlock(&lcd_mutex);
346
}
346
}
347
 
347
 
348
void lcd_shutdown()
348
void lcd_shutdown()
349
{
349
{
-
 
350
    mutex_lock(&lcd_mutex, TIMEOUT_BLOCK);
350
    displaylcd_sync();
351
    displaylcd_sync();
351
    uint32_t type = lcd_detect();
352
    uint32_t type = lcd_detect();
352
    if (type & 2)
353
    if (type & 2)
353
    {
354
    {
354
        lcd_send_cmd(0x7);
355
        lcd_send_cmd(0x7);