summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorJagan Teki <jagan@amarulasolutions.com>2020-01-09 14:22:19 +0530
committerKever Yang <kever.yang@rock-chips.com>2020-01-17 15:04:17 +0800
commitb4f2587a4b2d893206deef2e029728547ac26e28 (patch)
tree0d860b11a74b948134eb5fb2a5c1b45cf48efa65 /include/configs
parent7c6cf0d59171269e5f342fbb5fc75e624fa5c45d (diff)
downloadu-boot-b4f2587a4b2d893206deef2e029728547ac26e28.tar.gz
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>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/rk3399_common.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/configs/rk3399_common.h b/include/configs/rk3399_common.h
index 92eb5cb750..01a9174bd2 100644
--- a/include/configs/rk3399_common.h
+++ b/include/configs/rk3399_common.h
@@ -65,7 +65,10 @@
"fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \
"partitions=" PARTS_DEFAULT \
ROCKCHIP_DEVICE_SETTINGS \
- BOOTENV
+ BOOTENV \
+ "altbootcmd=" \
+ "setenv boot_syslinux_conf extlinux/extlinux-rollback.conf;" \
+ "run distro_bootcmd\0"
#endif