[openwrt/openwrt] kernel: armsr: Renesas: RZ: Ethernet module and ttySC0

LEDE Commits lede-commits at lists.infradead.org
Sat Jul 6 09:39:21 PDT 2024


hauke pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/299893c9c90bf0f50eda02632e20ecc9922193a4

commit 299893c9c90bf0f50eda02632e20ecc9922193a4
Author: John Vincent <john.vincent.xa at bp.renesas.com>
AuthorDate: Fri May 31 14:56:24 2024 +0100

    kernel: armsr: Renesas: RZ: Ethernet module and ttySC0
    
    Ethernet module enable for Renesas RZ platform
    inittab fix for ttySC0
    
    Fixes: #15284
    Signed-off-by: John Vincent <john.vincent.xa at bp.renesas.com>
    (cherry picked from commit 531b3f667c40405581a398a9648a0e6c27909a87)
    Link: https://github.com/openwrt/openwrt/pull/15808
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/armsr/base-files/etc/inittab |  1 +
 target/linux/armsr/image/Makefile         |  2 +-
 target/linux/armsr/modules.mk             | 15 +++++++++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/target/linux/armsr/base-files/etc/inittab b/target/linux/armsr/base-files/etc/inittab
index 51832eb775..9c574d8d6c 100644
--- a/target/linux/armsr/base-files/etc/inittab
+++ b/target/linux/armsr/base-files/etc/inittab
@@ -7,3 +7,4 @@ hvc0::askfirst:/usr/libexec/login.sh
 ttymxc0::askfirst:/usr/libexec/login.sh
 ttymxc1::askfirst:/usr/libexec/login.sh
 ttymxc2::askfirst:/usr/libexec/login.sh
+ttySC0::askfirst:/usr/libexec/login.sh
diff --git a/target/linux/armsr/image/Makefile b/target/linux/armsr/image/Makefile
index 1df9657385..21f4c7dc54 100644
--- a/target/linux/armsr/image/Makefile
+++ b/target/linux/armsr/image/Makefile
@@ -112,7 +112,7 @@ define Device/generic
 	kmod-fsl-enetc-net kmod-dwmac-imx kmod-fsl-fec kmod-thunderx-net \
 	kmod-dwmac-rockchip kmod-dwmac-sun8i kmod-phy-aquantia kmod-phy-broadcom \
 	kmod-phy-marvell kmod-phy-marvell-10g kmod-sfp kmod-atlantic \
-	kmod-bcmgenet kmod-octeontx2-net
+	kmod-bcmgenet kmod-octeontx2-net kmod-renesas-net-avb
 endef
 TARGET_DEVICES += generic
 
diff --git a/target/linux/armsr/modules.mk b/target/linux/armsr/modules.mk
index 9c7fe0c04f..5d55ea74cb 100644
--- a/target/linux/armsr/modules.mk
+++ b/target/linux/armsr/modules.mk
@@ -314,6 +314,21 @@ define KernelPackage/octeontx2-net
 endef
 $(eval $(call KernelPackage,octeontx2-net))
 
+define KernelPackage/renesas-net-avb
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=Renesas network drivers
+  DEPENDS:=@(TARGET_armsr_armv8) +kmod-phylink +kmod-mii +kmod-ptp +kmod-libphy +kmod-mdio-gpio
+  KCONFIG:=CONFIG_RAVB
+  FILES=$(LINUX_DIR)/drivers/net/ethernet/renesas/ravb.ko
+  AUTOLOAD:=$(call AutoProbe,ravb)
+endef
+ 
+define KernelPackage/renesas-net-avb/description
+  Support Renesas RZ platform Ethernet module
+endef
+ 
+$(eval $(call KernelPackage,renesas-net-avb))
+
 define KernelPackage/wdt-sp805
   SUBMENU:=$(OTHER_MENU)
   TITLE:=ARM SP805 Watchdog




More information about the lede-commits mailing list