Re: How to add Ethernet and USB drivers to the Linux Kernel?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 08, 2010 at 08:25:43AM -0700, Ardelean, Andrei wrote:

> I am porting MIPS Linux from Malta board to a new board. On Malta board
> network and USB devices reside on PCI bus. In my case the new video
> processor contains MIPS core, network and USB controllers, and those
> controllers registers are in the direct memory map of MIPS core, there
> is no PCI bus. Give me some advice how to add Ethernet and USB drivers
> to the Kernel. Do I need to create a new virtual platform bus/device or
> the Kernel has already what I need? If all the peripheral h/w blocks are
> memory mapped directly in MIPS processor core space, can I have a single
> bus for all of them?  

Sounds like platform_device is what you're looking for.  The MIPSnet
driver in drivers/net/mipsnet.c is a very simple example.  The devices
are registered in arch/mips/mipssim/sim_platform.c.

  Ralf



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux