[ar71xx] add preliminary support for the Ubiquiti LS-SR71 board (thanks to Xianghua...
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / arch / mips / ar71xx / prom.c
index 29c6c97cc634a5b8f6336c26092abc22cc7e9e04..0116d0f5c5adf687d66b54c40a2c13f828d6a3ff 100644 (file)
@@ -55,6 +55,9 @@ static struct board_rec boards[] __initdata = {
        }, {
                .name           = "UBNT-RS",
                .mach_type      = AR71XX_MACH_UBNT_RS,
+       }, {
+               .name           = "UBNT-LS-SR71",
+               .mach_type      = AR71XX_MACH_UBNT_LSSR71,
        }, {
                .name           = "UBNT-LSX",
                .mach_type      = AR71XX_MACH_UBNT_LSX,
@@ -168,9 +171,9 @@ static void ar71xx_prom_init_generic(void)
        ar71xx_prom_argv = (char **)fw_arg1;
        ar71xx_prom_envp = (char **)fw_arg2;
 
-       p = ar71xx_prom_getenv("board");
+       p = ar71xx_prom_getargv("board");
        if (!p)
-               p = ar71xx_prom_getargv("board");
+               p = ar71xx_prom_getenv("board");
        if (p)
                ar71xx_mach_type = find_board_byname(p);