|
From: | Ted Marshall |
Subject: | [Ltib] Question on multiple NOR flash parts. |
Date: | Fri, 14 Aug 2009 19:01:26 -0700 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |