aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/sgi-ip22/ip22-platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/sgi-ip22/ip22-platform.c')
-rw-r--r--arch/mips/sgi-ip22/ip22-platform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/sgi-ip22/ip22-platform.c b/arch/mips/sgi-ip22/ip22-platform.c
index 698904daf901..a14fd32b76bd 100644
--- a/arch/mips/sgi-ip22/ip22-platform.c
+++ b/arch/mips/sgi-ip22/ip22-platform.c
@@ -137,7 +137,7 @@ static int __init sgiseeq_devinit(void)
137 137
138 eth0_pd.hpc = hpc3c0; 138 eth0_pd.hpc = hpc3c0;
139 eth0_pd.irq = SGI_ENET_IRQ; 139 eth0_pd.irq = SGI_ENET_IRQ;
140#define EADDR_NVOFS 250 140#define EADDR_NVOFS 250
141 for (i = 0; i < 3; i++) { 141 for (i = 0; i < 3; i++) {
142 unsigned short tmp = ip22_nvram_read(EADDR_NVOFS / 2 + i); 142 unsigned short tmp = ip22_nvram_read(EADDR_NVOFS / 2 + i);
143 143
@@ -155,17 +155,17 @@ static int __init sgiseeq_devinit(void)
155 return 0; 155 return 0;
156 156
157 sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 | 157 sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 |
158 SGIMC_GIOPAR_HPC264; 158 SGIMC_GIOPAR_HPC264;
159 hpc3c1->pbus_piocfg[0][0] = 0x3ffff; 159 hpc3c1->pbus_piocfg[0][0] = 0x3ffff;
160 /* interrupt/config register on Challenge S Mezz board */ 160 /* interrupt/config register on Challenge S Mezz board */
161 hpc3c1->pbus_extregs[0][0] = 0x30; 161 hpc3c1->pbus_extregs[0][0] = 0x30;
162 162
163 eth1_pd.hpc = hpc3c1; 163 eth1_pd.hpc = hpc3c1;
164 eth1_pd.irq = SGI_GIO_0_IRQ; 164 eth1_pd.irq = SGI_GIO_0_IRQ;
165#define EADDR_NVOFS 250 165#define EADDR_NVOFS 250
166 for (i = 0; i < 3; i++) { 166 for (i = 0; i < 3; i++) {
167 unsigned short tmp = ip22_eeprom_read(&hpc3c1->eeprom, 167 unsigned short tmp = ip22_eeprom_read(&hpc3c1->eeprom,
168 EADDR_NVOFS / 2 + i); 168 EADDR_NVOFS / 2 + i);
169 169
170 eth1_pd.mac[2 * i] = tmp >> 8; 170 eth1_pd.mac[2 * i] = tmp >> 8;
171 eth1_pd.mac[2 * i + 1] = tmp & 0xff; 171 eth1_pd.mac[2 * i + 1] = tmp & 0xff;