diff options
Diffstat (limited to 'firmware/target/arm/olympus/mrobe-100/backlight-mr100.c')
-rw-r--r-- | firmware/target/arm/olympus/mrobe-100/backlight-mr100.c | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/firmware/target/arm/olympus/mrobe-100/backlight-mr100.c b/firmware/target/arm/olympus/mrobe-100/backlight-mr100.c new file mode 100644 index 0000000000..10a7f666e5 --- /dev/null +++ b/firmware/target/arm/olympus/mrobe-100/backlight-mr100.c | |||
@@ -0,0 +1,57 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2008 by Mark Arigo | ||
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 | #include "backlight-target.h" | ||
21 | #include "system.h" | ||
22 | #include "lcd.h" | ||
23 | #include "backlight.h" | ||
24 | #include "i2c-pp.h" | ||
25 | |||
26 | void _backlight_on(void) | ||
27 | { | ||
28 | } | ||
29 | |||
30 | void _backlight_off(void) | ||
31 | { | ||
32 | } | ||
33 | |||
34 | void _buttonlight_on(void) | ||
35 | { | ||
36 | /* turn on all touchpad leds */ | ||
37 | GPIOA_OUTPUT_VAL |= BUTTONLIGHT_ALL; | ||
38 | |||
39 | #if 0 | ||
40 | /* Writing to 0x7000a010 controls the brightness of the leds. | ||
41 | This routine fades the leds from dim to bright, like when | ||
42 | you first turn the unit on. */ | ||
43 | unsigned long val = 0x80ff08ff; | ||
44 | int i = 0; | ||
45 | for (i = 0; i < 16; i++) | ||
46 | outl(val, 0x7000a010); | ||
47 | udelay(100000); | ||
48 | val -= 0x110000; | ||
49 | } | ||
50 | #endif | ||
51 | } | ||
52 | |||
53 | void _buttonlight_off(void) | ||
54 | { | ||
55 | /* turn off all touchpad leds */ | ||
56 | GPIOA_OUTPUT_VAL &= ~BUTTONLIGHT_ALL; | ||
57 | } | ||