summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses
Commit message (Collapse)AuthorAgeFilesLines
* i2c: add versatile supportJean-Christophe PLAGNIOL-VILLARD2012-11-153-0/+121
| | | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: add i2c-gpio supportJean-Christophe PLAGNIOL-VILLARD2012-11-153-0/+186
| | | | | | | Based on linux 3.7-rc2 Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: adapter: register it's own deviceJean-Christophe PLAGNIOL-VILLARD2012-11-152-30/+30
| | | | | | | | so we can show the this of i2c busses set the bus device as parent of all devices. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c i.MX: fixup clock support for powerpcSascha Hauer2012-10-041-14/+1
| | | | | | | This produced a warning on powerpc since the conversion to common clk support on i.MX. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx-clk'Sascha Hauer2012-10-041-2/+21
|\
| * i2c i.MX: Switch to clock supportSascha Hauer2012-10-041-2/+21
| | | | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | switch all platform_bus device/driver registering to ↵Jean-Christophe PLAGNIOL-VILLARD2012-10-042-2/+2
|/ | | | | | | | platform_driver/device_register now register_driver and register_device are for bus only usage. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* Treewide: remove address of the Free Software FoundationSascha Hauer2012-09-172-9/+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>
* i2c: adapt the i2c-imx driver to mpc85xx machinesRenaud Barbier2012-09-042-12/+83
| | | | | | | | | A function to calculate the frequency divider and digital filter sampling rate for the 85xx processors is added to the i2c-imx driver. Hence, this driver is usable on IMX and 85xx machines. Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* IMX driver: replace imx -> fslRenaud Barbier2012-09-041-117/+118
| | | | | | | | | The IMX i2c driver is to be used by SOCs on both the ARM and PPC architetures. Use a more neutral name for the structure, function names and #define. The driver name is now "i2c-fsl". Signed-off-by: Renaud Barbier <renaud.barbier@ge.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* I2C i.MX: disable driver for i.MX1Sascha Hauer2012-07-251-1/+1
| | | | | | | Although the driver could work on this hardware, i.MX1 support currently lacks the necessary clocks resulting in linker errors. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c-omap: add i2c omap4 supportAlexander Aring2011-12-211-28/+103
| | | | | | | | | | | | | | Added i2c support for omap4. Tested on pcm049. Driver based on linux kernel implementation. Also added a shift to access 16-bit registers to make support for OMAP730/850 possible. If accessing a non existing slave the bus will go into arbitration mode. It's unable to recover from it. Signed-off-by: Alexander Aring <a.aring@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Allow data-only i2c transfersRosen Kolev2011-10-071-24/+28
| | | | | | | | | | Modified the i2c_imx driver to support data-only transfers, without command byte. This allows to construct more complex i2c transfers and support non genuine devices like Atmel ATxx secure memory, where the master reads data after a write command. Signed-off-by: Rosen Kolev <rosen.kolev@amk-drives.bg> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* introduce io.hSascha Hauer2011-09-222-2/+2
| | | | | | | To allow for some generic io accessors introduce io.h and use this instead of asm/io.h throughout the tree. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: convert to struct resourceJean-Christophe PLAGNIOL-VILLARD2011-07-232-5/+4
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* i2c i.MX: convert to struct resourceSascha Hauer2011-07-191-11/+17
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c-imx: sync with kernel's driverEric Bénard2011-01-141-27/+8
| | | | | | | | | | | strange behaviour was observed with actual driver : bus lock, probe of absent adresses, wrong data read. This patch sync the driver with linux's one and after a few tests, we don't see anymore strange behaviour (tested on i.MX27). Signed-off-by: Eric Bénard <eric@eukrea.com> Acked-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c-imx: wait for STOP before disabling controllerMarc Reilly2010-10-011-5/+5
| | | | | | | | | | | Makes sure that the STOP condition is transmitted before the I2C controller is disabled. This fixes a problem where writing to an external EEPROM was not working because the EEPROM waits until the STOP before initiating the write internally. Signed-off-by: Marc Reilly <marc@cpdesign.com.au> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: move busses to drivers/i2c/bussesJean-Christophe PLAGNIOL-VILLARD2010-09-204-0/+1340
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>