]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/samsung/trats2/trats2.c
arm:board:trats2:FIX: Clear INFORM4 and INFORM5 registers at correct boot
[people/ms/u-boot.git] / board / samsung / trats2 / trats2.c
index 2a6c9f91701cbd899195af2a46b8900200c87e4e..f558ef97a91cccd67348c0ec800c1686859c4800 100644 (file)
@@ -150,9 +150,22 @@ static int pmic_init_max77686(void);
 
 int exynos_init(void)
 {
+       struct exynos4_power *pwr =
+               (struct exynos4_power *)samsung_get_base_power();
+
        check_hw_revision();
        printf("HW Revision:\t0x%04x\n", board_rev);
 
+       /*
+        * First bootloader on the TRATS2 platform uses
+        * INFORM4 and INFORM5 registers for recovery
+        *
+        * To indicate correct boot chain - those two
+        * registers must be cleared out
+        */
+       writel(0, &pwr->inform4);
+       writel(0, &pwr->inform5);
+
        return 0;
 }