soc: imx: gpcv2: allow to disable individual power domains
authorLucas Stach <l.stach@pengutronix.de>
Sat, 2 Oct 2021 12:48:52 +0000 (14:48 +0200)
committerShawn Guo <shawnguo@kernel.org>
Tue, 5 Oct 2021 06:27:52 +0000 (14:27 +0800)
commit8da8bd5399cfc2ff98514a6b31a3aa2159516fe6
tree560c8e4a0edbe9670629f8fd2133e582fa5f75bd
parentf617a8717657e9142de02e54c8e6c885c569692d
soc: imx: gpcv2: allow to disable individual power domains

Some board designs don't supply power to all of the power domains,
as they are not used anyways. In that case we must make sure to
not touch those power domains at all, as trying to power up a
domain that has no power supplied to it will obviously end in a
system crash. Allow to disable those domains via the standard DT
status property.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-By: Tim Harvey <tharvey@gateworks.com>
Tested-By: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
drivers/soc/imx/gpcv2.c