summaryrefslogtreecommitdiffstats
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.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c b/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c
index 14c8b77aec..d7266f72a0 100644
--- a/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c
+++ b/firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c
@@ -26,7 +26,9 @@
#include "system.h"
#include "cpu.h"
-void lcd_hw_init(int *offset)
+#define LCD_DELAY 10
+
+int lcd_hw_init(void)
{
/* DBOP initialisation, do what OF does */
bitset32(&CCU_IO, 1<<12); /* ?? */
@@ -39,11 +41,9 @@ void lcd_hw_init(int *offset)
GPIOB_DIR |= (1<<2)|(1<<5);
GPIOB_PIN(5) = (1<<5);
- *offset = 2;
+ return 0;
}
-#define LCD_DELAY 10
-
void lcd_write_command(int byte)
{
volatile int i = 0;
@@ -84,3 +84,9 @@ void lcd_write_data(const fb_data* p_bytes, int count)
/* While push fifo is not empty */
while ((DBOP_STAT & (1<<10)) == 0);
}
+
+void lcd_enable_power(bool onoff)
+{
+ (void) onoff;
+}
+