u-boot/arch/arm/mach-rockchip
Philipp Tomsich f07d76c00d rockchip: fix turning off boot-mode via Kconfig
The ROCKCHIP_BOOT_MODE_REG option defaults to a hex value, so 0 will
show as 0x0 if a default is provided and changed via Kconfig.
However, it still will show as 0, if no default is given.

Consequently, the "is set to something other than 0" test in a
Makefile is cumbersome.  Instead this check can easily be performed in
the C-code.

This removes the ifeq-check from mach-rockchip/Makefile, adds a
matching #if-check to boot_mode.c and fixes resulting link issues (if
boot_mode.o was not included due to the Makefile check) by defining a
stub function (in case the functionality is not built in) for
setup_boot_mode in boot_mode.c.

Fixes: e306779 (rockchip: make boot_mode related codes reused across all platforms)
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2017-11-26 14:57:11 +01:00
..
rk322x rockchip: rk322x: add basic soc support 2017-07-11 12:13:46 +02:00
rk3036 rockchip: rk3036: sync os_reg2 define with other soc 2017-07-11 12:13:48 +02:00
rk3188 rockchip: rk3188: move sdram driver to driver/ram 2017-10-01 00:33:31 +02:00
rk3288 rk3288: vyasa: Add TPL support 2017-10-01 00:33:33 +02:00
rk3328 rockchip: rk3328: fix rockchip_get_cru api 2017-11-01 11:21:32 +01:00
rk3368 rockchip: rk3368: spl: move SPL_LDSCRIPT to Kconfig 2017-08-13 17:15:08 +02:00
rk3399 rockchip: rk3399: move sdram driver to driver/ram 2017-10-01 00:33:31 +02:00
rv1108 rockchip: Add basic support for evb-rv1108 board 2017-06-07 07:29:25 -06:00
boot_mode.c rockchip: fix turning off boot-mode via Kconfig 2017-11-26 14:57:11 +01:00
bootrom.c rockchip: add support for enter to bootrom download mode 2017-11-21 23:57:23 +01:00
Kconfig rockchip: add support for enter to bootrom download mode 2017-11-21 23:57:23 +01:00
Makefile rockchip: fix turning off boot-mode via Kconfig 2017-11-26 14:57:11 +01:00
rk322x-board-spl.c rockchip: back-to-bootrom: allow passing a cmd to the bootrom 2017-11-21 23:57:22 +01:00
rk322x-board.c rockchip: make boot_mode related codes reused across all platforms 2017-11-21 23:57:23 +01:00
rk3036-board-spl.c rockchip: back-to-bootrom: allow passing a cmd to the bootrom 2017-11-21 23:57:22 +01:00
rk3036-board.c rockchip: make boot_mode related codes reused across all platforms 2017-11-21 23:57:23 +01:00
rk3188-board-spl.c rockchip: back-to-bootrom: allow passing a cmd to the bootrom 2017-11-21 23:57:22 +01:00
rk3188-board.c rockchip: make boot_mode related codes reused across all platforms 2017-11-21 23:57:23 +01:00
rk3288-board-spl.c rockchip: back-to-bootrom: allow passing a cmd to the bootrom 2017-11-21 23:57:22 +01:00
rk3288-board-tpl.c rockchip: back-to-bootrom: allow passing a cmd to the bootrom 2017-11-21 23:57:22 +01:00
rk3288-board.c rockchip: make boot_mode related codes reused across all platforms 2017-11-21 23:57:23 +01:00
rk3368-board-spl.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
rk3368-board-tpl.c rockchip: back-to-bootrom: allow passing a cmd to the bootrom 2017-11-21 23:57:22 +01:00
rk3399-board-spl.c rockchip: back-to-bootrom: allow passing a cmd to the bootrom 2017-11-21 23:57:22 +01:00
rk3399-board.c rockchip: make boot_mode related codes reused across all platforms 2017-11-21 23:57:23 +01:00
rk_timer.c rockchip: timer: make register sizes explicit 2017-07-27 14:59:00 +02:00
sdram_common.c rockchip: add sdram_common for common functions 2017-07-11 12:13:44 +02:00
spl-boot-order.c rockchip: spl: support a 'same-as-spl'-specifier in the spl-boot-order 2017-10-01 00:33:34 +02:00