summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
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