From 58825f6e7391a237be85e63bee08f7a0bb66dc38 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 10 Nov 2006 18:47:41 +0000 Subject: 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 --- firmware/target/coldfire/iriver/h100/backlight-h100.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware/target/coldfire/iriver/h100') 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 @@ #include "backlight.h" #include "lcd.h" +void __backlight_init(void) +{ + or_l(0x00020000, &GPIO1_ENABLE); + or_l(0x00020000, &GPIO1_FUNCTION); + and_l(~0x00020000, &GPIO1_OUT); /* Start with the backlight ON */ +} + void __backlight_on(void) { and_l(~0x00020000, &GPIO1_OUT); -- cgit v1.2.3