Elbc device driver

Scott Wood scottwood at freescale.com
Wed Oct 9 09:34:15 EST 2013


On Tue, 2013-10-08 at 16:06 +0200, Mercier Ivan wrote:
> Hi,
> 
> I'm working on a powerpc qoriq p3041 and trying to communicate with a
> device by elbc bus in gpmc mode.
> 
> I 've integrated CONFIG_FSL_LBC in Linux which provide the basic functions.
> 
> Now I'm wondering how can I do read and write operations on the
> bus.Where is mapped my device?

You'll need to use ioremap() or of_iomap() to map it.

> Should I code .read and .write driver functions?How can I start?
> 
> How integrates my device in the device tree?

See Documentation/devicetree/bindings/powerpc/fsl/lbc.txt and examples
such as "board-control" in various device trees.

-Scott





More information about the Linuxppc-dev mailing list