From patchwork Tue Jul 16 03:17:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Protsenko X-Patchwork-Id: 812764 Delivered-To: patch@linaro.org Received: by 2002:a5d:42c4:0:b0:367:895a:4699 with SMTP id t4csp113783wrr; Mon, 15 Jul 2024 20:17:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWVPmrKd+Mrv144epe8Wq4QZSVo7ziLbqpDp5ZDDGe3gNbq3mUVwGOLuQ7hfDssBAxLhT6DINZPQ6fWfIqXBqy6 X-Google-Smtp-Source: AGHT+IFDTWgjDfFwBw5UAe9I0katA8rxwdgZsFADDb7HwLvJ3Z4fc3Ds8s22K2SYx7g4LVVe8Ep5 X-Received: by 2002:a05:6402:2685:b0:58d:249c:5e00 with SMTP id 4fb4d7f45d1cf-59eee055714mr460532a12.6.1721099867309; Mon, 15 Jul 2024 20:17:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721099867; cv=none; d=google.com; s=arc-20160816; b=y3FkYlKw2UUzHYjEtqHFvwvUlW/JI+ddjoW0gA9TRDqSbHrnVAo+jMXc0OsnISl+mb T9TN40sRnaZJtQlsuY/bTPFGk/4ksi1PafgwvCf/BWkQeLwCBhdM8bgIC9oR+2rWaUXh Y8pPoUbTtb1AWIrfyF6R7aclhSbv7q11sDqFvl1VKpFJA/9zMvF/LwYUbWenZE1oWPb6 vvf7G7QRMvl942uvIAMNd8Ij1ybGJsNPwPnbNrA2OUMIlsQaf5/6w/2Uo+15pq/iCcGJ qT81LSo7r10VnrgfOfWMCerMUwIiKv+TE/4Q1n5nKgNThIkFWyCF3pT0DygdvU/4q7Do fkvA== 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=TV0F84NEw9mpv7xyvlRnO/tlsllVPnK1puQnC/TjSBM=; fh=/kgL+aoo0zPN3qDxAgCAFHAZXYd6XjpUQGuQlZgoHIQ=; b=soNNlKKA8OfQ3o+hTFN5LDRwvMhQdmhMkx7IOM3ToSnmSwAJ1G8ckIlYz3e4l7OwZv EGPNCGaFFP7Fmg1fJJMa+Gxe+pMF1vm+UBPFP+3wPgQWlVPFGr2tdluiS73C4M3a3U7r IRlHvcXxioGsga5eDm0L4O9XY2WUE5y9VJLBy1ruNhbMmN9OvrqBsXCK7FpOun7srKtw bn4Q0y+KozslK7AwI3sXkhBVLJlVG45+KbzVP9yzhtYFr3HlWKqIgWB+SiGAUJzPlImI QV37K8W7cdnV79b/GE47m60g1GsZBrGNU04oPfgt3dFfRGX5BjSCfo4IBUeXnLxgc9nM C3Ng==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=cjvAHJxA; 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: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-59b2705a8c0si3071601a12.448.2024.07.15.20.17.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 20:17: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=cjvAHJxA; 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 A56808896C; Tue, 16 Jul 2024 05:17:20 +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="cjvAHJxA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B0B438895F; Tue, 16 Jul 2024 05:17:18 +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=unavailable autolearn_force=no version=3.4.2 Received: from mail-oo1-xc31.google.com (mail-oo1-xc31.google.com [IPv6:2607:f8b0:4864:20::c31]) (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 069B78895E for ; Tue, 16 Jul 2024 05:17:14 +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-oo1-xc31.google.com with SMTP id 006d021491bc7-5c6661bca43so2421355eaf.0 for ; Mon, 15 Jul 2024 20:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1721099833; x=1721704633; 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=TV0F84NEw9mpv7xyvlRnO/tlsllVPnK1puQnC/TjSBM=; b=cjvAHJxAm7W+XSkIgK0NjPTd05jaFYhHu5FXOPgpgtWRcnEwdcQbj/c1nNYZ13gxcq +3Hf/z/L6Tc1loqjt+05F+hmz+extL1iSlGUP8N0R3/7L576Tb7QK8LLPGzcmSc3jEIP fPCYqOPoQdWBvptU1yxxJKXoMoz0kNXt+n4eTbYwo5lEhXXUzZBG7sCA1Lv7x9EVWh0E wWLHFnVDgPi3w1vQeFoQ8hUKDo9anSYCZxVp0Tk2NiO2BCYy4LCQn+0TTi3okvmPqQFs ELue5P3/3j/xtwM4LJmoFxuqkFSsa4eC+0gWjXavPL6MGFIOLHUJUi8RpL61/1vnyEs4 ARKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721099833; x=1721704633; 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=TV0F84NEw9mpv7xyvlRnO/tlsllVPnK1puQnC/TjSBM=; b=IVuczrI/+/z0PVs5/5vigtc2ACoKmK2XgkdjtBpt3hyFVcDRklQcqGXeu6Iuw+UmHW qIHr4PC9yeOf64jF+92sFXuCX2WQQlH6Ahxb04BVhyjWnCCEjxSdg43RyzQd5WHDc6/K y7mi8j/fs3r1gbupEzVC5ZMsXKx0dJe8VtnVyYiIKT/UnKUkpHYq3l4qXHchN1QjuSuY NSuCm/8Gms4Cb4VFGd8TCzX9z4szWKG85Uf/aMAzt+UrYRX+cN7yb6Xo1eE0S6H51EDn vvtEW+rh9ZHm40Fc//8eCM7aSrXJ+cjj1/lRVyA/wEzzbeTxeAzeMNEh09AKiEn8gAPx UyFQ== X-Forwarded-Encrypted: i=1; AJvYcCXhFWqKw3GmbNylDkJmeY8uIPsaOFoHktmWSY1/Oloq/fiYKkiisOj0Gsfvdf9+dnzPCoITAU616M4m9Y2BPAUzhrEw4g== X-Gm-Message-State: AOJu0YztAFcbSvupbOjNfk4nzXWhGX06UZqNCBZHiZ9JZoErM2TGI0PM rnMrRaObLEuzlVFKYhHC6+JocD6Zs3HPMKfZWgyuwH2bkvTv6HlqFaRI15/etBY= X-Received: by 2002:a05:6871:331d:b0:25e:29e7:14c2 with SMTP id 586e51a60fabf-260bdffd217mr647265fac.38.1721099832655; Mon, 15 Jul 2024 20:17:12 -0700 (PDT) Received: from localhost ([136.62.192.75]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-260751354fcsm1199506fac.13.2024.07.15.20.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jul 2024 20:17:12 -0700 (PDT) From: Sam Protsenko To: Tom Rini , Minkyu Kang Cc: Simon Glass , Lukasz Majewski , Sean Anderson , Anand Moon , Sughosh Ganu , Heinrich Schuchardt , Sumit Garg , u-boot@lists.denx.de Subject: [PATCH v2 3/5] clk: exynos: Add SSS clocks for Exynos850 Date: Mon, 15 Jul 2024 22:17:07 -0500 Message-Id: <20240716031709.24943-4-semen.protsenko@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240716031709.24943-1-semen.protsenko@linaro.org> References: <20240716031709.24943-1-semen.protsenko@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Add ACLK (operating clock) and PCLK (bus clock) for Security Sub System (SSS) in Exynos850. Those clocks are needed for RNG enablement. Signed-off-by: Sam Protsenko --- Changes in v2: - (none) drivers/clk/exynos/clk-exynos850.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/exynos/clk-exynos850.c b/drivers/clk/exynos/clk-exynos850.c index 0c09ba02de4a..8cbc626f31e8 100644 --- a/drivers/clk/exynos/clk-exynos850.c +++ b/drivers/clk/exynos/clk-exynos850.c @@ -323,14 +323,18 @@ U_BOOT_DRIVER(exynos850_cmu_peri) = { /* Register Offset definitions for CMU_CORE (0x12000000) */ #define PLL_CON0_MUX_CLKCMU_CORE_BUS_USER 0x0600 #define PLL_CON0_MUX_CLKCMU_CORE_MMC_EMBD_USER 0x0620 +#define PLL_CON0_MUX_CLKCMU_CORE_SSS_USER 0x0630 #define CLK_CON_DIV_DIV_CLK_CORE_BUSP 0x1800 #define CLK_CON_GAT_GOUT_CORE_MMC_EMBD_I_ACLK 0x20e8 #define CLK_CON_GAT_GOUT_CORE_MMC_EMBD_SDCLKIN 0x20ec +#define CLK_CON_GAT_GOUT_CORE_SSS_I_ACLK 0x2128 +#define CLK_CON_GAT_GOUT_CORE_SSS_I_PCLK 0x212c /* List of parent clocks for Muxes in CMU_CORE */ PNAME(mout_core_bus_user_p) = { "clock-oscclk", "dout_core_bus" }; PNAME(mout_core_mmc_embd_user_p) = { "clock-oscclk", "dout_core_mmc_embd" }; +PNAME(mout_core_sss_user_p) = { "clock-oscclk", "dout_core_sss" }; static const struct samsung_mux_clock core_mux_clks[] = { MUX(CLK_MOUT_CORE_BUS_USER, "mout_core_bus_user", mout_core_bus_user_p, @@ -338,6 +342,8 @@ static const struct samsung_mux_clock core_mux_clks[] = { MUX_F(CLK_MOUT_CORE_MMC_EMBD_USER, "mout_core_mmc_embd_user", mout_core_mmc_embd_user_p, PLL_CON0_MUX_CLKCMU_CORE_MMC_EMBD_USER, 4, 1, CLK_SET_RATE_PARENT, 0), + MUX(CLK_MOUT_CORE_SSS_USER, "mout_core_sss_user", mout_core_sss_user_p, + PLL_CON0_MUX_CLKCMU_CORE_SSS_USER, 4, 1), }; static const struct samsung_div_clock core_div_clks[] = { @@ -351,6 +357,10 @@ static const struct samsung_gate_clock core_gate_clks[] = { GATE(CLK_GOUT_MMC_EMBD_SDCLKIN, "gout_mmc_embd_sdclkin", "mout_core_mmc_embd_user", CLK_CON_GAT_GOUT_CORE_MMC_EMBD_SDCLKIN, 21, CLK_SET_RATE_PARENT, 0), + GATE(CLK_GOUT_SSS_ACLK, "gout_sss_aclk", "mout_core_sss_user", + CLK_CON_GAT_GOUT_CORE_SSS_I_ACLK, 21, 0, 0), + GATE(CLK_GOUT_SSS_PCLK, "gout_sss_pclk", "dout_core_busp", + CLK_CON_GAT_GOUT_CORE_SSS_I_PCLK, 21, 0, 0), }; static const struct samsung_clk_group core_cmu_clks[] = {