Commit 506d24be authored by David Daney's avatar David Daney Committed by Ralf Baechle

MIPS: Octeon: Update struct cvmx_bootinfo to v3.

Bootloaders can pass version 3 of this structure.  Add the new fields
so we can support the Device Tree.
Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2938/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 5611cc45
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
* versions. * versions.
*/ */
#define CVMX_BOOTINFO_MAJ_VER 1 #define CVMX_BOOTINFO_MAJ_VER 1
#define CVMX_BOOTINFO_MIN_VER 2 #define CVMX_BOOTINFO_MIN_VER 3
#if (CVMX_BOOTINFO_MAJ_VER == 1) #if (CVMX_BOOTINFO_MAJ_VER == 1)
#define CVMX_BOOTINFO_OCTEON_SERIAL_LEN 20 #define CVMX_BOOTINFO_OCTEON_SERIAL_LEN 20
...@@ -116,7 +116,13 @@ struct cvmx_bootinfo { ...@@ -116,7 +116,13 @@ struct cvmx_bootinfo {
*/ */
uint32_t config_flags; uint32_t config_flags;
#endif #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) #define CVMX_BOOTINFO_CFG_FLAG_PCI_HOST (1ull << 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment