Page MenuHomeFreeBSD

Split dwc_hdmi core code out from imx6_hdmi
ClosedPublic

Authored by jmcneill on Dec 17 2016, 1:48 PM.
Tags
Referenced Files
F103235240: D8826.id23028.diff
Fri, Nov 22, 12:11 PM
F103231142: D8826.diff
Fri, Nov 22, 11:18 AM
Unknown Object (File)
Thu, Nov 21, 1:38 AM
Unknown Object (File)
Wed, Nov 20, 10:23 PM
Unknown Object (File)
Mon, Nov 18, 11:56 PM
Unknown Object (File)
Mon, Nov 18, 9:36 PM
Unknown Object (File)
Mon, Nov 18, 4:55 PM
Unknown Object (File)
Mon, Nov 18, 3:37 PM
Subscribers

Details

Summary

This patch splits out the DesignWare HDMI-specific code from imx6_hdmi.c into a separate file and adds a generic DT binding that takes advantage of the extres framework for setting up clocks.

Test Plan

I tested the generic binding on JZ4780 (CI20), but still needs to be tested on i.MX6.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jmcneill retitled this revision from to Split dwc_hdmi core code out from imx6_hdmi.
jmcneill updated this object.
jmcneill edited the test plan for this revision. (Show Details)
jmcneill added reviewers: ARM, gonzo.
jmcneill set the repository for this revision to rS FreeBSD src repository - subversion.
jmcneill added a project: ARM.
mmel added inline comments.
sys/dev/hdmi/dwc_hdmi_fdt.c
201

This breaks generic kernel. We cannot have multiple modules with same name (a first argument) within single kernel. This is also reason, why using generic name for specific driver is not a best option.
The driver name is not related/linked to anything, but DRIVER_DEPEND(). So you can simply change name without any negative effects.

Change module name from hdmi to dwc_hdmi_fdt.

sys/arm/freescale/imx/imx6_hdmi.c
128

I believe dwc_hdmi_init(dev) call is missing here, otherwise patch looks OK

  • Call dwc_hdmi_init from imx_hdmi_attach
  • Initialize sc_get_i2c_dev in imx_hdmi_attach
gonzo edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 20 2016, 12:44 AM
This revision was automatically updated to reflect the committed changes.