gpio.mk 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. # This is free software, licensed under the GNU General Public License v2.
  2. # See /LICENSE for more information.
  3. #
  4. GPIO_MENU:=GPIO support
  5. define KernelPackage/gpio-amd-fch
  6. SUBMENU:=$(GPIO_MENU)
  7. DEPENDS:=@GPIO_SUPPORT @TARGET_x86
  8. TITLE:=GPIO support for AMD Fusion Controller Hub (G-series SOCs)
  9. KCONFIG:=CONFIG_GPIO_AMD_FCH
  10. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-amd-fch.ko
  11. AUTOLOAD:=$(call AutoLoad,25,gpio-amd-fch,1)
  12. endef
  13. define KernelPackage/gpio-amd-fch/description
  14. This option enables driver for GPIO on AMDs Fusion Controller Hub,
  15. as found on G-series SOCs (eg. GX-412TC)
  16. endef
  17. $(eval $(call KernelPackage,gpio-amd-fch))
  18. define KernelPackage/gpio-beeper
  19. SUBMENU:=$(GPIO_MENU)
  20. TITLE:=GPIO beeper support
  21. DEPENDS:=+kmod-input-core
  22. KCONFIG:= \
  23. CONFIG_INPUT_MISC=y \
  24. CONFIG_INPUT_GPIO_BEEPER
  25. FILES:= \
  26. $(LINUX_DIR)/drivers/input/misc/gpio-beeper.ko
  27. AUTOLOAD:=$(call AutoLoad,50,gpio-beeper)
  28. endef
  29. define KernelPackage/gpio-beeper/description
  30. This enables playing beeps through an GPIO-connected buzzer
  31. endef
  32. $(eval $(call KernelPackage,gpio-beeper))
  33. define KernelPackage/gpio-cascade
  34. SUBMENU:=$(GPIO_MENU)
  35. TITLE:=Generic GPIO cascade
  36. KCONFIG:=CONFIG_GPIO_CASCADE
  37. DEPENDS:=@GPIO_SUPPORT +kmod-mux-core
  38. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-cascade.ko
  39. AUTOLOAD:=$(call AutoLoad,29,gpio-cascade,1)
  40. endef
  41. define KernelPackage/gpio-cascade/description
  42. Kernel module for Generic GPIO cascade
  43. endef
  44. $(eval $(call KernelPackage,gpio-cascade))
  45. define KernelPackage/gpio-f7188x
  46. SUBMENU:=$(GPIO_MENU)
  47. TITLE:=Fintek F718xx/F818xx GPIO Support
  48. DEPENDS:=@GPIO_SUPPORT @TARGET_x86
  49. KCONFIG:=CONFIG_GPIO_F7188X
  50. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-f7188x.ko
  51. AUTOLOAD:=$(call AutoProbe,gpio-f7188x)
  52. endef
  53. define KernelPackage/gpio-f7188x/description
  54. Kernel module for the GPIOs found on many Fintek Super-IO chips.
  55. endef
  56. $(eval $(call KernelPackage,gpio-f7188x))
  57. define KernelPackage/gpio-it87
  58. SUBMENU:=$(GPIO_MENU)
  59. DEPENDS:=@GPIO_SUPPORT @TARGET_x86
  60. TITLE:=GPIO support for IT87xx Super I/O chips
  61. KCONFIG:=CONFIG_GPIO_IT87
  62. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-it87.ko
  63. AUTOLOAD:=$(call AutoLoad,25,gpio-it87,1)
  64. endef
  65. define KernelPackage/gpio-it87/description
  66. This driver is tested with ITE IT8728 and IT8732 Super I/O chips, and
  67. supports the IT8761E, IT8613, IT8620E, and IT8628E Super I/O chips as
  68. well.
  69. endef
  70. $(eval $(call KernelPackage,gpio-it87))
  71. define KernelPackage/gpio-nxp-74hc164
  72. SUBMENU:=$(GPIO_MENU)
  73. TITLE:=NXP 74HC164 GPIO expander support
  74. KCONFIG:=CONFIG_GPIO_74X164
  75. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-74x164.ko
  76. AUTOLOAD:=$(call AutoProbe,gpio-74x164)
  77. endef
  78. define KernelPackage/gpio-nxp-74hc164/description
  79. Kernel module for NXP 74HC164 GPIO expander
  80. endef
  81. $(eval $(call KernelPackage,gpio-nxp-74hc164))
  82. define KernelPackage/gpio-pca953x
  83. SUBMENU:=$(GPIO_MENU)
  84. DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core +kmod-regmap-i2c
  85. TITLE:=PCA95xx, TCA64xx, and MAX7310 I/O ports
  86. KCONFIG:=CONFIG_GPIO_PCA953X \
  87. CONFIG_GPIO_PCA953X_IRQ=y
  88. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pca953x.ko
  89. AUTOLOAD:=$(call AutoLoad,55,gpio-pca953x)
  90. endef
  91. define KernelPackage/gpio-pca953x/description
  92. Kernel module for MAX731{0,2,3,5}, PCA6107, PCA953{4-9}, PCA955{4-7},
  93. PCA957{4,5} and TCA64{08,16} I2C GPIO expanders
  94. endef
  95. $(eval $(call KernelPackage,gpio-pca953x))
  96. define KernelPackage/gpio-pcf857x
  97. SUBMENU:=$(GPIO_MENU)
  98. DEPENDS:=@GPIO_SUPPORT +kmod-i2c-core
  99. TITLE:=PCX857x, PCA967x and MAX732X I2C GPIO expanders
  100. KCONFIG:=CONFIG_GPIO_PCF857X
  101. FILES:=$(LINUX_DIR)/drivers/gpio/gpio-pcf857x.ko
  102. AUTOLOAD:=$(call AutoLoad,55,gpio-pcf857x)
  103. endef
  104. define KernelPackage/gpio-pcf857x/description
  105. Kernel module for PCF857x, PCA{85,96}7x, and MAX732[89] I2C GPIO expanders
  106. endef
  107. $(eval $(call KernelPackage,gpio-pcf857x))
  108. define KernelPackage/gpio-pwm
  109. SUBMENU:=$(GPIO_MENU)
  110. DEPENDS:=@GPIO_SUPPORT @PWM_SUPPORT
  111. TITLE:=PWM GPIO support
  112. KCONFIG:=CONFIG_PWM_GPIO
  113. FILES:=$(LINUX_DIR)/drivers/pwm/pwm-gpio.ko
  114. AUTOLOAD:=$(call AutoProbe,pwm-gpio)
  115. endef
  116. define KernelPackage/gpio-pwm/description
  117. Generic PWM framework driver for software PWM toggling a GPIO pin from
  118. kernel high-resolution timers.
  119. endef
  120. $(eval $(call KernelPackage,gpio-pwm))