rockchip: rk3399: Add bootcount support
authorJagan Teki <jagan@amarulasolutions.com>
Thu, 9 Jan 2020 08:52:19 +0000 (14:22 +0530)
committerKever Yang <kever.yang@rock-chips.com>
Thu, 30 Jan 2020 03:44:01 +0000 (11:44 +0800)
commitefebc8edd6a477fdc160c0f504078488c5618c30
tree2ca3448adb9a39aaf49222cbea96c4bf32d1b7f2
parentee6321fa14050e54211acd49e8b6890ee15b2518
rockchip: rk3399: Add bootcount support

Add bootcount support for Rockchip rk3399.

The bootcount value is preserved in PMU_SYS_REG0 register,
this would help to support redundent boot.

Once the redundant boot triggers, the altboot command
will look for extlinux-rollback.conf on particular
bootable partition which supposed to be a recovery
partition where redundant boot required.

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/mach-rockchip/Kconfig
arch/arm/mach-rockchip/rk3399/Kconfig
include/configs/rk3399_common.h