ARM: mmp: select specific CPU implementation
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Sep 2022 14:18:51 +0000 (16:18 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 16 Jan 2023 08:26:05 +0000 (09:26 +0100)
commit90ca4d9015eca4e9fd5a18e4572d419682e8f396
tree8f502e5b40a67d24b85f653d3a238e1dcac5e7ca
parent349619f064f9f75cfb6b698e7268cf5971ffe145
ARM: mmp: select specific CPU implementation

The behavior of the MMP platform code depends on whether the
CPU_PXA168/CPU_PXA910/CPU_MMP2 symbols are enabled or not.

I believe the intention here was that these can be left disabled for
a pure DT-only build, but it's not clear if that actually works. At
the minimum, the cpu_is_pxa168() and cpu_is_pxa910() checks behave
differently, which causes changes in the power management code.

For the moment, make the behavior depend on whether CONFIG_ATAGS is set
or not, to make it easier to bisect the removal of the old code later.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-mmp/Kconfig