diff options
Diffstat (limited to 'firmware/target/arm/as3525/sansa-clipv2')
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h | 28 | ||||
-rw-r--r-- | firmware/target/arm/as3525/sansa-clipv2/lcd-clipv2.c | 14 |
2 files changed, 10 insertions, 32 deletions
diff --git a/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h b/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h deleted file mode 100644 index 70bafe4212..0000000000 --- a/firmware/target/arm/as3525/sansa-clipv2/lcd-clip.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008-2009 Rafaël Carré | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | #include "config.h" | ||
23 | |||
24 | void lcd_hw_init(int *offset) INIT_ATTR; | ||
25 | static inline void lcd_enable_power(bool onoff) | ||
26 | { | ||
27 | (void) onoff; | ||
28 | } | ||
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 @@ | |||
26 | #include "system.h" | 26 | #include "system.h" |
27 | #include "cpu.h" | 27 | #include "cpu.h" |
28 | 28 | ||
29 | void lcd_hw_init(int *offset) | 29 | #define LCD_DELAY 10 |
30 | |||
31 | int lcd_hw_init(void) | ||
30 | { | 32 | { |
31 | /* DBOP initialisation, do what OF does */ | 33 | /* DBOP initialisation, do what OF does */ |
32 | bitset32(&CCU_IO, 1<<12); /* ?? */ | 34 | bitset32(&CCU_IO, 1<<12); /* ?? */ |
@@ -39,11 +41,9 @@ void lcd_hw_init(int *offset) | |||
39 | GPIOB_DIR |= (1<<2)|(1<<5); | 41 | GPIOB_DIR |= (1<<2)|(1<<5); |
40 | GPIOB_PIN(5) = (1<<5); | 42 | GPIOB_PIN(5) = (1<<5); |
41 | 43 | ||
42 | *offset = 2; | 44 | return 0; |
43 | } | 45 | } |
44 | 46 | ||
45 | #define LCD_DELAY 10 | ||
46 | |||
47 | void lcd_write_command(int byte) | 47 | void lcd_write_command(int byte) |
48 | { | 48 | { |
49 | volatile int i = 0; | 49 | volatile int i = 0; |
@@ -84,3 +84,9 @@ void lcd_write_data(const fb_data* p_bytes, int count) | |||
84 | /* While push fifo is not empty */ | 84 | /* While push fifo is not empty */ |
85 | while ((DBOP_STAT & (1<<10)) == 0); | 85 | while ((DBOP_STAT & (1<<10)) == 0); |
86 | } | 86 | } |
87 | |||
88 | void lcd_enable_power(bool onoff) | ||
89 | { | ||
90 | (void) onoff; | ||
91 | } | ||
92 | |||