realtek: add patch to enable new clock driver in kernel
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Thu, 25 Aug 2022 06:22:36 +0000 (08:22 +0200)
committerSander Vanheule <sander@svanheule.net>
Sun, 28 Aug 2022 09:31:21 +0000 (11:31 +0200)
Allow building the clock driver with kernel config options.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
target/linux/realtek/patches-5.10/318-add-rtl83xx-clk-support.patch [new file with mode: 0644]

diff --git a/target/linux/realtek/patches-5.10/318-add-rtl83xx-clk-support.patch b/target/linux/realtek/patches-5.10/318-add-rtl83xx-clk-support.patch
new file mode 100644 (file)
index 0000000..5215a75
--- /dev/null
@@ -0,0 +1,26 @@
+diff -rpN x/drivers/clk/Kconfig y/drivers/clk/Kconfig
+*** x/drivers/clk/Kconfig      2022-07-29 14:28:59.704481188 +0200
+--- y/drivers/clk/Kconfig      2022-07-29 14:29:56.886053322 +0200
+*************** source "drivers/clk/mediatek/Kconfig"
+*** 372,377 ****
+--- 372,378 ----
+  source "drivers/clk/meson/Kconfig"
+  source "drivers/clk/mvebu/Kconfig"
+  source "drivers/clk/qcom/Kconfig"
++ source "drivers/clk/realtek/Kconfig"
+  source "drivers/clk/renesas/Kconfig"
+  source "drivers/clk/rockchip/Kconfig"
+  source "drivers/clk/samsung/Kconfig"
+diff -rpN x/drivers/clk/Makefile y/drivers/clk/Makefile
+*** x/drivers/clk/Makefile     2022-07-29 13:34:36.638231518 +0200
+--- y/drivers/clk/Makefile     2022-07-29 13:34:19.105060958 +0200
+*************** obj-$(CONFIG_COMMON_CLK_NXP)           += nxp/
+*** 100,105 ****
+--- 100,106 ----
+  obj-$(CONFIG_MACH_PISTACHIO)         += pistachio/
+  obj-$(CONFIG_COMMON_CLK_PXA)         += pxa/
+  obj-$(CONFIG_COMMON_CLK_QCOM)                += qcom/
++ obj-$(CONFIG_COMMON_CLK_REALTEK)     += realtek/
+  obj-y                                        += renesas/
+  obj-$(CONFIG_ARCH_ROCKCHIP)          += rockchip/
+  obj-$(CONFIG_COMMON_CLK_SAMSUNG)     += samsung/