Thomas Cort 228e84ad2a i2c: general clean-up
Implement changes based on Kees comments on the code review:
	http://gerrit-minix.few.vu.nl/#/c/676/

Changes:
 - use spin API instead of micro_delay() for busy-wait loops.
 - use read16/write16/set16 from mmio.h to access I2C registers.
 - reduce the timeout for soft reset.
 - in read/write, don't mix variable declaration and initialization.
 - after transfer, wait for access ready instead of blindly delaying.
 - rename constants am335x, dm37xx to AM335X_I2C_BUS, DM37XX_I2C_BUS.
 - rename ADDRESS_MASK to MAX_I2C_SA_MASK for clairity.
 - rename omap_i2c_claim_bus() to omap_i2c_bus_is_free().

Change-Id: Ic221e6134e024ea0a6690f21cff208a728286948
2013-08-13 16:29:22 -04:00
..
2013-02-26 09:44:20 +00:00
2013-08-08 17:36:41 +02:00
2013-01-17 10:03:58 +01:00
2012-08-06 16:18:36 +00:00
2013-08-11 20:37:16 +02:00
2013-08-05 10:40:26 +02:00
2013-06-24 16:50:57 +02:00
2013-08-04 20:32:31 +00:00
2013-08-13 16:29:22 -04:00
2012-08-06 16:18:39 +00:00
2013-06-24 16:50:57 +02:00
2013-06-24 16:50:57 +02:00
2013-02-15 11:05:43 +01:00
2013-01-17 10:03:58 +01:00
2013-06-14 23:58:44 +02:00
2013-01-23 09:03:03 +00:00
2013-02-26 09:44:20 +00:00