u-boot-brain/arch/arm/mach-rockchip
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
..
rk3036 Kconfig: Migrate BOARD_LATE_INIT to a select 2017-01-24 10:35:54 -05:00
rk3188 rockchip: rk3188: Add Radxa Rock board 2017-04-04 20:01:57 -06:00
rk3288 rockchip: Add support for MiQi rk3288 board 2017-04-04 20:01:57 -06:00
rk3328 rockchip: rk3328: add evb-rk3328 support 2017-03-16 16:03:46 -06:00
rk3399 rockchip: rk3399: Add missing sentinel in syscon 2017-04-15 10:13:17 -06:00
Kconfig rockchip: rk3188: enable remap function 2017-04-15 10:13:17 -06:00
Makefile rockchip: rk3328: add soc basic support 2017-03-16 16:03:46 -06:00
rk_timer.c rockchip: add timer driver 2015-12-01 08:07:22 -07:00
rk3036-board-spl.c rockchip: Move bootrom-related declarations to a header 2017-03-16 16:03:44 -06:00
rk3036-board.c rockchip: add boot-mode support for rk3288, rk3036 2016-10-01 18:36:55 -06:00
rk3188-board-spl.c rockchip: rk3188: Setup the armclk in spl 2017-04-04 20:01:57 -06:00
rk3188-board-tpl.c rockchip: rk3188: Cleanup some SPL/TPL rename leftovers 2017-04-04 20:01:57 -06:00
rk3188-board.c rockchip: rk3188: enable remap function 2017-04-15 10:13:17 -06:00
rk3288-board-spl.c rockchip: Move bootrom-related declarations to a header 2017-03-16 16:03:44 -06:00
rk3288-board.c rockchip: rename miniarm to tinker board 2017-02-09 12:10:59 -07:00
rk3399-board-spl.c rockchip: spl: rk3399: disable DDR security regions for SPL 2017-04-15 10:13:17 -06:00
save_boot_param.S rockchip: add option to change method of loading u-boot 2016-07-25 20:44:18 -06:00