]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: select PPC_CLOCK unconditionally for FSL_SOC
authorShawn Guo <shawn.guo@linaro.org>
Fri, 30 Mar 2012 05:38:56 +0000 (13:38 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Tue, 10 Jul 2012 12:08:58 +0000 (07:08 -0500)
commit2360b1b95aa60f26581b462b332ddeb39b2bfa5d
tree49b989146446c3748369d8e94f845e4e41afb8aa
parent27c208c1cf95796eb2aa44801b92bc076b02a83f
powerpc: select PPC_CLOCK unconditionally for FSL_SOC

Freescale PowerPC SoCs share a number of IP blocks with Freescale
ARM/IMX SoCs, FlexCAN, SSI, FEC, eSDHC, USB, etc.  There are some
effort consolidating those drivers to make them work for both
architectures.

One outstanding difference between two architectures is ARM/IMX will
turn off module clocks during platform initialization for power saving
and expects drivers manage clocks using clk API, while PowerPC
mostly does not do that, and thus does not always build in clk API.

Listing all those driver Kconfig options in "select PPC_CLOCK if" seems
not scalable for long term maintenance, and could easily introduce
Kconfig recursive dependency.  This patch chooses to select PPC_CLOCK
unconditionally for FSL_SOC to always build clk API for PowerPC in.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/Kconfig