rockchip: fixes the gic panic for rk3399 resume
authorCaesar Wang <wxt@rock-chips.com>
Tue, 13 Sep 2016 03:15:00 +0000 (11:15 +0800)
committerCaesar Wang <wxt@rock-chips.com>
Tue, 13 Sep 2016 06:18:40 +0000 (14:18 +0800)
commit0587788abcd4daf98a8bef1f9545a9841e1015a8
tree68d212e885ebe6df87e4feddd1527807a5f354e3
parent4531d3c9ab409fc5df2d865620587a12f9fe7f3c
rockchip: fixes the gic panic for rk3399 resume

We make sure the resuming of gic need to be enabled.
Otherwise, The resume will hit the below panic.
...
[   24.230541] CPU0: update max cpu_capacity 451
[   24.236029] CPU5: update max cpu_capacity 1024
[   24.236046] CPU4: shutdown
[   24.243205] psci: CPU4 killed.
[   24.258730] CPU5: shutdown
[   24.261472] psci: CPU5 killed.
[   24.270417] GIC: unable to set SRE (disabled at EL2), panic ahead
[   24.270417] cat[7801]: undefined instruction: pc=ffffffc0004e65d0
[   24.270417] Code: b0003940 91274400 97f871af d2801e00 (d5184600)
[   24.270417] Internal error: Oops - undefined instruction: 0 [#1] PREEMPT

Change-Id: Ie9542c8d5768ba0accfa073453da8bfe06d4f921
plat/rockchip/rk3399/drivers/pmu/pmu.c