aboutsummaryrefslogtreecommitdiff
path: root/board/ti/am43xx
diff options
context:
space:
mode:
authorFaiz Abbas <faiz_abbas@ti.com>2018-01-19 15:32:48 +0530
committerTom Rini <trini@konsulko.com>2018-01-28 09:39:15 -0500
commita93feb2edc60b9db76ec794bff5ad0fcb10ce3eb (patch)
tree90e905b6fe14d6d6b89b41124bd8b5ef50c587df /board/ti/am43xx
parentded509b44ced045cc949be9f474a660a93030cea (diff)
downloadu-boot-a93feb2edc60b9db76ec794bff5ad0fcb10ce3eb.zip
u-boot-a93feb2edc60b9db76ec794bff5ad0fcb10ce3eb.tar.gz
u-boot-a93feb2edc60b9db76ec794bff5ad0fcb10ce3eb.tar.bz2
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>
Diffstat (limited to 'board/ti/am43xx')
-rw-r--r--board/ti/am43xx/board.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/ti/am43xx/board.c b/board/ti/am43xx/board.c
index 2c417e7..16150ad 100644
--- a/board/ti/am43xx/board.c
+++ b/board/ti/am43xx/board.c
@@ -580,6 +580,11 @@ int board_init(void)
gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
gpmc_init();
+ /*
+ * Call this to initialize *ctrl again
+ */
+ hw_data_init();
+
/* Clear all important bits for DSS errata that may need to be tweaked*/
mreqprio_0 = readl(&cdev->mreqprio_0) & MREQPRIO_0_SAB_INIT1_MASK &
MREQPRIO_0_SAB_INIT0_MASK;