From patchwork Tue Aug 6 14:26:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 265064 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 2279A2C007B for ; Wed, 7 Aug 2013 00:27:10 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3C1214A02D; Tue, 6 Aug 2013 16:27:07 +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 3FnByywE61ik; Tue, 6 Aug 2013 16:27:07 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 74D974A03B; Tue, 6 Aug 2013 16:26:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CEE084A02F for ; Tue, 6 Aug 2013 16:26: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 07dzgEIsQnLJ for ; Tue, 6 Aug 2013 16:26:52 +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-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by theia.denx.de (Postfix) with ESMTPS id 6FED94A029 for ; Tue, 6 Aug 2013 16:26:45 +0200 (CEST) Received: by mail-pd0-f172.google.com with SMTP id z11so368153pdj.17 for ; Tue, 06 Aug 2013 07:26:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tC599G7FD5LFx1Fvr0eWiqOQZHPOdxmSHAE4sz+7gcU=; b=mx0k2gXlhm7E7lBqt1RL7SE5WBS22vnYY7ueSEje/RAD8GdO97RDtL+Btm4+uOJege gV3Urjgm1o9XwLs3salPOnD0jPX/3IYUJm9Un1SKHiLBapLqhw1Ot7ccYuLuLra+ILGW u2l9Y1ezkPw5aUqGikh0FtBcWxWkmCWkc4xOgH1cbPb87c6MsGab/HjslIfd/fvnwtKX VcipzG1JJWVgvDeML7PvGbgP0BD4MwBM+LqaP2n2kTQ553GjTuhCfJtcO+/n1lkuM+EM ET3r+FszWU1XrMEP8uQo6WQ5ygPGbOLfypEbcjTvCbbxEo1BY9Zbe8E4KBkbbwP9dJMM DLcw== X-Gm-Message-State: ALoCoQm4AKK02h0/dwlo6O5ACTpR5dP4tCP/1lXlN4IM4m2eLtmcU/ixbuCcgVgVSrLdKpVFHjOt X-Received: by 10.68.181.163 with SMTP id dx3mr1730833pbc.186.1375799204157; Tue, 06 Aug 2013 07:26:44 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPSA id dc5sm2290300pbc.37.2013.08.06.07.26.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Aug 2013 07:26:43 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Date: Tue, 6 Aug 2013 19:56:18 +0530 Message-Id: <1375799178-7543-3-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1375799178-7543-1-git-send-email-chander.kashyap@linaro.org> References: <1375799178-7543-1-git-send-email-chander.kashyap@linaro.org> Subject: [U-Boot] [PATCH v5 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 5ec56f6..6d81b90 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 d3c0527..c700e45 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"; + }; };