OSDN Git Service

ARM: imx27: Retrieve the SYSCTRL base address from devicetree
authorFabio Estevam <festevam@gmail.com>
Thu, 17 Sep 2020 00:41:15 +0000 (21:41 -0300)
committerShawn Guo <shawnguo@kernel.org>
Tue, 22 Sep 2020 06:07:46 +0000 (14:07 +0800)
commit94b2bec1b0e054b27b0a0b5f52a0cd55c83340f4
tree8f5073d59b4ff3d9cc41f9a1f84b1376ebc07cf8
parentf92c710f464465f7ff21c2ad30aa04a94aab0577
ARM: imx27: Retrieve the SYSCTRL base address from devicetree

Now that imx27 has been converted to a devicetree-only platform,
retrieve the SYSCTRL base address from devicetree.

To keep devicetree compatibilty the SYSCTRL base address will be
retrieved from the CCM base address plus an 0x800 offset.

This is not a problem as the imx27.dtsi describes the CCM register
range as 0x1000.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm/mach-imx/cpu-imx27.c