From patchwork Thu Jul 25 12:46:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 261685 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 D4E6E2C00D4 for ; Thu, 25 Jul 2013 22:48:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 03DDE4A023; Thu, 25 Jul 2013 14:47:56 +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 8TWeUkaesGIk; Thu, 25 Jul 2013 14:47:55 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 18DAF4A019; Thu, 25 Jul 2013 14:47:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 717B64A018 for ; Thu, 25 Jul 2013 14:47:46 +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 27Yce5BOg96B for ; Thu, 25 Jul 2013 14:47:40 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by theia.denx.de (Postfix) with ESMTPS id 53B884A01B for ; Thu, 25 Jul 2013 14:47:29 +0200 (CEST) Received: by mail-pb0-f53.google.com with SMTP id up15so48692pbc.12 for ; Thu, 25 Jul 2013 05:47:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=0mBg505H73cKa+1OwDObWmRUbO196gLIObz+IsyLcV0=; b=bLFgIBvw1+A7FrYKLK5QsMfkd1snZg9JxshxgTubnP++CwZpHFwbG5fFmeDYDnICnS YGAnvF6wlzimO2WJkdaD0zHRwggvEzhY74RSD3ENDDfam1/lXnh7b7yP+5vVxGeGPCGK XgCazfq9ZyVUqfhImDDQaW2YTWtrMSY+4tqYjfhh0kG4U2bChOLBeW1eJOrPNkyYk8Ux oYk+Amu0JqWUq67lEsFBeSkm15oKWxU/IIpHK1aHgUKphR9rPsSw/ZwVOZ03uzn+ZYPu rJhQOSF6a2H6qnlk39QK5GBnyQ2rXgkmZY1HeTeuoV5Ibs47YIn1cJOz4DZ97DvX0gKQ X5Nw== X-Received: by 10.68.191.231 with SMTP id hb7mr45890283pbc.82.1374756447161; Thu, 25 Jul 2013 05:47:27 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id om2sm53866121pbb.34.2013.07.25.05.47.23 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 25 Jul 2013 05:47:26 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Date: Thu, 25 Jul 2013 18:16:59 +0530 Message-Id: <1374756419-7071-3-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1374756419-7071-1-git-send-email-chander.kashyap@linaro.org> References: <1374756419-7071-1-git-send-email-chander.kashyap@linaro.org> X-Gm-Message-State: ALoCoQke6dXP+ZhivKT4Hy1KrhqIxiZfl4Xg4BrvttG2/3nQWSH/OJbXdmLucobJEVqUGWz7kDf8 Subject: [U-Boot] [PATCH v4 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 47cbac8..5ee7252 100644 --- a/board/samsung/arndale/arndale.c +++ b/board/samsung/arndale/arndale.c @@ -22,6 +22,7 @@ #include #include +#include #include DECLARE_GLOBAL_DATA_PTR; @@ -64,6 +65,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, uart_id, ret = 0; diff --git a/board/samsung/dts/exynos5250-arndale.dts b/board/samsung/dts/exynos5250-arndale.dts index 3081ab4..948275a 100644 --- a/board/samsung/dts/exynos5250-arndale.dts +++ b/board/samsung/dts/exynos5250-arndale.dts @@ -20,4 +20,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"; + }; };