diff options
Diffstat (limited to 'firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c')
-rw-r--r-- | firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c b/firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c new file mode 100644 index 0000000000..51218e21be --- /dev/null +++ b/firmware/target/arm/tatung/tpj1022/backlight-tpj1022.c | |||
@@ -0,0 +1,44 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 by Barry Wardell | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | |||
20 | /* The H10 display (and hence backlight) possibly identical to that of the X5, | ||
21 | so that code was used here but left #if 0'ed out for the moment */ | ||
22 | |||
23 | #include "config.h" | ||
24 | #include "cpu.h" | ||
25 | #include "system.h" | ||
26 | #include "backlight.h" | ||
27 | |||
28 | void __backlight_on(void) | ||
29 | { | ||
30 | #if 0 | ||
31 | int level = set_irq_level(HIGHEST_IRQ_LEVEL); | ||
32 | pcf50606_write(0x38, 0xb0); /* Backlight ON, GPO1INV=1, GPO1ACT=011 */ | ||
33 | set_irq_level(level); | ||
34 | #endif | ||
35 | } | ||
36 | |||
37 | void __backlight_off(void) | ||
38 | { | ||
39 | #if 0 | ||
40 | int level = set_irq_level(HIGHEST_IRQ_LEVEL); | ||
41 | pcf50606_write(0x38, 0x80); /* Backlight OFF, GPO1INV=1, GPO1ACT=000 */ | ||
42 | set_irq_level(level); | ||
43 | #endif | ||
44 | } | ||