summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'for-next/remove-fsf-address'Sascha Hauer2012-10-035-20/+0
|\ | | | | | | | | | | Conflicts: drivers/net/miidev.c include/miidev.h
| * Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-175-20/+0
| | | | | | | | | | | | | | The FSF address has changed in the past. Instead of updating it each time the address changes, just drop it completely treewide. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mfd mc13xxx: Add devicetree supportSascha Hauer2012-09-231-0/+12
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | I2C: Put I2C devices on their own busSascha Hauer2012-09-148-9/+9
| | | | | | | | | | | | | | | | This patch adds a I2C bus on which the I2C devices and drivers register. This makes it cleaner as I2C devices won't accidently end up probed by a platform_device driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | SPI: Put SPI devices on their own busSascha Hauer2012-09-142-2/+2
| | | | | | | | | | | | | | | | | | This patch adds a SPI bus on which the SPI devices and drivers register. This makes it cleaner as SPI devices won't accidently end up probed by a platform_device driver. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* | mfd mc34708: Separate I2C and SPI probeSascha Hauer2012-09-141-10/+19
| | | | | | | | | | | | | | | | | | | | Upcoming patches will put I2C/SPI on their own busses with spi_register_driver / i2c_register_driver which will only be available if the subsystem is enabled. We could provide static inlines, but it wouldn't make much sense to compile a spi/i2c driver if the corresponding subsystem is disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mfd mc13xxx: Separate I2C and SPI probeSascha Hauer2012-09-111-10/+18
|/ | | | | | | | | | Upcoming patches will put I2C/SPI on their own busses with spi_register_driver / i2c_register_driver which will only be available if the subsystem is enabled. We could provide static inlines, but it wouldn't make much sense to compile a spi/i2c driver if the corresponding subsystem is disabled. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mc13xxx'Sascha Hauer2012-09-051-5/+26
|\
| * mc13xxx: Fixed memory leakAlexander Shiyan2012-09-041-5/+5
| | | | | | | | | | | | | | | | A string allocated by asprintf is not freed, so change it to a sprintf with the preallocated buffer. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mc13xxx: Hide private struct mc13xxx from other unitsAlexander Shiyan2012-09-041-0/+15
| | | | | | | | | | | | | | Board support units must use only the provided functions. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mc13xxx: Added mc13xxx_revision() function.Alexander Shiyan2012-08-101-0/+6
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mfd: add stmpe-i2c driverSteffen Trumtrar2012-09-053-0/+158
|/ | | | | | | | | | The stmpe mfds can be connected via i2c and spi. This driver provides the basic infrastructure for the i2c kind. It can be added as a normal i2c-device in the board code. To enable functions a platform_data struct has to be provided, that describes what parts of the chip are to be used. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/randconfig'Sascha Hauer2012-08-013-5/+4
|\
| * mfd TWL4030: Fix Kconfig dependenciesSascha Hauer2012-07-251-1/+0
| | | | | | | | | | | | | | The twl core does not depend on the twl usb support. It's the other way round. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * Add missing semicolons at end of EXPORT_SYMBOLSascha Hauer2012-07-252-4/+4
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mc13xxx: Define maximum SPI clock frequency global to driverAlexander Shiyan2012-07-201-0/+1
|/ | | | | | | | | | This patch provide setup for SPI clk frequency global to driver. For MC13783 maximum clock frequency is 20 MHz, for MC13892 maximum clock frequency is 26 MHz, so we define 20 MHz as a maximum SPI clk. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* use loff_t for file offsetsSascha Hauer2012-06-306-11/+13
| | | | | | | This is a first step for 64bit file support: Make the file sizes/offsets 64bit. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd mc13xxxx: Set mc_dev to NULL on failureSascha Hauer2012-05-161-3/+1
| | | | | | | | | The mc13xxx driver correctly bails out on failure, but leaves mc_dev initialized, so a later mc13xxx_get won't fail but returns an invalid pointer. Fix this. While at it, remove some superfluous code from mc13xxx_get. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Final switch to use combined driver mc13xxxAlexander Shiyan2012-04-113-242/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add support for MC13783 to mc13xxx driverAlexander Shiyan2012-04-111-0/+10
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename definition MC13892_REG_IDENTIFICATION to MC13XXX_Alexander Shiyan2012-04-111-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Detect MC13892 chip ID in mc13xxx_query_revision()Alexander Shiyan2012-04-111-17/+26
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename remainings structs and functions from mc13892_ to mc13xxx_Alexander Shiyan2012-04-111-33/+33
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make mc13892_revision enum as defineAlexander Shiyan2012-04-111-3/+3
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Sort includes in mc13xxx.cAlexander Shiyan2012-04-111-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename mc13892 driver name to mc13xxxAlexander Shiyan2012-04-111-3/+3
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename mc13892_mode enum to mc13xxx_modeAlexander Shiyan2012-04-111-9/+9
| | | | | | | Also renamed enum values. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename mc13892.c unit to mc13xxx.cAlexander Shiyan2012-04-113-3/+3
| | | | | | | Also renamed config option name to MFD_MC13XXX. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make mc13892_reg enum as defineAlexander Shiyan2012-04-111-7/+7
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ename mc13892.h header to mc13xxx.hAlexander Shiyan2012-04-111-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Use register names for MC13892Alexander Shiyan2012-03-181-1/+1
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: add mc34708 driverEric Bénard2012-02-273-0/+299
| | | | | | | this driver is a copie of the mc13892 one Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Kconfig: add missing dependencies.Alexander Aring2012-01-051-5/+6
| | | | | | | Change dependencies in Kconfig for twl devices. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* twl-core: add support for twl6030Alexander Aring2011-12-213-0/+61
| | | | | | | Add support for twl6030 in twl-core driver. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* twl-core: abstract twl4030 and add twlcore driverAlexander Aring2011-12-214-136/+172
| | | | | | | | | | | Add a general twl device driver twlcore to call i2c send/write functions. Abstract twl4030 to call twlcore functions. Fixed some code-styling issues pointed out by checkpatch. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* twl4030: fix typo on EXPORT_SYMBOL twl4030_reg_read and twl4030_reg_writeJean-Christophe PLAGNIOL-VILLARD2011-07-051-2/+2
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd/mc13892: Add missing semicolonsSascha Hauer2011-03-101-2/+2
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd mc13892: support reading the revisionSascha Hauer2010-10-111-0/+62
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd mc13892: Add spi supportSascha Hauer2010-10-112-10/+111
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move include files for mfd drivers to include/mfdSascha Hauer2010-10-114-4/+4
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Move mfd drivers to drivers/mfdSascha Hauer2010-10-118-0/+1024
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>