diff options
| author | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-15 05:35:02 +0000 |
|---|---|---|
| committer | Karl Kurbjun <kkurbjun@gmail.com> | 2009-12-15 05:35:02 +0000 |
| commit | 716fc9e7f83a4a34c14cbd48e0541feae8be965b (patch) | |
| tree | e016b07ec3a0b609e237ceef43f1a53f6de047e2 | |
| parent | 6d52f54d8b8c85c09426f87add5f792d0b4f7abd (diff) | |
| download | rockbox-716fc9e7f83a4a34c14cbd48e0541feae8be965b.zip rockbox-716fc9e7f83a4a34c14cbd48e0541feae8be965b.tar.gz rockbox-716fc9e7f83a4a34c14cbd48e0541feae8be965b.tar.bz2 rockbox-716fc9e7f83a4a34c14cbd48e0541feae8be965b.tar.xz | |
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
| -rw-r--r-- | firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c | 5 | ||||
| -rw-r--r-- | firmware/target/arm/tms320dm320/system-dm320.c | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c b/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c index 0551389..75e4b9e 100644 --- a/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c +++ b/firmware/target/arm/tms320dm320/mrobe-500/lcd-mr500.c @@ -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); diff --git a/firmware/target/arm/tms320dm320/system-dm320.c b/firmware/target/arm/tms320dm320/system-dm320.c index c189a87..58137ff 100644 --- a/firmware/target/arm/tms320dm320/system-dm320.c +++ b/firmware/target/arm/tms320dm320/system-dm320.c @@ -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. */ |