linux-mips
[Top] [All Lists]

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

To: "Ardelean, Andrei" <Andrei.Ardelean@idt.com>
Subject: Re: How to add Ethernet and USB drivers to the Linux Kernel?
From: Ralf Baechle <ralf@linux-mips.org>
Date: Fri, 8 Oct 2010 16:49:04 +0100
Cc: linux-mips@linux-mips.org
In-reply-to: <AEA634773855ED4CAD999FBB1A66D076011E62CF@CORPEXCH1.na.ads.idt.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <AEA634773855ED4CAD999FBB1A66D076011E62CF@CORPEXCH1.na.ads.idt.com>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.21 (2010-09-15)
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

<Prev in Thread] Current Thread [Next in Thread>