u-boot/arch
eric.gao@rock-chips.com bc8e8fe40b rockchip: rk3399: Add missing sentinel in syscon
when enable PMIC rk808,the system will halt at very
 early stage,log is shown as bellow.

INFO:    plat_rockchip_pmu_init(1211): pd status 3e
INFO:    BL31: Initializing runtime services
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x200000
INFO:    SPSR = 0x3c9
time 44561b, 0 (<<----Just stop here)

It's caused by the absence of "{ }" in syscon_rk3399.c
,which will lead to memory overflow like below.According
 to Sysmap file ,we can find the function buck_get_value
of rk808 is just follow the compatible struct,the pointer
"of_match" point to "buck_get_value",but it is not a
struct and don't have member of compatible, In this case,
system crash. So,on the face, it looks like that rk808 is
guilty.but he is really innocent.

while (of_match->compatible) { <<----------
    if (!strcmp(of_match->compatible, compat)) {
    *of_idp = of_match;
    return 0;
    }
    of_match++;
}

Signed-off-by: Eric Gao <eric.gao@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
2017-04-15 10:13:17 -06:00
..
arc board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
arm rockchip: rk3399: Add missing sentinel in syscon 2017-04-15 10:13:17 -06:00
avr32 Remove various unused interrupt related code 2017-04-06 20:42:18 -04:00
m68k spi: Zap cf_qspi driver and related code 2017-01-15 18:29:04 +01:00
microblaze microblaze: Fix endif macro command 2017-02-10 13:59:36 +01:00
mips board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
nds32 Remove various unused interrupt related code 2017-04-06 20:42:18 -04:00
nios2 board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
powerpc board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
sandbox sandbox: Change CONFIG_SANDBOX_BITS_PER_LONG to hard-coded 2017-04-13 09:41:09 -04:00
sh sh: generate position independent code for all platforms 2016-12-02 21:32:54 -05:00
x86 x86: Introduce minimal PMU driver for Intel MID platforms 2017-04-10 10:02:03 +08:00
xtensa board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
.gitignore
Kconfig OpenRISC: Remove 2017-04-05 13:52:34 -04:00