From patchwork Sun Jul 7 23:47:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: DrEagle X-Patchwork-Id: 257450 X-Patchwork-Delegate: sr@denx.de 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 A53812C009D for ; Mon, 8 Jul 2013 09:48:05 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 697614A0C2; Mon, 8 Jul 2013 01:48:04 +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 a5wgCjpvo1KK; Mon, 8 Jul 2013 01:48:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 05BE64A0BB; Mon, 8 Jul 2013 01:48:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 70ECE4A0BB for ; Mon, 8 Jul 2013 01:47:57 +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 MvVTIrLH6HjT for ; Mon, 8 Jul 2013 01:47:57 +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 ESMTP id 08F854A0B8 for ; Mon, 8 Jul 2013 01:47:55 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by milenium.gk2.net (Postfix) with ESMTP id 1242D2D40A2; Mon, 8 Jul 2013 01:47:55 +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 wqneTpYfQ6os; Mon, 8 Jul 2013 01:47:51 +0200 (CEST) Received: from [192.168.1.101] (astree.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 39F922D407A; Mon, 8 Jul 2013 01:47:50 +0200 (CEST) Message-ID: <51D9FE25.2050101@doukki.net> Date: Mon, 08 Jul 2013 01:47:49 +0200 From: DrEagle User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: "u-boot@lists.denx.de" References: <51D3437F.9040000@doukki.net> <20130705230848.457e1e24@lilith> In-Reply-To: <20130705230848.457e1e24@lilith> X-Enigmail-Version: 1.6a1pre Cc: Lior Amsalem , Maen Suleiman , "uboot@doukki.net" , afleming@gmail.com Subject: [U-Boot] [PATCH 6/8] arm kirkwood add MVSDIO sheevaplug support 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 sheevaplug MVSDIO driver support Signed-off-by: drEagle board/Marvell/sheevaplug/sheevaplug.c | include/configs/sheevaplug.h | #define CONFIG_CMD_FAT #define CONFIG_CMD_JFFS2 #define CONFIG_CMD_UBI #define CONFIG_CMD_UBIFS #define CONFIG_RBTREE #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ #define CONFIG_MTD_PARTITIONS #define CONFIG_CMD_MTDPARTS #define CONFIG_LZO +/* + * 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 */ #endif /* _CONFIG_SHEEVAPLUG_H */ diff --git a/board/Marvell/sheevaplug/sheevaplug.c b/board/Marvell/sheevaplug/sheevaplug.c index 16efe64..2bd2568 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..270fd56 100644 --- a/include/configs/sheevaplug.h +++ b/include/configs/sheevaplug.h @@ -39,17 +40,24 @@ /* * Commands configuration */ #define CONFIG_SYS_NO_FLASH /* Declare no flash (NOR/SPI) */ #include #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 /* * mv-common.h should be defined after CMD configs since it used them * to enable certain macros @@ -98,17 +138,20 @@ #endif /* CONFIG_CMD_NET */ /* * File system */ #define CONFIG_CMD_EXT2