Marc Reilly
b82ee742d0
i2c-imx: wait for STOP before disabling controller
...
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>
2010-10-01 10:01:14 +02:00
Sascha Hauer
1b2f03e580
twl4030: Fix compiler warnings
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-20 09:02:12 +02:00
Jean-Christophe PLAGNIOL-VILLARD
6a0ce693be
i2c: move busses to drivers/i2c/busses
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-20 08:57:22 +02:00
Jean-Christophe PLAGNIOL-VILLARD
44597cd8b3
i2c rename CONFIG_DRIVER_I2C_xx to CONFIG_I2C_xx
...
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
2010-09-17 10:56:24 +08:00
Wolfram Sang
cf6d0d0e19
i2c: fix wrong comment and symbol export for i2c_add_numbered_adapter()
...
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-09-16 08:29:40 +02:00
Sascha Hauer
83934e3a59
add twl4030 support
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
2010-08-06 19:17:06 +02:00
Sascha Hauer
a992be9998
arm omap: Add I2C driver
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
2010-08-06 19:17:01 +02:00
Sascha Hauer
6d1d9e8d8b
Merge branch 'next'
2010-07-03 10:26:21 +02:00
Baruch Siach
ea5230ce75
i2c: fix adapter_list manipulation
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-17 14:00:03 +02:00
Baruch Siach
514387711f
i2c: add driver for the MC34704 PMIC
...
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-06-10 08:39:26 +02:00
Sascha Hauer
624f936032
i2c: implement i2c_get_adapter()
...
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>
2010-05-26 10:34:58 +02:00
Eric Bénard
d57a64c28e
i2c-imx: change log level for No ACK
...
Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-05-26 10:34:58 +02:00
Sascha Hauer
976b4be602
Merge branch 'for-sha-mx35-3-stack-updates' of ssh://git.pengutronix.de/git/mkl/barebox into next
2010-01-19 09:25:26 +01:00
Marc Kleine-Budde
23f4449b78
mc13892: clean up driver interface
...
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>
2010-01-18 12:19:28 +01:00
Marc Kleine-Budde
fc268d5584
mc9sdz60: clean up driver interface
...
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>
2010-01-18 12:19:28 +01:00
Eric Benard
f8dc81ba5a
I2C : add NS LP3972 PMIC support
...
Signed-off-by: Eric Benard <eric@eukrea.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2010-01-16 12:32:34 +01:00
Sascha Hauer
9491ec7800
Cleanup colleteral damage from renaming
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2009-12-15 10:19:08 +01:00
Sascha Hauer
a3ffa97f40
rename U-Boot-v2 project to barebox
...
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>
2009-12-15 10:18:30 +01:00
Marc Kleine-Budde
f3e71450c0
i2c-imx: i2c_imx_xfer return with err if sub-transfer isn't successfull
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-09 15:32:02 +01:00
Marc Kleine-Budde
4fe3391e5d
i2c-imx: fix low bitrate problem
...
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>
2009-12-09 15:32:02 +01:00
Marc Kleine-Budde
6d34576586
i2c-imx: fix clear IFF race condition
...
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>
2009-12-09 15:32:01 +01:00
Marc Kleine-Budde
ed85e6d361
i2c-imx: print errors with dev_err
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-09 15:32:01 +01:00
Marc Kleine-Budde
ce96b9c05e
mc9sdz60: driver added
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-03 10:45:30 +01:00
Marc Kleine-Budde
635dd44d47
mc13892: driver added
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-03 10:45:23 +01:00
Marc Kleine-Budde
eff9f87185
i2c-imx: ported to u-boot-v2
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-03 10:44:47 +01:00
Marc Kleine-Budde
0d870824a4
i2c: new framework
...
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2009-12-03 10:44:42 +01:00
Sascha Hauer
762019f198
remove unused drivers
2007-09-21 12:43:14 +02:00
Sascha Hauer
79928fb1d5
svn_rev_591
...
moved
2007-07-05 18:02:08 +02:00
Sascha Hauer
58c95d74ad
svn_rev_563
...
unify menu style
2007-07-05 18:02:05 +02:00
Sascha Hauer
e90350262f
svn_rev_102
2007-07-05 18:01:23 +02:00