Message ID | 20240522233135.26835-34-semen.protsenko@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ab3:6414:0:b0:267:d849:ee76 with SMTP id j20csp919257lte; Wed, 22 May 2024 16:37:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUKfdikCa46rf1k6xs68L7RXxH5Wob/zLX5c2DupWBz9pxzEZdS9ug+CukGyftJBdmm5GHj5hY7AO4gyI2LI8BJ X-Google-Smtp-Source: AGHT+IHp79/UqKbm8NLlnTV1D39Z12yBVth6yuQ67F94lUASZDvDkdE0NvIh3qHMtWI7UDBVRpA4 X-Received: by 2002:a50:8e14:0:b0:570:d85:f296 with SMTP id 4fb4d7f45d1cf-57832bedb2bmr2677960a12.26.1716421067957; Wed, 22 May 2024 16:37:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1716421067; cv=none; d=google.com; s=arc-20160816; b=gKBsae+NlJT0Zc/YejXsB3mjtvXP+SeNrBnr1Q9WS/DvFjm6NK9GBdWcKrZWgoLlbg 6aqqmnfbn5I4JyRC7IJ/eOmYYn5YKjjMkkhuR7BHXL2ycusBpPN1Q9RVa/nwu448jZly AYnY61K1TKCxauyibJoA1un5vuSHvfY65G6wWd742YikbTC4f1iS5CrVMmVGolKlxy1c zbJIiRGGSdbp/tUFz47GCzrzoDK5AXN5logjdYXp8O3hl6iRHQFMyn3eVi5ozCOlX1QZ eMILHolQ4jl6ofEm0jv3uL0coFZmBKxSxVyE9+2HYElpBQTalQAk7ioi2JowDVXdHz4v l2jA== 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=e3I+qziADukJZPXKQtX4Z43+D4uHEu+EXcXUTJu4VN0=; fh=mqq7nE8w6cXlBTzaUAnHRLGwqLrbEIJXpeqL3VEa8zo=; b=UezuzshQnpGjBtuXWiWuddzPNgLij7Y7foGy9Ycr+LQo4W+hhUPZYsUT5wvMQEwsep yHuqELiG6VVeDwBLI5g4L1EUyKn3JqGrpsd3cUKMhmSEyKHaYJCzjVS7ysw1pEmlydID rDjwNj2iZ/biRZ9YuBmVX/n2GU6MjcX5fShcjvT4F4Oy0F2eZm0NxpvvnWI0JD5Tlz5a 1/aidNUmqqTueHoJF15PXiaM7VWmtU5sohBN7Q8clwcFZH+wNxPkNuPzDIDZTlFXU5W/ NW1mOkMkdYAy4xfsGwhWpz5qoQsb3F62fX6ce7rGe8X9By6ZsSJlJepCgWhRZcwopE54 Eicg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ww3aDiu7; 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 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-578222b6986si2335360a12.264.2024.05.22.16.37.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:37:47 -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=Ww3aDiu7; 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 Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6966688565; Thu, 23 May 2024 01:32:16 +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="Ww3aDiu7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 07B7388551; Thu, 23 May 2024 01:32:12 +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-oa1-x31.google.com (mail-oa1-x31.google.com [IPv6:2001:4860:4864:20::31]) (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 BBE0E885AF for <u-boot@lists.denx.de>; Thu, 23 May 2024 01:32:05 +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-oa1-x31.google.com with SMTP id 586e51a60fabf-23fb9c871c8so2838194fac.1 for <u-boot@lists.denx.de>; Wed, 22 May 2024 16:32:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716420724; x=1717025524; 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=e3I+qziADukJZPXKQtX4Z43+D4uHEu+EXcXUTJu4VN0=; b=Ww3aDiu73Wl/Oe9vGLLDx88qX4aLuuG/D9WOT/Kgt4TcUIGz2jUbratBUsooKF408q Skzl0UfczHL64aYHgQ6EulCVcurIpgd+dX+u8TOPS+Dyv/JOYXTrnrBOY1cMHdnsM0qu l3tbyH44/cP0lykxlJ0s6PCEcsi263nOujoztYjHpM62vbi2iPEblfksz6EH5JW9gkMi lkbTFRgTty/wpfCpPB6u5Fa+Lw8jgDpPMbsjmzjWl0oACIhnNnNhbws6IrI+LBBnpnLS rjKy2Iak1nfNQm/ajyliAADHTRevh1H27PnVC24c3PDThjrjatPdWYevzSQBUmQYUc2Q TwvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716420724; x=1717025524; 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=e3I+qziADukJZPXKQtX4Z43+D4uHEu+EXcXUTJu4VN0=; b=ZyNUCooxKWuNV9mHTOCubzOkQ7pyblLLSjrspmlE08+FaYeRSxLZiUIdBGjFtbhIDK 5CH+ni3J5I6zEsuBDqVE1i9mRnQyxtYYKPEezDdwVZxVvjMM+uZeOeVrhfH7174rEJkO yJ/iZmJfKa4hQKeqwN8Ua3GXD3sOW5iHC5KZ++u0f5nNBJXIIfjVQjjggcUSmpgRHYFf 79SzOxxo3joubOOs/0ySvXKGr7+oN1Vxfr1RTD+dHKrx8AB1PGOJjNKNNv986T7KQN3x MX/9zxBdp2ZySL0cMHtyDuvaCIqC7w/C4rQsxpbsL3fM3yx2EIddM26B4O9Jq+mriRN9 Yy+A== X-Forwarded-Encrypted: i=1; AJvYcCX1iTtCIJI5zeg3XVjjXYR8U0qs5VIhZokhasz2Y3SZfmBiZfrJd3iGLz0GTAVHHFrLYs+oBsen9/7JVkK+QRjT0hMG0w== X-Gm-Message-State: AOJu0YyAni5fYUcFoPDypLDMN85nxqeOmyTkmdjYr3ymMlIPOU92gWfl LWwDvczlICWWPcG83zDZwASi86Sc8RrG+XsrLDA0vy3d3JmeeNRTEy7Fa7iyPEY= X-Received: by 2002:a05:6870:a9a0:b0:22e:d13b:c13d with SMTP id 586e51a60fabf-24c68b58cf1mr3790564fac.18.1716420724450; Wed, 22 May 2024 16:32:04 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-24c6e66c1e8sm453071fac.11.2024.05.22.16.32.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 16:32:04 -0700 (PDT) From: Sam Protsenko <semen.protsenko@linaro.org> To: Tom Rini <trini@konsulko.com>, Minkyu Kang <mk7.kang@samsung.com>, Peng Fan <peng.fan@nxp.com>, Jaehoon Chung <jh80.chung@samsung.com>, Simon Glass <sjg@chromium.org> Cc: 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 33/42] mmc: exynos_dw_mmc: Add support for ARM64 Exynos chips Date: Wed, 22 May 2024 18:31:26 -0500 Message-Id: <20240522233135.26835-34-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240522233135.26835-1-semen.protsenko@linaro.org> References: <20240522233135.26835-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/arch/arm/mach-exynos/include/mach/dwmmc.h b/arch/arm/mach-exynos/include/mach/dwmmc.h index 811e9a04c6e3..7cb71be0d9fd 100644 --- a/arch/arm/mach-exynos/include/mach/dwmmc.h +++ b/arch/arm/mach-exynos/include/mach/dwmmc.h @@ -8,6 +8,7 @@ #define __ASM_ARM_ARCH_DWMMC_H #define DWMCI_CLKSEL 0x09C +#define DWMCI_CLKSEL64 0x0a8 #define DWMCI_SET_SAMPLE_CLK(x) (x) #define DWMCI_SET_DRV_CLK(x) ((x) << 16) #define DWMCI_SET_DIV_RATIO(x) ((x) << 24) diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index 938fd51a2ac6..ac1a1784b440 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -386,6 +386,11 @@ static const struct exynos_dwmmc_variant exynos5_drv_data = { #endif }; +static const struct exynos_dwmmc_variant exynos7_smu_drv_data = { + .clksel = DWMCI_CLKSEL64, + .quirks = DWMCI_QUIRK_DISABLE_SMU, +}; + static const struct udevice_id exynos_dwmmc_ids[] = { { .compatible = "samsung,exynos4412-dw-mshc", @@ -393,6 +398,9 @@ static const struct udevice_id exynos_dwmmc_ids[] = { }, { .compatible = "samsung,exynos-dwmmc", .data = (ulong)&exynos5_drv_data, + }, { + .compatible = "samsung,exynos7-dw-mshc-smu", + .data = (ulong)&exynos7_smu_drv_data, }, { } };
Add the compatible entry and corresponding chip data for Exynos7 compatible chips, which covers modern ARM64 based Exynos chips. They have some differences w.r.t. old ARM32 Exynos chips: - CLKSEL register offset is different - 64-bit IDMAC descriptor and 64-bit IDMAC registers are used (implemented in dw_mmc core driver) In terms of the driver implementation, the CIU clock is obtained via CCF framework (as opposed to ad-hoc clock driver implementation for ARM32 chips). Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org> --- arch/arm/mach-exynos/include/mach/dwmmc.h | 1 + drivers/mmc/exynos_dw_mmc.c | 8 ++++++++ 2 files changed, 9 insertions(+)