]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: global_data.h: Add Octeon specific data to arch_global_data struct
authorStefan Roese <sr@denx.de>
Fri, 11 Dec 2020 16:05:23 +0000 (17:05 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 23 Apr 2021 19:02:12 +0000 (21:02 +0200)
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

index 4c30fab8717be76e9018ac29d66668baab17099e..f0d3b07bf1eb37737fe81292c2dc4311faed114a 100644 (file)
@@ -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>