sunxi: emac changes - move emac into module - add into profiles where appropriate
authorZoltan Herpai <wigyori@uid0.hu>
Sat, 4 Jan 2014 17:33:44 +0000 (17:33 +0000)
committerZoltan Herpai <wigyori@uid0.hu>
Sat, 4 Jan 2014 17:33:44 +0000 (17:33 +0000)
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 39200

target/linux/sunxi/config-3.12
target/linux/sunxi/modules.mk
target/linux/sunxi/profiles/a20-olinuxino.mk
target/linux/sunxi/profiles/cubieboard.mk
target/linux/sunxi/profiles/cubieboard2.mk
target/linux/sunxi/profiles/pcduino.mk

index 4158cf6e2efbf6fb8252381587f43eaa9adf6088..6d97ba0f41e53dae6f2091c8287d2b25913e997a 100644 (file)
@@ -375,7 +375,7 @@ CONFIG_SPARSE_IRQ=y
 # CONFIG_STAGING is not set
 CONFIG_STOP_MACHINE=y
 CONFIG_STRICT_DEVMEM=y
-CONFIG_SUN4I_EMAC=y
+# CONFIG_SUN4I_EMAC is not set
 CONFIG_SUN4I_TIMER=y
 CONFIG_SWP_EMULATE=y
 CONFIG_SYS_SUPPORTS_APM_EMULATION=y
index 1a546770464b73b63ae4c04ff0e5be18b1ee624f..9a4782ddf27464cb02defa9cd5c4a6aee51d7125 100644 (file)
@@ -54,3 +54,15 @@ define KernelPackage/ata-sunxi/description
 endef
 
 $(eval $(call KernelPackage,ata-sunxi))
+
+define KernelPackage/sun4i-emac
+  SUBMENU:=$(NETWORK_DEVICES_MENU)
+  TITLE:=AllWinner EMAC Ethernet support
+  DEPENDS:=@TARGET_sunxi
+  KCONFIG:=CONFIG_SUN4I_EMAC
+  FILES:=$(LINUX_DIR)/drivers/net/ethernet/allwinner/sun4i-emac.ko
+  AUTOLOAD:=$(call AutoProbe,sun4i-emac)
+endef
+
+$(eval $(call KernelPackage,sun4i-emac))
+
index e7de86a5fe76d3edc45ef69a99c85220dcd288b5..576417184b810ccbd63b454f806efe98b06bf288 100644 (file)
@@ -8,7 +8,7 @@
 define Profile/A20-OLinuXino_MICRO
        NAME:=A20 OLinuXino Micro
        PACKAGES:=\
-               uboot-sunxi-A20-OLinuXino_MICRO kmod-ata-sunxi
+               uboot-sunxi-A20-OLinuXino_MICRO kmod-ata-sunxi kmod-sun4i-emac
 endef
 
 define Profile/A20-OLinuXino_MICRO/Description
index 2d4e8c2f9be4f7955189709a6f96a6d63e5f5c19..27db74f2cb94927775a584af7483ddaaa5416319 100644 (file)
@@ -8,7 +8,7 @@
 define Profile/Cubieboard
        NAME:=Cubieboard
        PACKAGES:=\
-               uboot-sunxi-Cubieboard kmod-ata-sunxi
+               uboot-sunxi-Cubieboard kmod-ata-sunxi kmod-sun4i-emac
 endef
 
 define Profile/Cubieboard/Description
index b211c45f885e93943a27dee3ee831b5c97430072..13c29a36beab3cbf895a9ceb719c63128e27b78d 100644 (file)
@@ -8,7 +8,7 @@
 define Profile/Cubieboard2
        NAME:=Cubieboard2
        PACKAGES:=\
-               uboot-sunxi-Cubieboard2 kmod-ata-sunxi
+               uboot-sunxi-Cubieboard2 kmod-ata-sunxi kmod-sun4i-emac
 endef
 
 define Profile/Cubieboard2/Description
index 1f35ddb1b3f8c274851b05b0bcdad7991850a2ca..2be185a2dd44e9969a5c858d2b1a7b4d0c92e88b 100644 (file)
@@ -8,7 +8,7 @@
 define Profile/pcDuino
        NAME:=pcDuino
        PACKAGES:=\
-               uboot-sunxi-pcDuino
+               uboot-sunxi-pcDuino kmod-sun4i-emac
 endef
 
 define Profile/pcDuino/Description