diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipv2')
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h | 2 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h b/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h index ae0309a949..70bafe4212 100644 --- a/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h +++ b/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h | |||
@@ -21,7 +21,7 @@ | |||
21 | 21 | ||
22 | #include "config.h" | 22 | #include "config.h" |
23 | 23 | ||
24 | void lcd_hw_init(void) INIT_ATTR; | 24 | void lcd_hw_init(int *offset) INIT_ATTR; |
25 | static inline void lcd_enable_power(bool onoff) | 25 | static inline void lcd_enable_power(bool onoff) |
26 | { | 26 | { |
27 | (void) onoff; | 27 | (void) onoff; |
diff --git a/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c b/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c index f8cfb0b1cf..015eebfd87 100644 --- a/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c +++ b/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "system.h" | 26 | #include "system.h" |
27 | #include "cpu.h" | 27 | #include "cpu.h" |
28 | 28 | ||
29 | void lcd_hw_init(void) | 29 | void lcd_hw_init(int *offset) |
30 | { | 30 | { |
31 | /* DBOP initialisation, do what OF does */ | 31 | /* DBOP initialisation, do what OF does */ |
32 | CCU_IO |= (1<<12); /* ?? */ | 32 | CCU_IO |= (1<<12); /* ?? */ |
@@ -38,6 +38,8 @@ void lcd_hw_init(void) | |||
38 | 38 | ||
39 | GPIOB_DIR |= (1<<2)|(1<<5); | 39 | GPIOB_DIR |= (1<<2)|(1<<5); |
40 | GPIOB_PIN(5) = (1<<5); | 40 | GPIOB_PIN(5) = (1<<5); |
41 | |||
42 | *offset = 2; | ||
41 | } | 43 | } |
42 | 44 | ||
43 | #define LCD_DELAY 10 | 45 | #define LCD_DELAY 10 |