Module Name: src Committed By: thorpej Date: Fri May 14 00:44:13 UTC 2021
Modified Files: src/sys/arch/macppc/dev [thorpej-i2c-spi-conf]: pmu.c smu.c src/sys/arch/macppc/include [thorpej-i2c-spi-conf]: types.h src/sys/dev/ofw [thorpej-i2c-spi-conf]: ofw_i2c_subr.c openfirm.h Log Message: Deal with quirks / differences in OpenFirmware implementations' interpreation of the i2c "reg" property by embedding knowledge of those quicks directly, rather than forcing lots of drivers to provide their own devhandle implementations. We default to assuming the Device Tree bindings, and tweak based on platform- specific #ifdefs. Start with __HAVE_OPENFIRMWARE_VARIANT_AAPL (all i2c "reg" properties encode an address that's shifted left 1 bit to account for the R/W bit that appears on the wire). To generate a diff of this commit: cvs rdiff -u -r1.37.2.1 -r1.37.2.2 src/sys/arch/macppc/dev/pmu.c cvs rdiff -u -r1.13.2.1 -r1.13.2.2 src/sys/arch/macppc/dev/smu.c cvs rdiff -u -r1.14 -r1.14.70.1 src/sys/arch/macppc/include/types.h cvs rdiff -u -r1.1.6.2 -r1.1.6.3 src/sys/dev/ofw/ofw_i2c_subr.c cvs rdiff -u -r1.47.2.1 -r1.47.2.2 src/sys/dev/ofw/openfirm.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.