Hi,
I've got a KERN_INFO msg: "fsl-lbc a3p400.11: failed to get memory
region" corresponding to my elbc device that I try to map.
                a3p400@3,0 {
                        compatible = "fsl,elbc";
                        reg = <0 0xe0000000 0x1000000>;
                };
The corresponding law on ELBC is 0xe0000000 ->0xf0000000.
I want to map my device on 0xe0000000 ->0xe8000000 as it has 16 adress bits.

Now the controler registers are properly set,but how do I map the device?

Thanks a lot





2013/10/9 Scott Wood <scottw...@freescale.com>:
> 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
>
>
>
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/linuxppc-dev

Reply via email to