ltib
[Top][All Lists]
Advanced

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

Re: [Ltib] Question on multiple NOR flash parts.


From: Stuart Hughes
Subject: Re: [Ltib] Question on multiple NOR flash parts.
Date: Sat, 15 Aug 2009 09:47:23 +0100
User-agent: Thunderbird 2.0.0.16 (X11/20080707)

Hi Ted,

Unfortunately I don't know. If you do find out it would be good it you could post the solution to the list as I think it's a good question.
Regards, Stuart

Ted Marshall wrote:
I have a question that is probably more appropriate to a Kernel mailing list but I'm hoping that someone can point me in the right direction.
I'm running kernel 2.6.23 on a custom board based on the Freescale 
MPC8313E RDB, starting from their BSP.  (Yes, I know that this isn't one 
of your Ltibs, but again I'm hoping someone can give general advice.)  
This board has two identical NOR flash chips (standard JEDIC command 
set) which I have mapped into adjacent memory address ranges.  The flash 
parts work fine under my modified u-boot so I know my hardware and 
address mapping are ok.
The kernel maps the flash partitions using the device tree, using 
physmap_of.c but I cannot figure out how to map both flash parts.  I 
tried adding a second entry to the dts, based on the existing one, with 
only the name, register address and partitions different but 
of_physmap_probe only gets called for the first entry (whichever one I 
put first in the dts).
I also tried making one entry with the address space (second half of the 
"reg" entry) doubled to see if it would just find both chips but again, 
of_physmap_probe only gets called for the first chip. The passed in 
resource size is the size of one chip, half of what is in the dts file, 
so it is getting filtered somewhere, presumably in the flash device driver.
Any ideas on what needs to be done?

Thanks,
/Ted Marshall


_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/ltib




reply via email to

[Prev in Thread] Current Thread [Next in Thread]