Commit af655b6d827d7e56b945032adbb6359cfe58dbad
1 parent
38121543
Fix Malta tty2 UART registers.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2590 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
10 additions
and
10 deletions
hw/mips_malta.c
... | ... | @@ -244,14 +244,14 @@ static uint32_t malta_fpga_readl(void *opaque, target_phys_addr_t addr) |
244 | 244 | |
245 | 245 | /* UART Registers */ |
246 | 246 | case 0x00900: |
247 | - case 0x00904: | |
248 | 247 | case 0x00908: |
249 | - case 0x0090c: | |
250 | 248 | case 0x00910: |
251 | - case 0x00914: | |
252 | 249 | case 0x00918: |
253 | - case 0x0091c: | |
254 | - val = serial_mm_readl(s->uart, addr); | |
250 | + case 0x00920: | |
251 | + case 0x00928: | |
252 | + case 0x00930: | |
253 | + case 0x00938: | |
254 | + val = serial_mm_readb(s->uart, addr); | |
255 | 255 | break; |
256 | 256 | |
257 | 257 | /* GPOUT Register */ |
... | ... | @@ -356,14 +356,14 @@ static void malta_fpga_writel(void *opaque, target_phys_addr_t addr, |
356 | 356 | |
357 | 357 | /* UART Registers */ |
358 | 358 | case 0x00900: |
359 | - case 0x00904: | |
360 | 359 | case 0x00908: |
361 | - case 0x0090c: | |
362 | 360 | case 0x00910: |
363 | - case 0x00914: | |
364 | 361 | case 0x00918: |
365 | - case 0x0091c: | |
366 | - serial_mm_writel(s->uart, addr, val); | |
362 | + case 0x00920: | |
363 | + case 0x00928: | |
364 | + case 0x00930: | |
365 | + case 0x00938: | |
366 | + serial_mm_writeb(s->uart, addr, val); | |
367 | 367 | break; |
368 | 368 | |
369 | 369 | /* GPOUT Register */ | ... | ... |