From 57cd2232d46d0b848a41b32eca91bb76b9ad40fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Arg=C3=BCelles?= Date: Thu, 27 Jul 2023 23:08:19 +0700 Subject: [PATCH] soc: nxp_s32: s32k344: add EMAC support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This device has a single instance of EMAC (a 100Mbps version of GMAC). TCP/UDP checksum calculation is offloaded. Signed-off-by: Manuel Argüelles --- dts/arm/nxp/nxp_s32k344_m7.dtsi | 8 ++++++++ soc/arm/nxp_s32/s32k/Kconfig.defconfig.series | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/dts/arm/nxp/nxp_s32k344_m7.dtsi b/dts/arm/nxp/nxp_s32k344_m7.dtsi index 701b7342339d0e9..4f8708defffc9bb 100644 --- a/dts/arm/nxp/nxp_s32k344_m7.dtsi +++ b/dts/arm/nxp/nxp_s32k344_m7.dtsi @@ -589,6 +589,14 @@ #size-cells = <0>; status = "disabled"; }; + + emac0: ethernet@40480000 { + reg = <0x40480000 0x4000>; + compatible = "nxp,s32-gmac"; + interrupts = <105 0>, <106 0>, <107 0>, <108 0>; + interrupt-names = "common", "tx", "rx", "safety"; + status = "disabled"; + }; }; }; diff --git a/soc/arm/nxp_s32/s32k/Kconfig.defconfig.series b/soc/arm/nxp_s32/s32k/Kconfig.defconfig.series index 1bf4835fa9de9d2..93786720698689c 100644 --- a/soc/arm/nxp_s32/s32k/Kconfig.defconfig.series +++ b/soc/arm/nxp_s32/s32k/Kconfig.defconfig.series @@ -22,6 +22,16 @@ config FLASH_BASE_ADDRESS default 0 endif +if NET_L2_ETHERNET + +config NET_TCP_CHECKSUM + default n + +config NET_UDP_CHECKSUM + default n + +endif # NET_L2_ETHERNET + source "soc/arm/nxp_s32/s32k/Kconfig.defconfig.s32k*" endif # SOC_SERIES_S32K_M7