From patchwork Sat Sep 22 07:17:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DrEagle X-Patchwork-Id: 186103 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 EB1CD2C0096 for ; Sat, 22 Sep 2012 17:17:38 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F1F22818C; Sat, 22 Sep 2012 09:17:37 +0200 (CEST) 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 uwvVNjHC3MMz; Sat, 22 Sep 2012 09:17:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 811122816F; Sat, 22 Sep 2012 09:17:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B64F72816F for ; Sat, 22 Sep 2012 09:17:33 +0200 (CEST) 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 9LkDuYDS9zGR for ; Sat, 22 Sep 2012 09:17:33 +0200 (CEST) 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 milenium.gk2.net (unknown [88.178.80.34]) by theia.denx.de (Postfix) with ESMTPS id 3D3912816D for ; Sat, 22 Sep 2012 09:17:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by milenium.gk2.net (Postfix) with ESMTP id 4F168110C1C3; Sat, 22 Sep 2012 09:17:32 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at milenium.gk2.net Received: from milenium.gk2.net ([127.0.0.1]) by localhost (milenium.gk2.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zkJ3C5c0Xkkb; Sat, 22 Sep 2012 09:17:25 +0200 (CEST) Received: from [192.168.1.103] (gk2.net [109.190.23.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: gek@milenium.gk2.net) by milenium.gk2.net (Postfix) with ESMTPSA id 713DF110C1C1; Sat, 22 Sep 2012 09:17:25 +0200 (CEST) Message-ID: <505D6604.1010801@doukki.net> Date: Sat, 22 Sep 2012 09:17:24 +0200 From: DrEagle User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: DrEagle References: <505C3E5D.8000305@doukki.net> In-Reply-To: <505C3E5D.8000305@doukki.net> X-Enigmail-Version: 1.4.4 Cc: Lior Amsalem , "u-boot@lists.denx.de" , uboot@doukki.net Subject: [U-Boot] [PATCH v2 3/5] Add SDIO/MMC support for Sheevaplug board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 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 Add SDIO/MMC support for Sheevaplug board Signed-off-by: drEagle --- board/Marvell/sheevaplug/sheevaplug.c | 11 +++++++++++ include/configs/sheevaplug.h | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c index 688d308..db64a05 100644 --- a/board/Marvell/sheevaplug/sheevaplug.c +++ b/board/Marvell/sheevaplug/sheevaplug.c @@ -28,6 +28,9 @@ #include #include #include "sheevaplug.h" +#ifdef CONFIG_MRVL_MMC +#include +#endif /* CONFIG_MRVL_MMC */ DECLARE_GLOBAL_DATA_PTR; @@ -147,3 +150,11 @@ void reset_phy(void) printf("88E1116 Initialized on %s\n", name); } #endif /* CONFIG_RESET_PHY_R */ + +#ifdef CONFIG_MRVL_MMC +int board_mmc_init(bd_t *bis) +{ + mrvl_mmc_initialize(bis); + return 0; +} +#endif /* CONFIG_MRVL_MMC */ diff --git a/include/configs/sheevaplug.h b/include/configs/sheevaplug.h index 83dd8ff..7d710bf 100644 --- a/include/configs/sheevaplug.h +++ b/include/configs/sheevaplug.h @@ -47,6 +47,7 @@ #define CONFIG_CMD_DHCP #define CONFIG_CMD_ENV #define CONFIG_CMD_MII +#define CONFIG_CMD_MMC #define CONFIG_CMD_NAND #define CONFIG_CMD_PING #define CONFIG_CMD_USB @@ -98,6 +99,17 @@ #endif /* CONFIG_CMD_NET */ /* + * SDIO/MMC Card Configuration + */ +#ifdef CONFIG_CMD_MMC +#define CONFIG_MMC +#define CONFIG_GENERIC_MMC +#define CONFIG_MRVL_MMC +#define CONFIG_SYS_MMC_BASE KW_SDIO_BASE +#endif /* CONFIG_CMD_MMC */ + + +/* * File system */ #define CONFIG_CMD_EXT2