From patchwork Thu Sep 5 12:32:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 272874 X-Patchwork-Delegate: promsoft@gmail.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 6CE4F2C00EF for ; Thu, 5 Sep 2013 22:33:51 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E7EE54A0A8; Thu, 5 Sep 2013 14:33:31 +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 faKfsqkUM4zx; Thu, 5 Sep 2013 14:33:31 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7F0374A0A9; Thu, 5 Sep 2013 14:33:15 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5B4444A065 for ; Thu, 5 Sep 2013 14:33:09 +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 QR7lqH+cDG2W for ; Thu, 5 Sep 2013 14:33:03 +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 mail-pa0-f43.google.com (mail-pa0-f43.google.com [209.85.220.43]) by theia.denx.de (Postfix) with ESMTPS id 1E3134A05F for ; Thu, 5 Sep 2013 14:32:52 +0200 (CEST) Received: by mail-pa0-f43.google.com with SMTP id hz10so1832313pad.30 for ; Thu, 05 Sep 2013 05:32:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=7glNB5KEs8QPJd00CJY5JDPli719Dhcvw5DcyjAudiY=; b=HWrWNhHoxgZNMvXpf6D5RpT/ctW3Aa2XpzCyPv2qrCeXdKGwiUAXEVEB55csdl0E7t VgWzfP2Zh7NVGcu1FgJTLS5Aw0OpocHxZ9rNdDba/HiEpcpRQvTrSHsD+KcqXR7C3sd2 afOoPuMeD2s29jYNfHD68oF0XsMNiNQAaVFGCSPmppQ2jrfqaDFhBPqJrsSK3SLv+EMm bc8yfBR3RxS+a33sWpId5obWlf01T8gD0o9CjLoFZpqrU5kLzH47/Aa9Ii5lKxPP0ikM DWdTGO7NrkhSYvH3ZC0r5BYejszz5NZXuk/uJ/qgnf1bLQ3S5httyL7GtBquW5ua+qau rHJw== X-Gm-Message-State: ALoCoQnElQQi4W/yFeN6kGVW9fLdckgKruR1b6RiB9EMGaSqZ8JIfJEg0k82Pxaznnpk+HI6POY7 X-Received: by 10.66.156.199 with SMTP id wg7mr8895227pab.81.1378384370799; Thu, 05 Sep 2013 05:32:50 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id in2sm35377540pbc.37.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 05 Sep 2013 05:32:50 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Date: Thu, 5 Sep 2013 18:02:30 +0530 Message-Id: <1378384350-2776-3-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1378384350-2776-1-git-send-email-chander.kashyap@linaro.org> References: <1378384350-2776-1-git-send-email-chander.kashyap@linaro.org> Subject: [U-Boot] [PATCH v8 2/2] exynos5250: arndale: Add mmc 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Inderpal Singh This patch adds mmc support to the arndale board. Signed-off-by: Inderpal Singh --- board/samsung/arndale/arndale.c | 14 ++++++++++++++ board/samsung/dts/exynos5250-arndale.dts | 18 ++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/board/samsung/arndale/arndale.c b/board/samsung/arndale/arndale.c index 84d8f19..052fecd 100644 --- a/board/samsung/arndale/arndale.c +++ b/board/samsung/arndale/arndale.c @@ -6,6 +6,7 @@ #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; @@ -48,6 +49,19 @@ void dram_init_banksize(void) } } +#ifdef CONFIG_GENERIC_MMC +int board_mmc_init(bd_t *bis) +{ + int ret; + /* dwmmc initializattion for available channels */ + ret = exynos_dwmmc_init(gd->fdt_blob); + if (ret) + debug("dwmmc init failed\n"); + + return ret; +} +#endif + static int board_uart_init(void) { int err = 0, uart_id; diff --git a/board/samsung/dts/exynos5250-arndale.dts b/board/samsung/dts/exynos5250-arndale.dts index ce75314..202f2ea 100644 --- a/board/samsung/dts/exynos5250-arndale.dts +++ b/board/samsung/dts/exynos5250-arndale.dts @@ -18,4 +18,22 @@ serial0 = "/serial@12C20000"; console = "/serial@12C20000"; }; + + mmc@12200000 { + samsung,bus-width = <8>; + samsung,timing = <1 3 3>; + }; + + mmc@12210000 { + status = "disabled"; + }; + + mmc@12220000 { + samsung,bus-width = <4>; + samsung,timing = <1 2 3>; + }; + + mmc@12230000 { + status = "disabled"; + }; };