diff options
author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-15 05:47:21 +0000 |
---|---|---|
committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-15 05:47:21 +0000 |
commit | 7bb00be29d44268f93d84d894f9b7181fca06a81 (patch) | |
tree | b3ee12841e14ab348e6a36d5eb3954963f5d08d6 | |
parent | 716fc9e7f83a4a34c14cbd48e0541feae8be965b (diff) | |
download | rockbox-7bb00be29d44268f93d84d894f9b7181fca06a81.tar.gz rockbox-7bb00be29d44268f93d84d894f9b7181fca06a81.zip |
M:Robe 500: Initialize the power button.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24002 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/target/arm/tms320dm320/system-dm320.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/target/arm/tms320dm320/system-dm320.c b/firmware/target/arm/tms320dm320/system-dm320.c index 58137ff102..1c81f9c6e2 100644 --- a/firmware/target/arm/tms320dm320/system-dm320.c +++ b/firmware/target/arm/tms320dm320/system-dm320.c | |||
@@ -209,6 +209,11 @@ void system_init(void) | |||
209 | dm320_set_io(33, false, false, false, false, false, 0x00); | 209 | dm320_set_io(33, false, false, false, false, false, 0x00); |
210 | IO_GIO_BITCLR2 = 1<<1; | 210 | IO_GIO_BITCLR2 = 1<<1; |
211 | 211 | ||
212 | /* Pin 1 is the power button. Right now it is setup without IRQ, but that | ||
213 | * may be needed for wakeup if a different shutdown method is used. */ | ||
214 | /* 1: input , non-inverted, no-irq, falling edge, no-chat, normal */ | ||
215 | dm320_set_io(1, true, false, false, false, false, 0x00); | ||
216 | |||
212 | /* taken from linux/arch/arm/mach-itdm320-20/irq.c */ | 217 | /* taken from linux/arch/arm/mach-itdm320-20/irq.c */ |
213 | 218 | ||
214 | /* Clearing all FIQs and IRQs. */ | 219 | /* Clearing all FIQs and IRQs. */ |