From patchwork Tue Mar 22 11:29:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 726 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:45:12 -0000 Delivered-To: patches@linaro.org Received: by 10.204.113.5 with SMTP id y5cs101606bkp; Tue, 22 Mar 2011 04:57:28 -0700 (PDT) Received: by 10.43.131.7 with SMTP id ho7mr392901icc.171.1300795047869; Tue, 22 Mar 2011 04:57:27 -0700 (PDT) Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by mx.google.com with ESMTP id d13si17234969ibb.58.2011.03.22.04.57.27; Tue, 22 Mar 2011 04:57:27 -0700 (PDT) Received-SPF: neutral (google.com: 203.254.224.34 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) client-ip=203.254.224.34; Authentication-Results: mx.google.com; spf=neutral (google.com: 203.254.224.34 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) smtp.mail=chander.kashyap@linaro.org Received: from epmmp1 (mailout4.samsung.com [203.254.224.34]) by mailout4.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LIG004YSJ67ML30@mailout4.samsung.com>; Tue, 22 Mar 2011 20:42:07 +0900 (KST) Received: from Linaro.sisodomain.com ([107.108.215.143]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0LIG00AIIJ62VD@mmp1.samsung.com>; Tue, 22 Mar 2011 20:42:07 +0900 (KST) Date: Tue, 22 Mar 2011 16:59:38 +0530 From: Chander Kashyap Subject: [PATCH V2] ARMV7: S5P: Fixed register offset in mmc.h To: u-boot@lists.denx.de Cc: mk7.kang@samsung.com, bjlee@samsung.com, angus.ainslie@linaro.org, patches@linaro.org Message-id: <1300793378-667-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.1 Content-transfer-encoding: 7BIT The MMC registers are accessed through struct s5p_mmc member variables. MMC controller "control4" register offset is set to 0x8C as per data sheet. The size of struct s5p_mmc is also corrected. Signed-off-by: Chander Kashyap Signed-off-by: Tushar Behera --- arch/arm/include/asm/arch-s5pc1xx/mmc.h | 5 +++-- arch/arm/include/asm/arch-s5pc2xx/mmc.h | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/arch-s5pc1xx/mmc.h b/arch/arm/include/asm/arch-s5pc1xx/mmc.h index 48de64d..d458d3b 100644 --- a/arch/arm/include/asm/arch-s5pc1xx/mmc.h +++ b/arch/arm/include/asm/arch-s5pc1xx/mmc.h @@ -53,10 +53,11 @@ struct s5p_mmc { unsigned char res3[0x34]; unsigned int control2; unsigned int control3; + unsigned char res4[4]; unsigned int control4; - unsigned char res4[0x6e]; + unsigned char res5[0x6e]; unsigned short hcver; - unsigned char res5[0xFFF02]; + unsigned char res6[0xFFF00]; }; struct mmc_host { diff --git a/arch/arm/include/asm/arch-s5pc2xx/mmc.h b/arch/arm/include/asm/arch-s5pc2xx/mmc.h index 528150d..04827ca 100644 --- a/arch/arm/include/asm/arch-s5pc2xx/mmc.h +++ b/arch/arm/include/asm/arch-s5pc2xx/mmc.h @@ -53,10 +53,11 @@ struct s5p_mmc { unsigned char res3[0x34]; unsigned int control2; unsigned int control3; + unsigned char res4[4]; unsigned int control4; - unsigned char res4[0x6e]; + unsigned char res5[0x6e]; unsigned short hcver; - unsigned char res5[0xFF02]; + unsigned char res6[0xFF00]; }; struct mmc_host {