clk: socfpga: allow building N5X clocks with ARCH_N5X
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Thu, 11 Mar 2021 15:25:31 +0000 (16:25 +0100)
committerDinh Nguyen <dinguyen@kernel.org>
Tue, 23 Mar 2021 16:03:35 +0000 (11:03 -0500)
commit3b218baa744b0c7161d1784414e0a9db6bc9bf6b
treee46ded7ddb6ea0a979d0232449c0a69eae062ceb
parentfe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8
clk: socfpga: allow building N5X clocks with ARCH_N5X

The Intel's eASIC N5X (ARCH_N5X) architecture shares a lot with Agilex
(ARCH_AGILEX) so it uses the same socfpga_agilex.dtsi, with minor
changes.  Also the clock drivers are the same.

However the clock drivers won't be build without ARCH_AGILEX.  One could
assume that ARCH_N5X simply depends on ARCH_AGILEX but this was not
modeled in Kconfig.  In current stage the ARCH_N5X is simply
unbootable.

Add a separate Kconfig entry for clocks used by both ARCH_N5X and
ARCH_AGILEX so the necessary objects will be built if either of them is
selected.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/socfpga/Kconfig [new file with mode: 0644]
drivers/clk/socfpga/Makefile