From patchwork Tue Jul 2 04:41:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inderpal Singh X-Patchwork-Id: 18228 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f198.google.com (mail-gh0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8F29623944 for ; Tue, 2 Jul 2013 04:42:02 +0000 (UTC) Received: by mail-gh0-f198.google.com with SMTP id r13sf6942066ghr.5 for ; Mon, 01 Jul 2013 21:42:02 -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=NfW4mmm+gnJz0Y//97Sg5XJiJPQJP7GNGQOLuSCeBuE=; b=BSpuFw0evLLWiDtmWPTgeBP5ZDweSuazfAeX12xT0IHcJltoB7cRR+3oUzeX1nf3jm CsaDPLaKrKinY1bZkkrbRF2kHC8dEKaCQJTXUuYaoNP5WRwaZGBa96R83ExnCOc/oTid f6B8TEi603TM0kr8FIj0KboGM5WOOVLBPYmsetzwtd9lq2oK0YD68TdT+/yfraXqMn5Y v9y5t5IC7VmjKheHkkhgwI2SKOO2H7u7j3yEml+rIxR4q/lqMRLTD57J3cCIhaywztCw +HlIRM4kSMQg+NsTWq/fA05uDQC+kWKMETg80sD0Oeuq+xkZsCx9tSG/IakwAdD+Lavo p2BQ== X-Received: by 10.224.29.76 with SMTP id p12mr28787560qac.5.1372740122154; Mon, 01 Jul 2013 21:42:02 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.47.110 with SMTP id c14ls2622843qen.71.gmail; Mon, 01 Jul 2013 21:42:02 -0700 (PDT) X-Received: by 10.58.24.201 with SMTP id w9mr10863228vef.82.1372740122052; Mon, 01 Jul 2013 21:42:02 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id tk7si5288411vdc.13.2013.07.01.21.42.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Jul 2013 21:42:02 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.179 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.179; Received: by mail-vc0-f179.google.com with SMTP id hz11so2501571vcb.10 for ; Mon, 01 Jul 2013 21:42:01 -0700 (PDT) X-Received: by 10.220.83.69 with SMTP id e5mr8124053vcl.53.1372740121845; Mon, 01 Jul 2013 21:42:01 -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.58.165.8 with SMTP id yu8csp305809veb; Mon, 1 Jul 2013 21:42:01 -0700 (PDT) X-Received: by 10.66.25.10 with SMTP id y10mr26816236paf.96.1372740121037; Mon, 01 Jul 2013 21:42:01 -0700 (PDT) Received: from mail-pa0-f41.google.com (mail-pa0-f41.google.com [209.85.220.41]) by mx.google.com with ESMTPS id ph3si12735385pbc.254.2013.07.01.21.42.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Jul 2013 21:42:01 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.41 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) client-ip=209.85.220.41; Received: by mail-pa0-f41.google.com with SMTP id bj3so5879026pad.28 for ; Mon, 01 Jul 2013 21:42:00 -0700 (PDT) X-Received: by 10.66.224.237 with SMTP id rf13mr27403244pac.26.1372740120630; Mon, 01 Jul 2013 21:42:00 -0700 (PDT) Received: from inder-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id fl2sm27215740pab.23.2013.07.01.21.41.57 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 01 Jul 2013 21:41:59 -0700 (PDT) From: Inderpal Singh To: u-boot@lists.denx.de Cc: chander.kashyap@linaro.org, mk7.kang@samsung.com, patches@linaro.org Subject: [PATCH v3 2/2] exynos5250: arndale: Add mmc support Date: Tue, 2 Jul 2013 10:11:52 +0530 Message-Id: <1372740112-21225-3-git-send-email-inderpal.singh@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1372740112-21225-1-git-send-email-inderpal.singh@linaro.org> References: <1372740112-21225-1-git-send-email-inderpal.singh@linaro.org> X-Gm-Message-State: ALoCoQlWv9zlJwU6vaAmbi43hrNnitoY7rPSD29t/ZbUPXlns+1ML/wpTBSvZtB3XTAncQbWD2NW X-Original-Sender: inderpal.singh@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.179 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 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"; + }; };