diff mbox series

[v1,01/50] mips: global_data.h: Add Octeon specific data to arch_global_data struct

Message ID 20201211160612.1498780-2-sr@denx.de
State Accepted
Commit 057421a5fdbe0c5a1fb3c661e3b0b56f7b7d9d08
Delegated to: Daniel Schwierzeck
Headers show
Series mips: octeon: Add serdes and device helper support incl. DM PCIe driver | expand

Commit Message

Stefan Roese Dec. 11, 2020, 4:05 p.m. UTC
This will be used by the upcoming Serdes and driver code ported from
the original 2013 U-Boot code to mainline.

Signed-off-by: Stefan Roese <sr@denx.de>
---

 arch/mips/include/asm/global_data.h | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/arch/mips/include/asm/global_data.h b/arch/mips/include/asm/global_data.h
index 4c30fab871..f0d3b07bf1 100644
--- a/arch/mips/include/asm/global_data.h
+++ b/arch/mips/include/asm/global_data.h
@@ -8,6 +8,12 @@ 
 #define __ASM_GBL_DATA_H
 
 #include <asm/regdef.h>
+#include <asm/types.h>
+
+struct octeon_eeprom_mac_addr {
+	u8 mac_addr_base[6];
+	u8 count;
+};
 
 /* Architecture-specific global data */
 struct arch_global_data {
@@ -30,6 +36,9 @@  struct arch_global_data {
 #ifdef CONFIG_ARCH_MTMIPS
 	unsigned long timer_freq;
 #endif
+#ifdef CONFIG_ARCH_OCTEON
+	struct octeon_eeprom_mac_addr mac_desc;
+#endif
 };
 
 #include <asm-generic/global_data.h>