]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
powerpc/85xx: add cache-sram support
authorHarninder Rai <harninder.rai@freescale.com>
Wed, 13 Oct 2010 12:00:56 +0000 (17:30 +0530)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 14 Oct 2010 05:54:38 +0000 (00:54 -0500)
commit6db92cc9d07db9f713da8554b4bcdfc8e54ad386
treecec19a7611a509c654125a967e06fba6de17f995
parent6341efe4b9bd1e1f9c0d0d6ec57fa77949c88bb1
powerpc/85xx: add cache-sram support

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@freescale.com>
Signed-off-by: Vivek Mahajan <vivek.mahajan@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/fsl_85xx_cache_sram.h [new file with mode: 0644]
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/fsl_85xx_cache_ctlr.h [new file with mode: 0644]
arch/powerpc/sysdev/fsl_85xx_cache_sram.c [new file with mode: 0644]
arch/powerpc/sysdev/fsl_85xx_l2ctlr.c [new file with mode: 0644]