summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-22 14:17:45 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-22 14:17:45 +0000
commit13618007b36b60dda1425ada261308a3624224c3 (patch)
treeaa893db25dd138de4ed0aaf0fa055f76a4fbaeea /firmware/backlight.c
parentcff2a54e7cbc369621c41a04a1bb67110da81443 (diff)
downloadrockbox-13618007b36b60dda1425ada261308a3624224c3.tar.gz
rockbox-13618007b36b60dda1425ada261308a3624224c3.zip
Backlight for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9185 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index 9aace01b2e..89a9939213 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -40,9 +40,13 @@
40#ifdef HAVE_REMOTE_LCD 40#ifdef HAVE_REMOTE_LCD
41#include "lcd-remote.h" 41#include "lcd-remote.h"
42#endif 42#endif
43#ifdef TARGET_TREE
44#include "backlight-target.h"
45#endif
43 46
44/* Basic low-level code that simply switches backlight on or off. Probably 47/* Basic low-level code that simply switches backlight on or off. Probably
45 * a nice candidate for inclusion in the target/ dir. */ 48 * a nice candidate for inclusion in the target/ dir. */
49#ifndef TARGET_TREE
46static inline void __backlight_on(void) 50static inline void __backlight_on(void)
47{ 51{
48#ifdef SIMULATOR 52#ifdef SIMULATOR
@@ -121,7 +125,7 @@ static inline void __backlight_off(void)
121 outl(((0x100 | 0) << 3), 0x6000d824); 125 outl(((0x100 | 0) << 3), 0x6000d824);
122#endif 126#endif
123} 127}
124 128#endif
125 129
126#if defined(CONFIG_BACKLIGHT) && !defined(BOOTLOADER) 130#if defined(CONFIG_BACKLIGHT) && !defined(BOOTLOADER)
127 131