drm: Implement and use the Linux i2c API
authorFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 27 Oct 2016 19:17:22 +0000 (21:17 +0200)
committerFrançois Tigeot <ftigeot@wolfpond.org>
Thu, 27 Oct 2016 19:21:54 +0000 (21:21 +0200)
commit9f4ca8679e7400b5656a8d177c172fdfaf205cb1
tree78be7d78b794a7d4ae78f717212a5cde07acf27f
parentfb572d17facb99509210208b5c7e0aa2120d7079
drm: Implement and use the Linux i2c API

* This is mainly to the benefit of the drm/i915 driver

* Sync key portions of code with Linux 4.4

* Key drm functions using the DragonFly-specific iic(4) API
  have been copied and renamed with an _iic suffix

* The drm/radeon driver no longer being actively developed, the
  intent is to keep it functional with a frozen API

Thanks to Johannes Hofmann for figuring out we could live with
a dummy default bit_xfer() implementation
24 files changed:
sys/conf/files
sys/dev/drm/drm/Makefile
sys/dev/drm/drm_dp_helper.c
sys/dev/drm/drm_edid.c
sys/dev/drm/i915/dvo_ch7017.c
sys/dev/drm/i915/dvo_ch7xxx.c
sys/dev/drm/i915/dvo_ivch.c
sys/dev/drm/i915/dvo_ns2501.c
sys/dev/drm/i915/dvo_sil164.c
sys/dev/drm/i915/dvo_tfp410.c
sys/dev/drm/i915/i915_drv.h
sys/dev/drm/i915/intel_dp.c
sys/dev/drm/i915/intel_i2c.c
sys/dev/drm/i915/intel_sdvo.c
sys/dev/drm/include/drm/drm_crtc.h
sys/dev/drm/include/drm/drm_dp_helper.h
sys/dev/drm/include/drm/drm_plane_helper.h
sys/dev/drm/include/linux/device.h
sys/dev/drm/include/linux/i2c-algo-bit.h [copied from sys/dev/drm/include/linux/i2c.h with 71% similarity]
sys/dev/drm/include/linux/i2c.h
sys/dev/drm/include/linux/mod_devicetable.h
sys/dev/drm/include/uapi_linux/i2c.h [new file with mode: 0644]
sys/dev/drm/linux_i2c.c [new file with mode: 0644]
sys/dev/drm/radeon/radeon_connectors.c