u-boot-brain/arch/arm/mach-rockchip
Philipp Tomsich ba1657338b rockchip: rk3399: spl: remove hard-coded addresses for GRF and SGRF
On the RK3399, we will have either OF_PLATDATA or full OF_CONTROL
enabled: this allows the use of syscon to retrieve the addresses of
GRF and SGRF (except for the early debug UART setup, which runs so
early that the device-model is not initialised).

This removes the hard-coded addresses and goes through syscon to
retrieve the base-addresses of GRF and SGRF. After that, we use
the structure definitions to locate the respective registers.

In addition to this, the inclusion of header files is also cleaned up:
- all headers are included at the beginning (there was a spurious
  inclusion of the grf header from within a function)
- all #include statements for unused headers are removed
- the remaining #include statements are sorted (while keeping common.h
  included in front)

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-09-18 20:40:36 +02: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: rock: adjust for SPL/TPL split 2017-08-13 17:12:37 +02:00
rk3288 rockchip: Add basic support for phyCORE-RK3288 SoM based carrier board 2017-07-11 15:23:38 +02:00
rk3328 rockchip: rk3328: fix syscon id table 2017-09-08 11:44:51 +02:00
rk3368 rockchip: rk3368: spl: move SPL_LDSCRIPT to Kconfig 2017-08-13 17:15:08 +02:00
rk3399 rockchip: correct the bank0 ram size 2017-07-11 12:13:45 +02:00
rv1108 rockchip: Add basic support for evb-rv1108 board 2017-06-07 07:29:25 -06:00
bootrom.c rockchip: back-to-bootrom: simplify the #ifdef-check for LIBCOMMON in TPL/SPL 2017-08-13 17:12:19 +02:00
Kconfig moveconfig: migrate TPL_STACK, TPL_TEXT_BASE and TPL_MAX_SIZE 2017-08-13 17:12:35 +02:00
Makefile rockchip: rk3188: rock: adjust for SPL/TPL split 2017-08-13 17:12:37 +02:00
rk_timer.c rockchip: timer: make register sizes explicit 2017-07-27 14:59:00 +02:00
rk322x-board-spl.c rockchip: rk322x: set the DDR region as non-secure in SPL 2017-08-13 17:15:08 +02:00
rk322x-board.c rockchip: rk322x: Disable integrated macphy for saving power consuming 2017-09-18 20:40:33 +02:00
rk3036-board-spl.c rockchip: enable SPL_LIBGENERIC for rk3036 based boards 2017-07-27 14:59:04 +02:00
rk3036-board.c env: Rename setenv() to env_set() 2017-08-16 08:22:18 -04:00
rk3188-board-spl.c rockchip: back-to-bootrom: split BACK_TO_BOOTROM for TPL/SPL 2017-08-13 17:12:19 +02: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: back-to-bootrom: split BACK_TO_BOOTROM for TPL/SPL 2017-08-13 17:12:19 +02:00
rk3288-board-spl.c rockchip: back-to-bootrom: split BACK_TO_BOOTROM for TPL/SPL 2017-08-13 17:12:19 +02:00
rk3288-board.c rockchip: rk3288: Add reset reason detection 2017-09-05 11:04:35 +02:00
rk3368-board-spl.c rockchip: rk3368: remove setup of secure timer from TPL/SPL 2017-08-13 17:12:36 +02:00
rk3368-board-tpl.c rockchip: rk3368: remove setup of secure timer from TPL/SPL 2017-08-13 17:12:36 +02:00
rk3399-board-spl.c rockchip: rk3399: spl: remove hard-coded addresses for GRF and SGRF 2017-09-18 20:40:36 +02:00
save_boot_param.S rockchip: back-to-bootrom: add 'back-to-bootrom' support for AArch64 2017-08-13 17:12:19 +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: make spl-boot-order code reusable (split from rk3399) 2017-08-13 17:12:34 +02:00