summaryrefslogtreecommitdiffstats
path: root/drivers/i2c
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Move mfd drivers to drivers/mfdSascha Hauer2010-10-117-775/+0
| | | | 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>
* twl4030: Fix compiler warningsSascha Hauer2010-09-201-3/+3
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: move busses to drivers/i2c/bussesJean-Christophe PLAGNIOL-VILLARD2010-09-206-11/+19
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* i2c rename CONFIG_DRIVER_I2C_xx to CONFIG_I2C_xxJean-Christophe PLAGNIOL-VILLARD2010-09-172-14/+14
| | | | Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
* i2c: fix wrong comment and symbol export for i2c_add_numbered_adapter()Wolfram Sang2010-09-161-14/+12
| | | | | Signed-off-by: Wolfram Sang <w.sang@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* add twl4030 supportSascha Hauer2010-08-063-0/+191
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
* arm omap: Add I2C driverSascha Hauer2010-08-063-0/+808
| | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
* Merge branch 'next'Sascha Hauer2010-07-033-0/+144
|\
| * i2c: add driver for the MC34704 PMICBaruch Siach2010-06-103-0/+144
| | | | | | | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | i2c: fix adapter_list manipulationBaruch Siach2010-06-171-1/+1
|/ | | | | Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c: implement i2c_get_adapter()Sascha Hauer2010-05-261-1/+23
| | | | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c-imx: change log level for No ACKEric Bénard2010-05-261-1/+1
| | | | | Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-sha-mx35-3-stack-updates' of ↵Sascha Hauer2010-01-192-39/+136
|\ | | | | | | ssh://git.pengutronix.de/git/mkl/barebox into next
| * mc13892: clean up driver interfaceMarc Kleine-Budde2010-01-181-19/+72
| | | | | | | | | | | | | | Export mc13892_reg_read, mc13892_reg_write and mc13892_set_bits function instead of exposing the i2c interface. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
| * mc9sdz60: clean up driver interfaceMarc Kleine-Budde2010-01-181-20/+64
| | | | | | | | | | | | | | Export mc9sdz60_reg_read, mc9sdz60_reg_write and mc9sdz60_set_bits function instead of exposing the i2c interface. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* | I2C : add NS LP3972 PMIC supportEric Benard2010-01-163-0/+114
|/ | | | | Signed-off-by: Eric Benard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Cleanup colleteral damage from renamingSascha Hauer2009-12-151-1/+1
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename U-Boot-v2 project to bareboxSascha Hauer2009-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has been done with the following script: find -path ./.git -prune -o -type f -print0 | xargs -0 -r sed -i \ -e 's/u2boot/barebox/g' \ -e 's/U2Boot/barebox/g' \ -e 's/U-boot V2/barebox/g' \ -e 's/u-boot v2/barebox/g' \ -e 's/U-Boot V2/barebox/g' \ -e 's/U-Boot-v2/barebox/g' \ -e 's/U_BOOT/BAREBOX/g' \ -e 's/UBOOT/BAREBOX/g' \ -e 's/uboot/barebox/g' \ -e 's/u-boot/barebox/g' \ -e 's/u_boot/barebox/g' \ -e 's/U-Boot/barebox/g' \ -e 's/U-boot/barebox/g' \ -e 's/U-BOOT/barebox/g' find -path ./.git -prune -o \( -name "*u-boot*" -o -name "*uboot*" -o -name "*u_boot*" \) -print0 | \ xargs -0 -r rename 's/u[-_]?boot/barebox/' It needs some manual fixup following in the next patch Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* i2c-imx: i2c_imx_xfer return with err if sub-transfer isn't successfullMarc Kleine-Budde2009-12-091-0/+2
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* i2c-imx: fix low bitrate problemMarc Kleine-Budde2009-12-091-3/+17
| | | | | | | | | loop in i2c_imx_acked() in low bit rates it takes some time until the ACK comes in. Also add a delay before polling for bus not busy in i2c_imx_read. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* i2c-imx: fix clear IFF race conditionMarc Kleine-Budde2009-12-091-2/+3
| | | | | | | | | | | | | | | | | | | | | | During i2c read the original pattern was: 1. write i2c slave address 2. wait for transmit complete + clear IIF 3. wait for receive acknowledge 4. wait for IIF interrupt Due to the clear of the I2SR register, the IIF flag was cleared, too. So in step 4 the Interrupt wasn't detected. To fix this problem, we move the clean of IIF before the writing of the slave address. So that it looks this way: 0. clear IIF 1. write i2c slave address 2. wait for transmit complete 3. wait for receive acknowledge 4. wait for IIF interrupt Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* i2c-imx: print errors with dev_errMarc Kleine-Budde2009-12-091-3/+5
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* mc9sdz60: driver addedMarc Kleine-Budde2009-12-033-0/+113
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* mc13892: driver addedMarc Kleine-Budde2009-12-033-0/+116
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* i2c-imx: ported to u-boot-v2Marc Kleine-Budde2009-12-033-0/+511
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* i2c: new frameworkMarc Kleine-Budde2009-12-033-0/+356
| | | | Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
* remove unused driversSascha Hauer2007-09-212-408/+0
|
* svn_rev_591Sascha Hauer2007-07-051-0/+398
| | | | moved
* svn_rev_563Sascha Hauer2007-07-051-1/+1
| | | | unify menu style
* svn_rev_102Sascha Hauer2007-07-051-0/+10