From: Patrick Wildt <patrick@blueri.se>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] imx: require CCM driver only on i.MX8MM
Date: Mon, 14 Oct 2019 12:52:39 +0200 [thread overview]
Message-ID: <20191014105239.GA22894@nox.fritz.box> (raw)
Since there is no clock driver like that for i.MX8MQ, we cannot
require it on that platform, so make sure it is only built for
i.MX8MM. This makes i.MX8MQ platforms work again.
Signed-off-by: Patrick Wildt <patrick@blueri.se>
---
arch/arm/mach-imx/imx8m/soc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c
index aeca82cdbf..11ca8c86b3 100644
--- a/arch/arm/mach-imx/imx8m/soc.c
+++ b/arch/arm/mach-imx/imx8m/soc.c
@@ -229,6 +229,7 @@ static void imx_set_wdog_powerdown(bool enable)
writew(enable, &wdog3->wmcr);
}
+#ifdef CONFIG_ARCH_IMX8MM
int arch_cpu_init_dm(void)
{
struct udevice *dev;
@@ -244,6 +245,7 @@ int arch_cpu_init_dm(void)
return 0;
}
+#endif
int arch_cpu_init(void)
{
--
2.23.0
next reply other threads:[~2019-10-14 10:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-14 10:52 Patrick Wildt [this message]
2019-10-15 6:16 ` [U-Boot] [PATCH] imx: require CCM driver only on i.MX8MM Peng Fan
2019-10-15 13:17 ` Patrick Wildt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191014105239.GA22894@nox.fritz.box \
--to=patrick@blueri.se \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox