X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/a1856d073188fdc22c4b8ae2d7b605facda15c43..d048144e645ebf57e2d364d6c7c4b6f5c3ac2ce8:/target/linux/generic-2.6/patches-2.6.25/921-gpio_spi_driver.patch diff --git a/target/linux/generic-2.6/patches-2.6.25/921-gpio_spi_driver.patch b/target/linux/generic-2.6/patches-2.6.25/921-gpio_spi_driver.patch index 264386f33..a80482842 100644 --- a/target/linux/generic-2.6/patches-2.6.25/921-gpio_spi_driver.patch +++ b/target/linux/generic-2.6/patches-2.6.25/921-gpio_spi_driver.patch @@ -1,13 +1,10 @@ -Index: linux-2.6.25.10/include/linux/spi/spi_gpio.h -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.6.25.10/include/linux/spi/spi_gpio.h 2008-07-18 18:19:56.000000000 +0200 -@@ -0,0 +1,67 @@ +--- /dev/null ++++ b/include/linux/spi/spi_gpio.h +@@ -0,0 +1,72 @@ +/* + * spi_gpio interface to platform code + * + * Copyright (c) 2008 Piotr Skamruk -+ * Copyright (c) 2008 Michael Buesch + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as @@ -20,7 +17,9 @@ Index: linux-2.6.25.10/include/linux/spi/spi_gpio.h +#include + + -+/** struct spi_gpio_platform_data - Data definitions for a SPI-GPIO device. ++/** ++ * struct spi_gpio_platform_data - Data definitions for a SPI-GPIO device. ++ * + * This structure holds information about a GPIO-based SPI device. + * + * @pin_clk: The GPIO pin number of the CLOCK pin. @@ -56,13 +55,17 @@ Index: linux-2.6.25.10/include/linux/spi/spi_gpio.h + void *boardinfo_setup_data; +}; + -+/** SPI_GPIO_PLATDEV_NAME - The platform device name string. ++/** ++ * SPI_GPIO_PLATDEV_NAME - The platform device name string. ++ * + * The name string that has to be used for platform_device_alloc + * when allocating a spi-gpio device. + */ +#define SPI_GPIO_PLATDEV_NAME "spi-gpio" + -+/** spi_gpio_next_id - Get another platform device ID number. ++/** ++ * spi_gpio_next_id - Get another platform device ID number. ++ * + * This returns the next platform device ID number that has to be used + * for platform_device_alloc. The ID is opaque and should not be used for + * anything else. @@ -70,16 +73,13 @@ Index: linux-2.6.25.10/include/linux/spi/spi_gpio.h +int spi_gpio_next_id(void); + +#endif /* _LINUX_SPI_SPI_GPIO */ -Index: linux-2.6.25.10/drivers/spi/spi_gpio.c -=================================================================== ---- /dev/null 1970-01-01 00:00:00.000000000 +0000 -+++ linux-2.6.25.10/drivers/spi/spi_gpio.c 2008-07-18 18:19:56.000000000 +0200 -@@ -0,0 +1,251 @@ +--- /dev/null ++++ b/drivers/spi/spi_gpio.c +@@ -0,0 +1,249 @@ +/* + * Bitbanging SPI bus driver using GPIO API + * + * Copyright (c) 2008 Piotr Skamruk -+ * Copyright (c) 2008 Michael Buesch + * + * based on spi_s3c2410_gpio.c + * Copyright (c) 2006 Ben Dooks @@ -323,13 +323,10 @@ Index: linux-2.6.25.10/drivers/spi/spi_gpio.c +module_exit(spi_gpio_exit); + +MODULE_AUTHOR("Piot Skamruk "); -+MODULE_AUTHOR("Michael Buesch"); +MODULE_DESCRIPTION("Platform independent GPIO bitbanging SPI driver"); +MODULE_LICENSE("GPL v2"); -Index: linux-2.6.25.10/drivers/spi/Kconfig -=================================================================== ---- linux-2.6.25.10.orig/drivers/spi/Kconfig 2008-07-18 18:19:43.000000000 +0200 -+++ linux-2.6.25.10/drivers/spi/Kconfig 2008-07-18 18:19:56.000000000 +0200 +--- a/drivers/spi/Kconfig ++++ b/drivers/spi/Kconfig @@ -100,6 +100,19 @@ config SPI_BUTTERFLY inexpensive battery powered microcontroller evaluation board. This same cable can be used to flash new firmware. @@ -341,7 +338,7 @@ Index: linux-2.6.25.10/drivers/spi/Kconfig + help + This is a platform driver that can be used for bitbanging + an SPI bus over GPIO pins. -+ Select this, if you have any SPI device that is connected via ++ Select this if you have any SPI device that is connected via + GPIO pins. + The module will be called spi_gpio. + @@ -350,10 +347,8 @@ Index: linux-2.6.25.10/drivers/spi/Kconfig config SPI_IMX tristate "Freescale iMX SPI controller" depends on SPI_MASTER && ARCH_IMX && EXPERIMENTAL -Index: linux-2.6.25.10/drivers/spi/Makefile -=================================================================== ---- linux-2.6.25.10.orig/drivers/spi/Makefile 2008-07-18 18:19:43.000000000 +0200 -+++ linux-2.6.25.10/drivers/spi/Makefile 2008-07-18 18:19:56.000000000 +0200 +--- a/drivers/spi/Makefile ++++ b/drivers/spi/Makefile @@ -16,6 +16,7 @@ obj-$(CONFIG_SPI_BFIN) += spi_bfin5xx. obj-$(CONFIG_SPI_BITBANG) += spi_bitbang.o obj-$(CONFIG_SPI_AU1550) += au1550_spi.o @@ -362,19 +357,3 @@ Index: linux-2.6.25.10/drivers/spi/Makefile obj-$(CONFIG_SPI_IMX) += spi_imx.o obj-$(CONFIG_SPI_LM70_LLP) += spi_lm70llp.o obj-$(CONFIG_SPI_PXA2XX) += pxa2xx_spi.o -Index: linux-2.6.25.10/MAINTAINERS -=================================================================== ---- linux-2.6.25.10.orig/MAINTAINERS 2008-07-03 05:46:47.000000000 +0200 -+++ linux-2.6.25.10/MAINTAINERS 2008-07-18 18:20:28.000000000 +0200 -@@ -3685,6 +3685,11 @@ M: dbrownell@users.sourceforge.net - L: spi-devel-general@lists.sourceforge.net - S: Maintained - -+SPI GPIO MASTER DRIVER -+P: Michael Buesch -+M: mb@bu3sch.de -+S: Maintained -+ - STABLE BRANCH: - P: Greg Kroah-Hartman - M: greg@kroah.com