]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
MIPS: Octeon: Update struct cvmx_bootinfo to v3.
authorDavid Daney <david.daney@cavium.com>
Thu, 10 Nov 2011 23:09:10 +0000 (15:09 -0800)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 Nov 2011 21:30:20 +0000 (21:30 +0000)
Bootloaders can pass version 3 of this structure.  Add the new fields
so we can support the Device Tree.

Signed-off-by: David Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2938/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/octeon/cvmx-bootinfo.h

index 4e4c3a8282d624575d39a335348bd920c29fb86d..d9d1668ac779243d7cf76a3e384a2f385d8b2210 100644 (file)
@@ -39,7 +39,7 @@
  * versions.
  */
 #define CVMX_BOOTINFO_MAJ_VER 1
-#define CVMX_BOOTINFO_MIN_VER 2
+#define CVMX_BOOTINFO_MIN_VER 3
 
 #if (CVMX_BOOTINFO_MAJ_VER == 1)
 #define CVMX_BOOTINFO_OCTEON_SERIAL_LEN 20
@@ -116,7 +116,13 @@ struct cvmx_bootinfo {
         */
        uint32_t config_flags;
 #endif
-
+#if (CVMX_BOOTINFO_MIN_VER >= 3)
+       /*
+        * Address of the OF Flattened Device Tree structure
+        * describing the board.
+        */
+       uint64_t fdt_addr;
+#endif
 };
 
 #define CVMX_BOOTINFO_CFG_FLAG_PCI_HOST                        (1ull << 0)