* [PATCH 1/9] clk: composite: Export clk_hw_register_composite()
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
2020-06-08 13:12 ` [PATCH 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC Anson Huang
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
Export clk_hw_register_composite() to support user built as module.
ERROR: modpost: "clk_hw_register_composite" [drivers/clk/imx/mxc-clk.ko] undefined!
scripts/Makefile.modpost:111: recipe for target 'Module.symvers' failed
make[1]: *** [Module.symvers] Error 1
make[1]: *** Deleting file 'Module.symvers'
Makefile:1384: recipe for target 'modules' failed
make: *** [modules] Error 2
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/clk-composite.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c
index 7376f57..2ddb54f 100644
--- a/drivers/clk/clk-composite.c
+++ b/drivers/clk/clk-composite.c
@@ -328,6 +328,7 @@ struct clk_hw *clk_hw_register_composite(struct device *dev, const char *name,
rate_hw, rate_ops, gate_hw,
gate_ops, flags);
}
+EXPORT_SYMBOL_GPL(clk_hw_register_composite);
struct clk_hw *clk_hw_register_composite_pdata(struct device *dev,
const char *name,
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
2020-06-08 13:12 ` [PATCH 1/9] clk: composite: Export clk_hw_register_composite() Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
2020-06-08 13:12 ` [PATCH 3/9] clk: imx: Support building SCU clock driver as module Anson Huang
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
i.MX common clock drivers may support module build, so it is NOT
selected by default, for ARCH_MXC ARMv7 platforms, need to select
it manually to make build pass.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
arch/arm/mach-imx/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig
index e7d7b90..47b10d2 100644
--- a/arch/arm/mach-imx/Kconfig
+++ b/arch/arm/mach-imx/Kconfig
@@ -4,6 +4,7 @@ menuconfig ARCH_MXC
depends on ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7 || ARM_SINGLE_ARMV7M
select ARCH_SUPPORTS_BIG_ENDIAN
select CLKSRC_IMX_GPT
+ select MXC_CLK
select GENERIC_IRQ_CHIP
select GPIOLIB
select PINCTRL
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/9] clk: imx: Support building SCU clock driver as module
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
2020-06-08 13:12 ` [PATCH 1/9] clk: composite: Export clk_hw_register_composite() Anson Huang
2020-06-08 13:12 ` [PATCH 2/9] ARM: imx: Select MXC_CLK for ARCH_MXC Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
2020-06-08 13:12 ` [PATCH 4/9] clk: imx: Support building i.MX common " Anson Huang
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
There are more and more requirements of building SoC specific drivers
as modules, add support for building SCU clock driver as module to meet
the requirement.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/Kconfig | 2 +-
drivers/clk/imx/Makefile | 5 ++---
drivers/clk/imx/clk-scu.c | 5 +++++
3 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
index db0253f..503d6c8 100644
--- a/drivers/clk/imx/Kconfig
+++ b/drivers/clk/imx/Kconfig
@@ -5,7 +5,7 @@ config MXC_CLK
def_bool ARCH_MXC
config MXC_CLK_SCU
- bool
+ tristate "IMX SCU clock"
depends on IMX_SCU
config CLK_IMX8MM
diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile
index 928f874..1af8cff 100644
--- a/drivers/clk/imx/Makefile
+++ b/drivers/clk/imx/Makefile
@@ -21,9 +21,8 @@ obj-$(CONFIG_MXC_CLK) += \
clk-sscg-pll.o \
clk-pll14xx.o
-obj-$(CONFIG_MXC_CLK_SCU) += \
- clk-scu.o \
- clk-lpcg-scu.o
+mxc-clk-scu-objs += clk-scu.o clk-lpcg-scu.o
+obj-$(CONFIG_MXC_CLK_SCU) += mxc-clk-scu.o
obj-$(CONFIG_CLK_IMX8MM) += clk-imx8mm.o
obj-$(CONFIG_CLK_IMX8MN) += clk-imx8mn.o
diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c
index b8b2072..9688981 100644
--- a/drivers/clk/imx/clk-scu.c
+++ b/drivers/clk/imx/clk-scu.c
@@ -8,6 +8,7 @@
#include <linux/arm-smccc.h>
#include <linux/clk-provider.h>
#include <linux/err.h>
+#include <linux/module.h>
#include <linux/slab.h>
#include "clk-scu.h"
@@ -132,6 +133,7 @@ int imx_clk_scu_init(void)
{
return imx_scu_get_handle(&ccm_ipc_handle);
}
+EXPORT_SYMBOL_GPL(imx_clk_scu_init);
/*
* clk_scu_recalc_rate - Get clock rate for a SCU clock
@@ -387,3 +389,6 @@ struct clk_hw *__imx_clk_scu(const char *name, const char * const *parents,
return hw;
}
+EXPORT_SYMBOL_GPL(__imx_clk_scu);
+
+MODULE_LICENSE("GPL v2");
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/9] clk: imx: Support building i.MX common clock driver as module
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
` (2 preceding siblings ...)
2020-06-08 13:12 ` [PATCH 3/9] clk: imx: Support building SCU clock driver as module Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
2020-06-08 13:12 ` [PATCH 5/9] clk: imx8mm: Support module build Anson Huang
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
There are more and more requirements of building SoC specific drivers
as modules, add support for building i.MX common clock driver as module
to meet the requirement.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/Kconfig | 8 ++++++--
drivers/clk/imx/Makefile | 25 +++++--------------------
drivers/clk/imx/clk-composite-8m.c | 1 +
drivers/clk/imx/clk-cpu.c | 1 +
drivers/clk/imx/clk-frac-pll.c | 1 +
drivers/clk/imx/clk-gate2.c | 1 +
drivers/clk/imx/clk-lpcg-scu.c | 1 +
drivers/clk/imx/clk-pll14xx.c | 4 ++++
drivers/clk/imx/clk-sscg-pll.c | 1 +
drivers/clk/imx/clk.c | 28 ++++++++++++++++++++++------
10 files changed, 43 insertions(+), 28 deletions(-)
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
index 503d6c8..54ad2ee 100644
--- a/drivers/clk/imx/Kconfig
+++ b/drivers/clk/imx/Kconfig
@@ -1,8 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
# common clock support for NXP i.MX SoC family.
config MXC_CLK
- bool
- def_bool ARCH_MXC
+ tristate "IMX clock"
+ depends on ARCH_MXC
config MXC_CLK_SCU
tristate "IMX SCU clock"
@@ -11,24 +11,28 @@ config MXC_CLK_SCU
config CLK_IMX8MM
bool "IMX8MM CCM Clock Driver"
depends on ARCH_MXC
+ select MXC_CLK
help
Build the driver for i.MX8MM CCM Clock Driver
config CLK_IMX8MN
bool "IMX8MN CCM Clock Driver"
depends on ARCH_MXC
+ select MXC_CLK
help
Build the driver for i.MX8MN CCM Clock Driver
config CLK_IMX8MP
bool "IMX8MP CCM Clock Driver"
depends on ARCH_MXC
+ select MXC_CLK
help
Build the driver for i.MX8MP CCM Clock Driver
config CLK_IMX8MQ
bool "IMX8MQ CCM Clock Driver"
depends on ARCH_MXC
+ select MXC_CLK
help
Build the driver for i.MX8MQ CCM Clock Driver
diff --git a/drivers/clk/imx/Makefile b/drivers/clk/imx/Makefile
index 1af8cff..1291f9b 100644
--- a/drivers/clk/imx/Makefile
+++ b/drivers/clk/imx/Makefile
@@ -1,25 +1,10 @@
# SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_MXC_CLK) += \
- clk.o \
- clk-busy.o \
- clk-composite-8m.o \
- clk-cpu.o \
- clk-composite-7ulp.o \
- clk-divider-gate.o \
- clk-fixup-div.o \
- clk-fixup-mux.o \
- clk-frac-pll.o \
- clk-gate-exclusive.o \
- clk-gate2.o \
- clk-pfd.o \
- clk-pfdv2.o \
- clk-pllv1.o \
- clk-pllv2.o \
- clk-pllv3.o \
- clk-pllv4.o \
- clk-sscg-pll.o \
- clk-pll14xx.o
+mxc-clk-objs += clk.o clk-busy.o clk-composite-8m.o clk-cpu.o clk-composite-7ulp.o \
+ clk-divider-gate.o clk-fixup-div.o clk-fixup-mux.o clk-frac-pll.o \
+ clk-gate-exclusive.o clk-gate2.o clk-pfd.o clk-pfdv2.o clk-pllv1.o \
+ clk-pllv2.o clk-pllv3.o clk-pllv4.o clk-sscg-pll.o clk-pll14xx.o
+obj-$(CONFIG_MXC_CLK) += mxc-clk.o
mxc-clk-scu-objs += clk-scu.o clk-lpcg-scu.o
obj-$(CONFIG_MXC_CLK_SCU) += mxc-clk-scu.o
diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c
index d2b5af8..73e064b 100644
--- a/drivers/clk/imx/clk-composite-8m.c
+++ b/drivers/clk/imx/clk-composite-8m.c
@@ -243,3 +243,4 @@ struct clk_hw *imx8m_clk_hw_composite_flags(const char *name,
kfree(mux);
return ERR_CAST(hw);
}
+EXPORT_SYMBOL_GPL(imx8m_clk_hw_composite_flags);
diff --git a/drivers/clk/imx/clk-cpu.c b/drivers/clk/imx/clk-cpu.c
index cb182be..07dc88b 100644
--- a/drivers/clk/imx/clk-cpu.c
+++ b/drivers/clk/imx/clk-cpu.c
@@ -104,3 +104,4 @@ struct clk_hw *imx_clk_hw_cpu(const char *name, const char *parent_name,
return hw;
}
+EXPORT_SYMBOL_GPL(imx_clk_hw_cpu);
diff --git a/drivers/clk/imx/clk-frac-pll.c b/drivers/clk/imx/clk-frac-pll.c
index 101e0a3..aa6aebf 100644
--- a/drivers/clk/imx/clk-frac-pll.c
+++ b/drivers/clk/imx/clk-frac-pll.c
@@ -233,3 +233,4 @@ struct clk_hw *imx_clk_hw_frac_pll(const char *name,
return hw;
}
+EXPORT_SYMBOL_GPL(imx_clk_hw_frac_pll);
diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c
index b87ab3c..b1b93ea 100644
--- a/drivers/clk/imx/clk-gate2.c
+++ b/drivers/clk/imx/clk-gate2.c
@@ -177,3 +177,4 @@ struct clk_hw *clk_hw_register_gate2(struct device *dev, const char *name,
return hw;
}
+EXPORT_SYMBOL_GPL(clk_hw_register_gate2);
diff --git a/drivers/clk/imx/clk-lpcg-scu.c b/drivers/clk/imx/clk-lpcg-scu.c
index a73a799..8177f0e 100644
--- a/drivers/clk/imx/clk-lpcg-scu.c
+++ b/drivers/clk/imx/clk-lpcg-scu.c
@@ -114,3 +114,4 @@ struct clk_hw *imx_clk_lpcg_scu(const char *name, const char *parent_name,
return hw;
}
+EXPORT_SYMBOL_GPL(imx_clk_lpcg_scu);
diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c
index f9eb189..5482775 100644
--- a/drivers/clk/imx/clk-pll14xx.c
+++ b/drivers/clk/imx/clk-pll14xx.c
@@ -68,6 +68,7 @@ struct imx_pll14xx_clk imx_1443x_pll = {
.rate_table = imx_pll1443x_tbl,
.rate_count = ARRAY_SIZE(imx_pll1443x_tbl),
};
+EXPORT_SYMBOL_GPL(imx_1443x_pll);
struct imx_pll14xx_clk imx_1443x_dram_pll = {
.type = PLL_1443X,
@@ -75,12 +76,14 @@ struct imx_pll14xx_clk imx_1443x_dram_pll = {
.rate_count = ARRAY_SIZE(imx_pll1443x_tbl),
.flags = CLK_GET_RATE_NOCACHE,
};
+EXPORT_SYMBOL_GPL(imx_1443x_dram_pll);
struct imx_pll14xx_clk imx_1416x_pll = {
.type = PLL_1416X,
.rate_table = imx_pll1416x_tbl,
.rate_count = ARRAY_SIZE(imx_pll1416x_tbl),
};
+EXPORT_SYMBOL_GPL(imx_1416x_pll);
static const struct imx_pll14xx_rate_table *imx_get_pll_settings(
struct clk_pll14xx *pll, unsigned long rate)
@@ -436,3 +439,4 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name,
return hw;
}
+EXPORT_SYMBOL_GPL(imx_dev_clk_hw_pll14xx);
diff --git a/drivers/clk/imx/clk-sscg-pll.c b/drivers/clk/imx/clk-sscg-pll.c
index 773d8a5..2f6a0a0 100644
--- a/drivers/clk/imx/clk-sscg-pll.c
+++ b/drivers/clk/imx/clk-sscg-pll.c
@@ -537,3 +537,4 @@ struct clk_hw *imx_clk_hw_sscg_pll(const char *name,
return hw;
}
+EXPORT_SYMBOL_GPL(imx_clk_hw_sscg_pll);
diff --git a/drivers/clk/imx/clk.c b/drivers/clk/imx/clk.c
index 87ab8db..cc894b5 100644
--- a/drivers/clk/imx/clk.c
+++ b/drivers/clk/imx/clk.c
@@ -3,6 +3,7 @@
#include <linux/clk-provider.h>
#include <linux/err.h>
#include <linux/io.h>
+#include <linux/module.h>
#include <linux/of.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
@@ -13,6 +14,7 @@
#define CCDR_MMDC_CH1_MASK BIT(16)
DEFINE_SPINLOCK(imx_ccm_lock);
+EXPORT_SYMBOL_GPL(imx_ccm_lock);
void imx_unregister_clocks(struct clk *clks[], unsigned int count)
{
@@ -29,8 +31,9 @@ void imx_unregister_hw_clocks(struct clk_hw *hws[], unsigned int count)
for (i = 0; i < count; i++)
clk_hw_unregister(hws[i]);
}
+EXPORT_SYMBOL_GPL(imx_unregister_hw_clocks);
-void __init imx_mmdc_mask_handshake(void __iomem *ccm_base,
+void imx_mmdc_mask_handshake(void __iomem *ccm_base,
unsigned int chn)
{
unsigned int reg;
@@ -59,8 +62,9 @@ void imx_check_clk_hws(struct clk_hw *clks[], unsigned int count)
pr_err("i.MX clk %u: register failed with %ld\n",
i, PTR_ERR(clks[i]));
}
+EXPORT_SYMBOL_GPL(imx_check_clk_hws);
-static struct clk * __init imx_obtain_fixed_clock_from_dt(const char *name)
+static struct clk *imx_obtain_fixed_clock_from_dt(const char *name)
{
struct of_phandle_args phandle;
struct clk *clk = ERR_PTR(-ENODEV);
@@ -80,7 +84,7 @@ static struct clk * __init imx_obtain_fixed_clock_from_dt(const char *name)
return clk;
}
-struct clk * __init imx_obtain_fixed_clock(
+struct clk *imx_obtain_fixed_clock(
const char *name, unsigned long rate)
{
struct clk *clk;
@@ -91,7 +95,7 @@ struct clk * __init imx_obtain_fixed_clock(
return clk;
}
-struct clk_hw * __init imx_obtain_fixed_clock_hw(
+struct clk_hw *imx_obtain_fixed_clock_hw(
const char *name, unsigned long rate)
{
struct clk *clk;
@@ -113,6 +117,7 @@ struct clk_hw * imx_obtain_fixed_clk_hw(struct device_node *np,
return __clk_get_hw(clk);
}
+EXPORT_SYMBOL_GPL(imx_obtain_fixed_clk_hw);
/*
* This fixups the register CCM_CSCMR1 write value.
@@ -143,16 +148,24 @@ void imx_cscmr1_fixup(u32 *val)
static int imx_keep_uart_clocks;
static struct clk ** const *imx_uart_clocks;
-static int __init imx_keep_uart_clocks_param(char *str)
+static int __maybe_unused imx_keep_uart_clocks_param(char *str)
{
imx_keep_uart_clocks = 1;
return 0;
}
+
+#ifdef MODULE
+__setup_param("earlycon", imx_keep_uart_earlycon,
+ imx_keep_uart_clocks_param);
+__setup_param("earlyprintk", imx_keep_uart_earlyprintk,
+ imx_keep_uart_clocks_param);
+#else
__setup_param("earlycon", imx_keep_uart_earlycon,
imx_keep_uart_clocks_param, 0);
__setup_param("earlyprintk", imx_keep_uart_earlyprintk,
imx_keep_uart_clocks_param, 0);
+#endif
void imx_register_uart_clocks(struct clk ** const clks[])
{
@@ -164,8 +177,9 @@ void imx_register_uart_clocks(struct clk ** const clks[])
clk_prepare_enable(*imx_uart_clocks[i]);
}
}
+EXPORT_SYMBOL_GPL(imx_register_uart_clocks);
-static int __init imx_clk_disable_uart(void)
+static int imx_clk_disable_uart(void)
{
if (imx_keep_uart_clocks && imx_uart_clocks) {
int i;
@@ -177,3 +191,5 @@ static int __init imx_clk_disable_uart(void)
return 0;
}
late_initcall_sync(imx_clk_disable_uart);
+
+MODULE_LICENSE("GPL v2");
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/9] clk: imx8mm: Support module build
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
` (3 preceding siblings ...)
2020-06-08 13:12 ` [PATCH 4/9] clk: imx: Support building i.MX common " Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
2020-06-08 13:12 ` [PATCH 6/9] clk: imx8mn: " Anson Huang
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
Support building i.MX8MM clock driver as module.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/Kconfig | 2 +-
drivers/clk/imx/clk-imx8mm.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
index 54ad2ee..4e0f214 100644
--- a/drivers/clk/imx/Kconfig
+++ b/drivers/clk/imx/Kconfig
@@ -9,7 +9,7 @@ config MXC_CLK_SCU
depends on IMX_SCU
config CLK_IMX8MM
- bool "IMX8MM CCM Clock Driver"
+ tristate "IMX8MM CCM Clock Driver"
depends on ARCH_MXC
select MXC_CLK
help
diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c
index b793264..1e8242d 100644
--- a/drivers/clk/imx/clk-imx8mm.c
+++ b/drivers/clk/imx/clk-imx8mm.c
@@ -657,3 +657,4 @@ static struct platform_driver imx8mm_clk_driver = {
},
};
module_platform_driver(imx8mm_clk_driver);
+MODULE_LICENSE("GPL v2");
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/9] clk: imx8mn: Support module build
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
` (4 preceding siblings ...)
2020-06-08 13:12 ` [PATCH 5/9] clk: imx8mm: Support module build Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
2020-06-08 13:12 ` [PATCH 7/9] clk: imx8mp: " Anson Huang
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
Support building i.MX8MN clock driver as module.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/Kconfig | 2 +-
drivers/clk/imx/clk-imx8mn.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
index 4e0f214..3ad1b63 100644
--- a/drivers/clk/imx/Kconfig
+++ b/drivers/clk/imx/Kconfig
@@ -16,7 +16,7 @@ config CLK_IMX8MM
Build the driver for i.MX8MM CCM Clock Driver
config CLK_IMX8MN
- bool "IMX8MN CCM Clock Driver"
+ tristate "IMX8MN CCM Clock Driver"
depends on ARCH_MXC
select MXC_CLK
help
diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c
index 213cc37..ba930a7 100644
--- a/drivers/clk/imx/clk-imx8mn.c
+++ b/drivers/clk/imx/clk-imx8mn.c
@@ -608,3 +608,4 @@ static struct platform_driver imx8mn_clk_driver = {
},
};
module_platform_driver(imx8mn_clk_driver);
+MODULE_LICENSE("GPL v2");
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 7/9] clk: imx8mp: Support module build
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
` (5 preceding siblings ...)
2020-06-08 13:12 ` [PATCH 6/9] clk: imx8mn: " Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
2020-06-08 13:12 ` [PATCH 8/9] clk: imx8mq: " Anson Huang
2020-06-08 13:12 ` [PATCH 9/9] clk: imx8qxp: " Anson Huang
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
Support building i.MX8MP clock driver as module.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/Kconfig | 2 +-
drivers/clk/imx/clk-imx8mp.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
index 3ad1b63..7443302 100644
--- a/drivers/clk/imx/Kconfig
+++ b/drivers/clk/imx/Kconfig
@@ -23,7 +23,7 @@ config CLK_IMX8MN
Build the driver for i.MX8MN CCM Clock Driver
config CLK_IMX8MP
- bool "IMX8MP CCM Clock Driver"
+ tristate "IMX8MP CCM Clock Driver"
depends on ARCH_MXC
select MXC_CLK
help
diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c
index b4d9db9..8517837 100644
--- a/drivers/clk/imx/clk-imx8mp.c
+++ b/drivers/clk/imx/clk-imx8mp.c
@@ -772,3 +772,4 @@ static struct platform_driver imx8mp_clk_driver = {
},
};
module_platform_driver(imx8mp_clk_driver);
+MODULE_LICENSE("GPL v2");
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 8/9] clk: imx8mq: Support module build
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
` (6 preceding siblings ...)
2020-06-08 13:12 ` [PATCH 7/9] clk: imx8mp: " Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
2020-06-08 13:12 ` [PATCH 9/9] clk: imx8qxp: " Anson Huang
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
Support building i.MX8MQ clock driver as module.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/Kconfig | 2 +-
drivers/clk/imx/clk-imx8mq.c | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
index 7443302..a1201ce 100644
--- a/drivers/clk/imx/Kconfig
+++ b/drivers/clk/imx/Kconfig
@@ -30,7 +30,7 @@ config CLK_IMX8MP
Build the driver for i.MX8MP CCM Clock Driver
config CLK_IMX8MQ
- bool "IMX8MQ CCM Clock Driver"
+ tristate "IMX8MQ CCM Clock Driver"
depends on ARCH_MXC
select MXC_CLK
help
diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c
index a64aace..2861c31 100644
--- a/drivers/clk/imx/clk-imx8mq.c
+++ b/drivers/clk/imx/clk-imx8mq.c
@@ -643,3 +643,4 @@ static struct platform_driver imx8mq_clk_driver = {
},
};
module_platform_driver(imx8mq_clk_driver);
+MODULE_LICENSE("GPL v2");
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 9/9] clk: imx8qxp: Support module build
2020-06-08 13:12 [PATCH 0/9] Support building i.MX8 SoCs clock driver as module Anson Huang
` (7 preceding siblings ...)
2020-06-08 13:12 ` [PATCH 8/9] clk: imx8mq: " Anson Huang
@ 2020-06-08 13:12 ` Anson Huang
8 siblings, 0 replies; 10+ messages in thread
From: Anson Huang @ 2020-06-08 13:12 UTC (permalink / raw)
To: linux, shawnguo, s.hauer, kernel, festevam, mturquette, sboyd,
oleksandr.suvorov, stefan.agner, arnd, abel.vesa, peng.fan,
aisheng.dong, tglx, allison, gregkh, info, leonard.crestez,
fugang.duan, daniel.baluta, yuehaibing, sfr, linux-arm-kernel,
linux-kernel, linux-clk
Cc: Linux-imx
Support building i.MX8QXP clock driver as module.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
drivers/clk/imx/Kconfig | 2 +-
drivers/clk/imx/clk-imx8qxp-lpcg.c | 1 +
drivers/clk/imx/clk-imx8qxp.c | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/clk/imx/Kconfig b/drivers/clk/imx/Kconfig
index a1201ce..ffb8cf9 100644
--- a/drivers/clk/imx/Kconfig
+++ b/drivers/clk/imx/Kconfig
@@ -37,7 +37,7 @@ config CLK_IMX8MQ
Build the driver for i.MX8MQ CCM Clock Driver
config CLK_IMX8QXP
- bool "IMX8QXP SCU Clock"
+ tristate "IMX8QXP SCU Clock"
depends on ARCH_MXC && IMX_SCU && ARM64
select MXC_CLK_SCU
help
diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8qxp-lpcg.c
index 04c8ee3..8afaefc 100644
--- a/drivers/clk/imx/clk-imx8qxp-lpcg.c
+++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c
@@ -232,3 +232,4 @@ static struct platform_driver imx8qxp_lpcg_clk_driver = {
};
builtin_platform_driver(imx8qxp_lpcg_clk_driver);
+MODULE_LICENSE("GPL v2");
diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c
index 5e2903e..a34c7c5 100644
--- a/drivers/clk/imx/clk-imx8qxp.c
+++ b/drivers/clk/imx/clk-imx8qxp.c
@@ -152,3 +152,4 @@ static struct platform_driver imx8qxp_clk_driver = {
.probe = imx8qxp_clk_probe,
};
builtin_platform_driver(imx8qxp_clk_driver);
+MODULE_LICENSE("GPL v2");
--
2.7.4
^ permalink raw reply related [flat|nested] 10+ messages in thread