summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/iriver/h10
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-09-01 17:58:47 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-09-01 17:58:47 +0000
commite7a9ec4d13078497e00ccb370abad63fc9d12be9 (patch)
tree38f2c30a2493c209e6f61c364bc89fed1d8779a3 /firmware/target/arm/iriver/h10
parent43715c2199f63739ff4c0fee9dc099b83bcac55b (diff)
downloadrockbox-e7a9ec4d13078497e00ccb370abad63fc9d12be9.tar.gz
rockbox-e7a9ec4d13078497e00ccb370abad63fc9d12be9.tar.bz2
rockbox-e7a9ec4d13078497e00ccb370abad63fc9d12be9.zip
Add backlight support for H10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10848 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/iriver/h10')
-rw-r--r--firmware/target/arm/iriver/h10/backlight-h10.c16
-rw-r--r--firmware/target/arm/iriver/h10/backlight-target.h3
2 files changed, 2 insertions, 17 deletions
diff --git a/firmware/target/arm/iriver/h10/backlight-h10.c b/firmware/target/arm/iriver/h10/backlight-h10.c
index 51218e21be..21595d1c0f 100644
--- a/firmware/target/arm/iriver/h10/backlight-h10.c
+++ b/firmware/target/arm/iriver/h10/backlight-h10.c
@@ -16,10 +16,6 @@
* KIND, either express or implied.
*
****************************************************************************/
-
-/* The H10 display (and hence backlight) possibly identical to that of the X5,
- so that code was used here but left #if 0'ed out for the moment */
-
#include "config.h"
#include "cpu.h"
#include "system.h"
@@ -27,18 +23,10 @@
void __backlight_on(void)
{
-#if 0
- int level = set_irq_level(HIGHEST_IRQ_LEVEL);
- pcf50606_write(0x38, 0xb0); /* Backlight ON, GPO1INV=1, GPO1ACT=011 */
- set_irq_level(level);
-#endif
+ GPIOL_OUTPUT_VAL |= 0x20;
}
void __backlight_off(void)
{
-#if 0
- int level = set_irq_level(HIGHEST_IRQ_LEVEL);
- pcf50606_write(0x38, 0x80); /* Backlight OFF, GPO1INV=1, GPO1ACT=000 */
- set_irq_level(level);
-#endif
+ GPIOL_OUTPUT_VAL &=~ 0x20;
}
diff --git a/firmware/target/arm/iriver/h10/backlight-target.h b/firmware/target/arm/iriver/h10/backlight-target.h
index b5fe2f7c5d..d35dccdc4a 100644
--- a/firmware/target/arm/iriver/h10/backlight-target.h
+++ b/firmware/target/arm/iriver/h10/backlight-target.h
@@ -16,9 +16,6 @@
* KIND, either express or implied.
*
****************************************************************************/
-
-/* Taken from the x5's implementation */
-
#ifndef BACKLIGHT_TARGET_H
#define BACKLIGHT_TARGET_H