]> asedeno.scripts.mit.edu Git - linux.git/commit
clk: mvebu: armada-37xx-periph: add suspend/resume support
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 13 Jul 2018 13:44:46 +0000 (15:44 +0200)
committerStephen Boyd <sboyd@kernel.org>
Fri, 31 Aug 2018 17:47:48 +0000 (10:47 -0700)
commit5beb1e60dba973e0b9cfb54d9735d5d4385b9d90
tree1ebebd94ce6910f5c481613bb6ef3a43335ea060
parentd9d95e78cff80c3fe43e757ba90644cd766302ac
clk: mvebu: armada-37xx-periph: add suspend/resume support

Add suspend/resume hooks in Armada 37xx peripheral clocks driver to
handle S2RAM operations.

One can think that these hooks are useless by comparing the register
values before and after a suspend/resume cycle: they will look the same
anyway. This is because of some scripts executed by the Cortex-M3 core
during ATF operations to init both the clocks and the DDR. These values
could be modified by the BL33 stage or by Linux itself and should be
preserved.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/mvebu/armada-37xx-periph.c