diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-03 18:50:07 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-07-03 18:50:07 +0000 |
commit | 9a471e603ebe77a3aae4692d80ceb32da50c88eb (patch) | |
tree | f0ebfffd2460de1be4255080b361e64bdc901ddb /firmware/target/arm/as3525/sansa-clip/lcd-clip.c | |
parent | 12b89c11e31cab842af081e8fc238e47c2711653 (diff) | |
download | rockbox-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-clip/lcd-clip.c')
-rw-r--r-- | firmware/target/arm/as3525/sansa-clip/lcd-clip.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sansa-clip/lcd-clip.c b/firmware/target/arm/as3525/sansa-clip/lcd-clip.c index 29d9259b52..775988cc0e 100644 --- a/firmware/target/arm/as3525/sansa-clip/lcd-clip.c +++ b/firmware/target/arm/as3525/sansa-clip/lcd-clip.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 | CGU_DBOP = (1<<3) | AS3525_DBOP_DIV; | 32 | CGU_DBOP = (1<<3) | AS3525_DBOP_DIV; |
@@ -45,6 +45,8 @@ void lcd_hw_init(void) | |||
45 | GPIOA_PIN(0) = (1<<0); | 45 | GPIOA_PIN(0) = (1<<0); |
46 | GPIOA_PIN(4) = 0; | 46 | GPIOA_PIN(4) = 0; |
47 | GPIOB_PIN(6) = (1<<6); | 47 | GPIOB_PIN(6) = (1<<6); |
48 | |||
49 | *offset = 2; | ||
48 | } | 50 | } |
49 | 51 | ||
50 | #define LCD_DELAY 1 | 52 | #define LCD_DELAY 1 |