summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clipv2
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-07-03 18:50:07 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-07-03 18:50:07 +0000
commit9a471e603ebe77a3aae4692d80ceb32da50c88eb (patch)
treef0ebfffd2460de1be4255080b361e64bdc901ddb /firmware/target/arm/as3525/sansa-clipv2
parent12b89c11e31cab842af081e8fc238e47c2711653 (diff)
downloadrockbox-9a471e603ebe77a3aae4692d80ceb32da50c88eb.tar.gz
rockbox-9a471e603ebe77a3aae4692d80ceb32da50c88eb.zip
Clip+ LCD: support devices with a different controller
The new controller framebuffer (different from what is in clipv1/clipv2 and some clip+) has 128 columns, the old has 132 columns and is centered on the screen. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27257 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipv2')
-rw-r--r--firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h2
-rw-r--r--firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c4
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
24void lcd_hw_init(void) INIT_ATTR; 24void lcd_hw_init(int *offset) INIT_ATTR;
25static inline void lcd_enable_power(bool onoff) 25static 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
29void lcd_hw_init(void) 29void 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