From patchwork Fri Jun 7 12:04:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inderpal Singh X-Patchwork-Id: 17678 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gg0-f198.google.com (mail-gg0-f198.google.com [209.85.161.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 04E4D25E1F for ; Fri, 7 Jun 2013 12:04:54 +0000 (UTC) Received: by mail-gg0-f198.google.com with SMTP id p4sf1344346ggn.5 for ; Fri, 07 Jun 2013 05:04:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=EOmUKaN3+DDt4DZ2B2WnsnsdOZZTMueCMaYIVg97IaE=; b=KG0p8916CRdm07f+hwunb7pUrHWCmBYnCEXQdDe57F50M1UfAne+oY1/UfvJPS+x0Z yyB5S7Y38/+j0AzkDkW8kn4Be1Fz2OmG1rU5uMRSKBPwCmQPRYVc4xWP7GiHZployUba e5ZYQa6X9OxdPQcC92NnxjiH+sNQJr4E7+z68KfUCi9rotB07reWw0Sd0lkId5JpMZj/ TZEaVQosKFxo11XtSwo0FXcM/UHsi9lfJEBWlACXrUHhHCLvMdqC1tM3SGXK6gQ7b8f0 MpwIl1ci+Eoy7Sju0boWOL6Z8s1Nm+GHldN3vtBMXp0xprMli79Eqb0EMhXJL1JAePNQ 6uVg== X-Received: by 10.224.59.205 with SMTP id m13mr1269092qah.7.1370606693508; Fri, 07 Jun 2013 05:04:53 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.118.66 with SMTP id kk2ls1788501qeb.48.gmail; Fri, 07 Jun 2013 05:04:53 -0700 (PDT) X-Received: by 10.220.48.73 with SMTP id q9mr23720633vcf.36.1370606693354; Fri, 07 Jun 2013 05:04:53 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id be4si3364295ved.25.2013.06.07.05.04.53 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Jun 2013 05:04:53 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ia10so2689363vcb.14 for ; Fri, 07 Jun 2013 05:04:53 -0700 (PDT) X-Received: by 10.52.53.36 with SMTP id y4mr19530567vdo.51.1370606693266; Fri, 07 Jun 2013 05:04:53 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp111734vcb; Fri, 7 Jun 2013 05:04:52 -0700 (PDT) X-Received: by 10.68.189.67 with SMTP id gg3mr43477930pbc.141.1370606692376; Fri, 07 Jun 2013 05:04:52 -0700 (PDT) Received: from mail-pb0-x22d.google.com (mail-pb0-x22d.google.com [2607:f8b0:400e:c01::22d]) by mx.google.com with ESMTPS id rl1si23493717pbc.294.2013.06.07.05.04.52 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Jun 2013 05:04:52 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c01::22d is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) client-ip=2607:f8b0:400e:c01::22d; Received: by mail-pb0-f45.google.com with SMTP id mc8so4629181pbc.4 for ; Fri, 07 Jun 2013 05:04:52 -0700 (PDT) X-Received: by 10.68.252.227 with SMTP id zv3mr44139790pbc.14.1370606691859; Fri, 07 Jun 2013 05:04:51 -0700 (PDT) Received: from inder-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id nk2sm22756636pbc.43.2013.06.07.05.04.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 07 Jun 2013 05:04:51 -0700 (PDT) From: Inderpal Singh To: u-boot@lists.denx.de Cc: mk7.kang@samsung.com, promsoft@gmail.com, patches@linaro.org, chander.kashyap@linaro.org Subject: [PATCH v2 2/2] exynos5250: arndale: Add mmc support Date: Fri, 7 Jun 2013 17:34:26 +0530 Message-Id: <1370606666-2657-3-git-send-email-inderpal.singh@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1370606666-2657-1-git-send-email-inderpal.singh@linaro.org> References: <1370606666-2657-1-git-send-email-inderpal.singh@linaro.org> X-Gm-Message-State: ALoCoQn3nS14/lwg9DjQqWpvqilKLt9thJjCaV7/GoxLgvv3jh6UJikxY7snlDUbgJ8Am1mntA4v X-Original-Sender: inderpal.singh@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 627583b..7f8a568 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 b6ca4d9..9b4d6b2 100644 --- a/board/samsung/dts/exynos5250-arndale.dts +++ b/board/samsung/dts/exynos5250-arndale.dts @@ -15,4 +15,22 @@ / { model = "SAMSUNG Arndale board based on EXYNOS5250"; compatible = "samsung,arndale", "samsung,exynos5250"; + + 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"; + }; };