[MIPS] Alchemy: Fix BCSR accesses. Fixes BCSR accesses in the board setup/reset code. The registers are actually 16-bit, and their addresses are different between DBAu1550 and other DBAu1xx0 boards. From Sergei Shtylylov <sshtylyov@ru.mvista.com>. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+3 -4
+3 -4
arch/mips/au1000/db1x00/board_setup.c
··· 45 45 #include <asm/mach-au1x00/au1000.h> 46 46 #include <asm/mach-db1x00/db1x00.h> 47 47 48 - /* not correct for db1550 */ 49 - static BCSR * const bcsr = (BCSR *)0xAE000000; 48 + static BCSR * const bcsr = (BCSR *)BCSR_KSEG1_ADDR; 50 49 51 50 void board_reset (void) 52 51 { 53 52 /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */ 54 - au_writel(0x00000000, 0xAE00001C); 53 + bcsr->swreset = 0x0000; 55 54 } 56 55 57 56 void __init board_setup(void) ··· 74 75 bcsr->resets |= BCSR_RESETS_IRDA_MODE_OFF; 75 76 au_sync(); 76 77 #endif 77 - au_writel(0, 0xAE000010); /* turn off pcmcia power */ 78 + bcsr->pcmcia = 0x0000; /* turn off PCMCIA power */ 78 79 79 80 #ifdef CONFIG_MIPS_MIRAGE 80 81 /* enable GPIO[31:0] inputs */