forked from len0rd/rockbox
M:Robe 500: Initialize the buzzer and move it out of the LCD code.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24001 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
6d52f54d8b
commit
716fc9e7f8
2 changed files with 10 additions and 5 deletions
|
@ -141,7 +141,6 @@ void lcd_init_device(void)
|
|||
|
||||
/* LCD related pins:
|
||||
* 32 - LED above LCD
|
||||
* 33 - ??
|
||||
* 34 - R2 for 18 bit output
|
||||
* 35 - Resolution (MO?)
|
||||
* 36 - LCD power (INI?)
|
||||
|
@ -154,10 +153,6 @@ void lcd_init_device(void)
|
|||
dm320_set_io(32, false, false, false, false, false, 0x00);
|
||||
IO_GIO_BITCLR2 = 1; /* Turn the LED off */
|
||||
|
||||
/* 33: output, non-inverted, no-irq, falling edge, no-chat, normal */
|
||||
dm320_set_io(33, false, false, false, false, false, 0x00);
|
||||
/* To-do: figure out value from OF */
|
||||
|
||||
/* 34: output, non-inverted, no-irq, falling edge, no-chat, R2 */
|
||||
dm320_set_io(34, false, false, false, false, false, 0x02);
|
||||
|
||||
|
|
|
@ -199,6 +199,16 @@ void system_exception_wait(void)
|
|||
|
||||
void system_init(void)
|
||||
{
|
||||
/* Pin 33 is connected to a buzzer, for an annoying sound set
|
||||
* PWM0C == 0x3264
|
||||
* PWM0H == 0x1932
|
||||
* Function to 1
|
||||
* Since this is not used in the FW, set it to a normal output at a zero
|
||||
* level. */
|
||||
/* 33: output, non-inverted, no-irq, falling edge, no-chat, normal */
|
||||
dm320_set_io(33, false, false, false, false, false, 0x00);
|
||||
IO_GIO_BITCLR2 = 1<<1;
|
||||
|
||||
/* 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