summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-22 15:39:12 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-22 15:40:12 +0200
commit1d6cb04781407ef559ef6b9a1db89149bafbbe76 (patch)
treeb3af136aef7bd9a44cc7690d97a755c89e96c031
parent23af092bec253c98d0088ed8db0a777361205524 (diff)
linux: update 4.7.x kernel, add 4.8.x
-rw-r--r--mk/kernel-ver.mk10
-rw-r--r--target/avr32/grasshopper/patches/4.7.9/0001-grasshopper.patch (renamed from target/avr32/grasshopper/patches/4.7.3/0001-grasshopper.patch)0
-rw-r--r--target/avr32/grasshopper/patches/4.7.9/0002-grasshopper-led-pwm.patch (renamed from target/avr32/grasshopper/patches/4.7.3/0002-grasshopper-led-pwm.patch)0
-rw-r--r--target/avr32/grasshopper/patches/4.7.9/0003-grasshopper-mmc.patch (renamed from target/avr32/grasshopper/patches/4.7.3/0003-grasshopper-mmc.patch)0
-rw-r--r--target/avr32/grasshopper/patches/4.7.9/0004-grasshopper-i2c.patch (renamed from target/avr32/grasshopper/patches/4.7.3/0004-grasshopper-i2c.patch)0
-rw-r--r--target/avr32/grasshopper/patches/4.7.9/0005-grasshopper-usart.patch (renamed from target/avr32/grasshopper/patches/4.7.3/0005-grasshopper-usart.patch)0
-rw-r--r--target/avr32/grasshopper/patches/4.7.9/0100-netfilter-init-fix.patch (renamed from target/avr32/grasshopper/patches/4.7.3/0100-netfilter-init-fix.patch)0
-rw-r--r--target/config/Config.in.kernelversion9
-rw-r--r--target/linux/patches/4.7.9/crisv32.patch (renamed from target/linux/patches/4.7.3/crisv32.patch)0
-rw-r--r--target/linux/patches/4.7.9/crisv32_ethernet_driver.patch (renamed from target/linux/patches/4.7.3/crisv32_ethernet_driver.patch)0
-rw-r--r--target/linux/patches/4.7.9/initramfs-nosizelimit.patch (renamed from target/linux/patches/4.7.3/initramfs-nosizelimit.patch)0
-rw-r--r--target/linux/patches/4.7.9/ld-or1k.patch (renamed from target/linux/patches/4.7.3/ld-or1k.patch)0
-rw-r--r--target/linux/patches/4.7.9/macsonic.patch (renamed from target/linux/patches/4.7.3/macsonic.patch)0
-rw-r--r--target/linux/patches/4.7.9/patch-realtime (renamed from target/linux/patches/4.7.3/patch-realtime)0
-rw-r--r--target/linux/patches/4.7.9/startup.patch (renamed from target/linux/patches/4.7.3/startup.patch)0
-rw-r--r--target/linux/patches/4.7.9/vdso2.patch (renamed from target/linux/patches/4.7.3/vdso2.patch)0
-rw-r--r--target/linux/patches/4.8.3/crisv32.patch33
-rw-r--r--target/linux/patches/4.8.3/crisv32_ethernet_driver.patch4048
-rw-r--r--target/linux/patches/4.8.3/initramfs-nosizelimit.patch57
-rw-r--r--target/linux/patches/4.8.3/ld-or1k.patch12
-rw-r--r--target/linux/patches/4.8.3/macsonic.patch11
-rw-r--r--target/linux/patches/4.8.3/patch-realtime26640
-rw-r--r--target/linux/patches/4.8.3/startup.patch34
-rw-r--r--target/linux/patches/4.8.3/vdso2.patch27
-rw-r--r--toolchain/gcc/patches/6.2.0/soft-fp.nios2 (renamed from toolchain/gcc/patches/6.2.0/nios2-soft-fp.patch)0
25 files changed, 30878 insertions, 3 deletions
diff --git a/mk/kernel-ver.mk b/mk/kernel-ver.mk
index bf7eb91a6..c894b714b 100644
--- a/mk/kernel-ver.mk
+++ b/mk/kernel-ver.mk
@@ -19,11 +19,17 @@ endif
KERNEL_RELEASE:= 1
KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
endif
+ifeq ($(ADK_TARGET_KERNEL_VERSION_4_8),y)
+KERNEL_FILE_VER:= 4.8.3
+KERNEL_RELEASE:= 1
+KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
+KERNEL_HASH:= f9d7c000cf5d1efbc2a1868e702427b1a060438faf7cded97614478899964003
+endif
ifeq ($(ADK_TARGET_KERNEL_VERSION_4_7),y)
-KERNEL_FILE_VER:= 4.7.3
+KERNEL_FILE_VER:= 4.7.9
KERNEL_RELEASE:= 1
KERNEL_VERSION:= $(KERNEL_FILE_VER)-$(KERNEL_RELEASE)
-KERNEL_HASH:= 0ce7bd4e582f77d68e0fd6ed5838f65413c2d77f1828b50ca1014a74a42d399b
+KERNEL_HASH:= 0638d52a86079d726817d895ae4030b09e3e649222a9590603dd7771155ae28d
endif
ifeq ($(ADK_TARGET_KERNEL_VERSION_4_4),y)
KERNEL_FILE_VER:= 4.4.20
diff --git a/target/avr32/grasshopper/patches/4.7.3/0001-grasshopper.patch b/target/avr32/grasshopper/patches/4.7.9/0001-grasshopper.patch
index 0fa4535c2..0fa4535c2 100644
--- a/target/avr32/grasshopper/patches/4.7.3/0001-grasshopper.patch
+++ b/target/avr32/grasshopper/patches/4.7.9/0001-grasshopper.patch
diff --git a/target/avr32/grasshopper/patches/4.7.3/0002-grasshopper-led-pwm.patch b/target/avr32/grasshopper/patches/4.7.9/0002-grasshopper-led-pwm.patch
index 977c91523..977c91523 100644
--- a/target/avr32/grasshopper/patches/4.7.3/0002-grasshopper-led-pwm.patch
+++ b/target/avr32/grasshopper/patches/4.7.9/0002-grasshopper-led-pwm.patch
diff --git a/target/avr32/grasshopper/patches/4.7.3/0003-grasshopper-mmc.patch b/target/avr32/grasshopper/patches/4.7.9/0003-grasshopper-mmc.patch
index f87d4731b..f87d4731b 100644
--- a/target/avr32/grasshopper/patches/4.7.3/0003-grasshopper-mmc.patch
+++ b/target/avr32/grasshopper/patches/4.7.9/0003-grasshopper-mmc.patch
diff --git a/target/avr32/grasshopper/patches/4.7.3/0004-grasshopper-i2c.patch b/target/avr32/grasshopper/patches/4.7.9/0004-grasshopper-i2c.patch
index b0796ed5a..b0796ed5a 100644
--- a/target/avr32/grasshopper/patches/4.7.3/0004-grasshopper-i2c.patch
+++ b/target/avr32/grasshopper/patches/4.7.9/0004-grasshopper-i2c.patch
diff --git a/target/avr32/grasshopper/patches/4.7.3/0005-grasshopper-usart.patch b/target/avr32/grasshopper/patches/4.7.9/0005-grasshopper-usart.patch
index 448647c29..448647c29 100644
--- a/target/avr32/grasshopper/patches/4.7.3/0005-grasshopper-usart.patch
+++ b/target/avr32/grasshopper/patches/4.7.9/0005-grasshopper-usart.patch
diff --git a/target/avr32/grasshopper/patches/4.7.3/0100-netfilter-init-fix.patch b/target/avr32/grasshopper/patches/4.7.9/0100-netfilter-init-fix.patch
index 9d80e8b53..9d80e8b53 100644
--- a/target/avr32/grasshopper/patches/4.7.3/0100-netfilter-init-fix.patch
+++ b/target/avr32/grasshopper/patches/4.7.9/0100-netfilter-init-fix.patch
diff --git a/target/config/Config.in.kernelversion b/target/config/Config.in.kernelversion
index 0b7706bcc..85c52c956 100644
--- a/target/config/Config.in.kernelversion
+++ b/target/config/Config.in.kernelversion
@@ -33,8 +33,15 @@ config ADK_TARGET_KERNEL_VERSION_BB
select ADK_TARGET_KERNEL_GIT
depends on ADK_TARGET_SYSTEM_BEAGLEBONE_BLACK
+config ADK_TARGET_KERNEL_VERSION_4_8
+ bool "4.8.3"
+ depends on !ADK_TARGET_ARCH_METAG
+ depends on !ADK_TARGET_ARCH_NDS32
+ depends on !ADK_TARGET_ARCH_SPARC
+ depends on !ADK_TARGET_SYSTEM_QEMU_ARM_VERSATILEPB_NOMMU
+
config ADK_TARGET_KERNEL_VERSION_4_7
- bool "4.7.3"
+ bool "4.7.9"
depends on !ADK_TARGET_ARCH_METAG
depends on !ADK_TARGET_ARCH_NDS32
depends on !ADK_TARGET_ARCH_SPARC
diff --git a/target/linux/patches/4.7.3/crisv32.patch b/target/linux/patches/4.7.9/crisv32.patch
index cb9b0d028..cb9b0d028 100644
--- a/target/linux/patches/4.7.3/crisv32.patch
+++ b/target/linux/patches/4.7.9/crisv32.patch
diff --git a/target/linux/patches/4.7.3/crisv32_ethernet_driver.patch b/target/linux/patches/4.7.9/crisv32_ethernet_driver.patch
index 0cef202fc..0cef202fc 100644
--- a/target/linux/patches/4.7.3/crisv32_ethernet_driver.patch
+++ b/target/linux/patches/4.7.9/crisv32_ethernet_driver.patch
diff --git a/target/linux/patches/4.7.3/initramfs-nosizelimit.patch b/target/linux/patches/4.7.9/initramfs-nosizelimit.patch
index 40d2f6bd8..40d2f6bd8 100644
--- a/target/linux/patches/4.7.3/initramfs-nosizelimit.patch
+++ b/target/linux/patches/4.7.9/initramfs-nosizelimit.patch
diff --git a/target/linux/patches/4.7.3/ld-or1k.patch b/target/linux/patches/4.7.9/ld-or1k.patch
index 264f9166f..264f9166f 100644
--- a/target/linux/patches/4.7.3/ld-or1k.patch
+++ b/target/linux/patches/4.7.9/ld-or1k.patch
diff --git a/target/linux/patches/4.7.3/macsonic.patch b/target/linux/patches/4.7.9/macsonic.patch
index 75a6fcad2..75a6fcad2 100644
--- a/target/linux/patches/4.7.3/macsonic.patch
+++ b/target/linux/patches/4.7.9/macsonic.patch
diff --git a/target/linux/patches/4.7.3/patch-realtime b/target/linux/patches/4.7.9/patch-realtime
index 6fb397726..6fb397726 100644
--- a/target/linux/patches/4.7.3/patch-realtime
+++ b/target/linux/patches/4.7.9/patch-realtime
diff --git a/target/linux/patches/4.7.3/startup.patch b/target/linux/patches/4.7.9/startup.patch
index e54ac19a6..e54ac19a6 100644
--- a/target/linux/patches/4.7.3/startup.patch
+++ b/target/linux/patches/4.7.9/startup.patch
diff --git a/target/linux/patches/4.7.3/vdso2.patch b/target/linux/patches/4.7.9/vdso2.patch
index 35df488a8..35df488a8 100644
--- a/target/linux/patches/4.7.3/vdso2.patch
+++ b/target/linux/patches/4.7.9/vdso2.patch
diff --git a/target/linux/patches/4.8.3/crisv32.patch b/target/linux/patches/4.8.3/crisv32.patch
new file mode 100644
index 000000000..cb9b0d028
--- /dev/null
+++ b/target/linux/patches/4.8.3/crisv32.patch
@@ -0,0 +1,33 @@
+diff -Nur linux-4.4.13.orig/arch/cris/arch-v32/mm/intmem.c linux-4.4.13/arch/cris/arch-v32/mm/intmem.c
+--- linux-4.4.13.orig/arch/cris/arch-v32/mm/intmem.c 2016-06-08 03:14:51.000000000 +0200
++++ linux-4.4.13/arch/cris/arch-v32/mm/intmem.c 2016-06-21 20:40:18.919361891 +0200
+@@ -113,14 +113,14 @@
+
+ allocation->status = STATUS_FREE;
+ /* Join with prev and/or next if also free */
+- if ((prev != &intmem_allocations) &&
++ if ((&prev->entry != &intmem_allocations) &&
+ (prev->status == STATUS_FREE)) {
+ prev->size += allocation->size;
+ list_del(&allocation->entry);
+ kfree(allocation);
+ allocation = prev;
+ }
+- if ((next != &intmem_allocations) &&
++ if ((&next->entry != &intmem_allocations) &&
+ (next->status == STATUS_FREE)) {
+ allocation->size += next->size;
+ list_del(&next->entry);
+@@ -145,5 +145,11 @@
+ (unsigned long)intmem_virtual + MEM_INTMEM_START +
+ RESERVED_SIZE);
+ }
+-device_initcall(crisv32_intmem_init);
+
++static int __init crisv32_intmem_setup(void)
++{
++ crisv32_intmem_init();
++
++ return 0;
++}
++device_initcall(crisv32_intmem_setup);
diff --git a/target/linux/patches/4.8.3/crisv32_ethernet_driver.patch b/target/linux/patches/4.8.3/crisv32_ethernet_driver.patch
new file mode 100644
index 000000000..0cef202fc
--- /dev/null
+++ b/target/linux/patches/4.8.3/crisv32_ethernet_driver.patch
@@ -0,0 +1,4048 @@
+diff -Nur linux-4.7.3.orig/arch/cris/arch-v32/drivers/Kconfig linux-4.7.3/arch/cris/arch-v32/drivers/Kconfig
+--- linux-4.7.3.orig/arch/cris/arch-v32/drivers/Kconfig 2016-09-07 08:35:12.000000000 +0200
++++ linux-4.7.3/arch/cris/arch-v32/drivers/Kconfig 2016-09-13 01:47:09.507717605 +0200
+@@ -8,9 +8,18 @@
+ This option enables the ETRAX FS built-in 10/100Mbit Ethernet
+ controller.
+
++config ETRAX_HAVE_PHY
++ bool "PHY present"
++ default y
++ help
++ Search and use the first PHY available on the MDIO bus. Fail
++ if none is found. Say Y here if you are not in a switched
++ environment (single port device).
++
+ config ETRAX_NO_PHY
+ bool "PHY not present"
+ depends on ETRAX_ETHERNET
++ default n
+ help
+ This option disables all MDIO communication with an ethernet
+ transceiver connected to the MII interface. This option shall
+@@ -18,6 +27,70 @@
+ switch. This option should normally be disabled. If enabled,
+ speed and duplex will be locked to 100 Mbit and full duplex.
+
++config ETRAX_PHY_FALLBACK
++ bool "Fixed PHY fallback"
++ depends on ETRAX_ETHERNET
++ default n
++ help
++ If no PHY is found on the MDIO bus, fall back on a fixed
++ 100/Full fixed PHY. Say Y here if you need dynamic PHY
++ presence detection (switch connection where some but not
++ all ports have integrated PHYs), otherwise say N.
++
++config ETRAX_ETHERNET_IFACE0
++ depends on ETRAX_ETHERNET
++ bool "Enable network interface 0"
++
++config ETRAX_ETHERNET_IFACE1
++ depends on (ETRAX_ETHERNET && ETRAXFS)
++ bool "Enable network interface 1 (uses DMA6 and DMA7)"
++
++choice
++ prompt "Eth0 led group"
++ depends on ETRAX_ETHERNET_IFACE0
++ default ETRAX_ETH0_USE_LEDGRP0
++
++config ETRAX_ETH0_USE_LEDGRP0
++ bool "Use LED grp 0"
++ depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO
++ help
++ Use LED grp 0 for eth0
++
++config ETRAX_ETH0_USE_LEDGRP1
++ bool "Use LED grp 1"
++ depends on ETRAX_NBR_LED_GRP_TWO
++ help
++ Use LED grp 1 for eth0
++
++config ETRAX_ETH0_USE_LEDGRPNULL
++ bool "Use no LEDs for eth0"
++ help
++ Use no LEDs for eth0
++endchoice
++
++choice
++ prompt "Eth1 led group"
++ depends on ETRAX_ETHERNET_IFACE1
++ default ETRAX_ETH1_USE_LEDGRP1
++
++config ETRAX_ETH1_USE_LEDGRP0
++ bool "Use LED grp 0"
++ depends on ETRAX_NBR_LED_GRP_ONE || ETRAX_NBR_LED_GRP_TWO
++ help
++ Use LED grp 0 for eth1
++
++config ETRAX_ETH1_USE_LEDGRP1
++ bool "Use LED grp 1"
++ depends on ETRAX_NBR_LED_GRP_TWO
++ help
++ Use LED grp 1 for eth1
++
++config ETRAX_ETH1_USE_LEDGRPNULL
++ bool "Use no LEDs for eth1"
++ help
++ Use no LEDs for eth1
++endchoice
++
+ config ETRAXFS_SERIAL
+ bool "Serial-port support"
+ depends on ETRAX_ARCH_V32
+diff -Nur linux-4.7.3.orig/arch/cris/include/arch-v32/arch/hwregs/eth_defs.h linux-4.7.3/arch/cris/include/arch-v32/arch/hwregs/eth_defs.h
+--- linux-4.7.3.orig/arch/cris/include/arch-v32/arch/hwregs/eth_defs.h 2016-09-07 08:35:12.000000000 +0200
++++ linux-4.7.3/arch/cris/include/arch-v32/arch/hwregs/eth_defs.h 2016-09-13 01:47:09.527718381 +0200
+@@ -2,69 +2,64 @@
+ #define __eth_defs_h
+
+ /*
+- * This file is autogenerated from
+- * file: eth.r
+- * id: eth_regs.r,v 1.16 2005/05/20 15:41:22 perz Exp
+- * last modfied: Mon Jan 9 06:06:41 2006
+- *
+- * by /n/asic/design/tools/rdesc/rdes2c eth.r
+- * id: $Id: eth_defs.h,v 1.7 2006/01/26 13:45:30 karljope Exp $
+- * Any changes here will be lost.
+- *
+- * -*- buffer-read-only: t -*-
++ * Note: Previously this was autogenerated code from the hardware
++ * implementation. However, to enable the same file to be used
++ * for both ARTPEC-3 and ETRAX FS this file is now hand-edited.
++ * Be careful.
+ */
++
+ /* Main access macros */
+ #ifndef REG_RD
+ #define REG_RD( scope, inst, reg ) \
+- REG_READ( reg_##scope##_##reg, \
+- (inst) + REG_RD_ADDR_##scope##_##reg )
++ REG_READ( reg_##scope##_##reg, \
++ (inst) + REG_RD_ADDR_##scope##_##reg )
+ #endif
+
+ #ifndef REG_WR
+ #define REG_WR( scope, inst, reg, val ) \
+- REG_WRITE( reg_##scope##_##reg, \
+- (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
++ REG_WRITE( reg_##scope##_##reg, \
++ (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
+ #endif
+
+ #ifndef REG_RD_VECT
+ #define REG_RD_VECT( scope, inst, reg, index ) \
+- REG_READ( reg_##scope##_##reg, \
+- (inst) + REG_RD_ADDR_##scope##_##reg + \
+- (index) * STRIDE_##scope##_##reg )
++ REG_READ( reg_##scope##_##reg, \
++ (inst) + REG_RD_ADDR_##scope##_##reg + \
++ (index) * STRIDE_##scope##_##reg )
+ #endif
+
+ #ifndef REG_WR_VECT
+ #define REG_WR_VECT( scope, inst, reg, index, val ) \
+- REG_WRITE( reg_##scope##_##reg, \
+- (inst) + REG_WR_ADDR_##scope##_##reg + \
+- (index) * STRIDE_##scope##_##reg, (val) )
++ REG_WRITE( reg_##scope##_##reg, \
++ (inst) + REG_WR_ADDR_##scope##_##reg + \
++ (index) * STRIDE_##scope##_##reg, (val) )
+ #endif
+
+ #ifndef REG_RD_INT
+ #define REG_RD_INT( scope, inst, reg ) \
+- REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )
++ REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )
+ #endif
+
+ #ifndef REG_WR_INT
+ #define REG_WR_INT( scope, inst, reg, val ) \
+- REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
++ REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
+ #endif
+
+ #ifndef REG_RD_INT_VECT
+ #define REG_RD_INT_VECT( scope, inst, reg, index ) \
+- REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \
+- (index) * STRIDE_##scope##_##reg )
++ REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \
++ (index) * STRIDE_##scope##_##reg )
+ #endif
+
+ #ifndef REG_WR_INT_VECT
+ #define REG_WR_INT_VECT( scope, inst, reg, index, val ) \
+- REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \
+- (index) * STRIDE_##scope##_##reg, (val) )
++ REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \
++ (index) * STRIDE_##scope##_##reg, (val) )
+ #endif
+
+ #ifndef REG_TYPE_CONV
+ #define REG_TYPE_CONV( type, orgtype, val ) \
+- ( { union { orgtype o; type n; } r; r.o = val; r.n; } )
++ ( { union { orgtype o; type n; } r; r.o = val; r.n; } )
+ #endif
+
+ #ifndef reg_page_size
+@@ -73,306 +68,332 @@
+
+ #ifndef REG_ADDR
+ #define REG_ADDR( scope, inst, reg ) \
+- ( (inst) + REG_RD_ADDR_##scope##_##reg )
++ ( (inst) + REG_RD_ADDR_##scope##_##reg )
+ #endif
+
+ #ifndef REG_ADDR_VECT
+ #define REG_ADDR_VECT( scope, inst, reg, index ) \
+- ( (inst) + REG_RD_ADDR_##scope##_##reg + \
+- (index) * STRIDE_##scope##_##reg )
++ ( (inst) + REG_RD_ADDR_##scope##_##reg + \
++ (index) * STRIDE_##scope##_##reg )
+ #endif
+
+ /* C-code for register scope eth */
+
+ /* Register rw_ma0_lo, scope eth, type rw */
+ typedef struct {
+- unsigned int addr : 32;
++ unsigned int addr : 32;
+ } reg_eth_rw_ma0_lo;
+ #define REG_RD_ADDR_eth_rw_ma0_lo 0
+ #define REG_WR_ADDR_eth_rw_ma0_lo 0
+
+ /* Register rw_ma0_hi, scope eth, type rw */
+ typedef struct {
+- unsigned int addr : 16;
+- unsigned int dummy1 : 16;
++ unsigned int addr : 16;
++ unsigned int dummy1 : 16;
+ } reg_eth_rw_ma0_hi;
+ #define REG_RD_ADDR_eth_rw_ma0_hi 4
+ #define REG_WR_ADDR_eth_rw_ma0_hi 4
+
+ /* Register rw_ma1_lo, scope eth, type rw */
+ typedef struct {
+- unsigned int addr : 32;
++ unsigned int addr : 32;
+ } reg_eth_rw_ma1_lo;
+ #define REG_RD_ADDR_eth_rw_ma1_lo 8
+ #define REG_WR_ADDR_eth_rw_ma1_lo 8
+
+ /* Register rw_ma1_hi, scope eth, type rw */
+ typedef struct {
+- unsigned int addr : 16;
+- unsigned int dummy1 : 16;
++ unsigned int addr : 16;
++ unsigned int dummy1 : 16;
+ } reg_eth_rw_ma1_hi;
+ #define REG_RD_ADDR_eth_rw_ma1_hi 12
+ #define REG_WR_ADDR_eth_rw_ma1_hi 12
+
+ /* Register rw_ga_lo, scope eth, type rw */
+ typedef struct {
+- unsigned int tbl : 32;
++ unsigned int table : 32;
+ } reg_eth_rw_ga_lo;
+ #define REG_RD_ADDR_eth_rw_ga_lo 16
+ #define REG_WR_ADDR_eth_rw_ga_lo 16
+
+ /* Register rw_ga_hi, scope eth, type rw */
+ typedef struct {
+- unsigned int tbl : 32;
++ unsigned int table : 32;
+ } reg_eth_rw_ga_hi;
+ #define REG_RD_ADDR_eth_rw_ga_hi 20
+ #define REG_WR_ADDR_eth_rw_ga_hi 20
+
+ /* Register rw_gen_ctrl, scope eth, type rw */
+ typedef struct {
+- unsigned int en : 1;
+- unsigned int phy : 2;
+- unsigned int protocol : 1;
+- unsigned int loopback : 1;
+- unsigned int flow_ctrl : 1;
+- unsigned int gtxclk_out : 1;
+- unsigned int phyrst_n : 1;
+- unsigned int dummy1 : 24;
++ unsigned int en : 1;
++ unsigned int phy : 2;
++ unsigned int protocol : 1;
++ unsigned int loopback : 1;
++ unsigned int flow_ctrl : 1;
++ unsigned int gtxclk_out : 1;
++ unsigned int phyrst_n : 1;
++ unsigned int dummy1 : 24;
+ } reg_eth_rw_gen_ctrl;
+ #define REG_RD_ADDR_eth_rw_gen_ctrl 24
+ #define REG_WR_ADDR_eth_rw_gen_ctrl 24
+
+ /* Register rw_rec_ctrl, scope eth, type rw */
+ typedef struct {
+- unsigned int ma0 : 1;
+- unsigned int ma1 : 1;
+- unsigned int individual : 1;
+- unsigned int broadcast : 1;
+- unsigned int undersize : 1;
+- unsigned int oversize : 1;
+- unsigned int bad_crc : 1;
+- unsigned int duplex : 1;
+- unsigned int max_size : 16;
+- unsigned int dummy1 : 8;
++ unsigned int ma0 : 1;
++ unsigned int ma1 : 1;
++ unsigned int individual : 1;
++ unsigned int broadcast : 1;
++ unsigned int undersize : 1;
++ unsigned int oversize : 1;
++ unsigned int bad_crc : 1;
++ unsigned int duplex : 1;
++#ifdef CONFIG_CRIS_MACH_ARTPEC3
++ unsigned int max_size : 16;
++ unsigned int dummy1 : 8;
++#else
++ unsigned int max_size : 1;
++ unsigned int dummy1 : 23;
++#endif
+ } reg_eth_rw_rec_ctrl;
+ #define REG_RD_ADDR_eth_rw_rec_ctrl 28
+ #define REG_WR_ADDR_eth_rw_rec_ctrl 28
+
+ /* Register rw_tr_ctrl, scope eth, type rw */
+ typedef struct {
+- unsigned int crc : 1;
+- unsigned int pad : 1;
+- unsigned int retry : 1;
+- unsigned int ignore_col : 1;
+- unsigned int cancel : 1;
+- unsigned int hsh_delay : 1;
+- unsigned int ignore_crs : 1;
+- unsigned int carrier_ext : 1;
+- unsigned int dummy1 : 24;
++ unsigned int crc : 1;
++ unsigned int pad : 1;
++ unsigned int retry : 1;
++ unsigned int ignore_col : 1;
++ unsigned int cancel : 1;
++ unsigned int hsh_delay : 1;
++ unsigned int ignore_crs : 1;
++ unsigned int carrier_ext : 1;
++ unsigned int dummy1 : 24;
+ } reg_eth_rw_tr_ctrl;
+ #define REG_RD_ADDR_eth_rw_tr_ctrl 32
+ #define REG_WR_ADDR_eth_rw_tr_ctrl 32
+
+ /* Register rw_clr_err, scope eth, type rw */
+ typedef struct {
+- unsigned int clr : 1;
+- unsigned int dummy1 : 31;
++ unsigned int clr : 1;
++ unsigned int dummy1 : 31;
+ } reg_eth_rw_clr_err;
+ #define REG_RD_ADDR_eth_rw_clr_err 36
+ #define REG_WR_ADDR_eth_rw_clr_err 36
+
+ /* Register rw_mgm_ctrl, scope eth, type rw */
+ typedef struct {
+- unsigned int mdio : 1;
+- unsigned int mdoe : 1;
+- unsigned int mdc : 1;
+- unsigned int dummy1 : 29;
++ unsigned int mdio : 1;
++ unsigned int mdoe : 1;
++ unsigned int mdc : 1;
++ unsigned int phyclk : 1;
++ unsigned int txdata : 4;
++ unsigned int txen : 1;
++ unsigned int dummy1 : 23;
+ } reg_eth_rw_mgm_ctrl;
+ #define REG_RD_ADDR_eth_rw_mgm_ctrl 40
+ #define REG_WR_ADDR_eth_rw_mgm_ctrl 40
+
+ /* Register r_stat, scope eth, type r */
+ typedef struct {
+- unsigned int mdio : 1;
+- unsigned int exc_col : 1;
+- unsigned int urun : 1;
+- unsigned int clk_125 : 1;
+- unsigned int dummy1 : 28;
++ unsigned int mdio : 1;
++ unsigned int exc_col : 1;
++ unsigned int urun : 1;
++#ifdef CONFIG_CRIS_MACH_ARTPEC3
++ unsigned int clk_125 : 1;
++#else
++ unsigned int phyclk : 1;
++#endif
++ unsigned int txdata : 4;
++ unsigned int txen : 1;
++ unsigned int col : 1;
++ unsigned int crs : 1;
++ unsigned int txclk : 1;
++ unsigned int rxdata : 4;
++ unsigned int rxer : 1;
++ unsigned int rxdv : 1;
++ unsigned int rxclk : 1;
++ unsigned int dummy1 : 13;
+ } reg_eth_r_stat;
+ #define REG_RD_ADDR_eth_r_stat 44
+
+ /* Register rs_rec_cnt, scope eth, type rs */
+ typedef struct {
+- unsigned int crc_err : 8;
+- unsigned int align_err : 8;
+- unsigned int oversize : 8;
+- unsigned int congestion : 8;
++ unsigned int crc_err : 8;
++ unsigned int align_err : 8;
++ unsigned int oversize : 8;
++ unsigned int congestion : 8;
+ } reg_eth_rs_rec_cnt;
+ #define REG_RD_ADDR_eth_rs_rec_cnt 48
+
+ /* Register r_rec_cnt, scope eth, type r */
+ typedef struct {
+- unsigned int crc_err : 8;
+- unsigned int align_err : 8;
+- unsigned int oversize : 8;
+- unsigned int congestion : 8;
++ unsigned int crc_err : 8;
++ unsigned int align_err : 8;
++ unsigned int oversize : 8;
++ unsigned int congestion : 8;
+ } reg_eth_r_rec_cnt;
+ #define REG_RD_ADDR_eth_r_rec_cnt 52
+
+ /* Register rs_tr_cnt, scope eth, type rs */
+ typedef struct {
+- unsigned int single_col : 8;
+- unsigned int mult_col : 8;
+- unsigned int late_col : 8;
+- unsigned int deferred : 8;
++ unsigned int single_col : 8;
++ unsigned int mult_col : 8;
++ unsigned int late_col : 8;
++ unsigned int deferred : 8;
+ } reg_eth_rs_tr_cnt;
+ #define REG_RD_ADDR_eth_rs_tr_cnt 56
+
+ /* Register r_tr_cnt, scope eth, type r */
+ typedef struct {
+- unsigned int single_col : 8;
+- unsigned int mult_col : 8;
+- unsigned int late_col : 8;
+- unsigned int deferred : 8;
++ unsigned int single_col : 8;
++ unsigned int mult_col : 8;
++ unsigned int late_col : 8;
++ unsigned int deferred : 8;
+ } reg_eth_r_tr_cnt;
+ #define REG_RD_ADDR_eth_r_tr_cnt 60
+
+ /* Register rs_phy_cnt, scope eth, type rs */
+ typedef struct {
+- unsigned int carrier_loss : 8;
+- unsigned int sqe_err : 8;
+- unsigned int dummy1 : 16;
++ unsigned int carrier_loss : 8;
++ unsigned int sqe_err : 8;
++ unsigned int dummy1 : 16;
+ } reg_eth_rs_phy_cnt;
+ #define REG_RD_ADDR_eth_rs_phy_cnt 64
+
+ /* Register r_phy_cnt, scope eth, type r */
+ typedef struct {
+- unsigned int carrier_loss : 8;
+- unsigned int sqe_err : 8;
+- unsigned int dummy1 : 16;
++ unsigned int carrier_loss : 8;
++ unsigned int sqe_err : 8;
++ unsigned int dummy1 : 16;
+ } reg_eth_r_phy_cnt;
+ #define REG_RD_ADDR_eth_r_phy_cnt 68
+
+ /* Register rw_test_ctrl, scope eth, type rw */
+ typedef struct {
+- unsigned int snmp_inc : 1;
+- unsigned int snmp : 1;
+- unsigned int backoff : 1;
+- unsigned int dummy1 : 29;
++ unsigned int snmp_inc : 1;
++ unsigned int snmp : 1;
++ unsigned int backoff : 1;
++ unsigned int dummy1 : 29;
+ } reg_eth_rw_test_ctrl;
+ #define REG_RD_ADDR_eth_rw_test_ctrl 72
+ #define REG_WR_ADDR_eth_rw_test_ctrl 72
+
+ /* Register rw_intr_mask, scope eth, type rw */
+ typedef struct {
+- unsigned int crc : 1;
+- unsigned int align : 1;
+- unsigned int oversize : 1;
+- unsigned int congestion : 1;
+- unsigned int single_col : 1;
+- unsigned int mult_col : 1;
+- unsigned int late_col : 1;
+- unsigned int deferred : 1;
+- unsigned int carrier_loss : 1;
+- unsigned int sqe_test_err : 1;
+- unsigned int orun : 1;
+- unsigned int urun : 1;
+- unsigned int exc_col : 1;
+- unsigned int mdio : 1;
+- unsigned int dummy1 : 18;
++ unsigned int crc : 1;
++ unsigned int align : 1;
++ unsigned int oversize : 1;
++ unsigned int congestion : 1;
++ unsigned int single_col : 1;
++ unsigned int mult_col : 1;
++ unsigned int late_col : 1;
++ unsigned int deferred : 1;
++ unsigned int carrier_loss : 1;
++ unsigned int sqe_test_err : 1;
++ unsigned int orun : 1;
++ unsigned int urun : 1;
++ unsigned int exc_col : 1;
++ unsigned int mdio : 1;
++ unsigned int dummy1 : 18;
+ } reg_eth_rw_intr_mask;
+ #define REG_RD_ADDR_eth_rw_intr_mask 76
+ #define REG_WR_ADDR_eth_rw_intr_mask 76
+
+ /* Register rw_ack_intr, scope eth, type rw */
+ typedef struct {
+- unsigned int crc : 1;
+- unsigned int align : 1;
+- unsigned int oversize : 1;
+- unsigned int congestion : 1;
+- unsigned int single_col : 1;
+- unsigned int mult_col : 1;
+- unsigned int late_col : 1;
+- unsigned int deferred : 1;
+- unsigned int carrier_loss : 1;
+- unsigned int sqe_test_err : 1;
+- unsigned int orun : 1;
+- unsigned int urun : 1;
+- unsigned int exc_col : 1;
+- unsigned int mdio : 1;
+- unsigned int dummy1 : 18;
++ unsigned int crc : 1;
++ unsigned int align : 1;
++ unsigned int oversize : 1;
++ unsigned int congestion : 1;
++ unsigned int single_col : 1;
++ unsigned int mult_col : 1;
++ unsigned int late_col : 1;
++ unsigned int deferred : 1;
++ unsigned int carrier_loss : 1;
++ unsigned int sqe_test_err : 1;
++ unsigned int orun : 1;
++ unsigned int urun : 1;
++ unsigned int exc_col : 1;
++ unsigned int mdio : 1;
++ unsigned int dummy1 : 18;
+ } reg_eth_rw_ack_intr;
+ #define REG_RD_ADDR_eth_rw_ack_intr 80
+ #define REG_WR_ADDR_eth_rw_ack_intr 80
+
+ /* Register r_intr, scope eth, type r */
+ typedef struct {
+- unsigned int crc : 1;
+- unsigned int align : 1;
+- unsigned int oversize : 1;
+- unsigned int congestion : 1;
+- unsigned int single_col : 1;
+- unsigned int mult_col : 1;
+- unsigned int late_col : 1;
+- unsigned int deferred : 1;
+- unsigned int carrier_loss : 1;
+- unsigned int sqe_test_err : 1;
+- unsigned int orun : 1;
+- unsigned int urun : 1;
+- unsigned int exc_col : 1;
+- unsigned int mdio : 1;
+- unsigned int dummy1 : 18;
++ unsigned int crc : 1;
++ unsigned int align : 1;
++ unsigned int oversize : 1;
++ unsigned int congestion : 1;
++ unsigned int single_col : 1;
++ unsigned int mult_col : 1;
++ unsigned int late_col : 1;
++ unsigned int deferred : 1;
++ unsigned int carrier_loss : 1;
++ unsigned int sqe_test_err : 1;
++ unsigned int orun : 1;
++ unsigned int urun : 1;
++ unsigned int exc_col : 1;
++ unsigned int mdio : 1;
++ unsigned int dummy1 : 18;
+ } reg_eth_r_intr;
+ #define REG_RD_ADDR_eth_r_intr 84
+
+ /* Register r_masked_intr, scope eth, type r */
+ typedef struct {
+- unsigned int crc : 1;
+- unsigned int align : 1;
+- unsigned int oversize : 1;
+- unsigned int congestion : 1;
+- unsigned int single_col : 1;
+- unsigned int mult_col : 1;
+- unsigned int late_col : 1;
+- unsigned int deferred : 1;
+- unsigned int carrier_loss : 1;
+- unsigned int sqe_test_err : 1;
+- unsigned int orun : 1;
+- unsigned int urun : 1;
+- unsigned int exc_col : 1;
+- unsigned int mdio : 1;
+- unsigned int dummy1 : 18;
++ unsigned int crc : 1;
++ unsigned int align : 1;
++ unsigned int oversize : 1;
++ unsigned int congestion : 1;
++ unsigned int single_col : 1;
++ unsigned int mult_col : 1;
++ unsigned int late_col : 1;
++ unsigned int deferred : 1;
++ unsigned int carrier_loss : 1;
++ unsigned int sqe_test_err : 1;
++ unsigned int orun : 1;
++ unsigned int urun : 1;
++ unsigned int exc_col : 1;
++ unsigned int mdio : 1;
++ unsigned int dummy1 : 18;
+ } reg_eth_r_masked_intr;
+ #define REG_RD_ADDR_eth_r_ma