RE: [PATCH V9 1/7] clk: imx: add configuration option for mmio clks
From: Aisheng Dong <aisheng.dong@nxp.com>
Date: 2018-12-12 10:27:33
Also in:
linux-clk
Hi Stephen,
quoted
quoted
quoted
quoted
diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefileindex 5c0b11e..f850424 100644--- a/drivers/clk/imx/Makefile +++ b/drivers/clk/imx/Makefile@@ -1,6 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -obj-y += \ +obj-$(CONFIG_MXC_CLK) += \Because this changes to obj-$(CONFIG) we should change the drivers/clk/Makefile to have obj-y for this Makefile instead of depending on ARCH_MXC.We also use ARCH_MXC for ARMv8 SoC clocks.Yes, and? I'm suggesting drivers/clk/Makefile have an obj-y += drivers/clk/imx/ and then decide to compile or not compile the MXC_CLK "core" bits based on CONFIG_MXC_CLK config option.Sorry for the missunderstanding before. I guess you point is have an ojb-y += drivrs/clk/imx/ Then in drivers/clk/imx/Kconfig config MXC_CLK def_bool ARCH_MXC && !ARM64 select MXC_clk bits config MXC_CLK_SCU def_bool ARCH_MXC && ARM64 select SCU clock bits If wrong please let me know. Will update the patch series and re-send. Thanks for the suggestion.
I tried and met another problem that MX8MQ (ARM64) is also
using legacy MXC_CLK. (And 3 more MX8M series based chips.)
That means I have to write something like:
config MXC_CLK
bool
def_bool (ARCH_MXC && !ARM64) || (ARCH_MXC && ARM64 && SOC_IMX8MQ)
config MXC_CLK_SCU
bool
def_bool (ARCH_MXC && ARM64 && !SOC_IMX8MQ)
But it can't work as ARM64 supports multiplatforms.
e.g. we have also SOC_IMX8QXP, SOC_IMX8QM, SOC_IMX8DM ...
Do you have a suggestion about this?
Regards
Dong Aisheng
Regards Dong Aisheng
_______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel