| Message ID | 20240714105328.35825-10-michael@amarulasolutions.com |
|---|---|
| State | New |
| Headers | show
Return-Path:
<linux-amarula+bncBCXK73FY3AFRBOW4Z22AMGQEWUIAHEQ@amarulasolutions.com>
X-Original-To: linux-amarula@patchwork.amarulasolutions.com
Delivered-To: linux-amarula@patchwork.amarulasolutions.com
Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com
[209.85.167.72])
by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 26ADB412C7
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 14 Jul 2024 12:53:47 +0200 (CEST)
Received: by mail-lf1-f72.google.com with SMTP id
2adb3069b0e04-52ea237ef5asf3451472e87.2
for <linux-amarula@patchwork.amarulasolutions.com>;
Sun, 14 Jul 2024 03:53:47 -0700 (PDT)
ARC-Seal: i=2; a=rsa-sha256; t=1720954426; cv=pass;
d=google.com; s=arc-20160816;
b=zuoIkY3E3e5ggS88IQJx29hfl2HFS37btO73AakOckW0GrkTlYUipgESoqtcbrUpFC
FPrgnPwPiqWIIni0+EAzU4VqMdDaq5qg2Sb23Pn4CPcbYbpqRR2srIBolyqUw5g67Q5J
PXEbJL28gn9U1s93FKpRCm/PwofA3RscEgyyCNVATkpqfqb0LRu9CVp+5s33IqiQm+Ch
hVJXt3D/A87kA2somnZrNxAsXvdn0uC5jfHbHTBEA3T+Xfa/6fHqTK/uzSe58hzgmUI8
w3iI1WCmp5rJjS4poLCOQum04Zl/ETEk1jMJYXC5JibOYxzUiEKAUbcAJVe8e744TUK0
2Yqw==
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=4zxVsqN/Dk520zqaaHN7ng4j18i/T4AUcm+hWZNjkZQ=;
b=Uf9Bpd8jS3EnQJunpwRP2nl5nuyfEVVtMme7+/JWtlIsxPCzA+MUdEapXUClHEv6nH
13B9smekWCPviVJxJnripVoTQa9YPT/Iq7AqAeeVy7UTQWmQNsGXH251GWaWYmRxqa84
xqnKeKuu/hiuNi2ax2NCCTMKZJe8mQ5vuFibpwecFkeanN52y4NDXYJXF1qqtfJQ2HKE
mCjvFBW7XaSyNsE/SR4y4cCgoou+g7j7Ybk5x9nxShEesBTNPHL1zQq2CBPhZ9SVGO2C
9NBskGh+Ix+mMejWFtGV8vkAYMiMK6ogEJAdCpAvE5osHV5yi2mT0AZ2tXE6RiEyljiy
aRPQ==;
darn=patchwork.amarulasolutions.com
ARC-Authentication-Results: i=2; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=ekLbz+70;
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=1720954426; x=1721559226;
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=rWLSp/neb2TfzWT/dPryD8pK43qCGM7wQ36F/fLe9ztW8R28F9nBfBh25BOYU+7qxv
mr9Eu4aQ0X6mWv/O6jq/D0EUPfONrL1PuqM+QbezBOZZz9VKLmZXnO9PvhRxk/aBo8Bi
Po6u5NlAKepwbnfmCxZgkfrWvCU5EGPBnitVk=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1720954426; x=1721559226;
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=bVEblyBcVBkRt7JjuCTCkJn/IYa4cJm7PtZNIVV7B2CdvJgeEOqm1KCfETkbG7/j8+
wdU2m68nEhdEYDWSCrS7t0DUEDZZffzujrTZFlQqj13cbFVqTGv9fpb77EuGwDmHCGN0
a/dOqpG0ak0OuDapl85eXKT66nhwOS0nApAQ4AH/JcXGFv6HiXlH2mBDRAWHw17rVL3D
vgEiaxn0La3yMvkCCaW1VF56F/P5A3/WLq/M503esrNqBiJBGDaErTvnmWaiQKhNhRju
NDiRG8krXR+J8zLpmdkz7+uXYKjI3/1aLq+c4nSq/FZ722Bt28ZYJUK6R/idAPoD7xrU
5APQ==
X-Forwarded-Encrypted: i=2;
AJvYcCUQgRLp16prOkrNm+XbHJGCMuyALr6Eq2cS/vEVqaG7zgUKWKPGNqCqOwRQChvdiTIfcri5cZjQvKBLJ9W9iex0r+oAl+RGyfrWVYG6VsE6NNi5aZ/0vS8BMLT60A==
X-Gm-Message-State: AOJu0Ywv5twOy1c9FKnYK13XB0xkGxBHVoiYKRmXgHY/7CP5uNEpUIpY
T28+1UN8Cjl11rXSl4jWaHsrmQQ6BeO8fGcuoyDv2RYdvdFV0tHja/GUZgSzs5f0i51j9E+Hvw=
=
X-Google-Smtp-Source:
AGHT+IEVrYzYZJRx2pqm57xSOrvZiG6yM0jP/q24szj+/tEEChQuzYkZXIWT4PhZERuqVc/f5Bp/+w==
X-Received: by 2002:ac2:4288:0:b0:52c:e121:c927 with SMTP id
2adb3069b0e04-52eb99d6d24mr8540683e87.62.1720954426595;
Sun, 14 Jul 2024 03:53:46 -0700 (PDT)
X-BeenThere: linux-amarula@amarulasolutions.com
Received: by 2002:adf:fbd2:0:b0:362:606d:1022 with SMTP id
ffacd0b85a97d-367f112580cls1045692f8f.1.-pod-prod-04-eu;
Sun, 14 Jul 2024 03:53:45 -0700 (PDT)
X-Forwarded-Encrypted: i=2;
AJvYcCUjwNmLWPRFcHu5lXjtm1yb1FjQH16PpvHZWbkc0CbVdzb7FeeDkKQ0LBt1whyYCg46fr1Co4AnIFpZbjtuTCej3hQHvs/FgZhGZzZG9EHrOKCo
X-Received: by 2002:a17:906:b42:b0:a77:d201:b894 with SMTP id
a640c23a62f3a-a780b8805d1mr968996566b.62.1720954424824;
Sun, 14 Jul 2024 03:53:44 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1720954424; cv=none;
d=google.com; s=arc-20160816;
b=r0liW+9kHwMOiJhiywNcw7s6yqyINvk2jM3RlNG/jF4xeDckU1s+kMYdp9Gnz8Bpyt
Es1T7nq8NC3HnKk7cnU3WklmtHuTOQFuE/A+fuSzphvWZ4u2d0AJudIre4aK7BYG7Ig9
ufWyPPk9aMufGK6Wl4L6RztV1DId2EmpuJ0Bcb/ucRsKNBlYtr5lz9GKBASk1aVqcy96
jZpbWqG+1E89AgQ9zNeA9KRTucGCkzY83TsCsmTYEVBRTuZrOva9cSpNzSoPJu0F8nw9
1bDOQ6rofofgLJbocaGIZtgp/ZzD+7z5yeBcEOg/lGqrODUW6fuTB/85Pim56rJD5/ii
idCA==
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=9GKLqlfP1L3OSfMpf+8zs6WRORTFK3ie7ycFTR9WrLw=;
b=ioZDbrPnQbG1LLtq9M47wcgL0TjcntOaYRo/+Hvdy9dH/SBAanvBD50F1hTttYG9MS
MT3Pw1VbjmT0KtxUYHWlUNYOiQiIHudOo+/CLnfUy6x0hSduPi9XH6MWxXym4+j+yuuc
Xj8Y8NoSybkr9LGR2E80BX7ykXYLV4p5vNsTp76zmfyxcUtpfsgbEhnvUfcinIlWOcNc
fCwTSiaEVm1u/zAWHgY0WOZ4yFIe3/Ba5b4jJIFh9TgjRDGZ2BkPTTYt/yoa1oxMgXHB
l/ehLLXOV7wezkOgzml68E5YNy6ucqpuAGzVmOt7lH6gVAjVo1YoQnnmn8fonkcZuJFS
Y56w==;
dara=google.com
ARC-Authentication-Results: i=1; mx.google.com;
dkim=pass header.i=@amarulasolutions.com header.s=google
header.b=ekLbz+70;
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-a79bc5a2451sor41996166b.5.2024.07.14.03.53.44
for <linux-amarula@amarulasolutions.com>
(Google Transport Security);
Sun, 14 Jul 2024 03:53:44 -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;
AJvYcCVZJk9o108JZis5OGHZEm+puYCeLviHy7C+lLZnUxfmhfI9SsdLLRwiBcbCSWh2z/K2dMl0o+WLKseSIz6jaKXRBraiz/z8sktpZQbS+ekAA11H
X-Received: by 2002:a17:906:40e:b0:a77:c824:b4c5 with SMTP id
a640c23a62f3a-a780b6b18ccmr1103256666b.18.1720954424482;
Sun, 14 Jul 2024 03:53:44 -0700 (PDT)
Received: from panicking.. (mob-5-91-58-211.net.vodafone.it. [5.91.58.211])
by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-a79bc5a36c7sm119966166b.7.2024.07.14.03.53.43
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Sun, 14 Jul 2024 03:53:44 -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/25] clk: imx8mm: Mark IMX8MM_SYS_PLL2 and IMX8MM_SYS_PLL3
as enabled
Date: Sun, 14 Jul 2024 12:53:13 +0200
Message-ID: <20240714105328.35825-10-michael@amarulasolutions.com>
X-Mailer: git-send-email 2.43.0
In-Reply-To: <20240714105328.35825-1-michael@amarulasolutions.com>
References: <20240714105328.35825-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=ekLbz+70;
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(+)