u-boot-brain/arch
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
..
arc env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
arm rockchip: rk3399: spl: remove hard-coded addresses for GRF and SGRF 2017-09-18 20:40:36 +02:00
m68k m68k: add board stmark2, mcf5441x based 2017-08-18 01:26:52 +02:00
microblaze env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
mips env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
nds32 dma: import linux/dma-direction.h to consolidate enum dma_data_direction 2017-09-12 18:02:23 -04:00
nios2 env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
powerpc powerpc: Rework interrupt_init_cpu() 2017-08-26 14:56:08 -04:00
sandbox dm: test: replace dm_scan_dt() by of dm_extended_scan_fdt() in dm_do_test 2017-09-11 21:43:58 -06:00
sh sh: Fix linking of ms7722se 2017-08-27 11:50:16 -04:00
x86 x86: ivybridge: remove unused variables 2017-09-16 14:57:44 +08:00
xtensa env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
.gitignore .gitignore: drop include/asm/proc from ignore pattern 2014-06-19 11:18:54 -04:00
Kconfig usb: net: migrate USB Ethernet adapters to Kconfig 2017-09-08 10:23:00 -04:00