diff options
author | Aurelien Jarno <aurelien@aurel32.net> | 2008-02-18 05:04:31 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-02-19 12:01:34 -0500 |
commit | cc2d6f701bed8b5f120314e4df854827d8bac558 (patch) | |
tree | 334f11d8ee0be7c5520672fdea54374038edf1e1 /arch/mips/bcm47xx | |
parent | 0788150e639623f44c5991dcd290f8cdcf7db43f (diff) |
[MIPS] BCM47XX: Use new SSB SPROM data structure
Switch the BCM47XX code to the new SPROM data structure now that the old
one has been removed.
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/bcm47xx')
-rw-r--r-- | arch/mips/bcm47xx/setup.c | 12 | ||||
-rw-r--r-- | arch/mips/bcm47xx/wgt634u.c | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/arch/mips/bcm47xx/setup.c b/arch/mips/bcm47xx/setup.c index 1b6b0fa5028f..8d36f186890e 100644 --- a/arch/mips/bcm47xx/setup.c +++ b/arch/mips/bcm47xx/setup.c | |||
@@ -92,17 +92,17 @@ static int bcm47xx_get_invariants(struct ssb_bus *bus, | |||
92 | iv->sprom.revision = 3; | 92 | iv->sprom.revision = 3; |
93 | 93 | ||
94 | if (cfe_getenv("et0macaddr", buf, sizeof(buf)) >= 0) | 94 | if (cfe_getenv("et0macaddr", buf, sizeof(buf)) >= 0) |
95 | str2eaddr(buf, iv->sprom.r1.et0mac); | 95 | str2eaddr(buf, iv->sprom.et0mac); |
96 | if (cfe_getenv("et1macaddr", buf, sizeof(buf)) >= 0) | 96 | if (cfe_getenv("et1macaddr", buf, sizeof(buf)) >= 0) |
97 | str2eaddr(buf, iv->sprom.r1.et1mac); | 97 | str2eaddr(buf, iv->sprom.et1mac); |
98 | if (cfe_getenv("et0phyaddr", buf, sizeof(buf)) >= 0) | 98 | if (cfe_getenv("et0phyaddr", buf, sizeof(buf)) >= 0) |
99 | iv->sprom.r1.et0phyaddr = simple_strtoul(buf, NULL, 10); | 99 | iv->sprom.et0phyaddr = simple_strtoul(buf, NULL, 10); |
100 | if (cfe_getenv("et1phyaddr", buf, sizeof(buf)) >= 0) | 100 | if (cfe_getenv("et1phyaddr", buf, sizeof(buf)) >= 0) |
101 | iv->sprom.r1.et1phyaddr = simple_strtoul(buf, NULL, 10); | 101 | iv->sprom.et1phyaddr = simple_strtoul(buf, NULL, 10); |
102 | if (cfe_getenv("et0mdcport", buf, sizeof(buf)) >= 0) | 102 | if (cfe_getenv("et0mdcport", buf, sizeof(buf)) >= 0) |
103 | iv->sprom.r1.et0mdcport = simple_strtoul(buf, NULL, 10); | 103 | iv->sprom.et0mdcport = simple_strtoul(buf, NULL, 10); |
104 | if (cfe_getenv("et1mdcport", buf, sizeof(buf)) >= 0) | 104 | if (cfe_getenv("et1mdcport", buf, sizeof(buf)) >= 0) |
105 | iv->sprom.r1.et1mdcport = simple_strtoul(buf, NULL, 10); | 105 | iv->sprom.et1mdcport = simple_strtoul(buf, NULL, 10); |
106 | 106 | ||
107 | return 0; | 107 | return 0; |
108 | } | 108 | } |
diff --git a/arch/mips/bcm47xx/wgt634u.c b/arch/mips/bcm47xx/wgt634u.c index 997e54001717..d1d90c9ef2fa 100644 --- a/arch/mips/bcm47xx/wgt634u.c +++ b/arch/mips/bcm47xx/wgt634u.c | |||
@@ -106,7 +106,7 @@ static int __init wgt634u_init(void) | |||
106 | * been allocated ranges 00:09:5b:xx:xx:xx and 00:0f:b5:xx:xx:xx. | 106 | * been allocated ranges 00:09:5b:xx:xx:xx and 00:0f:b5:xx:xx:xx. |
107 | */ | 107 | */ |
108 | 108 | ||
109 | u8 *et0mac = ssb_bcm47xx.sprom.r1.et0mac; | 109 | u8 *et0mac = ssb_bcm47xx.sprom.et0mac; |
110 | 110 | ||
111 | if (et0mac[0] == 0x00 && | 111 | if (et0mac[0] == 0x00 && |
112 | ((et0mac[1] == 0x09 && et0mac[2] == 0x5b) || | 112 | ((et0mac[1] == 0x09 && et0mac[2] == 0x5b) || |