clk: sunxi: Add Kconfig options
PATCH v2 1/1 clk: sunxi: Add Kconfig options
We used to have a clock framework that isn't really used these days, except for a few clocks and/or SoCs. Most of the time, the new framework and drivers (sunxi-ng) will provide everything needed for the customer devices to operate properly.
Since we're not needing it that much, it might make sense to disable those drivers, for example when we want to reduce the kernel size. Let's add options in Kconfig that can be disabled if needed, but are still on by default to keep the same features in the standard case.
---
Changes from v1
- Switched from a config to a menuconfig
- Added help texts
--- drivers/clk/Kconfig | 1 + drivers/clk/sunxi/Kconfig | 43 +++++++++++++++++++++++++++++++++ drivers/clk/sunxi/Makefile | 49 +++++++++++++++++++++----------------- 3 files changed, 71 insertions(+), 22 deletions(-) create mode 100644 drivers/clk/sunxi/Kconfig
drivers/clk/Kconfig +1 -0
@@ -310,6 +310,7 @@ source "drivers/clk/qcom/Kconfig" source "drivers/clk/renesas/Kconfig" source "drivers/clk/samsung/Kconfig" source "drivers/clk/sprd/Kconfig" +source "drivers/clk/sunxi/Kconfig" source "drivers/clk/sunxi-ng/Kconfig" source "drivers/clk/tegra/Kconfig" source "drivers/clk/ti/Kconfig"
drivers/clk/sunxi/Kconfig new file +43 -0
43 lines not on this page · raw message
drivers/clk/sunxi/Makefile +27 -22
54 lines not on this page · raw message
Signature · 1 line
2.20.1
Quoting Maxime Ripard (2019-03-19 07:37:59)
Quoted 5 lines
We used to have a clock framework that isn't really used these days, except for a few clocks and/or SoCs. Most of the time, the new framework and drivers (sunxi-ng) will provide everything needed for the customer devices to operate properly.
Quoted 8 lines
Since we're not needing it that much, it might make sense to disable those drivers, for example when we want to reduce the kernel size. Let's add options in
Kconfigthat can be disabled if needed, but are still on by default to keep the same features in the standard case.Signed-off-by Maxime Ripard <[email protected]>---
Maxime Ripard
AppliedQuoted 11 lines · Stephen Boyd
Quoting Maxime Ripard (2019-03-19 07:37:59)
Quoted 10 lines
We used to have a clock framework that isn't really used these days, except for a few clocks and/or SoCs. Most of the time, the new framework and drivers (sunxi-ng) will provide everything needed for the customer devices to operate properly.
Since we're not needing it that much, it might make sense to disable those drivers, for example when we want to reduce the kernel size. Let's add options in
Kconfigthat can be disabled if needed, but are still on by default to keep the same features in the standard case.
Quoted 5 lines
Quoted 3 lines
Signed-off-by Maxime Ripard <[email protected]>---
Acked-by Stephen Boyd <[email protected]>
Applied, thanks!
Maxime
--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com