rockchip: rk3399: store actual debug uart information on suspend
authorHeiko Stuebner <[email protected]>
Mon, 5 Aug 2019 14:44:36 +0000 (16:44 +0200)
committerHeiko Stuebner <[email protected]>
Fri, 9 Aug 2019 07:40:19 +0000 (09:40 +0200)
commit0eb7fa91e18bd888d94cd8d92f033ba92d9cb818
tree3f7bbd38496f0567aadb1d3e3b12dc95d55417d2
parentdd4a0d1618a6367061ab507ea450db98bbf2cc36
rockchip: rk3399: store actual debug uart information on suspend

The rk3399 suspend code saves and restores the debug uart settings, but
right now always does this for the default uart. Right now this works
only by chance for the majority of rk3399 boards, which do not deviate
from that default.

But both Coreboot as well as U-Boot-based platforms can actually use
different uarts for their output, which can be configured from either
devicetree or Coreboot-variables.

To fix this, just use the stored uart-base information instead of the
default constant.

Signed-off-by: Heiko Stuebner <[email protected]>
Change-Id: I1ea059d59a1126f6f8702315df7e620e632b686e
plat/rockchip/rk3399/drivers/pmu/pmu.c