summaryrefslogtreecommitdiffstats
path: root/include/mfd
Commit message (Collapse)AuthorAgeFilesLines
* mfd: mc13892: MC13892_POWER_MISC bits revisionAlexander Shiyan2019-01-031-11/+12
| | | | | | | | | | | This patch revises the bits for register MC13892_POWER_MISC. - Added definition for one missing bit (0). - Changed the name for bit 21 for accordance with the datasheet. - Updated affected board that uses these definitions. - Replaced spaces with tabs for the remaining bits. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* aiodev: mc13xxx: add adc supportAndrey Gusakov2018-04-101-0/+9
| | | | | Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13xxx: add function returning mc13xxx typeAndrey Gusakov2018-04-101-0/+10
| | | | | Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename file_operations -> cdev_operationsSascha Hauer2018-04-061-1/+1
| | | | | | | | Linux also has struct file_operations which are something different. Rename our file_operations to cdev_operations which better matches what we have. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: Import imx7-iomuxc-gpr.h from Linux kernelAndrey Smirnov2017-07-301-0/+51
| | | | | | Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* regmap: Implement syscon_node_to_regmap()Andrey Smirnov2017-03-091-0/+8
| | | | | | | Implement syscon_node_to_regmap() to simplify porting kernel code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regulator: Add pfuze driverSascha Hauer2017-01-201-0/+6
| | | | | | | | This is not yet a regulator driver, only the register map is exported as /dev/pfuze* so the registers can be accessed for debugging purposes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13892: more descriptive charger register definesAlexander Kurz2016-11-071-9/+31
| | | | | | | | Make access to the mc13892 charger parameter voltage, current and max power dissipation readable in terms of millivolts, milliamps and milliwatts. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd mc13xxx: add MC13892_REVISION_2_4Alexander Kurz2016-08-181-6/+7
| | | | | | | | An MC13892CJ having REV[4:0]=0x14 can be found in the kindle-d01100. Add the revision to the list to support this device. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13xxx: VGEN1 and VGEN2 voltage bits positioned in "Regulator Setting ↵Alexander Shiyan2016-07-071-14/+14
| | | | | | | | | | | 0" register The bits VGEN10-11 and VGEN20-22 is positioned in the Regulator Setting 0 register. This patch fixes these definitions and board (Efika MX), which uses this voltages. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* syscon: Do not return NULL when driver is not selectedAndrey Smirnov2016-05-181-2/+2
| | | | | | | | | | | Both syscon_base_lookup_by_pdevname() and syscon_base_lookup_by_phandle(), when implemented, do not return NULL, so none of the code using those function is written to check for that. Change returns to ERR_PTR(-ENOSYS), to avoid having that problem. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCI: imx6: Add proper i.MX6+ reset sequenceAndrey Smirnov2016-04-281-0/+1
| | | | | | | | | | | | | | | | | I.MX6+ version of the silicon exposed PCIe core's reset signal as a bit in one of the control registers. As a result using old, pre-i.MX6+, reset sequence on i.MX6+ leads to Barebox hanging during startup. Using exposed reset bit instead solves the problem. This commit is based on portions of commit c34068d48273e24d392d9a49a38be807954420ed in http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Acked-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pci: Add i.MX6 pcie supportSascha Hauer2015-03-171-0/+8
| | | | | | | Based on the corresponding kernel driver with changes to make it work on barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-06-041-0/+6
|\ | | | | | | | | Conflicts: arch/arm/configs/tx25stk5_defconfig
| * mfd: mc13xxx: Allow to set callback for mc13xxxSascha Hauer2014-05-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Some boards have to initialize the PMIC before other devices can be initialized. This requires three levels of initcalls: one level in which the PMIC is probed, one in which the board can call mc13xxx_get() and the third one to initialize the PMIC dependent devices. Allow to register a callback which is called once the PMIC is initialized. This way mc13xxx_get() is no longer necessary and the number of required initcalls levels is reduced to two. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | syscon: fix prototype compile errorSteffen Trumtrar2014-05-161-2/+2
|/ | | | | | | | | | | | | gcc 4.8.3 throws the following error include/mfd/syscon.h: In function 'syscon_base_lookup_by_pdevname': include/mfd/syscon.h:22:1: error: parameter name omitted static inline void __iomem *syscon_base_lookup_by_pdevname(const char *) Fix it by adding the name to the function prototype. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: add act8846 driverBeniamino Galvani2014-04-291-0/+56
| | | | | Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6q: Mark VPU and IPU AXI transfers as cacheable, increase IPU prioritySascha Hauer2014-03-291-0/+18
| | | | | | | | | | This is needed so that the IPU framebuffer scanout cannot be starved by VPU or GPU activity. Some boards like the SabreLite and SabreSD seem to set this in the DCD already, but the documented register reset values do not contain the necessary settings. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6Q: Fix IOMUXC GPR1 defines for ENET_CLK_SEL and IPU1/2_MUXPhilipp Zabel2014-03-191-8/+8
| | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx53-qsrb: fix USBEric Bénard2014-02-101-0/+11
| | | | | | | | | - configure the MC34708 properly so that USB can work (the sequence is taken from u-boot) - add the required defines to the mc13xxx include file Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: syscon: Introduce syscon_base_lookup_by_phandle() functionAlexander Shiyan2014-01-241-0/+8
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13xxx: Add support for MC34708Alexander Shiyan2013-07-151-109/+0
| | | | | | | This patch moves support for MC34708 PMIC into mc13xxx driver. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc34708: provide static inline wrapperSascha Hauer2013-06-261-1/+8
| | | | | | | If the driver is disabled provide a static inline wrapper for mc34708_get() to prevent linker errors. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide include/: Add missing includesSascha Hauer2013-05-311-0/+2
| | | | | | | This adds several missing includes to files under include/ which we relied on being included implicitly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add system controller register driver (SYSCON)Alexander Shiyan2013-03-111-0/+26
| | | | | | | | This patch adds support for system controller register driver (SYSCON). Code taken from Linux Kernel and adapted for using in barebox. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: Using MFD_xx prefix for symbolsAlexander Shiyan2013-02-184-12/+12
| | | | | | | | This patch provides rename MFD-related symbols for using MFD-prefix. Additionally, sorting mfd/Kconfig and mfd/Makefile records. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd mc13893: Add register definesSascha Hauer2012-12-171-0/+217
| | | | | | Add register defines for the mc13892. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: Add i.MX6 iomux gpr header fileSascha Hauer2012-12-071-0/+320
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* twl6030: add debug infoVicente2012-10-081-0/+8
| | | | | Signed-off-by: Vicente <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mc13xxx'Sascha Hauer2012-09-051-12/+7
|\
| * mc13xxx: Hide private struct mc13xxx from other unitsAlexander Shiyan2012-09-041-12/+1
| | | | | | | | | | | | | | 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-051-0/+53
|/ | | | | | | | | | 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>
* mc13xxx: Added dummy definitions if CONFIG_MFD_MC13XXX is not setAlexander Shiyan2012-07-241-1/+22
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add MC13783 SWx definitionsAlexander Shiyan2012-04-111-0/+18
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add MC13783 register definitionsAlexander Shiyan2012-04-111-0/+41
| | | | | 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/+2
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove unneded mc13xxx_get_revision functionAlexander Shiyan2012-04-111-5/+0
| | | | | 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-7/+7
| | | | | 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-16/+14
| | | | | 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-4/+4
| | | | | | | Also renamed enum values. 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-69/+67
| | | | | 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-3/+3
| | | | | 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-271-0/+102
| | | | | | | 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>
* twl-core: add support for twl6030Alexander Aring2011-12-211-0/+419
| | | | | | | 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-212-12/+53
| | | | | | | | | | | 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>
* mfd mc13892: support reading the revisionSascha Hauer2010-10-111-1/+21
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* move include files for mfd drivers to include/mfdSascha Hauer2010-10-115-0/+673
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>