summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c')
-rw-r--r--firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c4
1 files changed, 3 insertions, 1 deletions
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