Ignore:
Timestamp:
2011-09-30T14:55:26+02:00 (5 years ago)
Author:
florian
Message:

[package] add support for more i2c muxes

This patch should bring support for several kernel modules related to
I2C to openwrt, which are existing for several years now. Namely there
is the i2c-tiny-usb bus driver, to hook up an I2C bus on any device with
usb support (prevent voiding warranty when opening and soldering).
Second, there is support for the i2c-mux driver and pca954x as a I2C
switch driver.
Finally there is support for common I2C gpio expander driver modules
pca953x and pcf857x. They work without providing platform data recently
(can be instantiated at runtime).

Signed-off-by: Hartmut Knaack <knaack.h@…>

File:
1 edited

Legend:

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

    r26373 r28334  
    214214endef 
    215215 
     216 
     217I2C_TINY_USB_MODULES:= \ 
     218  CONFIG_I2C_TINY_USB:drivers/i2c/busses/i2c-tiny-usb 
     219 
     220define KernelPackage/i2c-tiny-usb 
     221  $(call i2c_defaults,$(I2C_TINY_USB_MODULES),59) 
     222  TITLE:=I2C Tiny USB adaptor 
     223  DEPENDS:=@USB_SUPPORT kmod-i2c-core 
     224endef 
     225 
     226define KernelPackage/i2c-tiny-usb/description 
     227 Kernel module for the I2C Tiny USB adaptor developed 
     228 by Till Harbaum (http://www.harbaum.org/till/i2c_tiny_usb). 
     229endef 
     230 
     231$(eval $(call KernelPackage,i2c-tiny-usb)) 
     232 
     233I2C_MUX_MODULES:= \ 
     234  CONFIG_I2C_MUX:drivers/i2c/i2c-mux 
     235 
     236define KernelPackage/i2c-mux 
     237  $(call i2c_defaults,$(I2C_MUX_MODULES),51) 
     238  TITLE:=I2C bus multiplexing support 
     239  DEPENDS:=kmod-i2c-core 
     240endef 
     241 
     242define KernelPackage/i2c-mux/description 
     243 Kernel modules for I2C bus multiplexing support. 
     244endef 
     245 
     246$(eval $(call KernelPackage,i2c-mux)) 
     247 
     248I2C_MUX_PCA954x_MODULES:= \ 
     249  CONFIG_I2C_MUX_PCA954x:drivers/i2c/muxes/pca954x 
     250 
     251define KernelPackage/i2c-mux-pca954x 
     252  $(call i2c_defaults,$(I2C_MUX_PCA954x_MODULES),51) 
     253  TITLE:=Philips PCA954x I2C mux/switches 
     254  DEPENDS:=kmod-i2c-mux 
     255endef 
     256 
     257define KernelPackage/i2c-mux-pca954x/description 
     258 Kernel modules for PCA954x I2C bus mux/switching devices. 
     259endef 
     260 
     261$(eval $(call KernelPackage,i2c-mux-pca954x)) 
     262## Support for pca954x seems to be in kernel since 2.6.36 
     263 
     264I2C_MUX_PCA9541_MODULES:= \ 
     265  CONFIG_I2C_MUX_PCA9541:drivers/i2c/muxes/pca9541 
     266 
     267define KernelPackage/i2c-mux-pca9541 
     268  $(call i2c_defaults,$(I2C_MUX_PCA9541_MODULES),51) 
     269  TITLE:=Philips PCA9541 I2C mux/switches 
     270  DEPENDS:=kmod-i2c-mux 
     271endef 
     272 
     273define KernelPackage/i2c-mux-pca9541/description 
     274 Kernel modules for PCA9541 I2C bus mux/switching devices. 
     275endef 
     276 
     277$(eval $(call KernelPackage,i2c-mux-pca9541)) 
     278 
     279GPIO_PCA953X_MODULES:= \ 
     280  CONFIG_GPIO_PCA953X:drivers/gpio/pca953x 
     281 
     282define KernelPackage/pca953x 
     283  $(call i2c_defaults,$(GPIO_PCA953X_MODULES),51) 
     284  TITLE:=Philips PCA953x I2C GPIO extenders 
     285  DEPENDS:=kmod-i2c-core 
     286endef 
     287 
     288define KernelPackage/pca953x/description 
     289 Kernel modules for PCA953x I2C GPIO extenders. 
     290endef 
     291 
     292$(eval $(call KernelPackage,pca953x)) 
     293 
     294GPIO_PCF857X_MODULES:= \ 
     295  CONFIG_GPIO_PCF857X:drivers/gpio/pcf857x 
     296 
     297define KernelPackage/pcf857x 
     298  $(call i2c_defaults,$(GPIO_PCF857X_MODULES),51) 
     299  TITLE:=Philips PCF857x I2C GPIO extenders 
     300  DEPENDS:=kmod-i2c-core 
     301endef 
     302 
     303define KernelPackage/pcf857x/description 
     304 Kernel modules for PCF857x I2C GPIO extenders. 
     305endef 
     306 
     307$(eval $(call KernelPackage,pcf857x)) 
    216308$(eval $(call KernelPackage,octeon-i2c)) 
Note: See TracChangeset for help on using the changeset viewer.