From 7a453ebed2b87780100391b7ab78d41337890a66 Mon Sep 17 00:00:00 2001 From: Julius Werner Date: Mon, 20 Oct 2014 13:14:55 -0700 Subject: [PATCH] rk3288: Change all SoC headers to system This patch is the start of a series to change all non-x86 SoC-specific headers to be included as instead of the old or "header.h". It will add an include/soc/ directory under every src/soc/vendor/chip/ and append the .../include/ part of that to the global include path. This matches the usage of for architecture-specific headers and had already been done for some headers on Tegra. It has the advantage that a source file which does not know the specific SoC used (e.g. Tegra files common for multiple chips, or a global include file) can still include SoC-specific headers and access macros/types defined there. It also makes the includes for mainboard files more readable, and reduces the chance to pull in a wrong header when copying mainboard sources to use a different-related SoC (e.g. using a Tegra124 mainboard as template for a Tegra132 one). For easier maintainability, every SoC family is modified individually. This patch starts out by changing Rk3288. Also alphabetized headers in affected files since we touch them anyway. BUG=None TEST=Whole series: compared binary images for Daisy, Nyan_Blaze, Rush_Ryu, Storm, Urara and Veyron_Pinky. Confirmed that they are byte-for-byte identical except for timestamps, hashes, and __LINE__ macro replacements. Compile-tested individual patches. Change-Id: I4d74a0c56be278e591a9cf43f93e9900e41f4319 Signed-off-by: Patrick Georgi Original-Commit-Id: 4ad8b6d2e0280428aa9742f0f7b723c00857334a Original-Change-Id: I415b8dbe735e572d4ae2cb1df62d66bcce386fff Original-Signed-off-by: Julius Werner Original-Reviewed-on: https://chromium-review.googlesource.com/222025 Reviewed-on: http://review.coreboot.org/9349 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- src/mainboard/google/veyron_pinky/board.h | 2 +- src/mainboard/google/veyron_pinky/boardid.c | 7 ++-- src/mainboard/google/veyron_pinky/bootblock.c | 12 +++---- src/mainboard/google/veyron_pinky/chromeos.c | 2 +- src/mainboard/google/veyron_pinky/mainboard.c | 24 +++++++------- .../google/veyron_pinky/memlayout.ld | 2 +- src/mainboard/google/veyron_pinky/reset.c | 2 +- src/mainboard/google/veyron_pinky/romstage.c | 33 ++++++++++--------- .../google/veyron_pinky/sdram_configs.c | 6 ++-- src/soc/rockchip/rk3288/Makefile.inc | 2 ++ src/soc/rockchip/rk3288/bootblock.c | 8 ++--- src/soc/rockchip/rk3288/cbmem.c | 5 +-- src/soc/rockchip/rk3288/clock.c | 16 ++++----- src/soc/rockchip/rk3288/gpio.c | 9 ++--- src/soc/rockchip/rk3288/i2c.c | 20 +++++------ .../rk3288/{ => include/soc}/addressmap.h | 0 .../rockchip/rk3288/{ => include/soc}/clock.h | 2 +- .../rockchip/rk3288/{ => include/soc}/gpio.h | 3 +- .../rockchip/rk3288/{ => include/soc}/grf.h | 4 +-- .../rockchip/rk3288/{ => include/soc}/i2c.h | 0 .../rk3288/{ => include/soc}/memlayout.ld | 0 .../rockchip/rk3288/{ => include/soc}/pmu.h | 3 +- .../rockchip/rk3288/{ => include/soc}/pwm.h | 0 .../rockchip/rk3288/{ => include/soc}/rk808.h | 0 .../rockchip/rk3288/{ => include/soc}/sdram.h | 2 -- .../rockchip/rk3288/{ => include/soc}/soc.h | 0 .../rockchip/rk3288/{ => include/soc}/spi.h | 0 .../rockchip/rk3288/{ => include/soc}/timer.h | 4 +-- .../rockchip/rk3288/{ => include/soc}/tsadc.h | 0 src/soc/rockchip/rk3288/media.c | 3 +- src/soc/rockchip/rk3288/monotonic_timer.c | 6 ++-- src/soc/rockchip/rk3288/pwm.c | 17 +++++----- src/soc/rockchip/rk3288/rk808.c | 4 +-- src/soc/rockchip/rk3288/sdram.c | 16 ++++----- src/soc/rockchip/rk3288/soc.c | 17 +++++----- src/soc/rockchip/rk3288/spi.c | 14 ++++---- src/soc/rockchip/rk3288/timer.c | 5 +-- src/soc/rockchip/rk3288/tsadc.c | 12 +++---- src/soc/rockchip/rk3288/uart.c | 4 +-- 39 files changed, 134 insertions(+), 132 deletions(-) rename src/soc/rockchip/rk3288/{ => include/soc}/addressmap.h (100%) rename src/soc/rockchip/rk3288/{ => include/soc}/clock.h (98%) rename src/soc/rockchip/rk3288/{ => include/soc}/gpio.h (97%) rename src/soc/rockchip/rk3288/{ => include/soc}/grf.h (99%) rename src/soc/rockchip/rk3288/{ => include/soc}/i2c.h (100%) rename src/soc/rockchip/rk3288/{ => include/soc}/memlayout.ld (100%) rename src/soc/rockchip/rk3288/{ => include/soc}/pmu.h (98%) rename src/soc/rockchip/rk3288/{ => include/soc}/pwm.h (100%) rename src/soc/rockchip/rk3288/{ => include/soc}/rk808.h (100%) rename src/soc/rockchip/rk3288/{ => include/soc}/sdram.h (98%) rename src/soc/rockchip/rk3288/{ => include/soc}/soc.h (100%) rename src/soc/rockchip/rk3288/{ => include/soc}/spi.h (100%) rename src/soc/rockchip/rk3288/{ => include/soc}/timer.h (96%) rename src/soc/rockchip/rk3288/{ => include/soc}/tsadc.h (100%) diff --git a/src/mainboard/google/veyron_pinky/board.h b/src/mainboard/google/veyron_pinky/board.h index 2ffa9cf996..8d452c8a89 100644 --- a/src/mainboard/google/veyron_pinky/board.h +++ b/src/mainboard/google/veyron_pinky/board.h @@ -21,7 +21,7 @@ #define __MAINBOARD_GOOGLE_VEYRON_PINKY_BOARD_H #include -#include +#include #define PMIC_BUS 0 diff --git a/src/mainboard/google/veyron_pinky/boardid.c b/src/mainboard/google/veyron_pinky/boardid.c index ca446a18ae..01e92a3d32 100644 --- a/src/mainboard/google/veyron_pinky/boardid.c +++ b/src/mainboard/google/veyron_pinky/boardid.c @@ -17,11 +17,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include -#include - #include +#include +#include +#include uint8_t board_id(void) { diff --git a/src/mainboard/google/veyron_pinky/bootblock.c b/src/mainboard/google/veyron_pinky/bootblock.c index a66d7482d2..b34199dfe5 100644 --- a/src/mainboard/google/veyron_pinky/bootblock.c +++ b/src/mainboard/google/veyron_pinky/bootblock.c @@ -20,12 +20,12 @@ #include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include "board.h" diff --git a/src/mainboard/google/veyron_pinky/chromeos.c b/src/mainboard/google/veyron_pinky/chromeos.c index 827b004394..30cd277623 100644 --- a/src/mainboard/google/veyron_pinky/chromeos.c +++ b/src/mainboard/google/veyron_pinky/chromeos.c @@ -21,9 +21,9 @@ #include #include #include +#include #include #include -#include #include "board.h" diff --git a/src/mainboard/google/veyron_pinky/mainboard.c b/src/mainboard/google/veyron_pinky/mainboard.c index 19d66757ba..a8cc3c3aa4 100644 --- a/src/mainboard/google/veyron_pinky/mainboard.c +++ b/src/mainboard/google/veyron_pinky/mainboard.c @@ -17,22 +17,24 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include #include +#include +#include #include +#include #include -#include -#include #include #include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include "board.h" diff --git a/src/mainboard/google/veyron_pinky/memlayout.ld b/src/mainboard/google/veyron_pinky/memlayout.ld index a8b7465c5e..ead7f47838 100644 --- a/src/mainboard/google/veyron_pinky/memlayout.ld +++ b/src/mainboard/google/veyron_pinky/memlayout.ld @@ -1 +1 @@ -#include +#include diff --git a/src/mainboard/google/veyron_pinky/reset.c b/src/mainboard/google/veyron_pinky/reset.c index 45c28b286f..a2777f86d6 100644 --- a/src/mainboard/google/veyron_pinky/reset.c +++ b/src/mainboard/google/veyron_pinky/reset.c @@ -18,7 +18,7 @@ */ #include -#include +#include #include #include "board.h" diff --git a/src/mainboard/google/veyron_pinky/romstage.c b/src/mainboard/google/veyron_pinky/romstage.c index ab7903c7b3..38166eda3f 100644 --- a/src/mainboard/google/veyron_pinky/romstage.c +++ b/src/mainboard/google/veyron_pinky/romstage.c @@ -17,26 +17,27 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include -#include +#include +#include #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include +#include +#include +#include + #include "timer.h" static void regulate_vdd_log(unsigned int mv) diff --git a/src/mainboard/google/veyron_pinky/sdram_configs.c b/src/mainboard/google/veyron_pinky/sdram_configs.c index cc29de08d2..1a331cebef 100644 --- a/src/mainboard/google/veyron_pinky/sdram_configs.c +++ b/src/mainboard/google/veyron_pinky/sdram_configs.c @@ -17,11 +17,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include +#include +#include +#include #include #include -#include -#include -#include static struct rk3288_sdram_params sdram_configs[] = { #include "sdram_inf/sdram-lpddr3-samsung-2GB.inc" /* ram_code = 0000 */ diff --git a/src/soc/rockchip/rk3288/Makefile.inc b/src/soc/rockchip/rk3288/Makefile.inc index 076f0dc89d..9885aaf2c8 100644 --- a/src/soc/rockchip/rk3288/Makefile.inc +++ b/src/soc/rockchip/rk3288/Makefile.inc @@ -68,6 +68,8 @@ ramstage-y += rk808.c ramstage-y += pwm.c ramstage-$(CONFIG_DRIVERS_UART) += uart.c +CPPFLAGS_common += -Isrc/soc/rockchip/rk3288/include/ + $(objcbfs)/bootblock.raw.elf: $(objcbfs)/bootblock.elf cp $< $@ diff --git a/src/soc/rockchip/rk3288/bootblock.c b/src/soc/rockchip/rk3288/bootblock.c index b2f5bd9553..26a6569f29 100644 --- a/src/soc/rockchip/rk3288/bootblock.c +++ b/src/soc/rockchip/rk3288/bootblock.c @@ -21,11 +21,11 @@ #include #include #include -#include +#include +#include +#include +#include #include -#include "addressmap.h" -#include "timer.h" -#include "clock.h" static void bootblock_cpu_init(void) { diff --git a/src/soc/rockchip/rk3288/cbmem.c b/src/soc/rockchip/rk3288/cbmem.c index dc1e0aa4cd..1c3a902d0e 100644 --- a/src/soc/rockchip/rk3288/cbmem.c +++ b/src/soc/rockchip/rk3288/cbmem.c @@ -17,9 +17,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include -#include "soc.h" +#include +#include + void *cbmem_top(void) { return (void *)(get_fb_base_kb()*KiB); diff --git a/src/soc/rockchip/rk3288/clock.c b/src/soc/rockchip/rk3288/clock.c index 5ad431cc33..d95257f610 100644 --- a/src/soc/rockchip/rk3288/clock.c +++ b/src/soc/rockchip/rk3288/clock.c @@ -17,17 +17,17 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include #include -#include -#include +#include #include #include -#include "clock.h" -#include "grf.h" -#include "addressmap.h" -#include "soc.h" +#include +#include +#include +#include +#include +#include +#include struct pll_div { u32 nr; diff --git a/src/soc/rockchip/rk3288/gpio.c b/src/soc/rockchip/rk3288/gpio.c index 2d1ae15d6a..c3784ec4a8 100644 --- a/src/soc/rockchip/rk3288/gpio.c +++ b/src/soc/rockchip/rk3288/gpio.c @@ -17,12 +17,13 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include +#include +#include +#include +#include +#include #include -#include "soc.h" -#include "gpio.h" -#include "pmu.h" struct rk3288_gpio_regs *gpio_port[] = { (struct rk3288_gpio_regs *)0xff750000, diff --git a/src/soc/rockchip/rk3288/i2c.c b/src/soc/rockchip/rk3288/i2c.c index eb480a7d30..d69bb7cb78 100644 --- a/src/soc/rockchip/rk3288/i2c.c +++ b/src/soc/rockchip/rk3288/i2c.c @@ -17,21 +17,19 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include -#include #include - -#include #include -#include +#include +#include #include - -#include "addressmap.h" -#include "grf.h" -#include "soc.h" -#include "i2c.h" -#include "clock.h" +#include +#include +#include +#include +#include +#include +#include #define RETRY_COUNT 3 /* 100000us = 100ms */ diff --git a/src/soc/rockchip/rk3288/addressmap.h b/src/soc/rockchip/rk3288/include/soc/addressmap.h similarity index 100% rename from src/soc/rockchip/rk3288/addressmap.h rename to src/soc/rockchip/rk3288/include/soc/addressmap.h diff --git a/src/soc/rockchip/rk3288/clock.h b/src/soc/rockchip/rk3288/include/soc/clock.h similarity index 98% rename from src/soc/rockchip/rk3288/clock.h rename to src/soc/rockchip/rk3288/include/soc/clock.h index e2e8f3f8fb..d11c6ec0f3 100644 --- a/src/soc/rockchip/rk3288/clock.h +++ b/src/soc/rockchip/rk3288/include/soc/clock.h @@ -20,7 +20,7 @@ #ifndef __SOC_ROCKCHIP_RK3288_CLOCK_H__ #define __SOC_ROCKCHIP_RK3288_CLOCK_H__ -#include "addressmap.h" +#include #define OSC_HZ (24*MHz) diff --git a/src/soc/rockchip/rk3288/gpio.h b/src/soc/rockchip/rk3288/include/soc/gpio.h similarity index 97% rename from src/soc/rockchip/rk3288/gpio.h rename to src/soc/rockchip/rk3288/include/soc/gpio.h index 7049ddffe2..c459de9321 100644 --- a/src/soc/rockchip/rk3288/gpio.h +++ b/src/soc/rockchip/rk3288/include/soc/gpio.h @@ -20,8 +20,7 @@ #ifndef __SOC_ROCKCHIP_RK3288_GPIO_H__ #define __SOC_ROCKCHIP_RK3288_GPIO_H__ -#include "addressmap.h" -#include "grf.h" +#include #define GPIO(p, b, i) ((gpio_t){.port = p, .bank = GPIO_##b, .idx = i}) diff --git a/src/soc/rockchip/rk3288/grf.h b/src/soc/rockchip/rk3288/include/soc/grf.h similarity index 99% rename from src/soc/rockchip/rk3288/grf.h rename to src/soc/rockchip/rk3288/include/soc/grf.h index e84359bfe0..832563830b 100644 --- a/src/soc/rockchip/rk3288/grf.h +++ b/src/soc/rockchip/rk3288/include/soc/grf.h @@ -20,9 +20,9 @@ #ifndef __SOC_ROCKCHIP_RK3288_GRF_H__ #define __SOC_ROCKCHIP_RK3288_GRF_H__ +#include +#include #include -#include "addressmap.h" -#include "soc.h" struct rk3288_grf_gpio_lh { u32 l; diff --git a/src/soc/rockchip/rk3288/i2c.h b/src/soc/rockchip/rk3288/include/soc/i2c.h similarity index 100% rename from src/soc/rockchip/rk3288/i2c.h rename to src/soc/rockchip/rk3288/include/soc/i2c.h diff --git a/src/soc/rockchip/rk3288/memlayout.ld b/src/soc/rockchip/rk3288/include/soc/memlayout.ld similarity index 100% rename from src/soc/rockchip/rk3288/memlayout.ld rename to src/soc/rockchip/rk3288/include/soc/memlayout.ld diff --git a/src/soc/rockchip/rk3288/pmu.h b/src/soc/rockchip/rk3288/include/soc/pmu.h similarity index 98% rename from src/soc/rockchip/rk3288/pmu.h rename to src/soc/rockchip/rk3288/include/soc/pmu.h index 23ca8b11d5..2a935156a0 100644 --- a/src/soc/rockchip/rk3288/pmu.h +++ b/src/soc/rockchip/rk3288/include/soc/pmu.h @@ -19,7 +19,8 @@ #ifndef __SOC_ROCKCHIP_RK3288_PMU_H__ #define __SOC_ROCKCHIP_RK3288_PMU_H__ -#include "addressmap.h" + +#include struct rk3288_pmu_regs { u32 wakeup_cfg[2]; diff --git a/src/soc/rockchip/rk3288/pwm.h b/src/soc/rockchip/rk3288/include/soc/pwm.h similarity index 100% rename from src/soc/rockchip/rk3288/pwm.h rename to src/soc/rockchip/rk3288/include/soc/pwm.h diff --git a/src/soc/rockchip/rk3288/rk808.h b/src/soc/rockchip/rk3288/include/soc/rk808.h similarity index 100% rename from src/soc/rockchip/rk3288/rk808.h rename to src/soc/rockchip/rk3288/include/soc/rk808.h diff --git a/src/soc/rockchip/rk3288/sdram.h b/src/soc/rockchip/rk3288/include/soc/sdram.h similarity index 98% rename from src/soc/rockchip/rk3288/sdram.h rename to src/soc/rockchip/rk3288/include/soc/sdram.h index 1da14b7ed5..16e4f81713 100644 --- a/src/soc/rockchip/rk3288/sdram.h +++ b/src/soc/rockchip/rk3288/include/soc/sdram.h @@ -20,8 +20,6 @@ #ifndef __SOC_ROCKCHIP_RK3288_SDRAM_H__ #define __SOC_ROCKCHIP_RK3288_SDRAM_H__ -#include - enum { DDR3 = 3, LPDDR3 = 6, diff --git a/src/soc/rockchip/rk3288/soc.h b/src/soc/rockchip/rk3288/include/soc/soc.h similarity index 100% rename from src/soc/rockchip/rk3288/soc.h rename to src/soc/rockchip/rk3288/include/soc/soc.h diff --git a/src/soc/rockchip/rk3288/spi.h b/src/soc/rockchip/rk3288/include/soc/spi.h similarity index 100% rename from src/soc/rockchip/rk3288/spi.h rename to src/soc/rockchip/rk3288/include/soc/spi.h diff --git a/src/soc/rockchip/rk3288/timer.h b/src/soc/rockchip/rk3288/include/soc/timer.h similarity index 96% rename from src/soc/rockchip/rk3288/timer.h rename to src/soc/rockchip/rk3288/include/soc/timer.h index 85079391e6..230168637c 100644 --- a/src/soc/rockchip/rk3288/timer.h +++ b/src/soc/rockchip/rk3288/include/soc/timer.h @@ -21,9 +21,9 @@ #define __SOC_ROCKCHIP_RK3288_TIMER_H__ #include +#include +#include #include -#include "addressmap.h" -#include "clock.h" static const u32 clocks_per_usec = OSC_HZ/USECS_PER_SEC; diff --git a/src/soc/rockchip/rk3288/tsadc.h b/src/soc/rockchip/rk3288/include/soc/tsadc.h similarity index 100% rename from src/soc/rockchip/rk3288/tsadc.h rename to src/soc/rockchip/rk3288/include/soc/tsadc.h diff --git a/src/soc/rockchip/rk3288/media.c b/src/soc/rockchip/rk3288/media.c index f2471f9b5a..7f0ea518f2 100644 --- a/src/soc/rockchip/rk3288/media.c +++ b/src/soc/rockchip/rk3288/media.c @@ -18,10 +18,9 @@ */ #include +#include #include -#include "spi.h" - int init_default_cbfs_media(struct cbfs_media *media) { return initialize_rockchip_spi_cbfs_media(media, diff --git a/src/soc/rockchip/rk3288/monotonic_timer.c b/src/soc/rockchip/rk3288/monotonic_timer.c index d33ed6858c..4062860465 100644 --- a/src/soc/rockchip/rk3288/monotonic_timer.c +++ b/src/soc/rockchip/rk3288/monotonic_timer.c @@ -17,11 +17,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include +#include +#include #include #include -#include -#include "addressmap.h" -#include "timer.h" static uint64_t timer_raw_value(void) { diff --git a/src/soc/rockchip/rk3288/pwm.c b/src/soc/rockchip/rk3288/pwm.c index 7f659f2f38..a44724959e 100644 --- a/src/soc/rockchip/rk3288/pwm.c +++ b/src/soc/rockchip/rk3288/pwm.c @@ -17,18 +17,17 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include -#include #include -#include +#include #include - -#include "addressmap.h" -#include "grf.h" -#include "soc.h" -#include "pwm.h" -#include "clock.h" +#include +#include +#include +#include +#include +#include +#include struct pwm_ctl { u32 pwm_cnt; diff --git a/src/soc/rockchip/rk3288/rk808.c b/src/soc/rockchip/rk3288/rk808.c index 48cfa8603e..aa39b8d5ee 100644 --- a/src/soc/rockchip/rk3288/rk808.c +++ b/src/soc/rockchip/rk3288/rk808.c @@ -19,11 +19,11 @@ #include #include +#include #include +#include #include #include -#include -#include "rk808.h" #define RK808_ADDR 0x1b diff --git a/src/soc/rockchip/rk3288/sdram.c b/src/soc/rockchip/rk3288/sdram.c index 2b0a396bb7..d49b860f62 100644 --- a/src/soc/rockchip/rk3288/sdram.c +++ b/src/soc/rockchip/rk3288/sdram.c @@ -17,16 +17,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include -#include -#include #include #include -#include "addressmap.h" -#include "clock.h" -#include "sdram.h" -#include "grf.h" -#include "soc.h" -#include "pmu.h" +#include +#include +#include +#include +#include +#include +#include +#include struct rk3288_ddr_pctl_regs { u32 scfg; diff --git a/src/soc/rockchip/rk3288/soc.c b/src/soc/rockchip/rk3288/soc.c index 0985c0843f..f5e52eb4e2 100644 --- a/src/soc/rockchip/rk3288/soc.c +++ b/src/soc/rockchip/rk3288/soc.c @@ -17,16 +17,17 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include +#include +#include +#include +#include +#include +#include +#include #include #include -#include -#include -#include -#include -#include -#include -#include -#include "soc.h" + #include "chip.h" static void soc_enable(device_t dev) diff --git a/src/soc/rockchip/rk3288/spi.c b/src/soc/rockchip/rk3288/spi.c index 796107e071..6ece8c1ed0 100644 --- a/src/soc/rockchip/rk3288/spi.c +++ b/src/soc/rockchip/rk3288/spi.c @@ -17,18 +17,18 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include -#include #include +#include +#include +#include +#include +#include +#include #include #include -#include +#include #include -#include -#include "addressmap.h" -#include "spi.h" -#include "clock.h" struct rockchip_spi_slave { struct spi_slave slave; diff --git a/src/soc/rockchip/rk3288/timer.c b/src/soc/rockchip/rk3288/timer.c index 91186cc84f..7162482406 100644 --- a/src/soc/rockchip/rk3288/timer.c +++ b/src/soc/rockchip/rk3288/timer.c @@ -17,10 +17,11 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include -#include -#include "timer.h" +#include +#include void init_timer(void) { diff --git a/src/soc/rockchip/rk3288/tsadc.c b/src/soc/rockchip/rk3288/tsadc.c index 73980a0d48..b7d8e9d8ab 100644 --- a/src/soc/rockchip/rk3288/tsadc.c +++ b/src/soc/rockchip/rk3288/tsadc.c @@ -17,16 +17,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include +#include +#include +#include +#include +#include #include #include -#include -#include -#include "tsadc.h" -#include "clock.h" -#include "pmu.h" -#include "grf.h" struct rk3288_tsadc_regs { u32 user_con; diff --git a/src/soc/rockchip/rk3288/uart.c b/src/soc/rockchip/rk3288/uart.c index 60b14a3209..01759fe573 100644 --- a/src/soc/rockchip/rk3288/uart.c +++ b/src/soc/rockchip/rk3288/uart.c @@ -17,12 +17,12 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include #include #include /* for __console definition */ -#include +#include #include +#include /* * TODO: Use DRIVERS_UART_8250MEM driver instead.