From patchwork Thu Aug 4 15:06:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: david.wagner@free-electrons.com X-Patchwork-Id: 1036062 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p74F4Cln020337 for ; Thu, 4 Aug 2011 15:04:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753549Ab1HDPEK (ORCPT ); Thu, 4 Aug 2011 11:04:10 -0400 Received: from mail.free-electrons.com ([88.190.12.23]:44769 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751510Ab1HDPEK (ORCPT ); Thu, 4 Aug 2011 11:04:10 -0400 Received: by mail.free-electrons.com (Postfix, from userid 106) id CE22E1DD; Thu, 4 Aug 2011 17:04:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 Received: from localhost.localdomain (col31-4-88-188-83-94.fbx.proxad.net [88.188.83.94]) by mail.free-electrons.com (Postfix) with ESMTPSA id 9A9CF143; Thu, 4 Aug 2011 17:03:59 +0200 (CEST) From: David Wagner To: Tony Lindgren Cc: David Wagner , LKML , linux-omap , Russell King Subject: [PATCH 1/2] Macro for getting the BASEADDRESS field in omap's gpmc configuration Date: Thu, 4 Aug 2011 17:06:34 +0200 Message-Id: <1312470395-19672-1-git-send-email-david.wagner@free-electrons.com> X-Mailer: git-send-email 1.7.0.4 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Thu, 04 Aug 2011 15:04:12 +0000 (UTC) BASEADDRESS is located in the 6 lower bits of the CONFIG7 register. See OMAP 35x Technical Reference Manual, p. 1169. Signed-off-by: David Wagner --- arch/arm/plat-omap/include/plat/gpmc.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/include/plat/gpmc.h b/arch/arm/plat-omap/include/plat/gpmc.h index 1527929..154456d 100644 --- a/arch/arm/plat-omap/include/plat/gpmc.h +++ b/arch/arm/plat-omap/include/plat/gpmc.h @@ -72,6 +72,7 @@ #define GPMC_CONFIG1_FCLK_DIV3 (GPMC_CONFIG1_FCLK_DIV(2)) #define GPMC_CONFIG1_FCLK_DIV4 (GPMC_CONFIG1_FCLK_DIV(3)) #define GPMC_CONFIG7_CSVALID (1 << 6) +#define GPMC_CONFIG7_BASEADDRESS(val) (val & 0x3F) #define GPMC_DEVICETYPE_NOR 0 #define GPMC_DEVICETYPE_NAND 2