summaryrefslogtreecommitdiff
path: root/firmware/backlight.c
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-05 10:53:41 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-05 10:53:41 +0000
commit5f91f4acfffd20a344407eeb9578fb64d13c591a (patch)
treeb8bbbc21b28ec3e3c8b43fd5b920595e8914d8ed /firmware/backlight.c
parent0b033a74d71741fc9a2aa262829a1247719f5d03 (diff)
backlight driver for Gmini
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5795 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/backlight.c')
-rw-r--r--firmware/backlight.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/backlight.c b/firmware/backlight.c
index de3ebe3e05..fd1e96a942 100644
--- a/firmware/backlight.c
+++ b/firmware/backlight.c
@@ -60,6 +60,8 @@ static void __backlight_off(void)
and_b(~0x40, &PAIORH); /* let it float (up) */
#elif CONFIG_BACKLIGHT == BL_PA14_HI /* Ondio */
and_b(~0x40, &PADRH); /* drive it low */
+#elif CONFIG_BACKLIGHT == BL_GMINI
+ P1 &= ~0x10;
#endif
}
@@ -75,6 +77,8 @@ static void __backlight_on(void)
or_b(0x40, &PAIORH);
#elif CONFIG_BACKLIGHT == BL_PA14_HI /* Ondio */
or_b(0x40, &PADRH); /* drive it high */
+#elif CONFIG_BACKLIGHT == BL_GMINI
+ P1 |= 0x10;
#endif
}
@@ -193,6 +197,8 @@ void backlight_init(void)
#elif CONFIG_BACKLIGHT == BL_PA14_LO || CONFIG_BACKLIGHT == BL_PA14_HI
PACR1 &= ~0x3000; /* Set PA14 (backlight control) to GPIO */
or_b(0x40, &PAIORH); /* ..and output */
+#elif CONFIG_BACKLIGHT == BL_GMINI
+ P1CON |= 0x10; /* P1.4 C-MOS output mode */
#endif
backlight_on();
}