freebsd-dev/sys/arm/freescale
Ian Lepore 7e7ef41632 Fix imx6 hdmi init after r323553, which used a config_intrhook to defer the
attachment of i2c devices needed by hdmi.

The hdmi init also uses an intrhook callback to defer initialization, and if
the hdmi callback runs first, the i2c devices will not yet have registered
their device_t in association with their FDT phandle, which allows cross-
device references on FDT systems.

Now the hdmi deferred init checks for the i2c device registration, and if
it's not complete yet, it registers as an eventhandler watching for newbus
attach events.  When the i2c device eventually attaches, the hdmi driver
unregisters from watching further events, and continues with the hdmi init.
Because the function signatures for an intrhook callback and an event
handler callback are the same, a single function is used for both callbacks.

Reported by:	Russell Haley <russ.haley@gmail.com>
2017-10-08 18:38:22 +00:00
..
imx Fix imx6 hdmi init after r323553, which used a config_intrhook to defer the 2017-10-08 18:38:22 +00:00
vybrid Tag all armv7 kernels as such in their machine config line. 2017-10-05 23:01:50 +00:00
fsl_ocotp.c Move arm's devmap to some generic place, so it can be used 2016-04-26 11:53:37 +00:00
fsl_ocotpreg.h Make it possible to access the ocotp registers before the ocotp device 2014-02-16 03:09:39 +00:00
fsl_ocotpvar.h It turns out Freescale cleverly made the ocotp device compatible across 2014-02-15 21:21:57 +00:00