# Re: \[RFC 2/7\] bcm47xx-nvram: add new broadcom nvram driver with dt support

- List: linux-arm-kernel
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-arm-kernel/2014/08/8096027/t

## Re: \[RFC 2/7\] bcm47xx-nvram: add new broadcom nvram driver with dt support

- From: Rafał Miłecki \<hidden\>
- Date: 2014-08-27 18:43:40 
- Message: https://ratatoskr.run/linux-arm-kernel/2014/08/8096027.md

```text
On 27 August 2014 20:20, Florian Fainelli [ref] 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?
```
