From a5f152a20ca1fee3404d213864b9ba895b15e37b Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 24 Feb 2017 18:02:37 -0600 Subject: rename driver level add device tree --- .../mtcap/linux-3.12-mtcap-device-tree.patch | 38 ++++++++++++++++------ recipes-kernel/wilc1000/files/wilc1000.conf | 1 + recipes-kernel/wilc1000/wilc1000_3.12.27.bb | 30 +++++++++++++++++ recipes-kernel/wilc1000/wilc1000_git.bb | 25 -------------- 4 files changed, 59 insertions(+), 35 deletions(-) create mode 100644 recipes-kernel/wilc1000/files/wilc1000.conf create mode 100644 recipes-kernel/wilc1000/wilc1000_3.12.27.bb delete mode 100644 recipes-kernel/wilc1000/wilc1000_git.bb diff --git a/recipes-kernel/linux/linux-3.12.27/mtcap/linux-3.12-mtcap-device-tree.patch b/recipes-kernel/linux/linux-3.12.27/mtcap/linux-3.12-mtcap-device-tree.patch index 474f606..9c00b0f 100644 --- a/recipes-kernel/linux/linux-3.12.27/mtcap/linux-3.12-mtcap-device-tree.patch +++ b/recipes-kernel/linux/linux-3.12.27/mtcap/linux-3.12-mtcap-device-tree.patch @@ -1,8 +1,7 @@ -Index: linux-3.12.27/arch/arm/boot/dts/mtcap.dts -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-3.12.27/arch/arm/boot/dts/mtcap.dts 2015-01-13 13:58:20.766078428 -0600 -@@ -0,0 +1,210 @@ +diff -Naru linux-3.12.27.orig/arch/arm/boot/dts/mtcap.dts linux-3.12.27/arch/arm/boot/dts/mtcap.dts +--- linux-3.12.27.orig/arch/arm/boot/dts/mtcap.dts 1969-12-31 18:00:00.000000000 -0600 ++++ linux-3.12.27/arch/arm/boot/dts/mtcap.dts 2017-02-24 14:31:20.750798116 -0600 +@@ -0,0 +1,230 @@ +/* + * DTS file for Multi-Tech Systems MTCAP Hardware + */ @@ -44,7 +43,27 @@ Index: linux-3.12.27/arch/arm/boot/dts/mtcap.dts + status = "okay"; + }; + ++ mmc0: mmc@f0008000 { ++ pinctrl-names = "default"; ++ pinctrl-0 = < ++ /* &pinctrl_board_mmc0 */ ++ &pinctrl_mmc0_slot0_clk_cmd_dat0 ++ &pinctrl_mmc0_slot0_dat1_3>; ++ status = "okay"; ++ slot@0 { ++ reg = <0>; ++ bus-width = <4>; ++ }; ++ }; ++ + pinctrl@fffff400 { ++ mmc0 { ++ pinctrl_board_mmc0: mmc0-board { ++ atmel,pins = ++ ; /* PA4 gpio pin pull up and deglitch - WIFI enable */ ++ }; ++ }; ++ + nand { + pinctrl_nand: nand-0 { + atmel,pins = @@ -213,10 +232,9 @@ Index: linux-3.12.27/arch/arm/boot/dts/mtcap.dts + }; + }; +}; -Index: linux-3.12.27/arch/arm/boot/dts/Makefile -=================================================================== ---- linux-3.12.27.orig/arch/arm/boot/dts/Makefile 2014-08-26 07:12:26.000000000 -0500 -+++ linux-3.12.27/arch/arm/boot/dts/Makefile 2015-01-13 13:58:20.766078428 -0600 +diff -Naru linux-3.12.27.orig/arch/arm/boot/dts/Makefile linux-3.12.27/arch/arm/boot/dts/Makefile +--- linux-3.12.27.orig/arch/arm/boot/dts/Makefile 2017-02-24 14:25:30.983064241 -0600 ++++ linux-3.12.27/arch/arm/boot/dts/Makefile 2017-02-24 14:26:50.424821432 -0600 @@ -35,6 +35,7 @@ dtb-$(CONFIG_ARCH_AT91) += at91sam9g35ek.dtb dtb-$(CONFIG_ARCH_AT91) += at91sam9x25ek.dtb @@ -224,4 +242,4 @@ Index: linux-3.12.27/arch/arm/boot/dts/Makefile +dtb-$(CONFIG_ARCH_AT91) += mtcap.dtb # sama5d3 dtb-$(CONFIG_ARCH_AT91) += sama5d31ek.dtb - dtb-$(CONFIG_ARCH_AT91) += sama5d33ek.dtb + dtb-$(CONFIG_ARCH_AT91) += sama5d33ek.dtb \ No newline at end of file diff --git a/recipes-kernel/wilc1000/files/wilc1000.conf b/recipes-kernel/wilc1000/files/wilc1000.conf new file mode 100644 index 0000000..250e093 --- /dev/null +++ b/recipes-kernel/wilc1000/files/wilc1000.conf @@ -0,0 +1 @@ +blacklist atmel_mci diff --git a/recipes-kernel/wilc1000/wilc1000_3.12.27.bb b/recipes-kernel/wilc1000/wilc1000_3.12.27.bb new file mode 100644 index 0000000..16f3e6a --- /dev/null +++ b/recipes-kernel/wilc1000/wilc1000_3.12.27.bb @@ -0,0 +1,30 @@ +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +inherit module + +PV = "3.18" +KBRANCH = "kernel-3.18" +SRCREV = "${AUTOREV}" +SRC_URI = "git://github.com/linux4sc/staging.git;protocol=git;branch=${KBRANCH} \ + file://wilcp1000_3.18_to_3.12_kernel.patch \ + file://wilc1000.conf \ + " + + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE = '-C ${STAGING_KERNEL_DIR} M=${S} \ + CONFIG_ATMEL_SMARTCONNECT=y \ + CONFIG_WILC1000=m \ + CONFIG_WILC1000_SDIO=m \ + ' + +do_install() { + echo PN is ${PN} + install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/atmel/wilc1000 + install -m 0644 ${S}/*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/atmel/wilc1000 + install -d ${D}${sysconfdir}/modprobe.d + install -m 0644 ${WORKDIR}/wilc1000.conf ${D}${sysconfdir}/modprobe.d +} +FILES_kernel-module-${PN} += "${sysconfdir}/modprobe.d/wilc1000.conf" diff --git a/recipes-kernel/wilc1000/wilc1000_git.bb b/recipes-kernel/wilc1000/wilc1000_git.bb deleted file mode 100644 index 12d3e90..0000000 --- a/recipes-kernel/wilc1000/wilc1000_git.bb +++ /dev/null @@ -1,25 +0,0 @@ -LICENSE = "GPLv2+" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" - -inherit module - -PV = "3.18" -KBRANCH = "kernel-3.18" -SRCREV = "${AUTOREV}" -SRC_URI = "git://github.com/linux4sc/staging.git;protocol=git;branch=${KBRANCH} \ - file://wilcp1000_3.18_to_3.12_kernel.patch \ - " - - -S = "${WORKDIR}/git" - -EXTRA_OEMAKE = '-C ${STAGING_KERNEL_DIR} M=${S} \ - CONFIG_ATMEL_SMARTCONNECT=y \ - CONFIG_WILC1000=m \ - CONFIG_WILC1000_SDIO=m \ - ' - -do_install() { - install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/atmel/wilc1000 - install -m 0644 ${S}/*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/atmel/wilc1000 -} -- cgit v1.2.3