[PATCH][v2] powerpc/fsl: 85xx: add cache-sram support
Kumar Gala
galak at kernel.crashing.org
Thu Oct 14 01:45:25 EST 2010
On Oct 13, 2010, at 7:00 AM, <harninder.rai at freescale.com> <harninder.rai at freescale.com> wrote:
> From: Harninder Rai <harninder.rai at freescale.com>
>
> It adds cache-sram support in P1/P2 QorIQ platforms as under:
>
> * A small abstraction over powerpc's remote heap allocator
> * Exports mpc85xx_cache_sram_alloc()/free() APIs
> * Supports only one contiguous SRAM window
> * Drivers can do the following in Kconfig to use these APIs
> "select FSL_85XX_CACHE_SRAM if MPC85xx"
> * Required SRAM size and the offset where SRAM should be mapped must be
> provided at kernel command line as :-
> cache-sram-size=<value>
> cache-sram-offset=<offset>
>
> Signed-off-by: Harninder Rai <harninder.rai at freescale.com>
> Signed-off-by: Vivek Mahajan <vivek.mahajan at freescale.com>
> ---
> incorporated review comments from Philipp
>
> arch/powerpc/include/asm/fsl_85xx_cache_sram.h | 48 +++++
> arch/powerpc/sysdev/Makefile | 1 +
> arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h | 101 +++++++++++
> arch/powerpc/sysdev/fsl_85xx_cache_sram.c | 159 ++++++++++++++++
> arch/powerpc/sysdev/fsl_85xx_l2ctlr.c | 231 ++++++++++++++++++++++++
> 5 files changed, 540 insertions(+), 0 deletions(-)
> create mode 100644 arch/powerpc/include/asm/fsl_85xx_cache_sram.h
> create mode 100644 arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h
> create mode 100644 arch/powerpc/sysdev/fsl_85xx_cache_sram.c
> create mode 100644 arch/powerpc/sysdev/fsl_85xx_l2ctlr.c
applied to next
- k
More information about the Linuxppc-dev
mailing list