[RFC 2/7] bcm47xx-nvram: add new broadcom nvram driver with dt support
Rafał Miłecki
zajec5 at gmail.com
Wed Aug 27 11:43:40 PDT 2014
On 27 August 2014 20:20, Florian Fainelli <f.fainelli at gmail.com> wrote:
> On 08/26/2014 10:54 PM, Rafał Miłecki wrote:
>> Could we avoid that? Type of flash can easily be checked in the code.
>> All we need to do is to read BCMA_IOST register of BCMA_CORE_NS_ROM
>> core.
>
> So there is a boot status register you can read to tell what type of
> flash you booted from, but does that also give you the resource ranges
> for these type of flashes? Presumably they will be mapped into different
> addresses (at least bcm63xx is like that), that information needs to be
> listed somewhere.
Take a look at find_nvram in nvram_rw.c. It scans the whole region
which is up to 0x02000000 (SI_FLASH2_SZ) size.
In case of NAND limit is slightly different (nfl_boot_size function):
1) On ARM it's 0x800000 or 0x2600000
2) On MIPS it's 0x200000
--
Rafał
More information about the linux-arm-kernel
mailing list