Official MINIX sources - Automatically replicated from gerrit.minix3.org
Go to file
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
benchmarks Removing obsolete _MINIX define 2013-02-26 09:44:20 +00:00
bin remove utimes() workarounds 2013-04-12 18:55:40 +00:00
commands backup: bug fix for improper struct dirent usage 2013-08-12 11:19:10 +02:00
common Enable optional GCC install and GCC improvements 2013-07-12 14:22:03 +02:00
dist/nvi Termcap update, replacing elvis by nvi. 2013-01-24 07:44:38 +01:00
distrib tps65950: driver for the TPS65950 PMIC 2013-08-09 12:41:43 +02:00
docs Allow install of binutils and import texinfo 2013-07-12 14:18:08 +02:00
drivers i2c: general clean-up 2013-08-13 16:29:22 -04:00
etc fb: auto-configure with EDID 2013-08-11 20:37:16 +02:00
external Importing NetBSD "Kyua" test framework 2013-07-23 20:43:41 +02:00
gnu Allow install of binutils and import texinfo 2013-07-12 14:18:08 +02:00
include mmio: add 16-bit variants of read/write/set 2013-08-13 16:29:22 -04:00
kernel VMWare poweroff magic cli;hlt sequence 2013-08-11 23:55:43 +02:00
lib libc: make MINIX assembly code position-independent 2013-08-09 11:09:51 +02:00
libexec re-import makewhatis 2013-06-25 09:51:45 +00:00
man readclock: code clean-up, add -q, manpage updates 2013-08-09 12:41:53 +02:00
releasetools Importing sys/dev/videomode 2013-08-11 20:35:08 +02:00
sbin ext2: annotate cache blocks with inode metadata 2013-04-26 15:39:07 +00:00
servers Remove VM_VFS_REPLY from VM_BASIC_CALLS 2013-08-08 23:23:13 +02:00
share Importing NetBSD "Kyua" test framework 2013-07-23 20:43:41 +02:00
sys Importing sys/dev/videomode 2013-08-11 20:35:08 +02:00
test blocktest: make 64-bit native 2013-08-08 17:36:45 +02:00
tests Importing NetBSD "Kyua" test framework 2013-07-23 20:43:41 +02:00
tools Fix file permissions 2013-08-07 16:26:29 +00:00
usr.bin allow ldd mmap fallback 2013-06-12 07:05:11 +00:00
usr.sbin Importing usr.sbin/i2cscan 2013-07-15 11:11:13 -04:00
.gitignore gitignore: ignore some more generated files 2012-12-06 13:29:20 +00:00
.gitreview misc:Add gerrit code review support. 2013-01-16 09:44:16 +01:00
build.sh Reverting back to default value of MKARZERO 2013-01-17 10:03:58 +01:00
LICENSE Fix parameter parsing in cut 2010-01-21 10:16:05 +00:00
Makefile Importing NetBSD "Kyua" test framework 2013-07-23 20:43:41 +02:00