linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Vivek Mahajan <vivek.mahajan@freescale.com>
To: linuxppc-dev@lists.ozlabs.org
Cc: kumar.gala@freescale.com, Vivek Mahajan <vivek.mahajan@freescale.com>
Subject: [PATCH 2/4] powerpc/fsl: 85xx: document cache-sram
Date: Wed, 23 Sep 2009 17:03:22 +0530	[thread overview]
Message-ID: <1253705604-1986-2-git-send-email-vivek.mahajan@freescale.com> (raw)
In-Reply-To: <1253705604-1986-1-git-send-email-vivek.mahajan@freescale.com>

Adds documentation for Freescale's QorIQ based cache-sram as under:-

* How to enable it from a low level driver
* How to set its size

Signed-off-by: Vivek Mahajan <vivek.mahajan@freescale.com>
---
 Documentation/powerpc/fsl_85xx_cache_sram.txt |   31 +++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 Documentation/powerpc/fsl_85xx_cache_sram.txt

diff --git a/Documentation/powerpc/fsl_85xx_cache_sram.txt b/Documentation/powerpc/fsl_85xx_cache_sram.txt
new file mode 100644
index 0000000..628607d
--- /dev/null
+++ b/Documentation/powerpc/fsl_85xx_cache_sram.txt
@@ -0,0 +1,31 @@
+* Freescale QorIQ based Cache SRAM
+
+Freescale's QorIQ platforms provide an option of configuring
+a part of (or full) cache memory as SRAM. Any low level
+driver can use its APIs via selecting FSL_85XX_CACHE_SRAM as
+under for the case of gianfar ethernet driver:-
+
+In drivers/net/Kconfig:-
+
+config GIANFAR
+      ....
+      select FSL_85XX_CACHE_SRAM if MPC85xx
+      ....
+
+FSL_85XX_CACHE_SRAM and its base address are defined in
+arch/powerpc/sysdev/Kconfig as under:-
+
+config FSL_85XX_CACHE_SRAM
+	bool
+	select PPC_LIB_RHEAP
+
+config FSL_85XX_CACHE_SRAM_BASE
+	hex
+	depends on FSL_85XX_CACHE_SRAM
+	default "0xfff00000"
+
+The size of the above cache SRAM memory window is passed via the
+kernel command line as <cache-sram-size=....>
+
+Absence of the above parameter in the kernel command line is
+treated as no cache SRAM.
-- 
1.5.6.5

  reply	other threads:[~2009-09-23 11:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-23 11:33 [PATCH 1/4] powerpc/fsl: 85xx: document cache-sram size as a kernel parametric option Vivek Mahajan
2009-09-23 11:33 ` Vivek Mahajan [this message]
2009-09-23 11:33   ` [PATCH 3/4] powerpc/fsl: 85xx: add mbar() Vivek Mahajan
2009-09-23 11:33     ` [PATCH 4/4] powerpc/fsl: 85xx: add cache-sram support Vivek Mahajan
  -- strict thread matches above, loose matches on Subject: below --
2009-09-24  9:10 [PATCH 1/4] powerpc/fsl: 85xx: document cache-sram size as a kernel parametric option Vivek Mahajan
2009-09-24  9:10 ` [PATCH 2/4] powerpc/fsl: 85xx: document cache-sram Vivek Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1253705604-1986-2-git-send-email-vivek.mahajan@freescale.com \
    --to=vivek.mahajan@freescale.com \
    --cc=kumar.gala@freescale.com \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).