bus: ti-sysc: Make OCP reset work for sysstatus and sysconfig reset bits
authorTony Lindgren <tony@atomide.com>
Mon, 27 May 2019 11:51:53 +0000 (04:51 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 28 May 2019 12:19:15 +0000 (05:19 -0700)
commite0db94fe87dacd72be0699adcc29e321db7f1689
tree0ba687f9ca2f83ef2ac787d62ecc2436888dd850
parent5aa912953611e5ec2443d97713ee55730dc2afdc
bus: ti-sysc: Make OCP reset work for sysstatus and sysconfig reset bits

We've had minimal OCP softreset support in ti-sysc interconnect target
module driver only used for MCAN driver so far. But it turns out that
MCAN has the sysstatus register resetdone bit inverted compared to most
other modules.

Let's make OCP softreset work for other typical cases with reset status
in sysstatus or sysconfig register so we can use the new functions for
sysc_enable_module() and sysc_disable_module() without "ti,hwmods"
property in the following patches.

Tested-by: Keerthy <j-keerthy@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/bus/ti-sysc.c
include/linux/platform_data/ti-sysc.h