Add VIA VX855 multi-function device support
PATCH 1/1 Add VIA VX855 multi-function device support
From: Harald Welte <[email protected]>
Initially we add support for the south bridge GPIO lines via GPIOLIB as well as some skeleton for the SPI controllers.
This hardware can be found in the OLPC XO-1.5 laptop.
---
Resending after 1 week with no feedback.
drivers/mfd/Kconfig | 27 ++++ drivers/mfd/Makefile | 3 + drivers/mfd/vx855-core.c | 132 +++++++++++++++++ drivers/mfd/vx855-gpio.c | 350 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/mfd/vx855-spi.c | 302 +++++++++++++++++++++++++++++++++++++++ drivers/mfd/vx855.h | 16 ++ 6 files changed, 830 insertions(+), 0 deletions(-) create mode 100644 drivers/mfd/vx855-core.c create mode 100644 drivers/mfd/vx855-gpio.c create mode 100644 drivers/mfd/vx855-spi.c create mode 100644 drivers/mfd/vx855.h
drivers/mfd/Kconfig +27 -0
@@ -555,6 +555,33 @@ config MFD_TPS6586X This driver can also be built as a module. If so, the module will be called tps6586x. +config MFD_VX855 + tristate "Support for VIA VX855/VX875 integrated south bridge" + depends on X86 + help + Say yes here to enable support for various functions of the + VIA VX855/VX875 south bridge. + +config MFD_VX855_GPIO + tristate "Support for VIA VX855/VX875 GPIO" + depends on GPIOLIB + help + Support access to the VX855/VX975 GPIO lines through the gpio library. + + This driver provides common support for accessing the device, + additional drivers must be enabled in order to use the + functionality of the device. + +config MFD_VX855_SPI + tristate "Support for VIA VX855/VX875 SPI" + depends on SPI_MASTER + help + Support access to the SPI bus on the VX855/VX875 south bridge. + + This driver provides common support for accessing the device, + additional drivers must be enabled in order to use the + functionality of the device. + endif # MFD_SUPPORT menu "Multimedia Capabilities Port drivers"
drivers/mfd/Makefile +3 -0
@@ -76,3 +76,6 @@ obj-$(CONFIG_MFD_RDC321X) += rdc321x-southbridge.o obj-$(CONFIG_MFD_JANZ_CMODIO) += janz-cmodio.o obj-$(CONFIG_MFD_JZ4740_ADC) += jz4740-adc.o obj-$(CONFIG_MFD_TPS6586X) += tps6586x.o +obj-$(CONFIG_MFD_VX855) += vx855-core.o +obj-$(CONFIG_MFD_VX855_GPIO) += vx855-gpio.o +obj-$(CONFIG_MFD_VX855_SPI) += vx855-spi.o
drivers/mfd/vx855-core.c new file +132 -0
132 lines not on this page · raw message
drivers/mfd/vx855-gpio.c new file +350 -0
350 lines not on this page · raw message
drivers/mfd/vx855-spi.c new file +302 -0
302 lines not on this page · raw message
drivers/mfd/vx855.h new file +16 -0
@@ -0,0 +1,16 @@ +#ifndef _VX855_H +#define _VX855_H + +struct vx855 { +spinlock_t lock; +struct pci_dev *pdev; +struct platform_device *gpio_pdev; +struct platform_device *spi_pdev; +struct platform_device *i2c_pdev; +}; + +struct vx855_subdev_pdata { +struct vx855 *vx855; +}; + +#endif /* _VX855_H */
Signature · 1 line
1.7.2.2
Hi Daniel,
Quoted 2 lines
Initially we add support for the south bridge GPIO lines via GPIOLIB as well as some skeleton for the SPI controllers.
I just want to say that I'm very happy with you taking the VX855 patches forward. Thanks a lot.
This is definitely all Acked-by me (which should be obvious given that I'm the original author of the code) ;)
Signature · 4 lines
- Harald Welte <[email protected]> http://laforge.gnumonks.org/ ============================================================================ "Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)