ARM: AM43XX: Call hw_data_init() again after relocation to update *ctrl
authorFaiz Abbas <faiz_abbas@ti.com>
Fri, 19 Jan 2018 10:02:48 +0000 (15:32 +0530)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 14:39:15 +0000 (09:39 -0500)
commita93feb2edc60b9db76ec794bff5ad0fcb10ce3eb
tree90e905b6fe14d6d6b89b41124bd8b5ef50c587df
parentded509b44ced045cc949be9f474a660a93030cea
ARM: AM43XX: Call hw_data_init() again after relocation to update *ctrl

hw_data_init() is called before relocation to initialise hardware data.
Since ctrl is initialized to OMAP_SRAM_SCRATCH_SYS_CTRL in
arch/arm/mach-omap2/am33xx/hw_data.c, the pointer *ctrl will not be
updated during relocation and will hold a stale value.

Therefore call hw_data_init() again after relocation to
reinitialize *ctrl.

Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
board/ti/am43xx/board.c