David Gibson wrote: >> I'm pretty sure that you don't need a board specific mapping driver >> for NOR flash. physmap_of should be exactly what you need. You just need >> to fill the device tree properties correctly. >> > > Absolutely. We should not be using C-coded maps in arch/powerpc > >
Ok a couple of questions. How do I find out the size of the NOR flash? It was in a global in the ppc arch. Also, where is the best place to fixup the partitions? We have paritions that must be at the top and ones that must be at the bottom, so we dynamically setup the partitions based on the NOR size. The NOR size is variable. And is it ok the name the paritions in the dts based on an index? I notice others use an address, but since I don't know the address up front I just used index numbers. Cheers, Sean _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev