Date: Sun, 25 Feb 2018 11:00:18 -0700 From: Ian Lepore <ian@freebsd.org> To: Lee D <embaudarm@gmail.com>, freebsd-hackers@freebsd.org Subject: Re: Help, please, with getting a custom I2C real time clock module to load Message-ID: <1519581618.91697.261.camel@freebsd.org> In-Reply-To: <CANC_bnOe1-%2BBQocKfNraJuq4UjbYe=ita=0qsy65EVMdhGQDLQ@mail.gmail.com> References: <CANC_bnOe1-%2BBQocKfNraJuq4UjbYe=ita=0qsy65EVMdhGQDLQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1519581618.91697.261.camel>