| Message ID | 20240713084526.922537-10-michael@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCXK73FY3AFRBPH5ZC2AMGQER35KNCA@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-ed1-f72.google.com (mail-ed1-f72.google.com
[209.85.208.72])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 6621340F45
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 13 Jul 2024 10:45:49 +0200 (CEST)
Received: by mail-ed1-f72.google.com with SMTP id
4fb4d7f45d1cf-58e847f01f7sf2386073a12.1
for <linux-amarula@patchwork.amarulasolutions.com>;
Sat, 13 Jul 2024 01:45:49 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1720860349; cv=pass;
d=google.com; s=arc-20160816;
b=JzDSL83qykcPH3d6adhyetnr3hgSTWeb/2P++huYfLtc7aReyJAKhMtfhljLqYpMqM
Sp49qbJQE30bxOE4OpLUINiKVqG0wf958WVD70wjO/w1Mgj5jPWRH0g6C0+yMPRgMijp
67eJJl/XyZnLAFU/xWBsd6lEmyUGPQSJsLwbvT/XaVBZjsqpMryUlm82pcf3s+ZV8PHn
+QD21mHVCwk9AwvQDIHXJ5S36vqzOrC4Vw01XB9VRsSHgWs+Rua/28GKdqKd2Ro1TNzT
LuXa+kSmkKeEAMXaMBn7N4avt1Q5Us57WIdSlE0m/1lgzY4Ue+RbEeSxxS+NVhAauERw
m1kw==
ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=vIF3W6+H/29MWIAWRO5JlXMXvf2fIuRp7j4wrl5OUOY=;
fh=BbuaDmGRRKfr+099pHzjzWMCi+nUSIRGvhaf1kYnbX8=;
b=ylwnCa2lUVPDKQPuJtI2fPZejJLkT2Eii4XbVlmwVAQT8ZG+xLDXNA2FAk+sAyBTz6
gjDEWqyD5PDdP7tmTXu+RWYUrAHy/xKMRpCH9w/eCODa7ZeoA2vE1Ge8O8ekpEbndJSe
n7WFRePVaPZjD/rALnRATc93tObiAOzxeaA35puWDsnxOkSKNPG89gRoeABUS9BUqJBY
fj6SiM5LyTepkpp2k/nfgzvxwQY1gNgezGrqthJipdM4rihC7UaH4p9dfzuFmRQvrpGk
zj/Id2uWEKCVf7czet7nDLY7SwNtI+UNUzmaPo8oTj+CMaSbA4a6VZf/AYIst/Qrgdsp
xKbg==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=F8yC9Lk7;
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=amarulasolutions.com; s=google; t=1720860349; x=1721465149;
darn=patchwork.amarulasolutions.com;
h=list-unsubscribe:list-archive:list-help:list-post:list-id
:mailing-list:precedence:x-original-authentication-results
:x-original-sender:mime-version:references:in-reply-to:message-id
:date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to;
bh=vIF3W6+H/29MWIAWRO5JlXMXvf2fIuRp7j4wrl5OUOY=;
b=TXFWEE7QBl7YkZT+adMemDY7fftcFnPfyla1mE1Wpk1jp45K5OoVIuxfkpDxZe8ZrQ
0MlOpNazuCGzBIBcOvqX8Wk18OftOMzlOpGV0Pryt3qK3eF8fofIMLdJaapUDhu4rU1F
cRYHCEl6swXPmI48M10kiCQAXcA+zHQ71HELw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1720860349; x=1721465149;
h=list-unsubscribe:list-archive:list-help:list-post
:x-spam-checked-in-group:list-id:mailing-list:precedence
:x-original-authentication-results:x-original-sender:mime-version
:references:in-reply-to:message-id:date:subject:cc:to:from
:x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id
:reply-to;
bh=vIF3W6+H/29MWIAWRO5JlXMXvf2fIuRp7j4wrl5OUOY=;
b=SsBT9V2oeH+2kiZwwgLpRZiO/nVdOP+BtMCdVP8dEvYPi8qng0jqeUgdg4SOve8SH2
ZeCfEUmCeFMYOBs9fXub+tlrWM4p4W4r3hiRHD7BHvThGXS6vaCDdpIanW+LUsCcnl6S
SMhO4AuUU1QRRmXLNwmjDaf7qPxNJ8uhDJ9OfC3lJ2m1l4yQ4u5eY6mePJK2h/7CFSfS
l10xe40BKj0AVo/xMUATFOYGdDgPT/qEu6w6vGY1yzFCeafs4HrXVhxnMuMfUvMPZr8f
sWMfswodRVl4TRxrD9Co2AsnfNq4py+L+2mu/Y4syUctBA1Cq5gvl9Vho9yPRb67Ud3l
BxwQ==
X-Forwarded-Encrypted: i=2;
AJvYcCUtn+QV0xoprLA8qhNZ9WF/vswJjtaUnr8zn8sKSU9uavk5bDirfKyzcAKZnC3muivKmMnjQ2ZeB/03qWNEc+JiB2LGdZWoOxya6ezqenVoMvnDawEHftszRDvTkA==
X-Gm-Message-State: AOJu0YxczPMMWhWungTl3ypMzoVdC0KAezwzAxkys82myqENFCCYLqq3
HaFr99Dp6FTEsgBK83Vtx4QfoSMDC6d5YserTzjOxxewP1xxFxGEQfdk7EOGawH5VA==
X-Google-Smtp-Source:
AGHT+IFL1SQaoFc9FFgmxNk06r4Ag3OrhVmtp81PfxFWvH8NuqLnbvX3LXobjlvfk3iUA3CMR3M9Yw==
X-Received: by 2002:aa7:df99:0:b0:58b:eb96:81e4 with SMTP id
4fb4d7f45d1cf-594bc7c8191mr7586795a12.34.1720860349096;
Sat, 13 Jul 2024 01:45:49 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:aa7:cc91:0:b0:58c:3dc1:35c2 with SMTP id
4fb4d7f45d1cf-59821cb8e5cls1630991a12.0.-pod-prod-04-eu;
Sat, 13 Jul 2024 01:45:47 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCXlf/0Kh7udeq7J9nyDyjqwM8cW22ttxhvcK2jmFOUjImOQb87DjZUq3jjCyNb/kInD6SDKfpZ8I1Mk1dM/sHrRXC32lFRQtrL2ra+cEiVtNO/2
X-Received: by 2002:a17:906:1709:b0:a77:c9cc:f96f with SMTP id
a640c23a62f3a-a780b68821emr954122866b.7.1720860347349;
Sat, 13 Jul 2024 01:45:47 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1720860347; cv=none;
d=google.com; s=arc-20160816;
b=frbUZTLmhWC+RdIUH/T4QciAnsAnTh0EpsaA88ge2+JDF2oq2sx1CqR7k1wT8RdNb5
VQ3B7er+merCW+hLXE+HHUuIPNDLAcD2EkAALCvr1H2t36IGjb1OroSOkzhZiXeClMnV
vA3/hIEjHPt+VadnHK0/0beS7NrwIApKWauNWqNztQNXAErdSGExr+5G5P+3YVEq4xEr
h9ODG/BfiswPc/rrxqiWLF+JenUse6MGJiObXiXvsxwf65p1LrcCPthPZSifVaIDOQOv
h1SVMew9tGswMQoOBRDmqLDBF8DoNkPEtNwbtPpBr7hImMkOEHa5bbu3cNmIrBsMHknk
6Liw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;
s=arc-20160816;
h=content-transfer-encoding:mime-version:references:in-reply-to
:message-id:date:subject:cc:to:from:dkim-signature;
bh=XSpr8l2v3lDkCrPLrAQAobF17k5cHwQOoCp6wCJuW4E=;
fh=mi6k7Cc9sLbMfffWUgqpmwc2inkS/ktn60fdEfp7+tw=;
b=hnQ0DQ5DeOaoUcw7v50Lg4kPosmbl+dVDyhv26DPeRF//TG2dO+LhnH5Yr0lanZWNY
7k1SOsaFS4vyWTWLATdhov+s4V1NWNPeRQjQRkKmFxpq/yzw8KA7e64eumaKjuvlbssC
rRi92EIdUySkll2ETfwJ3JmUWLrWsAODTLiimF2Tw7gMdHOHhn93CXI6v0Q5eW8xfhXj
yVl43gXmMYIjuMDZnAW99jcC1VdfLAg4OjziPoj2Dw5sw7R9FvLNgPscFEIqB25rc30i
g+b+YRqt/SBNKv5HIz/qcnlhK3/IlahBAY9EITp5ZKU6H4YiZCju3ANgqcJHw+KN4YbD
A5XA==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=F8yC9Lk7;
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Received: from mail-sor-f41.google.com (mail-sor-f41.google.com.
[209.85.220.41])
by mx.google.com with SMTPS id
a640c23a62f3a-a79bc5a360bsor13073666b.6.2024.07.13.01.45.47
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sat, 13 Jul 2024 01:45:47 -0700 (PDT)
Received-SPF: pass (google.com: domain of michael@amarulasolutions.com
designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41;
X-Forwarded-Encrypted: i=1;
AJvYcCXRWDOddkFLO2Hxbme9yLimRLhKJ9N66OVDt5beM9xq5CSXrSvJ+Tew03YWMeW6cIYY0a/fshkph6tV1ZVWLF2jq6D6+3PCuMG6iR0mwEUDiv32
X-Received: by 2002:a17:907:94d4:b0:a77:d63e:d8fd with SMTP id
a640c23a62f3a-a780b688204mr1179250966b.12.1720860346986;
Sat, 13 Jul 2024 01:45:46 -0700 (PDT)
Received: from panicking.amarulasolutions.com
(93-35-128-17.ip55.fastwebnet.it. [93.35.128.17])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-a79bc7f1e20sm31483966b.116.2024.07.13.01.45.45
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sat, 13 Jul 2024 01:45:46 -0700 (PDT)
From: Michael Trimarchi <michael@amarulasolutions.com>
To: Michael Trimarchi <michael@amarulasolutions.com>
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>,
Patrick Barsanti <patrick.barsanti@amarulasolutions.com>,
linux-amarula@amarulasolutions.com
Subject: [PATCH 10/21] clk: imx8mm: Mark IMX8MM_SYS_PLL2 and IMX8MM_SYS_PLL3
as enabled
Date: Sat, 13 Jul 2024 10:45:15 +0200
Message-ID: <20240713084526.922537-10-michael@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20240713084526.922537-1-michael@amarulasolutions.com>
References: <20240713084526.922537-1-michael@amarulasolutions.com>
MIME-Version: 1.0
X-Original-Sender: michael@amarulasolutions.com
X-Original-Authentication-Results: mx.google.com; dkim=pass
header.i=@amarulasolutions.com header.s=google header.b=F8yC9Lk7;
spf=pass (google.com: domain of michael@amarulasolutions.com designates
209.85.220.41 as permitted sender)
smtp.mailfrom=michael@amarulasolutions.com;
dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com;
dara=pass header.i=@amarulasolutions.com
Content-Type: text/plain; charset="UTF-8"
Precedence: list
Mailing-list: list linux-amarula@amarulasolutions.com;
contact linux-amarula+owners@amarulasolutions.com
List-ID: <linux-amarula.amarulasolutions.com>
X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com
X-Google-Group-Id: 476853432473
List-Post:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>,
<mailto:linux-amarula@amarulasolutions.com>
List-Help:
<https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>,
<mailto:linux-amarula+help@amarulasolutions.com>
List-Archive:
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/>
List-Unsubscribe:
<mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>,
<https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe>
|
| Series |
|
| Related |
show
|
diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 685e7df0e5..275f119686 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -170,6 +170,8 @@ static const char * const imx8mm_ecspi3_sels[] = {"clock-osc-24m", "sys_pll2_200 static int imx8mm_clk_probe(struct udevice *dev) { void __iomem *base; + struct clk *clk; + int ret; base = (void *)ANATOP_BASE_ADDR; @@ -448,6 +450,13 @@ static int imx8mm_clk_probe(struct udevice *dev) clk_dm(IMX8MM_CLK_QSPI_ROOT, imx_clk_gate4("qspi_root_clk", "qspi", base + 0x42f0, 0)); #endif + ret = clk_get_by_id(IMX8MM_SYS_PLL2, &clk); + if (!ret) + clk_enable(clk); + + ret = clk_get_by_id(IMX8MM_SYS_PLL3, &clk); + if (!ret) + clk_enable(clk); return 0; }
Both clock are enabled by the bootloader and we need to increase their reference count to avoid disable during reparent operation. Signed-off-by: Michael Trimarchi <michael@amarulasolutions.com> --- drivers/clk/imx/clk-imx8mm.c | 9 +++++++++ 1 file changed, 9 insertions(+)