diff options
Diffstat (limited to 'firmware/target/arm/sandisk/sansa-e200/lcd-e200.c')
-rw-r--r-- | firmware/target/arm/sandisk/sansa-e200/lcd-e200.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c b/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c index 25bb6f04aa..e34ebd7c5a 100644 --- a/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c +++ b/firmware/target/arm/sandisk/sansa-e200/lcd-e200.c | |||
@@ -110,7 +110,7 @@ static inline void cache_flush(void) | |||
110 | { | 110 | { |
111 | #ifndef BOOTLOADER | 111 | #ifndef BOOTLOADER |
112 | outl(inl(0xf000f044) | 0x2, 0xf000f044); | 112 | outl(inl(0xf000f044) | 0x2, 0xf000f044); |
113 | while ((inl(0x6000c000) & 0x8000) != 0) | 113 | while ((CACHE_CTL & 0x8000) != 0) |
114 | { | 114 | { |
115 | } | 115 | } |
116 | #endif | 116 | #endif |
@@ -141,12 +141,12 @@ inline void lcd_init_device(void) | |||
141 | outl(((inl(0x70000010) & (0x03ffffff)) | (0x15 << 26)), 0x70000010); | 141 | outl(((inl(0x70000010) & (0x03ffffff)) | (0x15 << 26)), 0x70000010); |
142 | outl(((inl(0x70000014) & (0x0fffffff)) | (0x5 << 28)), 0x70000014); | 142 | outl(((inl(0x70000014) & (0x0fffffff)) | (0x5 << 28)), 0x70000014); |
143 | outl((inl(0x70000020) & ~(0x3 << 10)), 0x70000020); | 143 | outl((inl(0x70000020) & ~(0x3 << 10)), 0x70000020); |
144 | outl((inl(0x6000600c) | (1 << 26)), 0x6000600c); /* Enable controller */ | 144 | DEV_EN |= (1 << 26); /* Enable controller */ |
145 | outl(0x6, 0x600060d0); | 145 | outl(0x6, 0x600060d0); |
146 | outl((inl(0x60006004) | (1 << 26)), 0x60006004); /* Reset controller? */ | 146 | DEV_RS |= (1 << 26); /* Reset controller */ |
147 | outl((inl(0x70000020) & ~(1 << 14)), 0x70000020); | 147 | outl((inl(0x70000020) & ~(1 << 14)), 0x70000020); |
148 | lcd_bus_idle(); | 148 | lcd_bus_idle(); |
149 | outl((inl(0x60006004) & ~(1 << 26)), 0x60006004); /* Clear reset? */ | 149 | DEV_RS &=~(1 << 26); /* Clear reset */ |
150 | udelay(1000); | 150 | udelay(1000); |
151 | 151 | ||
152 | LCD_REG_0 = (LCD_REG_0 & (0x00ffffff)) | (0x22 << 24); | 152 | LCD_REG_0 = (LCD_REG_0 & (0x00ffffff)) | (0x22 << 24); |