Skip to contentSkip to conversation

clk: sunxi: Add Kconfig options

PATCH In review Maxime Ripard 2 participants 3 messages Mar 19, 2019 – Mar 21, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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
index e705aab9e38b..f96c7f39ab7e 100644
@@ -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
maintainer Acked-by on v2 1/1
#1 lore raw

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 Kconfig that can be disabled if needed, but are still on by default to keep the same features in the standard case.

---

author Applied
#2 lore raw
Quoted 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 Kconfig that 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

---

Applied, thanks!
Maxime

--
Maxime Ripard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com