]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
soc: ti: pruss: Configure SYSCFG properly during probe/remove
authorSuman Anna <s-anna@ti.com>
Thu, 22 Nov 2018 11:39:01 +0000 (13:39 +0200)
committerSuman Anna <s-anna@ti.com>
Sun, 24 Feb 2019 01:20:48 +0000 (19:20 -0600)
commit74a8397836e4dcdbca030d6affd93e30c092e94d
treee5309d2d486dd418b40a3b1364b80d3a5d2ad7bb
parentc1d6b33cb8f76f2c035dec8419300be1c764fa5f
soc: ti: pruss: Configure SYSCFG properly during probe/remove

The PRUSS CFG module's SYSCFG register is used for managing the
PRCM clock management settings at the PRU-ICSS subsystem level.

Add two helper functions pruss_{enable/disable}_module() that
programs this SYSCFG register during probe and remove. The
register is currently programmed for the default Smart-Idle
and Smart-Standby always during probe. The MStandby is enabled
during remove to undo the settings in probe to properly configure
the SYSCFG in the case that a firmware has disabled MStandby.
This is needed on SoCs like AM57xx that do not have a reset line
and so cannot reset the register properly.

Signed-off-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Roger Quadros <rogerq@ti.com>
drivers/soc/ti/pruss_soc_bus.c