Message ID | 20240808031444.9619-24-semen.protsenko@linaro.org |
---|---|
State | Accepted |
Commit | b55f03ee040383416038b2bb31e5bde138b9eca2 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:4e11:0:b0:367:895a:4699 with SMTP id p17csp675542wrt; Wed, 7 Aug 2024 20:19:07 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVeeTMb/wdKma3mvmS5mvTPnh/i6OgBnE5pVBynBykVXpBjI3SKiRvFqm2lKZWYPdah623pKttD9WnUBIcy3jHN X-Google-Smtp-Source: AGHT+IH/thWpNgrqEJJ8bfvZHO7Wu7oKW84Cu2Kh/RGMoy8vvRxZPv/d2rfuncKjQ8+0cJXrSBBJ X-Received: by 2002:a05:6402:3484:b0:5b9:3846:8bab with SMTP id 4fb4d7f45d1cf-5bbb21a3b5bmr484304a12.14.1723087147043; Wed, 07 Aug 2024 20:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723087147; cv=none; d=google.com; s=arc-20160816; b=hhe1H1kWY3O2x5xaBFmhWKuUc+sAZEs+z1W+hzdayg1i8nfHngZ3LwotmUNmfQoddZ psss9YM+Yn5QdO+dfs0nUX89QQHLXxEblWoJx8OxhUo/BiKsDdQsvqxl14GgrBktw+2U 74yW6M2h2mL4ajbnEhgJkV89yi4fw3ncb3u6nj1zfiwYo9EZZJfOi3CHzobtwnw+eYnM oQIdZDnuS2kjxJmUxuhJyKrEWuugBGxMTcy045NWfwRXFZg7aWSngN+mlk5TpK0jvwg9 /LLCoscuGRM8tyWwdNTabj3Cxm+HrCpkmfBu1eUE/jzaWK7m0cFgOlkJE1570pfx0/tx wfpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=invefIoNeSGS3tiUpl+43dNdH+yHeDxghKAHCOxtGnQ=; fh=SgNO6FOoxkqnjIJWrxFyeKRj+UHbQxssA6r38U6ESWA=; b=B8Ic9dRvZ9NeZYK3uoi60h7CT9wj3d+ryM1oVkopl6JD4bii1JihheIVckcPph5u07 A/7zafu5jSg98OeNNS+HE8WTYUKjHYZORYspcwx55wEcL0FySx2BVGbN336lpcvM1Z16 aOh8wpWRoPheUmbbstrO+5To4GPxEpivsZxmuGkiWbRff7gug1sLKjW1h791uHpUowNi ndWxCZYqCKLDWK/wMjPMQSgRdXwVXZ8dNCthDUDys2IGjH1wIf65P/vCGhRH9zceAzEl beZLVaWFzK5RnNlH2esCqhUZDvC52PDnNpV0OZ532XD/GtYT/iB6vjq/k8jufbXMg2FR w4rA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ou1hRH3t; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5bbb2bf8451si260825a12.7.2024.08.07.20.19.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 20:19:07 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ou1hRH3t; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E8A5288BC1; Thu, 8 Aug 2024 05:15:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ou1hRH3t"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DA91288B48; Thu, 8 Aug 2024 05:15:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2D3F788A87 for <u-boot@lists.denx.de>; Thu, 8 Aug 2024 05:15:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=semen.protsenko@linaro.org Received: by mail-oi1-x236.google.com with SMTP id 5614622812f47-3db23a60850so379696b6e.0 for <u-boot@lists.denx.de>; Wed, 07 Aug 2024 20:15:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1723086902; x=1723691702; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=invefIoNeSGS3tiUpl+43dNdH+yHeDxghKAHCOxtGnQ=; b=ou1hRH3tJKCvZZ0vQ0XHexOVkzhUUtgpObdBXs1MnOb1TcdbQqM6t7zh9gwh7Pb7Yu hSPJ4LUUlhLDNUgCAuGqoteOIMrx67fmJRxoQJAYrQZ1jcaoAA6P4Fdnin+77/qJzOiG 0TNv8cgamtJnsMDjekk+Bj6tGV8gW6u8P4S20gUGpgwiEO4+1xfPZChiEOERVyeLEXf5 WuqJlXltiIl6mpwHq9oL88FidBqAbmscBKLCsxvdUWDv/fEVHYPGxQ15FquW/q9fjcbM amTdFWj80YvH3/vHaMjifjG1B0ciEapohe77+buvhUDdwLxgaQSSky/43Y/nouLVpmQX ihig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723086902; x=1723691702; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=invefIoNeSGS3tiUpl+43dNdH+yHeDxghKAHCOxtGnQ=; b=NXVjTAUODnsm0deh5MmR/2xqHyO0T0W+YL/g20WJtlM6byW7/NdzjGRpwMJ+tns36I u3SYFhLAw9zwoBqYp454++5rfe2sNh803n8PzE884dqNX+wswV/WBZ+8PE6Qux78iVwY FfH1O1f1rnoz0AZGxfHT/oieDMrk44k3ukuWJTRqmapmiqwGaboq1MciBBg4cgESjisZ vsfyWtZD4Rfc0n1x/6/FSZOc7QZDnutLtq4wrmVIz+CkIEyUBHCcoL/6rbR93UMTY7UU bbZWOcUem9nhrCsQ6AVCXZpp2z/1BCUqCHjpLDvwa3OnxqTgJtvztAB1911Aj624Gq1a 3uEw== X-Forwarded-Encrypted: i=1; AJvYcCUoXueGquHeBwUB63+qV2gGSIpk/yf/zrnFYmzk+qbMqdvMUrIaSqCasiEL9/RvUyVUqxVrrieKEPzknxeVDPF90OuGRw== X-Gm-Message-State: AOJu0Yx+rtKngx3NcVwXzoilKwBymMCq1cGmBWuXFyrNwaAwU1s+rkyQ gk2cY3hLvjlvZOv2Y4+nLEADxhRKzeRC0RL/wirI82Dg2VGo7hjpZL/2zS1R2dc= X-Received: by 2002:a05:6808:2396:b0:3dc:1720:ffb3 with SMTP id 5614622812f47-3dc3b4266a0mr687420b6e.23.1723086901752; Wed, 07 Aug 2024 20:15:01 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 5614622812f47-3db5637b600sm4663880b6e.33.2024.08.07.20.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 20:15:01 -0700 (PDT) From: Sam Protsenko <semen.protsenko@linaro.org> To: Minkyu Kang <promsoft@gmail.com>, Minkyu Kang <mk7.kang@samsung.com>, Jaehoon Chung <jh80.chung@samsung.com> Cc: Tom Rini <trini@konsulko.com>, Henrik Grimler <henrik@grimler.se>, Peng Fan <peng.fan@nxp.com>, Simon Glass <sjg@chromium.org>, Quentin Schulz <quentin.schulz@cherry.de>, Philipp Tomsich <philipp.tomsich@vrull.eu>, Kever Yang <kever.yang@rock-chips.com>, Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>, Peter Robinson <pbrobinson@gmail.com>, Jonas Karlman <jonas@kwiboo.se>, Yang Xiwen <forbidden405@outlook.com>, Ferass El Hafidi <vitali64pmemail@protonmail.com>, Sean Anderson <seanga2@gmail.com>, u-boot@lists.denx.de, uboot-snps-arc@synopsys.com Subject: [PATCH v5 23/38] mmc: exynos_dw_mmc: Read upstream SDR timing properties Date: Wed, 7 Aug 2024 22:14:29 -0500 Message-Id: <20240808031444.9619-24-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240808031444.9619-1-semen.protsenko@linaro.org> References: <20240808031444.9619-1-semen.protsenko@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
mmc: dw_mmc: Enable eMMC on E850-96 board
|
expand
|
diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index 50d0208b29fd..4108af47e518 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -227,7 +227,7 @@ static int exynos_dwmmc_of_to_plat(struct udevice *dev) struct dwmci_exynos_priv_data *priv = dev_get_priv(dev); struct dwmci_host *host = &priv->host; int err = 0; - u32 timing[3]; + u32 div, timing[2]; #ifdef CONFIG_CPU_V7A const void *blob = gd->fdt_blob; @@ -262,16 +262,16 @@ static int exynos_dwmmc_of_to_plat(struct udevice *dev) } /* Extract the timing info from the node */ - err = dev_read_u32_array(dev, "samsung,timing", timing, 3); + div = dev_read_u32_default(dev, "samsung,dw-mshc-ciu-div", 0); + err = dev_read_u32_array(dev, "samsung,dw-mshc-sdr-timing", timing, 2); if (err) { - printf("DWMMC%d: Can't get sdr-timings for devider\n", - host->dev_index); + printf("DWMMC%d: Can't get sdr-timings\n", host->dev_index); return -EINVAL; } - priv->sdr_timing = (DWMCI_SET_SAMPLE_CLK(timing[0]) | - DWMCI_SET_DRV_CLK(timing[1]) | - DWMCI_SET_DIV_RATIO(timing[2])); + priv->sdr_timing = DWMCI_SET_SAMPLE_CLK(timing[0]) | + DWMCI_SET_DRV_CLK(timing[1]) | + DWMCI_SET_DIV_RATIO(div); /* sdr_timing didn't assigned anything, use the default value */ if (!priv->sdr_timing) {
The obsolete "samsung,timing" dts property is now split into "samsung,dw-mshc-ciu-div" (for holding the internal DW MMC divider value) and "samsung,dw-mshc-sdr-timing" (for actual timing values) in upstream Linux kernel. Rework the driver to make use of new properties instead of the old one. All affected dts files were already updated accordingly. No functional change. Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> --- Changes in v5: - (none) Changes in v4: - (none) Changes in v3: - (none) Changes in v2: - (none) drivers/mmc/exynos_dw_mmc.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-)