summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/as3525/sansa-clip/lcd-clip.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clip/lcd-clip.c')
-rw-r--r--firmware/target/arm/as3525/sansa-clip/lcd-clip.c4
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 @@
#include "system.h"
#include "cpu.h"
-void lcd_hw_init(void)
+void lcd_hw_init(int *offset)
{
/* DBOP initialisation, do what OF does */
CGU_DBOP = (1<<3) | AS3525_DBOP_DIV;
@@ -45,6 +45,8 @@ void lcd_hw_init(void)
GPIOA_PIN(0) = (1<<0);
GPIOA_PIN(4) = 0;
GPIOB_PIN(6) = (1<<6);
+
+ *offset = 2;
}
#define LCD_DELAY 1