Changeset 12133


Ignore:
Timestamp:
2008-08-05T11:52:23+02:00 (10 years ago)
Author:
juhosg
Message:

[kernel] modules/gpio_dev: move to drivers/char/ on older kernels as well, and create a package for it

Location:
trunk
Files:
4 deleted
7 edited
4 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/package/kernel/modules/other.mk

    r12001 r12133  
    433433 
    434434 
     435define KernelPackage/gpio-dev 
     436  SUBMENU:=$(OTHER_MENU) 
     437  TITLE:=Generic GPIO char device support 
     438  DEPENDS:=@GPIO_SUPPORT 
     439  KCONFIG:=CONFIG_GPIO_DEVICE 
     440  FILES:=$(LINUX_DIR)/drivers/char/gpio_dev.$(LINUX_KMOD_SUFFIX) 
     441  AUTOLOAD:=$(call AutoLoad,40,gpio_dev) 
     442endef 
     443 
     444define KernelPackage/gpio-dev/description 
     445  Kernel module to allows control of GPIO pins using a character device. 
     446endef 
     447 
     448$(eval $(call KernelPackage,gpio-dev)) 
     449 
     450 
    435451define KernelPackage/nsc-gpio 
    436452  SUBMENU:=$(OTHER_MENU) 
  • trunk/target/linux/generic-2.6/config-2.6.23

    r12063 r12133  
    356356CONFIG_GENERIC_TIME=y 
    357357# CONFIG_GFS2_FS is not set 
     358CONFIG_GPIO_DEVICE=m 
    358359# CONFIG_HAMACHI is not set 
    359360CONFIG_HAMRADIO=y 
     
    17551756CONFIG_ZONE_DMA=y 
    17561757CONFIG_ZONE_DMA_FLAG=1 
    1757 # CONFIG_GPIO_DEVICE is not set 
  • trunk/target/linux/generic-2.6/config-2.6.24

    r12063 r12133  
    366366CONFIG_GENERIC_TIME=y 
    367367# CONFIG_GFS2_FS is not set 
     368CONFIG_GPIO_DEVICE=m 
    368369# CONFIG_HAMACHI is not set 
    369370CONFIG_HAMRADIO=y 
     
    18071808CONFIG_ZONE_DMA=y 
    18081809CONFIG_ZONE_DMA_FLAG=1 
    1809 # CONFIG_GPIO_DEVICE is not set 
  • trunk/target/linux/generic-2.6/config-2.6.25

    r12063 r12133  
    376376CONFIG_GENERIC_TIME=y 
    377377# CONFIG_GFS2_FS is not set 
     378CONFIG_GPIO_DEVICE=m 
    378379# CONFIG_GROUP_SCHED is not set 
    379380# CONFIG_HAMACHI is not set 
     
    18571858CONFIG_ZONE_DMA=y 
    18581859CONFIG_ZONE_DMA_FLAG=1 
    1859 # CONFIG_GPIO_DEVICE is not set 
  • trunk/target/linux/generic-2.6/config-2.6.26

    r12117 r12133  
    388388CONFIG_GENERIC_TIME=y 
    389389# CONFIG_GFS2_FS is not set 
     390CONFIG_GPIO_DEVICE=m 
    390391# CONFIG_GROUP_SCHED is not set 
    391392# CONFIG_HAMACHI is not set 
     
    19011902CONFIG_ZONE_DMA=y 
    19021903CONFIG_ZONE_DMA_FLAG=1 
    1903 # CONFIG_GPIO_DEVICE is not set 
  • trunk/target/linux/generic-2.6/config-default

    r12063 r12133  
    328328CONFIG_GENERIC_TIME=y 
    329329# CONFIG_GFS2_FS is not set 
     330CONFIG_GPIO_DEVICE=m 
    330331# CONFIG_HAMACHI is not set 
    331332CONFIG_HAMRADIO=y 
  • trunk/target/linux/generic-2.6/patches-2.6.23/420-gpiodev.patch

    r12121 r12133  
    11--- a/drivers/char/Kconfig 
    22+++ b/drivers/char/Kconfig 
    3 @@ -955,6 +955,13 @@ 
     3@@ -970,6 +970,13 @@ 
    44  
    55          If compiled as a module, it will be called cs5535_gpio. 
     
    1717--- a/drivers/char/Makefile 
    1818+++ b/drivers/char/Makefile 
    19 @@ -94,6 +94,7 @@ 
     19@@ -93,6 +93,7 @@ 
    2020 obj-$(CONFIG_PC8736x_GPIO)     += pc8736x_gpio.o 
    2121 obj-$(CONFIG_NSC_GPIO)         += nsc_gpio.o 
  • trunk/target/linux/generic-2.6/patches-2.6.24/420-gpiodev.patch

    r12121 r12133  
    11--- a/drivers/char/Kconfig 
    22+++ b/drivers/char/Kconfig 
    3 @@ -955,6 +955,13 @@ 
     3@@ -946,6 +946,13 @@ 
    44  
    55          If compiled as a module, it will be called cs5535_gpio. 
     
    1717--- a/drivers/char/Makefile 
    1818+++ b/drivers/char/Makefile 
    19 @@ -94,6 +94,7 @@ 
     19@@ -93,6 +93,7 @@ 
    2020 obj-$(CONFIG_PC8736x_GPIO)     += pc8736x_gpio.o 
    2121 obj-$(CONFIG_NSC_GPIO)         += nsc_gpio.o 
  • trunk/target/linux/generic-2.6/patches/420-gpiodev.patch

    r12121 r12133  
    11--- a/drivers/char/Kconfig 
    22+++ b/drivers/char/Kconfig 
    3 @@ -955,6 +955,13 @@ 
     3@@ -984,6 +984,13 @@ 
    44  
    55          If compiled as a module, it will be called cs5535_gpio. 
     
    1717--- a/drivers/char/Makefile 
    1818+++ b/drivers/char/Makefile 
    19 @@ -94,6 +94,7 @@ 
     19@@ -90,6 +90,7 @@ 
    2020 obj-$(CONFIG_PC8736x_GPIO)     += pc8736x_gpio.o 
    2121 obj-$(CONFIG_NSC_GPIO)         += nsc_gpio.o 
     
    2323+obj-$(CONFIG_GPIO_DEVICE)      += gpio_dev.o 
    2424 obj-$(CONFIG_GPIO_VR41XX)      += vr41xx_giu.o 
    25  obj-$(CONFIG_GPIO_TB0219)      += tb0219.o 
     25 obj-$(CONFIG_TANBAC_TB0219)    += tb0219.o 
    2626 obj-$(CONFIG_TELCLOCK)         += tlclk.o 
  • trunk/target/linux/pxa/patches-2.6.21/011-proc-gpio.patch

    r11209 r12133  
    1 Index: linux-2.6.21.7/arch/arm/Kconfig 
    2 =================================================================== 
    3 --- linux-2.6.21.7.orig/arch/arm/Kconfig 
    4 +++ linux-2.6.21.7/arch/arm/Kconfig 
    5 @@ -505,6 +505,8 @@ config PCI_HOST_VIA82C505 
     1--- a/arch/arm/Kconfig 
     2+++ b/arch/arm/Kconfig 
     3@@ -505,6 +505,8 @@ 
    64        depends on PCI && ARCH_SHARK 
    75        default y 
     
    1210  
    1311 source "drivers/pcmcia/Kconfig" 
    14 Index: linux-2.6.21.7/drivers/Makefile 
    15 =================================================================== 
    16 --- linux-2.6.21.7.orig/drivers/Makefile 
    17 +++ linux-2.6.21.7/drivers/Makefile 
    18 @@ -81,3 +81,4 @@ obj-$(CONFIG_GENERIC_TIME)    += clocksourc 
     12--- a/drivers/Makefile 
     13+++ b/drivers/Makefile 
     14@@ -81,3 +81,4 @@ 
    1915 obj-$(CONFIG_DMA_ENGINE)       += dma/ 
    2016 obj-$(CONFIG_HID)              += hid/ 
    2117 obj-$(CONFIG_PPC_PS3)          += ps3/ 
    2218+obj-$(CONFIG_PROC_GPIO)                += gpio/ 
    23 Index: linux-2.6.21.7/drivers/gpio/Kconfig 
    24 =================================================================== 
    25 --- linux-2.6.21.7.orig/drivers/gpio/Kconfig 
    26 +++ linux-2.6.21.7/drivers/gpio/Kconfig 
    27 @@ -2,14 +2,27 @@ menuconfig NEW_GPIO 
    28         bool "GPIO Support" 
    29         depends on GENERIC_GPIO 
    30         help 
    31 -         Say Y to enable Linux GPIO device support.  This allows control of  
    32 -         GPIO pins using a character device  
    33 +         Say Y to enable Linux GPIO device support.  This allows control of 
    34 +         GPIO pins using a character device 
    35   
    36  if NEW_GPIO 
    37   
    38  config GPIO_DEVICE 
    39         tristate "GPIO device support" 
    40         help 
    41 -         This option enables the gpio character device  
    42 +         This option enables the gpio character device 
    43   
    44  endif # NEW_GPIO 
    45 + 
     19--- /dev/null 
     20+++ b/drivers/gpio/Kconfig 
     21@@ -0,0 +1,13 @@ 
    4622+config PROC_GPIO 
    4723+       tristate "GPIO /proc interface" 
     
    5632+       help 
    5733+         This enables printk logging of activity done through /proc/gpio 
    58 Index: linux-2.6.21.7/drivers/gpio/Makefile 
    59 =================================================================== 
    60 --- linux-2.6.21.7.orig/drivers/gpio/Makefile 
    61 +++ linux-2.6.21.7/drivers/gpio/Makefile 
    62 @@ -1 +1,4 @@ 
    63  obj-$(CONFIG_GPIO_DEVICE)      += gpio_dev.o 
    64 + 
     34+ 
     35--- /dev/null 
     36+++ b/drivers/gpio/Makefile 
     37@@ -0,0 +1,2 @@ 
    6538+# Expose GPIOs under /proc 
    6639+obj-$(CONFIG_PROC_GPIO)                += proc_gpio.o 
    67 Index: linux-2.6.21.7/drivers/gpio/proc_gpio.c 
    68 =================================================================== 
    6940--- /dev/null 
    70 +++ linux-2.6.21.7/drivers/gpio/proc_gpio.c 
     41+++ b/drivers/gpio/proc_gpio.c 
    7142@@ -0,0 +1,276 @@ 
    7243+/* 
Note: See TracChangeset for help on using the changeset viewer.