Thread (7 messages) flat view 7 messages, 4 authors, 2011-01-04

Re: Question about combining a PCI driver with an OF driver

From: Scott Wood <hidden>
Date: 2011-01-04 21:20:36

On Tue, 4 Jan 2011 13:00:07 -0800
[off-list ref] 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().

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help