From patchwork Thu Dec 20 13:07:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 154332 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6151724ljp; Thu, 20 Dec 2018 05:07:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/WMJs3EvhoL5L31SQ3q3/ZuwbmmF7YVp7eBVdLG/LP4J3PWXOGkhTGcYgxif06C8NkYjDTr X-Received: by 2002:a50:8e16:: with SMTP id 22mr16875108edw.269.1545311242589; Thu, 20 Dec 2018 05:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545311242; cv=none; d=google.com; s=arc-20160816; b=a3VNyGOHl5ZwQ/e2BiawVuC56I/Kw8VowErOfuepo2DJ1C/PpSRao62ZYMmlfwJjBF 4Vb11Z1VCYOiNU2hyT1rLqlMP0t/53QDAaKe4SMnbsHCANjXCijyE2oDUF1elFpdV4S9 LnI1t9Gp7hU78tSw0Bva2e4Zv6k6JilKhwGzMjSzRfB30zw32RW7mUIhoxIiS+yqF2og JASsD3JrX4J8YuOkQUAYPFcafnqTAE1IYSw2TiHoRyHdYbmY3yHU4HFle9aipDn2950R Ly9Uqe/DDTJxPXqpbSPpdLo2ORM8uxxRveh2MwX6LZKHksQaaHi8pFKwCLOMnTu1Q0Ib RQOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature; bh=DDg6fU+s8WC0wSBdU0yiVky4EmYKxizUVxJTfCKwkBo=; b=DP7HIyMwgT3j9GXV/gPYP1wFUqwStkYZvBsqrgmuAXsKRsVqo78GIU3oA/eygyjbH0 bs8kS5FRtvqkl8QzFflWxTnc/HmunBJcCJw3ieC+mc4QW+oZBFQ5LrbXFSyDVElsfTjW uQFUa2uq7ZXCyLORuRVw4SzEA8JPVqVWs0QKpntifhRKCsy5r/STs7AmW0ok53ibiOa8 ZwnVMLO0v02pW23neSJn1/Y+T+tykRqEbGfOx+YHyD7YGOfS1kiehR4/PuANoEmF64tY nUCjBlN6zsiwkvbZTm8pS/TTRy89782UrKKeLeStInw1Fd0YktrBjm77iLzRGkGYIw8t JA0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="kB/gPzGn"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 94si1082933edc.413.2018.12.20.05.07.22; Thu, 20 Dec 2018 05:07:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="kB/gPzGn"; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 0655CC21E63; Thu, 20 Dec 2018 13:07:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 3F11FC21E12; Thu, 20 Dec 2018 13:07:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A5CDEC21D65; Thu, 20 Dec 2018 13:07:18 +0000 (UTC) Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by lists.denx.de (Postfix) with ESMTPS id 0D90BC21BE5 for ; Thu, 20 Dec 2018 13:07:18 +0000 (UTC) Received: by mail-pl1-f195.google.com with SMTP id 101so871219pld.6 for ; Thu, 20 Dec 2018 05:07:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=HfdxrtZmN76l27xqI+kV40IiVuQ4y9WfjmVb8caV3lo=; b=kB/gPzGnnZBdnL+XItgyH52qOT+dmHoIEQ6yzDuamv2i2aPrHO/D7otxwxmRPqBzbj KmyJCnFALGKHa/9yc0dVHS2pZAsItQ/7ipkvq5wQgpwvct72PEvzXhmHD9BgnjQ62a++ vN/XyXHAelj1Z8oQI+7NSb3EVSkcQY1v3v+L0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=HfdxrtZmN76l27xqI+kV40IiVuQ4y9WfjmVb8caV3lo=; b=PLbBaqVWbx6Qhz0JSpvGNipAsxmb55YMRcRKDueCiOiRVJPLbnG3S2PCZSwlKPt06q T9plJBKvd92upllopKdF2Mmx3YUsJ/rj1nCop3EvRgdKetTVtg/l2zfZGlLCMn83ZnbB JCj/diaWY5KQ9VgBlfjB+EAqgQ3X9TmCP2rs/lD94SyMWlXkLDsvGJ9kzEtNwK5tQZMT ma+oeVkm1MKEL3HliQXd2ljmQWKQzTRnuchXteoKA3We7J/3vLo+vgtJ3aeWevT1ifb1 Qhh/wPQD2i7Whpa1c/lxFTQ/rkwcNq50z5GYSMjAKRg1biMCtzsBiK6iGz/ZEIbCQ7g+ GR7w== X-Gm-Message-State: AA+aEWba0N7U0OtCAFHr9f+GWr73EoJ3kleC6V9M8Pk+QvEqaMY9bBbV K4e/PyukCUbTsToYantZSs0Q X-Received: by 2002:a17:902:bd46:: with SMTP id b6mr23882042plx.231.1545311236130; Thu, 20 Dec 2018 05:07:16 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id q195sm23652441pgq.7.2018.12.20.05.07.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 05:07:15 -0800 (PST) From: Manivannan Sadhasivam To: jh80.chung@samsung.com, albert.u.boot@aribaud.net, sjg@chromium.org Date: Thu, 20 Dec 2018 18:37:00 +0530 Message-Id: <20181220130702.23257-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Cc: u-boot@lists.denx.de, Manivannan Sadhasivam Subject: [U-Boot] [PATCH 1/3] include: configs: Add gunzip size for HiKey board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Default 8MB gunzip size is not enough to load the release kernel, hence fix 64MB size for uncompressing the kernel. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Simon Glass --- include/configs/hikey.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/configs/hikey.h b/include/configs/hikey.h index 1376d6155d..572a52fad5 100644 --- a/include/configs/hikey.h +++ b/include/configs/hikey.h @@ -18,6 +18,8 @@ #define CONFIG_REMAKE_ELF +#define CONFIG_SYS_BOOTM_LEN SZ_64M + /* Physical Memory Map */ /* CONFIG_SYS_TEXT_BASE needs to align with where ATF loads bl33.bin */ From patchwork Thu Dec 20 13:07:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 154333 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6152252ljp; Thu, 20 Dec 2018 05:07:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/XrPtCDdBaHq90iuTkSgJv+4TKhQdrY+B4XS4Xm6w5DCaUR7rso62D0xKziPgAG6FWMb0az X-Received: by 2002:a17:906:1598:: with SMTP id k24-v6mr19259629ejd.132.1545311264896; Thu, 20 Dec 2018 05:07:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545311264; cv=none; d=google.com; s=arc-20160816; b=Ae02QY34jQTxP9ascXnmo77GmlWYF2S3Na4HrBqSJ6lj/GmQXqHF4ZjFE0R1vvZsw6 rVUdeNIDyPXsx5NNkS6c0PZlcZJkEdqsvBcwQgEDaEXLLHBbkbcqqAanigGbu1qNb0Bf mZm4Pj+0SGImIOKDcgejfaM4N806ZlO7KYL/jMJhKV4QtUHYs5nEu6SbuqTwEWP4YYT2 sBvkz3H0OwW8ULF4twEeJvBBNith8r4uZ4jN3IhKPzRun5MR+ADiFO7odtT52SGeAxZX GPrARe8li0Qxh88tZlu12oLTRoCs0BlVHQAahCIQDlTYC4+NbSiFVWAYs+tFMyvGSs9q qoNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature; bh=haMCKIFhdWtqGw5MFbuLu1F/2JK3smCGP5Tag8rShgk=; b=GuTLhIBme0f3hZVksfRkNM9ch0Pk/8qAr8ajnowdNySuj/CDnAQ72yHqSaFm70z8yD Dags1rEDUrlAfiwAsSt55X2+lQFHtffY38lphG5LD1mKtCKBcv7Jlzg0HdtTjdCviRex O57XkJGn911LV/i95cWYTVuE4Qb8V92VKSaRk2owrQ/W3fPZBN3b/iFNMS6Xf6QGLXxu MXjNa9dZO4xASFrLpoFToPDgxirEDCxVPCGIiVnsaPeg77o4iJVzsPGLq1EBJmqJvF7g NTRbO1zgT9z/Czpo2AqQnRXAoY/iyVfS9p651gUblHed340d+HZzmdJrmCHy2yIbu2rz Qeqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cG0KqpB7; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 24si5791227edu.308.2018.12.20.05.07.44; Thu, 20 Dec 2018 05:07:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=cG0KqpB7; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 664F3C21F3C; Thu, 20 Dec 2018 13:07:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 12D9FC21F1D; Thu, 20 Dec 2018 13:07:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1A002C21E85; Thu, 20 Dec 2018 13:07:24 +0000 (UTC) Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by lists.denx.de (Postfix) with ESMTPS id 9CE6FC21EF0 for ; Thu, 20 Dec 2018 13:07:20 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id n2so880224pgm.3 for ; Thu, 20 Dec 2018 05:07:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Q/+qZ0uaOB8EXLNkS+FGI2O2hi0FlnR1+RtrlPRVT2I=; b=cG0KqpB7WmpXLSQb7FSn4ejoqkEQ5vJAULqcm24bMReOkuWmrAr0nsOvuR6DE21sGb p98iQuds010AFQ2Z+7onXElT5hUpljeB1+lXsHIL0ugUiqgK3UeZKGPUPrDNd3USHdDZ 90+gHhgrs/Kiha16tYCfwPnUMexEJcESyLVEQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q/+qZ0uaOB8EXLNkS+FGI2O2hi0FlnR1+RtrlPRVT2I=; b=Pl2trEu9p4/huvHChA6UY1H0DkHJt3+3x3BP/XvII89owSOx8heqrer0zHzgHeCL8M 5rnYaqmK91RXdofDKbYQEEjYUECiVPnqiUFeqMXTJo1AWAkRL9ij6ghD1wwymRbOqXej 0oUsLsMQs6fO7pgTUyBbGKphvngSYlavMs13WJ4gp9jthecN02oijoF+Zu3fCqiH6cO5 iu2cUFJZxyveA0Dqg/FJU7vEzeqIxaeaYMbcFgw+vT5uAn7Oq+VDzuH4IBsJ2qNggg6a c3M/Y1tnu5MHhOTqAwXaKzuR2NsTuYX41hPCuNnLey0m05ivbgaaDEeQ0tq1dYgjah5g sq4w== X-Gm-Message-State: AA+aEWad/n29c75dj3KNOjctE3FrNRc3l/uWhjDcTB9YVn17KX5jarVW zQBRo8cDI/8DSYPLCfGKXZhE X-Received: by 2002:a63:c051:: with SMTP id z17mr22569458pgi.20.1545311239135; Thu, 20 Dec 2018 05:07:19 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id q195sm23652441pgq.7.2018.12.20.05.07.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 05:07:18 -0800 (PST) From: Manivannan Sadhasivam To: jh80.chung@samsung.com, albert.u.boot@aribaud.net, sjg@chromium.org Date: Thu, 20 Dec 2018 18:37:01 +0530 Message-Id: <20181220130702.23257-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181220130702.23257-1-manivannan.sadhasivam@linaro.org> References: <20181220130702.23257-1-manivannan.sadhasivam@linaro.org> Cc: u-boot@lists.denx.de, Manivannan Sadhasivam Subject: [U-Boot] [PATCH 2/3] mmc: Convert HI6220 MMC driver to driver model X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Convert HiSilicon HI6220 MMC driver based on DWMMC IP to driver model. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Simon Glass --- configs/hikey_defconfig | 1 + drivers/mmc/hi6220_dw_mmc.c | 100 +++++++++++++++++++++++++----------- 2 files changed, 70 insertions(+), 31 deletions(-) diff --git a/configs/hikey_defconfig b/configs/hikey_defconfig index 8dc5a2823e..cced2b4802 100644 --- a/configs/hikey_defconfig +++ b/configs/hikey_defconfig @@ -18,6 +18,7 @@ CONFIG_DEFAULT_DEVICE_TREE="hi6220-hikey" CONFIG_ENV_IS_IN_FAT=y CONFIG_ENV_FAT_INTERFACE="mmc" CONFIG_ENV_FAT_DEVICE_AND_PART="1:1" +CONFIG_DM_MMC=y CONFIG_MMC_DW=y CONFIG_MMC_DW_K3=y CONFIG_CONS_INDEX=4 diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c index ce395d53c9..cc58aff38c 100644 --- a/drivers/mmc/hi6220_dw_mmc.c +++ b/drivers/mmc/hi6220_dw_mmc.c @@ -5,51 +5,89 @@ */ #include +#include #include +#include +#include #include -#include -#define DWMMC_MAX_CH_NUM 4 +DECLARE_GLOBAL_DATA_PTR; -#define DWMMC_MAX_FREQ 50000000 -#define DWMMC_MIN_FREQ 400000 +struct hi6220_dwmmc_plat { + struct mmc_config cfg; + struct mmc mmc; +}; -/* Source clock is configured to 100MHz by ATF bl1*/ -#define MMC0_DEFAULT_FREQ 100000000 +struct hi6220_dwmmc_priv_data { + struct dwmci_host host; +}; -static int hi6220_dwmci_core_init(struct dwmci_host *host, int index) +static int hi6220_dwmmc_ofdata_to_platdata(struct udevice *dev) { - host->name = "Hisilicon DWMMC"; + struct hi6220_dwmmc_priv_data *priv = dev_get_priv(dev); + struct dwmci_host *host = &priv->host; - host->dev_index = index; + host->name = dev->name; + host->ioaddr = (void *)devfdt_get_addr(dev); + host->buswidth = fdtdec_get_int(gd->fdt_blob, dev_of_offset(dev), + "bus-width", 4); + + /* use non-removable property for differentiating SD card and eMMC */ + if (dev_read_bool(dev, "non-removable")) + host->dev_index = 0; + else + host->dev_index = 1; + + host->priv = priv; - /* Add the mmc channel to be registered with mmc core */ - if (add_dwmci(host, DWMMC_MAX_FREQ, DWMMC_MIN_FREQ)) { - printf("DWMMC%d registration failed\n", index); - return -1; - } return 0; } -/* - * This function adds the mmc channel to be registered with mmc core. - * index - mmc channel number. - * regbase - register base address of mmc channel specified in 'index'. - * bus_width - operating bus width of mmc channel specified in 'index'. - */ -int hi6220_dwmci_add_port(int index, u32 regbase, int bus_width) +static int hi6220_dwmmc_probe(struct udevice *dev) { - struct dwmci_host *host = NULL; + struct hi6220_dwmmc_plat *plat = dev_get_platdata(dev); + struct mmc_uclass_priv *upriv = dev_get_uclass_priv(dev); + struct hi6220_dwmmc_priv_data *priv = dev_get_priv(dev); + struct dwmci_host *host = &priv->host; - host = calloc(1, sizeof(struct dwmci_host)); - if (!host) { - pr_err("dwmci_host calloc failed!\n"); - return -ENOMEM; - } + /* Use default bus speed due to absence of clk driver */ + host->bus_hz = 50000000; - host->ioaddr = (void *)(ulong)regbase; - host->buswidth = bus_width; - host->bus_hz = MMC0_DEFAULT_FREQ; + dwmci_setup_cfg(&plat->cfg, host, host->bus_hz, 400000); + host->mmc = &plat->mmc; - return hi6220_dwmci_core_init(host, index); + host->mmc->priv = &priv->host; + upriv->mmc = host->mmc; + host->mmc->dev = dev; + + return dwmci_probe(dev); } + +static int hi6220_dwmmc_bind(struct udevice *dev) +{ + struct hi6220_dwmmc_plat *plat = dev_get_platdata(dev); + int ret; + + ret = dwmci_bind(dev, &plat->mmc, &plat->cfg); + if (ret) + return ret; + + return 0; +} + +static const struct udevice_id hi6220_dwmmc_ids[] = { + { .compatible = "hisilicon,hi6220-dw-mshc" }, + { } +}; + +U_BOOT_DRIVER(hi6220_dwmmc_drv) = { + .name = "hi6220_dwmmc", + .id = UCLASS_MMC, + .of_match = hi6220_dwmmc_ids, + .ofdata_to_platdata = hi6220_dwmmc_ofdata_to_platdata, + .ops = &dm_dwmci_ops, + .bind = hi6220_dwmmc_bind, + .probe = hi6220_dwmmc_probe, + .priv_auto_alloc_size = sizeof(struct hi6220_dwmmc_priv_data), + .platdata_auto_alloc_size = sizeof(struct hi6220_dwmmc_plat), +}; From patchwork Thu Dec 20 13:07:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 154334 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp6153045ljp; Thu, 20 Dec 2018 05:08:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ul5YaVw7w7/ThwbGUpwi7dhcTT5gXrgtBr9bz3F/BuSqOOcKEN+iMyq2NM0VZ9cq/9Ami2 X-Received: by 2002:aa7:d7cf:: with SMTP id e15mr22704592eds.69.1545311298645; Thu, 20 Dec 2018 05:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545311298; cv=none; d=google.com; s=arc-20160816; b=h5PtrGz0wHfXrY85LoEVMPueQLHpDFGKiJZrVwJd1oIBeLIIFb4STC8dAKZ7CXI67c XQvCzml6tmvcJw4pKG7/eow4ILdsvxeVyNt6iuPtCXTOkJonrtyDv29J5TU5PN3J8EIz /ioPxeMqg161q0JdgFN10yxMPHiDMJe8zP6skdKy6QxECt1pG1308/wZHZgDHxPSAG1r lrLcOSGv6oQxWQ8TdSo6cKw8uTsaoIh0FD2PJMuWdmycNLDIfhIoB7LX9gk7nPKOEb6N VdbZJQlmWP8xcIVe5aGVzU2+kn/dtbEu3sxeN0rMdJaTCtYKLMMkbYd/4vnn0jSyJVrc 1bJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature; bh=aIXrtv0wjdVA2YWV6CAy+s/PX9HoFmFFXAZ9cQSP5gc=; b=ufY/9ZEUG8GXhK+fqfjYBvo0TRLyINdtsA39xP6zYa1jTo8hcMcbNOKxr56TPKYDpC RQDZokVxIaBkGMlmD2U/S/kpCCZBVcdwBHlwKOrbLySdzEb73cILnKfggB9bFlOVYu7v oZhnmF3vMVmvmQs0v/Zn1FMk1KzDBuBGqEULQfmcZ4kU711+WNGFSe5D2Wxs3+mMZNF9 n783xcrUkcTOxN5vpPbKDR8DuVnXvfHoHwjvAIr+Qo+IP1Rac1Rgnlpz0m0wlgbx2OIf Rt/hRLR13fJMUSNQXaP2eFwDcuGNPm/Ju8n4S1icjlBp2kRq/2AIlrmL6wlB60ghCkoy ujnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AHUZfCuQ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g18-v6si5896268eja.148.2018.12.20.05.08.18; Thu, 20 Dec 2018 05:08:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=AHUZfCuQ; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 43F50C21F00; Thu, 20 Dec 2018 13:07:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 0E677C21F2B; Thu, 20 Dec 2018 13:07:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 49AF5C21F5B; Thu, 20 Dec 2018 13:07:27 +0000 (UTC) Received: from mail-pf1-f195.google.com (mail-pf1-f195.google.com [209.85.210.195]) by lists.denx.de (Postfix) with ESMTPS id 52DBDC21F2F for ; Thu, 20 Dec 2018 13:07:23 +0000 (UTC) Received: by mail-pf1-f195.google.com with SMTP id q1so912671pfi.5 for ; Thu, 20 Dec 2018 05:07:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0xe6RRBqLDiBZ0bG6QHN5OQYNUybFJx6oSADw5mNqdo=; b=AHUZfCuQRTmw6FVmNxvbiUSEXwytIUHOo1qlGMLLY/lPN1TYaLqewTZ3KMHgDYLI8M eqoRQf64Qf5AH903lwCgwR1uL2cFRCD9yoeP8DA3q9CN6oxs3wIDVKOiTMVJomd/WSmw wzhqT56kfqEaSTt6is/717Omh8y8qlv2++W64= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0xe6RRBqLDiBZ0bG6QHN5OQYNUybFJx6oSADw5mNqdo=; b=n4twX3XR8kQHcVQgFxZmbUIGAEGoLVtlFt/+vXDmKYv4TkKCfR/RRto59Azr/MgIX/ cVz+SXqne+Brl9AV/8wQd/lIu6QG835mAe1Rjn8m0is76ZyUz7/tBVdQ/057EJOhD/i3 D1CH3cgSHAUijoEIOsU7uKUAPf9zicl7ASS6y7xG/Sm/1ZDd7OovK6b0nBFUTEP4vJwq RFoXdYw5TEskQPd0F6+fMQ0UWopSY2NJtB2G4r45ib87fW45NS3Iy4uD1B4LoIvoVfhp XJZl36trH1Y2zYLyCz3T/pLoR6579YFs2MbmnrBwXYDCQZDpMUDUer+1XYw8BTJ7hNVy TyLQ== X-Gm-Message-State: AA+aEWbYiUXRDDyJwsBwpU+TDY/tA1/xf/aYIrgJnI447OY4pLEKphb7 8U47/l1yBSVml35G6XTfHUMf X-Received: by 2002:a63:1e17:: with SMTP id e23mr22804237pge.130.1545311241841; Thu, 20 Dec 2018 05:07:21 -0800 (PST) Received: from localhost.localdomain ([103.59.133.81]) by smtp.googlemail.com with ESMTPSA id q195sm23652441pgq.7.2018.12.20.05.07.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Dec 2018 05:07:21 -0800 (PST) From: Manivannan Sadhasivam To: jh80.chung@samsung.com, albert.u.boot@aribaud.net, sjg@chromium.org Date: Thu, 20 Dec 2018 18:37:02 +0530 Message-Id: <20181220130702.23257-3-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181220130702.23257-1-manivannan.sadhasivam@linaro.org> References: <20181220130702.23257-1-manivannan.sadhasivam@linaro.org> Cc: u-boot@lists.denx.de, Manivannan Sadhasivam Subject: [U-Boot] [PATCH 3/3] arm: dts: Add MMC nodes for HiKey board X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add MMC nodes for HiKey board based on HI6220 SoC. There are two MMC controllers in this SoC, first one used for eMMC and second one used for SD card. Signed-off-by: Manivannan Sadhasivam Reviewed-by: Simon Glass --- arch/arm/dts/hi6220-hikey.dts | 13 +++++++++++++ arch/arm/dts/hi6220.dtsi | 18 ++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/arch/arm/dts/hi6220-hikey.dts b/arch/arm/dts/hi6220-hikey.dts index 24f09257af..9c8f2467dc 100644 --- a/arch/arm/dts/hi6220-hikey.dts +++ b/arch/arm/dts/hi6220-hikey.dts @@ -40,6 +40,19 @@ }; }; +&mmc0 { + u-boot,dm-pre-reloc; + status = "okay"; + non-removable; + bus-width = <8>; +}; + +&mmc1 { + u-boot,dm-pre-reloc; + status = "okay"; + bus-width = <4>; +}; + &uart2 { label = "LS-UART0"; }; diff --git a/arch/arm/dts/hi6220.dtsi b/arch/arm/dts/hi6220.dtsi index a610ccb634..501c8906fd 100644 --- a/arch/arm/dts/hi6220.dtsi +++ b/arch/arm/dts/hi6220.dtsi @@ -162,6 +162,24 @@ #clock-cells = <1>; }; + mmc0: dwmmc@f723d000 { + compatible = "hisilicon,hi6220-dw-mshc"; + reg = <0x0 0xf723d000 0x0 0x1000>; + interrupts = <0x0 0x48 0x4>; + clocks = <&sys_ctrl 2>, <&sys_ctrl 1>; + clock-names = "ciu", "biu"; + status = "disabled"; + }; + + mmc1: dwmmc@f723e000 { + compatible = "hisilicon,hi6220-dw-mshc"; + reg = <0x0 0xf723e000 0x0 0x1000>; + interrupts = <0x0 0x49 0x4>; + clocks = <&sys_ctrl 4>, <&sys_ctrl 3>; + clock-names = "ciu", "biu"; + status = "disabled"; + }; + uart0: uart@f8015000 { /* console */ compatible = "arm,pl011", "arm,primecell"; reg = <0x0 0xf8015000 0x0 0x1000>;