forked from len0rd/rockbox
iPod: Fix the detection of lcd type for the iPod Photo - this should fix problems with that LCD. Affected users also need to install a new bootloader - available from the iPod Installation wiki page.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8499 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ea72d05ec6
commit
f9dac40cf3
4 changed files with 15 additions and 3 deletions
|
@ -30,8 +30,6 @@
|
|||
#include "system.h"
|
||||
|
||||
/*** definitions ***/
|
||||
#define IPOD_HW_REVISION (*((volatile unsigned long*)0x00002084))
|
||||
|
||||
#define IPOD_LCD_BASE 0x70008a0c
|
||||
#define IPOD_LCD_BUSY_MASK 0x80000000
|
||||
|
||||
|
@ -129,7 +127,7 @@ void lcd_roll(int lines)
|
|||
void lcd_init_device(void)
|
||||
{
|
||||
#if CONFIG_LCD == LCD_IPODCOLOR
|
||||
if (IPOD_HW_REVISION == 0x60000) {
|
||||
if (ipod_hw_rev == 0x60000) {
|
||||
lcd_type = 0;
|
||||
} else {
|
||||
int gpio_a01, gpio_a04;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue