summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-02-24 18:02:37 -0600
committerJohn Klug <john.klug@multitech.com>2017-02-24 18:02:37 -0600
commita5f152a20ca1fee3404d213864b9ba895b15e37b (patch)
tree0d3e19da16f0b738f3beb006883bb57df94d9b12
parent1bdbce58c4c6a06513e614521635a059eb65416c (diff)
downloadmeta-multitech-a5f152a20ca1fee3404d213864b9ba895b15e37b.tar.gz
meta-multitech-a5f152a20ca1fee3404d213864b9ba895b15e37b.tar.bz2
meta-multitech-a5f152a20ca1fee3404d213864b9ba895b15e37b.zip
rename driver level add device tree
-rw-r--r--recipes-kernel/linux/linux-3.12.27/mtcap/linux-3.12-mtcap-device-tree.patch38
-rw-r--r--recipes-kernel/wilc1000/files/wilc1000.conf1
-rw-r--r--recipes-kernel/wilc1000/wilc1000_3.12.27.bb (renamed from recipes-kernel/wilc1000/wilc1000_git.bb)5
3 files changed, 34 insertions, 10 deletions
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 =
++ <AT91_PIOA 4 AT91_PERIPH_GPIO AT91_PINCTRL_PULL_UP_DEGLITCH>; /* 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_git.bb b/recipes-kernel/wilc1000/wilc1000_3.12.27.bb
index 12d3e90..16f3e6a 100644
--- a/recipes-kernel/wilc1000/wilc1000_git.bb
+++ b/recipes-kernel/wilc1000/wilc1000_3.12.27.bb
@@ -8,6 +8,7 @@ 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 \
"
@@ -20,6 +21,10 @@ EXTRA_OEMAKE = '-C ${STAGING_KERNEL_DIR} M=${S} \
'
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"