summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/iriver/h100
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2006-11-10 18:47:41 +0000
committerMichael Sevakis <jethead71@rockbox.org>2006-11-10 18:47:41 +0000
commit58825f6e7391a237be85e63bee08f7a0bb66dc38 (patch)
tree1324b528137ce35623eb3332f32d422331f80777 /firmware/target/coldfire/iriver/h100
parentf669797d077d081078407dd6dabf4e7389acf68f (diff)
downloadrockbox-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/h100')
-rw-r--r--firmware/target/coldfire/iriver/h100/backlight-h100.c7
1 files changed, 7 insertions, 0 deletions
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
27void __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
27void __backlight_on(void) 34void __backlight_on(void)
28{ 35{
29 and_l(~0x00020000, &GPIO1_OUT); 36 and_l(~0x00020000, &GPIO1_OUT);