diff options
-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 0551389f27..75e4b9e579 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) | |||
141 | 141 | ||
142 | /* LCD related pins: | 142 | /* LCD related pins: |
143 | * 32 - LED above LCD | 143 | * 32 - LED above LCD |
144 | * 33 - ?? | ||
145 | * 34 - R2 for 18 bit output | 144 | * 34 - R2 for 18 bit output |
146 | * 35 - Resolution (MO?) | 145 | * 35 - Resolution (MO?) |
147 | * 36 - LCD power (INI?) | 146 | * 36 - LCD power (INI?) |
@@ -154,10 +153,6 @@ void lcd_init_device(void) | |||
154 | dm320_set_io(32, false, false, false, false, false, 0x00); | 153 | dm320_set_io(32, false, false, false, false, false, 0x00); |
155 | IO_GIO_BITCLR2 = 1; /* Turn the LED off */ | 154 | IO_GIO_BITCLR2 = 1; /* Turn the LED off */ |
156 | 155 | ||
157 | /* 33: output, non-inverted, no-irq, falling edge, no-chat, normal */ | ||
158 | dm320_set_io(33, false, false, false, false, false, 0x00); | ||
159 | /* To-do: figure out value from OF */ | ||
160 | |||
161 | /* 34: output, non-inverted, no-irq, falling edge, no-chat, R2 */ | 156 | /* 34: output, non-inverted, no-irq, falling edge, no-chat, R2 */ |
162 | dm320_set_io(34, false, false, false, false, false, 0x02); | 157 | dm320_set_io(34, false, false, false, false, false, 0x02); |
163 | 158 | ||
diff --git a/firmware/target/arm/tms320dm320/system-dm320.c b/firmware/target/arm/tms320dm320/system-dm320.c index c189a873fe..58137ff102 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) | |||
199 | 199 | ||
200 | void system_init(void) | 200 | void system_init(void) |
201 | { | 201 | { |
202 | /* Pin 33 is connected to a buzzer, for an annoying sound set | ||
203 | * PWM0C == 0x3264 | ||
204 | * PWM0H == 0x1932 | ||
205 | * Function to 1 | ||
206 | * Since this is not used in the FW, set it to a normal output at a zero | ||
207 | * level. */ | ||
208 | /* 33: output, non-inverted, no-irq, falling edge, no-chat, normal */ | ||
209 | dm320_set_io(33, false, false, false, false, false, 0x00); | ||
210 | IO_GIO_BITCLR2 = 1<<1; | ||
211 | |||
202 | /* taken from linux/arch/arm/mach-itdm320-20/irq.c */ | 212 | /* taken from linux/arch/arm/mach-itdm320-20/irq.c */ |
203 | 213 | ||
204 | /* Clearing all FIQs and IRQs. */ | 214 | /* Clearing all FIQs and IRQs. */ |