From 941e978370cc714089acda9bf9c0f5672a7182a6 Mon Sep 17 00:00:00 2001 From: Sergey Matyukevich Date: Tue, 17 May 2016 21:59:36 +0300 Subject: [PATCH] Add support for pcduino devices Add support for LinkSprite pcDuino1 device and its flavors including pcduino-lite and pcduino-lite-wifi: - add pcduino machine description - enable CONFIG_SPI_SPIDEV in upstream kernel defconfig to provide simple userspace access to SPI devices on Arduino shields Signed-off-by: Sergey Matyukevich --- conf/machine/pcduino.conf | 9 +++++++++ recipes-kernel/linux/linux/defconfig | 1 + 2 files changed, 10 insertions(+) create mode 100644 conf/machine/pcduino.conf diff --git a/conf/machine/pcduino.conf b/conf/machine/pcduino.conf new file mode 100644 index 0000000..8adb51e --- /dev/null +++ b/conf/machine/pcduino.conf @@ -0,0 +1,9 @@ +#@TYPE: Machine +#@NAME: pcduino-lite-wifi +#@DESCRIPTION: Machine configuration for the pcDuino-Lite-Wifi, base on allwinner a10 CPU + +require conf/machine/include/sun4i.inc + +KERNEL_DEVICETREE = "sun4i-a10-pcduino.dtb" +UBOOT_MACHINE = "Linksprite_pcDuino_defconfig" +SUNXI_FEX_FILE = "sys_config/a10/pcduino.fex" diff --git a/recipes-kernel/linux/linux/defconfig b/recipes-kernel/linux/linux/defconfig index c1737b9..73192d8 100644 --- a/recipes-kernel/linux/linux/defconfig +++ b/recipes-kernel/linux/linux/defconfig @@ -504,6 +504,7 @@ CONFIG_I2C_CHARDEV=y CONFIG_I2C_MV64XXX=y CONFIG_I2C_SUN6I_P2WI=y CONFIG_SPI=y +CONFIG_SPI_SPIDEV=y CONFIG_SPI_SUN4I=y CONFIG_SPI_SUN6I=y CONFIG_GPIO_SYSFS=y