Question about combining a PCI driver with an OF driver
scottwood at freescale.com
Wed Jan 5 08:20:18 EST 2011
On Tue, 4 Jan 2011 13:00:07 -0800
<Bruce_Leonard at selinc.com> wrote:
> Okay, I get that and it makes sense with what I know so far about how the
> kernel device model works (which I'm still learning). So how would I
> manually add a device? Say I create the PCI wrapper driver that claims
> the clone-TSEC, is there a "register device" type call similar to
> pci_register_driver() that I could put in the wrapper code that causes the
> gfar_probe() to be called?
Create an OF node (probably under the root node) programatically with
all the information the gianfar driver will want, based on what you
detect on PCI, and call of_platform_device_create().
More information about the Linuxppc-dev