From patchwork Sun Nov 21 11:06:59 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?G=C3=A9rald_Kerma?= X-Patchwork-Id: 72437 X-Patchwork-Delegate: prafulla@marvell.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 234EEB7161 for ; Sun, 21 Nov 2010 22:07:11 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B5C9028236; Sun, 21 Nov 2010 12:07:09 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 91dcx42xFUqX; Sun, 21 Nov 2010 12:07:09 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 414B72823D; Sun, 21 Nov 2010 12:07:07 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0D0C82823D for ; Sun, 21 Nov 2010 12:07:05 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vod1t1HS-O0G for ; Sun, 21 Nov 2010 12:07:03 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ww0-f52.google.com (mail-ww0-f52.google.com [74.125.82.52]) by theia.denx.de (Postfix) with ESMTP id 0915228236 for ; Sun, 21 Nov 2010 12:07:01 +0100 (CET) Received: by wwb17 with SMTP id 17so2538286wwb.9 for ; Sun, 21 Nov 2010 03:07:01 -0800 (PST) Received: by 10.216.241.74 with SMTP id f52mr3679388wer.112.1290337620673; Sun, 21 Nov 2010 03:07:00 -0800 (PST) Received: from [192.168.0.152] (louche.kerma.com.fr [88.178.80.34]) by mx.google.com with ESMTPS id l14sm1709561weq.11.2010.11.21.03.06.59 (version=SSLv3 cipher=RC4-MD5); Sun, 21 Nov 2010 03:06:59 -0800 (PST) Message-ID: <4CE8FD53.5010705@gmail.com> Date: Sun, 21 Nov 2010 12:06:59 +0100 From: =?ISO-8859-1?Q?G=E9rald_Kerma?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: "u-boot@lists.denx.de" References: <4CE8FD0D.3020405@gmail.com> In-Reply-To: <4CE8FD0D.3020405@gmail.com> X-Enigmail-Version: 1.1.1 OpenPGP: id=DED5B136 Cc: Prabhanjan Sarnaik , Ashish Karkare Subject: [U-Boot] [PATCH v3 1/3] Kirkwood: pre-requisite for SDIO driver support X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de pre-requisite for SDIO driver support for Marvell SoCs (Kirkwood) Signed-off-by: GĂ©rald Kerma --- arch/arm/include/asm/arch-kirkwood/kirkwood.h | 1 + include/configs/mv-common.h | 9 +++++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm/include/asm/arch-kirkwood/kirkwood.h b/arch/arm/include/asm/arch-kirkwood/kirkwood.h index 0104418..4f9fe7e 100644 --- a/arch/arm/include/asm/arch-kirkwood/kirkwood.h +++ b/arch/arm/include/asm/arch-kirkwood/kirkwood.h @@ -60,6 +60,7 @@ #define KW_EGIGA0_BASE (KW_REGISTER(0x72000)) #define KW_EGIGA1_BASE (KW_REGISTER(0x76000)) #define KW_SATA_BASE (KW_REGISTER(0x80000)) +#define KW_SDIO_BASE (KW_REGISTER(0x90000)) /* Kirkwood Sata controller has two ports */ #define KW_SATA_PORT0_OFFSET 0x2000 diff --git a/include/configs/mv-common.h b/include/configs/mv-common.h index de0121e..62ef0b9 100644 --- a/include/configs/mv-common.h +++ b/include/configs/mv-common.h @@ -63,6 +63,7 @@ #define CONFIG_I2C_MVTWSI_BASE KW_TWSI_BASE #define MV_UART0_BASE KW_UART0_BASE +#define MV_SDIO_BASE KW_SDIO_BASE #define MV_SATA_BASE KW_SATA_BASE #define MV_SATA_PORT0_OFFSET KW_SATA_PORT0_OFFSET #define MV_SATA_PORT1_OFFSET KW_SATA_PORT1_OFFSET @@ -182,6 +183,14 @@ #endif /* CONFIG_CMD_NET */ /* + * SDIO/MMC Card Configuration + */ +#ifdef CONFIG_CMD_MMC +#define CONFIG_MMC +#define CONFIG_MV_SDIO +#endif /* CONFIG_CMD_MMC */ + +/* * USB/EHCI */ #ifdef CONFIG_CMD_USB