[PATCH] clk: sunxi: Add Kconfig options

Stephen Boyd sboyd at kernel.org
Mon Mar 18 12:49:35 PDT 2019


Quoting Maxime Ripard (2019-03-18 03:28:05)
> diff --git a/drivers/clk/sunxi/Kconfig b/drivers/clk/sunxi/Kconfig
> new file mode 100644
> index 000000000000..2842d2feca0e
> --- /dev/null
> +++ b/drivers/clk/sunxi/Kconfig
> @@ -0,0 +1,21 @@
> +config CLK_SUNXI
> +       bool "Legacy clock support for Allwinner SoCs"

Maybe this should be a submenu, i.e. a menuconfig, so it's even further
buried and doesn't show up in the top-level clk config listing when it's
enabled.

> +       depends on ARCH_SUNXI || COMPILE_TEST
> +
> +if CLK_SUNXI
> +
> +config CLK_SUNXI_CLOCKS
> +       bool "Legacy clock drivers"

Maybe you can add some help text here to guide the user to understand
that these drivers shouldn't be used in most (all?) cases?

> +
> +config CLK_SUNXI_PRCM_SUN6I
> +       bool "Legacy sun6i PRCM driver"
> +       select MFD_SUN6I_PRCM
> +
> +config CLK_SUNXI_PRCM_SUN8I
> +       bool "Legacy sun8i PRCM driver"
> +       select MFD_SUN6I_PRCM
> +
> +config CLK_SUNXI_PRCM_SUN9I
> +       bool "Legacy sun9i PRCM driver"
> +
> +endif



More information about the linux-arm-kernel mailing list