diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/iriver/h10/backlight-h10.c | 16 | ||||
-rw-r--r-- | firmware/target/arm/iriver/h10/backlight-target.h | 3 |
2 files changed, 2 insertions, 17 deletions
diff --git a/firmware/target/arm/iriver/h10/backlight-h10.c b/firmware/target/arm/iriver/h10/backlight-h10.c index 51218e21be..21595d1c0f 100644 --- a/firmware/target/arm/iriver/h10/backlight-h10.c +++ b/firmware/target/arm/iriver/h10/backlight-h10.c | |||
@@ -16,10 +16,6 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | |||
20 | /* The H10 display (and hence backlight) possibly identical to that of the X5, | ||
21 | so that code was used here but left #if 0'ed out for the moment */ | ||
22 | |||
23 | #include "config.h" | 19 | #include "config.h" |
24 | #include "cpu.h" | 20 | #include "cpu.h" |
25 | #include "system.h" | 21 | #include "system.h" |
@@ -27,18 +23,10 @@ | |||
27 | 23 | ||
28 | void __backlight_on(void) | 24 | void __backlight_on(void) |
29 | { | 25 | { |
30 | #if 0 | 26 | GPIOL_OUTPUT_VAL |= 0x20; |
31 | int level = set_irq_level(HIGHEST_IRQ_LEVEL); | ||
32 | pcf50606_write(0x38, 0xb0); /* Backlight ON, GPO1INV=1, GPO1ACT=011 */ | ||
33 | set_irq_level(level); | ||
34 | #endif | ||
35 | } | 27 | } |
36 | 28 | ||
37 | void __backlight_off(void) | 29 | void __backlight_off(void) |
38 | { | 30 | { |
39 | #if 0 | 31 | GPIOL_OUTPUT_VAL &=~ 0x20; |
40 | int level = set_irq_level(HIGHEST_IRQ_LEVEL); | ||
41 | pcf50606_write(0x38, 0x80); /* Backlight OFF, GPO1INV=1, GPO1ACT=000 */ | ||
42 | set_irq_level(level); | ||
43 | #endif | ||
44 | } | 32 | } |
diff --git a/firmware/target/arm/iriver/h10/backlight-target.h b/firmware/target/arm/iriver/h10/backlight-target.h index b5fe2f7c5d..d35dccdc4a 100644 --- a/firmware/target/arm/iriver/h10/backlight-target.h +++ b/firmware/target/arm/iriver/h10/backlight-target.h | |||
@@ -16,9 +16,6 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | |||
20 | /* Taken from the x5's implementation */ | ||
21 | |||
22 | #ifndef BACKLIGHT_TARGET_H | 19 | #ifndef BACKLIGHT_TARGET_H |
23 | #define BACKLIGHT_TARGET_H | 20 | #define BACKLIGHT_TARGET_H |
24 | 21 | ||