Commit 24542528fe5832a11b553c5c408a3c41bc4fec21

Authored by Łukasz Majewski
Committed by Tom Rini
1 parent 395e60cdc2

arm:board:trats2:FIX: Clear INFORM4 and INFORM5 registers at correct boot

During switch to device tree, commit 1ecab0f has removed this code.

INFORM4 and INFORM5 registers are used by TRATS2 first stage bootloader for
providing recovery. For normal operation, those two must be cleared out.

This error emerges when one force reset from u-boot's command line for
three times.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Cc: Minkyu Kang <mk7.kang@samsung.com>
Acked-by: Minkyu Kang <mk7.kang@samsung.com>

Showing 1 changed file with 13 additions and 0 deletions Side-by-side Diff

board/samsung/trats2/trats2.c
... ... @@ -150,8 +150,21 @@
150 150  
151 151 int exynos_init(void)
152 152 {
  153 + struct exynos4_power *pwr =
  154 + (struct exynos4_power *)samsung_get_base_power();
  155 +
153 156 check_hw_revision();
154 157 printf("HW Revision:\t0x%04x\n", board_rev);
  158 +
  159 + /*
  160 + * First bootloader on the TRATS2 platform uses
  161 + * INFORM4 and INFORM5 registers for recovery
  162 + *
  163 + * To indicate correct boot chain - those two
  164 + * registers must be cleared out
  165 + */
  166 + writel(0, &pwr->inform4);
  167 + writel(0, &pwr->inform5);
155 168  
156 169 return 0;
157 170 }