From patchwork Thu Sep 24 09:10:24 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vivek Mahajan X-Patchwork-Id: 34214 X-Patchwork-Delegate: galak@kernel.crashing.org Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bilbo.ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 9C8FFB816F for ; Thu, 24 Sep 2009 19:10:50 +1000 (EST) Received: by ozlabs.org (Postfix) id 2DE8CB7C38; Thu, 24 Sep 2009 19:10:36 +1000 (EST) Delivered-To: linuxppc-dev@ozlabs.org Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id BC047B7C0A for ; Thu, 24 Sep 2009 19:10:35 +1000 (EST) Received: from az33smr01.freescale.net (az33smr01.freescale.net [10.64.34.199]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id n8O9AXS3016430 for ; Thu, 24 Sep 2009 02:10:33 -0700 (MST) Received: from localhost.localdomain (lc0191.zin33.ap.freescale.net [10.232.1.191]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id n8O9CKMZ023355; Thu, 24 Sep 2009 04:12:24 -0500 (CDT) From: Vivek Mahajan To: linuxppc-dev@ozlabs.org Subject: [PATCH 2/4] powerpc/fsl: 85xx: document cache-sram Date: Thu, 24 Sep 2009 14:40:24 +0530 Message-Id: <1253783426-11978-2-git-send-email-vivek.mahajan@freescale.com> X-Mailer: git-send-email 1.5.6.5 In-Reply-To: <1253783426-11978-1-git-send-email-vivek.mahajan@freescale.com> References: <1253783426-11978-1-git-send-email-vivek.mahajan@freescale.com> X-Brightmail-Tracker: AAAAAQAAAWE= Cc: kumar.gala@freescale.com, Vivek Mahajan X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org 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 --- Resending it to linuxppc-dev@ozlabs.org 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/platforms/85xx/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 + +Absence of the above parameter in the kernel command line is +treated as no cache SRAM.