brcm63xx: Use model name for ADB P.DG A4001N1
[oweals/openwrt.git] / target / linux / brcm63xx / patches-3.14 / 304-boardid_fixup.patch
index 937b9d64f3eafc428cd28a06263f0bd9d4a858a4..a206abab924d30099142877fb914931ae81bdfc4 100644 (file)
@@ -1,26 +1,26 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -35,6 +35,7 @@
- #include <board_bcm963xx.h>
+@@ -23,6 +23,7 @@
+ #include "board_common.h"
  
  #include <uapi/linux/bcm933xx_hcs.h>
 +#include <uapi/linux/bcm963xx_tag.h>
  
  #define PFX   "board_bcm963xx: "
  
-@@ -43,6 +44,9 @@
+@@ -31,6 +32,9 @@
  #define BCM963XX_KEYS_POLL_INTERVAL   20
  #define BCM963XX_KEYS_DEBOUNCE_INTERVAL       (BCM963XX_KEYS_POLL_INTERVAL * 3)
  
 +#define CFE_OFFSET_64K                        0x10000
 +#define CFE_OFFSET_128K                       0x20000
 +
- static struct board_info board;
  /*
-@@ -782,6 +786,30 @@ const char *board_get_name(void)
-       return board.name;
- }
+  * known 3368 boards
+  */
+@@ -722,6 +726,30 @@ static const struct board_info __initcon
+ #endif
+ };
  
 +static void __init boardid_fixup(u8 *boot_addr)
 +{
@@ -49,7 +49,7 @@
  /*
   * early init callback, read nvram data from flash and checksum it
   */
-@@ -820,6 +848,10 @@ void __init board_prom_init(void)
+@@ -760,6 +788,10 @@ void __init board_prom_init(void)
                hcs = (struct bcm_hcs *)boot_addr;
                board_name = hcs->filename;
        } else {