Re: [PATCH 1/8] SOC: brcmstb: add memory API

2017-10-25 Thread Jim Quinlan
On Tue, Oct 24, 2017 at 8:23 PM, Florian Fainelli wrote: > Hi Jim, > > On 10/24/2017 11:15 AM, Jim Quinlan wrote: >> +#elif defined(CONFIG_MIPS) >> +int brcmstb_memory_phys_addr_to_memc(phys_addr_t pa) >> +{ >> + /* The logic here is fairly simple and hardcoded: if pa <= 0x5000_, >> +

Re: [PATCH 1/8] SOC: brcmstb: add memory API

2017-10-24 Thread Florian Fainelli
Hi Jim, On 10/24/2017 11:15 AM, Jim Quinlan wrote: > +#elif defined(CONFIG_MIPS) > +int brcmstb_memory_phys_addr_to_memc(phys_addr_t pa) > +{ > + /* The logic here is fairly simple and hardcoded: if pa <= 0x5000_, > + * then this is MEMC0, else MEMC1. > + * > + * For systems

[PATCH 1/8] SOC: brcmstb: add memory API

2017-10-24 Thread Jim Quinlan
From: Florian Fainelli This commit adds a memory API suitable for ascertaining the sizes of each of the N memory controllers in a Broadcom STB chip. Its first user will be the Broadcom STB PCIe root complex driver, which needs to know these sizes to properly set up DMA mappings for inbound regio