]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedd03979a0379c364d8f7806804ca14a512ae81e
tree8f5073d59b4ff3d9cc41f9a1f84b1376ebc07cf8
parent670d714911e259dc68d7cca3e7d488186452aa90
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