Skip to content

Commit

Permalink
clk: mediatek: support COMMON_CLK_MT6779 module build
Browse files Browse the repository at this point in the history
To support COMMON_CLK_MT6779* module build,
add MODULE_LICENSE and export necessary symbols.

Cc: Stephen Boyd <[email protected]>
Cc: Hanks Chen <[email protected]>
Cc: Wendell Lin <[email protected]>
Cc: Lee Jones <[email protected]>
Signed-off-by: Miles Chen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
milesdotchen authored and bebarino committed Sep 15, 2021
1 parent 32b028f commit f09b946
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 17 deletions.
18 changes: 9 additions & 9 deletions drivers/clk/mediatek/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -204,57 +204,57 @@ config COMMON_CLK_MT6765_MIPI2BSYS
This driver supports MediaTek MT6765 mipi2bsys clocks.

config COMMON_CLK_MT6779
bool "Clock driver for MediaTek MT6779"
tristate "Clock driver for MediaTek MT6779"
depends on (ARCH_MEDIATEK && ARM64) || COMPILE_TEST
select COMMON_CLK_MEDIATEK
default ARCH_MEDIATEK && ARM64
help
This driver supports MediaTek MT6779 basic clocks.

config COMMON_CLK_MT6779_MMSYS
bool "Clock driver for MediaTek MT6779 mmsys"
tristate "Clock driver for MediaTek MT6779 mmsys"
depends on COMMON_CLK_MT6779
help
This driver supports MediaTek MT6779 mmsys clocks.

config COMMON_CLK_MT6779_IMGSYS
bool "Clock driver for MediaTek MT6779 imgsys"
tristate "Clock driver for MediaTek MT6779 imgsys"
depends on COMMON_CLK_MT6779
help
This driver supports MediaTek MT6779 imgsys clocks.

config COMMON_CLK_MT6779_IPESYS
bool "Clock driver for MediaTek MT6779 ipesys"
tristate "Clock driver for MediaTek MT6779 ipesys"
depends on COMMON_CLK_MT6779
help
This driver supports MediaTek MT6779 ipesys clocks.

config COMMON_CLK_MT6779_CAMSYS
bool "Clock driver for MediaTek MT6779 camsys"
tristate "Clock driver for MediaTek MT6779 camsys"
depends on COMMON_CLK_MT6779
help
This driver supports MediaTek MT6779 camsys clocks.

config COMMON_CLK_MT6779_VDECSYS
bool "Clock driver for MediaTek MT6779 vdecsys"
tristate "Clock driver for MediaTek MT6779 vdecsys"
depends on COMMON_CLK_MT6779
help
This driver supports MediaTek MT6779 vdecsys clocks.

config COMMON_CLK_MT6779_VENCSYS
bool "Clock driver for MediaTek MT6779 vencsys"
tristate "Clock driver for MediaTek MT6779 vencsys"
depends on COMMON_CLK_MT6779
help
This driver supports MediaTek MT6779 vencsys clocks.

config COMMON_CLK_MT6779_MFGCFG
bool "Clock driver for MediaTek MT6779 mfgcfg"
tristate "Clock driver for MediaTek MT6779 mfgcfg"
depends on COMMON_CLK_MT6779
help
This driver supports MediaTek MT6779 mfgcfg clocks.

config COMMON_CLK_MT6779_AUDSYS
bool "Clock driver for Mediatek MT6779 audsys"
tristate "Clock driver for Mediatek MT6779 audsys"
depends on COMMON_CLK_MT6779
help
This driver supports Mediatek MT6779 audsys clocks.
Expand Down
4 changes: 3 additions & 1 deletion drivers/clk/mediatek/clk-mt6779-aud.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/of.h>
#include <linux/of_address.h>
Expand Down Expand Up @@ -114,4 +115,5 @@ static struct platform_driver clk_mt6779_aud_drv = {
},
};

builtin_platform_driver(clk_mt6779_aud_drv);
module_platform_driver(clk_mt6779_aud_drv);
MODULE_LICENSE("GPL");
4 changes: 3 additions & 1 deletion drivers/clk/mediatek/clk-mt6779-cam.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/platform_device.h>
#include <dt-bindings/clock/mt6779-clk.h>
Expand Down Expand Up @@ -63,4 +64,5 @@ static struct platform_driver clk_mt6779_cam_drv = {
},
};

builtin_platform_driver(clk_mt6779_cam_drv);
module_platform_driver(clk_mt6779_cam_drv);
MODULE_LICENSE("GPL");
4 changes: 3 additions & 1 deletion drivers/clk/mediatek/clk-mt6779-img.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/platform_device.h>
#include <dt-bindings/clock/mt6779-clk.h>
Expand Down Expand Up @@ -55,4 +56,5 @@ static struct platform_driver clk_mt6779_img_drv = {
},
};

builtin_platform_driver(clk_mt6779_img_drv);
module_platform_driver(clk_mt6779_img_drv);
MODULE_LICENSE("GPL");
4 changes: 3 additions & 1 deletion drivers/clk/mediatek/clk-mt6779-ipe.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/platform_device.h>
#include <dt-bindings/clock/mt6779-clk.h>
Expand Down Expand Up @@ -57,4 +58,5 @@ static struct platform_driver clk_mt6779_ipe_drv = {
},
};

builtin_platform_driver(clk_mt6779_ipe_drv);
module_platform_driver(clk_mt6779_ipe_drv);
MODULE_LICENSE("GPL");
4 changes: 3 additions & 1 deletion drivers/clk/mediatek/clk-mt6779-mfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/platform_device.h>

Expand Down Expand Up @@ -52,4 +53,5 @@ static struct platform_driver clk_mt6779_mfg_drv = {
},
};

builtin_platform_driver(clk_mt6779_mfg_drv);
module_platform_driver(clk_mt6779_mfg_drv);
MODULE_LICENSE("GPL");
4 changes: 3 additions & 1 deletion drivers/clk/mediatek/clk-mt6779-mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/platform_device.h>
#include <dt-bindings/clock/mt6779-clk.h>
Expand Down Expand Up @@ -105,4 +106,5 @@ static struct platform_driver clk_mt6779_mm_drv = {
},
};

builtin_platform_driver(clk_mt6779_mm_drv);
module_platform_driver(clk_mt6779_mm_drv);
MODULE_LICENSE("GPL");
4 changes: 3 additions & 1 deletion drivers/clk/mediatek/clk-mt6779-vdec.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/platform_device.h>

Expand Down Expand Up @@ -64,4 +65,5 @@ static struct platform_driver clk_mt6779_vdec_drv = {
},
};

builtin_platform_driver(clk_mt6779_vdec_drv);
module_platform_driver(clk_mt6779_vdec_drv);
MODULE_LICENSE("GPL");
4 changes: 3 additions & 1 deletion drivers/clk/mediatek/clk-mt6779-venc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/clk-provider.h>
#include <linux/platform_device.h>

Expand Down Expand Up @@ -55,4 +56,5 @@ static struct platform_driver clk_mt6779_venc_drv = {
},
};

builtin_platform_driver(clk_mt6779_venc_drv);
module_platform_driver(clk_mt6779_venc_drv);
MODULE_LICENSE("GPL");
2 changes: 2 additions & 0 deletions drivers/clk/mediatek/clk-mt6779.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Author: Wendell Lin <[email protected]>
*/

#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_device.h>
Expand Down Expand Up @@ -1314,3 +1315,4 @@ static int __init clk_mt6779_init(void)
}

arch_initcall(clk_mt6779_init);
MODULE_LICENSE("GPL");

0 comments on commit f09b946

Please sign in to comment.