Module Name: src Committed By: snj Date: Tue Nov 25 07:49:22 UTC 2014
Modified Files: src/sys/arch/arm/allwinner [netbsd-7]: awin_reg.h awin_twi.c src/sys/arch/evbarm/conf [netbsd-7]: HUMMINGBIRD_A31 src/sys/dev/i2c [netbsd-7]: gttwsi_core.c gttwsivar.h Log Message: Pull up following revision(s) (requested by jmcneill in ticket #257): sys/arch/arm/allwinner/awin_twi.c: revision 1.5 sys/arch/arm/allwinner/awin_reg.h: revision 1.53 sys/arch/evbarm/conf/HUMMINGBIRD_A31: revision 1.20 sys/dev/i2c/gttwsi_core.c: revision 1.2 sys/dev/i2c/gttwsivar.h: revision 1.2 On Allwinner A31 you need to set the CONTROL_IFLG bit to clear it. Add a "iflg-rwc" property to enable this behaviour. -- Don't assume that U-Boot has enabled the TWI clock. Also, for A31, set the "iflg-rwc" device property for gttwsi. -- The SoC RTC works on this board but does not seem to be hooked up to the battery. Thankfully, there is a PCF8563 attached to TWI2 at address 51h, so use that instead. To generate a diff of this commit: cvs rdiff -u -r1.14.2.5 -r1.14.2.6 src/sys/arch/arm/allwinner/awin_reg.h cvs rdiff -u -r1.3.10.1 -r1.3.10.2 src/sys/arch/arm/allwinner/awin_twi.c cvs rdiff -u -r1.19.2.4 -r1.19.2.5 src/sys/arch/evbarm/conf/HUMMINGBIRD_A31 cvs rdiff -u -r1.1 -r1.1.10.1 src/sys/dev/i2c/gttwsi_core.c \ src/sys/dev/i2c/gttwsivar.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.