diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2006-11-10 18:47:41 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2006-11-10 18:47:41 +0000 |
commit | 58825f6e7391a237be85e63bee08f7a0bb66dc38 (patch) | |
tree | 1324b528137ce35623eb3332f32d422331f80777 /firmware/target/coldfire/iriver | |
parent | f669797d077d081078407dd6dabf4e7389acf68f (diff) | |
download | rockbox-58825f6e7391a237be85e63bee08f7a0bb66dc38.tar.gz rockbox-58825f6e7391a237be85e63bee08f7a0bb66dc38.zip |
Coldfire targets: Got the rest of the coldfire code out of backlight.c. Straightened up related items in configs and split backlight_set_brightness between the normal and boot/sim builds like the other functions. Should really have done all that in the first place.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11502 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/coldfire/iriver')
-rw-r--r-- | firmware/target/coldfire/iriver/backlight-target.h | 2 | ||||
-rw-r--r-- | firmware/target/coldfire/iriver/h100/backlight-h100.c | 7 | ||||
-rw-r--r-- | firmware/target/coldfire/iriver/h300/backlight-h300.c | 7 |
3 files changed, 16 insertions, 0 deletions
diff --git a/firmware/target/coldfire/iriver/backlight-target.h b/firmware/target/coldfire/iriver/backlight-target.h index 086ab02761..ac146eac83 100644 --- a/firmware/target/coldfire/iriver/backlight-target.h +++ b/firmware/target/coldfire/iriver/backlight-target.h | |||
@@ -19,6 +19,8 @@ | |||
19 | #ifndef BACKLIGHT_TARGET_H | 19 | #ifndef BACKLIGHT_TARGET_H |
20 | #define BACKLIGHT_TARGET_H | 20 | #define BACKLIGHT_TARGET_H |
21 | 21 | ||
22 | #define __BACKLIGHT_INIT | ||
23 | void __backlight_init(void); | ||
22 | void __backlight_on(void); | 24 | void __backlight_on(void); |
23 | void __backlight_off(void); | 25 | void __backlight_off(void); |
24 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS | 26 | #ifdef HAVE_BACKLIGHT_BRIGHTNESS |
diff --git a/firmware/target/coldfire/iriver/h100/backlight-h100.c b/firmware/target/coldfire/iriver/h100/backlight-h100.c index 8ceac8a6ff..62c24dc861 100644 --- a/firmware/target/coldfire/iriver/h100/backlight-h100.c +++ b/firmware/target/coldfire/iriver/h100/backlight-h100.c | |||
@@ -24,6 +24,13 @@ | |||
24 | #include "backlight.h" | 24 | #include "backlight.h" |
25 | #include "lcd.h" | 25 | #include "lcd.h" |
26 | 26 | ||
27 | void __backlight_init(void) | ||
28 | { | ||
29 | or_l(0x00020000, &GPIO1_ENABLE); | ||
30 | or_l(0x00020000, &GPIO1_FUNCTION); | ||
31 | and_l(~0x00020000, &GPIO1_OUT); /* Start with the backlight ON */ | ||
32 | } | ||
33 | |||
27 | void __backlight_on(void) | 34 | void __backlight_on(void) |
28 | { | 35 | { |
29 | and_l(~0x00020000, &GPIO1_OUT); | 36 | and_l(~0x00020000, &GPIO1_OUT); |
diff --git a/firmware/target/coldfire/iriver/h300/backlight-h300.c b/firmware/target/coldfire/iriver/h300/backlight-h300.c index 50bd757612..ef1d6d344d 100644 --- a/firmware/target/coldfire/iriver/h300/backlight-h300.c +++ b/firmware/target/coldfire/iriver/h300/backlight-h300.c | |||
@@ -25,6 +25,13 @@ | |||
25 | #include "pcf50606.h" | 25 | #include "pcf50606.h" |
26 | #include "lcd.h" | 26 | #include "lcd.h" |
27 | 27 | ||
28 | void __backlight_init(void) | ||
29 | { | ||
30 | or_l(0x00020000, &GPIO1_ENABLE); | ||
31 | or_l(0x00020000, &GPIO1_FUNCTION); | ||
32 | or_l(0x00020000, &GPIO1_OUT); /* Start with the backlight ON */ | ||
33 | } | ||
34 | |||
28 | void __backlight_on(void) | 35 | void __backlight_on(void) |
29 | { | 36 | { |
30 | lcd_enable(true); | 37 | lcd_enable(true); |