Changes:
- define boot_inform_clear() in board/samsung/common/inform.c
- gadget thor: call boot_infor_clear() on RQT_CMD_REBOOT
Change-Id: I0c41734828718fe9c1e0aa59c44968a0560fdf78
Signed-off-by: Inha Song <ideal.song@samsung.com>
Signed-off-by: Przemyslaw Marczak <p.marczak@samsung.com>
#
# SPDX-License-Identifier: GPL-2.0+
#
-
+obj-$(CONFIG_BOOT_INFORM) = inform.o
obj-$(CONFIG_SOFT_I2C_MULTI_BUS) += multi_i2c.o
obj-$(CONFIG_THOR_FUNCTION) += thor.o
obj-$(CONFIG_CMD_USB_MASS_STORAGE) += ums.o
--- /dev/null
+#include <common.h>
+#include <asm/arch/power.h>
+
+#define CONFIG_NORMAL_INFORM 0x12345678
+
+void boot_inform_clear(void)
+{
+ struct exynos4_power *power =
+ (struct exynos4_power *)samsung_get_base_power();
+
+ /* clear INFORM3 - reset status */
+ writel(0, &power->inform3);
+
+ /* set INFORM2 for normal boot */
+ writel(CONFIG_NORMAL_INFORM, &power->inform2);
+}
+
g_dnl_unregister();
dfu_free_entities();
+#ifdef CONFIG_BOOT_INFORM
+ /* set normal boot */
+ boot_inform_clear();
+#endif
run_command("reset", 0);
break;
case RQT_CMD_POWEROFF: