]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Feb 2023 06:52:35 +0000 (07:52 +0100)
commit84974a5e2d47f57eadf6906413201c2aefa71b0e
tree2d6c6beadd838c87d45cea7d9d48ac0f607cf05f
parentccaa1ce71424b7d18344fe256e7ec5b307c9e5a1
ARM: imx27: Retrieve the SYSCTRL base address from devicetree

[ Upstream commit edd03979a0379c364d8f7806804ca14a512ae81e ]

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>
Stable-dep-of: 87b30c4b0efb ("ARM: imx: add missing of_node_put()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/mach-imx/cpu-imx27.c