diff options
Diffstat (limited to 'firmware/target/arm/ipod/lcd-color_nano.c')
-rw-r--r-- | firmware/target/arm/ipod/lcd-color_nano.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/firmware/target/arm/ipod/lcd-color_nano.c b/firmware/target/arm/ipod/lcd-color_nano.c index 7da878ef14..6a29cbe680 100644 --- a/firmware/target/arm/ipod/lcd-color_nano.c +++ b/firmware/target/arm/ipod/lcd-color_nano.c | |||
@@ -115,9 +115,9 @@ void lcd_init_device(void) | |||
115 | int gpio_a01, gpio_a04; | 115 | int gpio_a01, gpio_a04; |
116 | 116 | ||
117 | /* A01 */ | 117 | /* A01 */ |
118 | gpio_a01 = (inl(0x6000D030) & 0x2) >> 1; | 118 | gpio_a01 = (GPIOA_INPUT_VAL & 0x2) >> 1; |
119 | /* A04 */ | 119 | /* A04 */ |
120 | gpio_a04 = (inl(0x6000D030) & 0x10) >> 4; | 120 | gpio_a04 = (GPIOA_INPUT_VAL & 0x10) >> 4; |
121 | 121 | ||
122 | if (((gpio_a01 << 1) | gpio_a04) == 0 || ((gpio_a01 << 1) | gpio_a04) == 2) { | 122 | if (((gpio_a01 << 1) | gpio_a04) == 0 || ((gpio_a01 << 1) | gpio_a04) == 2) { |
123 | lcd_type = 0; | 123 | lcd_type = 0; |
@@ -126,12 +126,12 @@ void lcd_init_device(void) | |||
126 | } | 126 | } |
127 | } | 127 | } |
128 | 128 | ||
129 | outl(inl(0x6000d004) | 0x4, 0x6000d004); /* B02 enable */ | 129 | GPIOB_ENABLE |= 0x4; /* B02 enable */ |
130 | outl(inl(0x6000d004) | 0x8, 0x6000d004); /* B03 enable */ | 130 | GPIOB_ENABLE |= 0x8; /* B03 enable */ |
131 | outl(inl(0x70000084) | 0x2000000, 0x70000084); /* D01 enable */ | 131 | outl(inl(0x70000084) | 0x2000000, 0x70000084); /* D01 enable */ |
132 | outl(inl(0x70000080) | 0x2000000, 0x70000080); /* D01 =1 */ | 132 | outl(inl(0x70000080) | 0x2000000, 0x70000080); /* D01 =1 */ |
133 | 133 | ||
134 | outl(inl(0x6000600c) | 0x20000, 0x6000600c); /* PWM enable */ | 134 | DEV_EN |= 0x20000; /* PWM enable */ |
135 | 135 | ||
136 | #elif CONFIG_LCD == LCD_IPODNANO | 136 | #elif CONFIG_LCD == LCD_IPODNANO |
137 | /* iPodLinux doesn't appear have any LCD init code for the Nano */ | 137 | /* iPodLinux doesn't appear have any LCD init code for the Nano */ |