From 9a471e603ebe77a3aae4692d80ceb32da50c88eb Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sat, 3 Jul 2010 18:50:07 +0000 Subject: 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 --- firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c') 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 @@ #include "system.h" #include "cpu.h" -void lcd_hw_init(void) +void lcd_hw_init(int *offset) { /* DBOP initialisation, do what OF does */ CCU_IO |= (1<<12); /* ?? */ @@ -38,6 +38,8 @@ void lcd_hw_init(void) GPIOB_DIR |= (1<<2)|(1<<5); GPIOB_PIN(5) = (1<<5); + + *offset = 2; } #define LCD_DELAY 10 -- cgit v1.2.3