1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 06:14:37 +02:00

brcm47xx: do not read from CFE

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@24267 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
hauke 2010-12-05 19:20:26 +00:00
parent 2308d83efb
commit 4b7e8fd5aa

View File

@ -398,23 +398,17 @@ static int get_router(void)
u16 sdram_init = 0; u16 sdram_init = 0;
u16 cardbus = 0; u16 cardbus = 0;
if (nvram_getenv("boardnum", buf, sizeof(buf)) >= 0 || if (nvram_getenv("boardnum", buf, sizeof(buf)) >= 0)
cfe_getenv("boardnum", buf, sizeof(buf)) >= 0)
boardnum = simple_strtoul(buf, NULL, 0); boardnum = simple_strtoul(buf, NULL, 0);
if (nvram_getenv("boardtype", buf, sizeof(buf)) >= 0 || if (nvram_getenv("boardtype", buf, sizeof(buf)) >= 0)
cfe_getenv("boardtype", buf, sizeof(buf)) >= 0)
boardtype = simple_strtoul(buf, NULL, 0); boardtype = simple_strtoul(buf, NULL, 0);
if (nvram_getenv("boardrev", buf, sizeof(buf)) >= 0 || if (nvram_getenv("boardrev", buf, sizeof(buf)) >= 0)
cfe_getenv("boardrev", buf, sizeof(buf)) >= 0)
boardrev = simple_strtoul(buf, NULL, 0); boardrev = simple_strtoul(buf, NULL, 0);
if (nvram_getenv("boardflags", buf, sizeof(buf)) >= 0 || if (nvram_getenv("boardflags", buf, sizeof(buf)) >= 0)
cfe_getenv("boardflags", buf, sizeof(buf)) >= 0)
boardflags = simple_strtoul(buf, NULL, 0); boardflags = simple_strtoul(buf, NULL, 0);
if (nvram_getenv("sdram_init", buf, sizeof(buf)) >= 0 || if (nvram_getenv("sdram_init", buf, sizeof(buf)) >= 0)
cfe_getenv("sdram_init", buf, sizeof(buf)) >= 0)
sdram_init = simple_strtoul(buf, NULL, 0); sdram_init = simple_strtoul(buf, NULL, 0);
if (nvram_getenv("cardbus", buf, sizeof(buf)) >= 0 || if (nvram_getenv("cardbus", buf, sizeof(buf)) >= 0)
cfe_getenv("cardbus", buf, sizeof(buf)) >= 0)
cardbus = simple_strtoul(buf, NULL, 0); cardbus = simple_strtoul(buf, NULL, 0);
if ((boardnum == 8 || boardnum == 01) if ((boardnum == 8 || boardnum == 01)