diff options
author | John Stultz <john.stultz@linaro.org> | 2017-08-11 15:42:55 -0700 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2017-10-30 09:41:07 -0700 |
commit | fd3bba4bd523ee622c448e64e946d2d3b1875d02 (patch) | |
tree | eeec888aa7b85c109be64d7393a8a983711bd4bc | |
parent | 8b4b324e96095fc180668fe1e086cd8dc7d5a920 (diff) | |
download | arm-trusted-firmware-fd3bba4bd523ee622c448e64e946d2d3b1875d02.tar.gz |
armtf: hikey_ddr: Add NOTICE message to avoid boot hang (racy!)
So for some reason, when building with the android toolchain,
the hikey ddr initialization code gets stuck.
Adding a NOTICE message here avoids it, which basically tells me
something is broken (possibly the toolchain reordering operations,
or some other memory barrier type issue).
But here we are.
Change-Id: I712c3e4463601def012e51120189fd142311ffd1
Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r-- | plat/hisilicon/hikey/hikey_ddr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plat/hisilicon/hikey/hikey_ddr.c b/plat/hisilicon/hikey/hikey_ddr.c index ab572eb1..d00e953c 100644 --- a/plat/hisilicon/hikey/hikey_ddr.c +++ b/plat/hisilicon/hikey/hikey_ddr.c @@ -634,6 +634,7 @@ static void set_ddrc_800mhz(void) mmio_write_32((0xf7128000 + 0x040), 0x2001); mmio_write_32((0xf712c000 + 0x004), 0x140f); + NOTICE("NOTICE: FUN RACE AHEAD\n"); do { data = mmio_read_32((0xf712c000 + 0x004)); } while (data & 1); |