forked from len0rd/rockbox
M:Robe 500: Initialize the power button.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24002 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
716fc9e7f8
commit
7bb00be29d
1 changed files with 5 additions and 0 deletions
|
@ -209,6 +209,11 @@ void system_init(void)
|
|||
dm320_set_io(33, false, false, false, false, false, 0x00);
|
||||
IO_GIO_BITCLR2 = 1<<1;
|
||||
|
||||
/* Pin 1 is the power button. Right now it is setup without IRQ, but that
|
||||
* may be needed for wakeup if a different shutdown method is used. */
|
||||
/* 1: input , non-inverted, no-irq, falling edge, no-chat, normal */
|
||||
dm320_set_io(1, true, false, false, false, false, 0x00);
|
||||
|
||||
/* taken from linux/arch/arm/mach-itdm320-20/irq.c */
|
||||
|
||||
/* Clearing all FIQs and IRQs. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue