Help, please, with getting a custom I2C real time clock module to load
Ian Lepore
ian at freebsd.org
Sun Feb 25 18:00:21 UTC 2018
On Sun, 2018-02-25 at 09:48 -0500, Lee D wrote:
> Hi Everyone,
>
> I have written a new I2C driver (for the Xilinx Zynq) and a new real
> time clock chip driver (for the ST M41T82) to use with hardware on my
> custom board. This is for 11.0.1.
> [...]
I just remembered... another piece of non-obvious magic that is
required to be an i2c host controller whose bus is managed by
ofw_iicbus is that your driver has to implement the ofw_bus_get_node
method. The implementation is trivial, just grab the one out of
arm/freescale/imx/imx_i2c.c.
-- Ian
More information about the freebsd-hackers
mailing list