diff --git a/src/mainboard/google/nyan/boardid.c b/src/mainboard/google/nyan/boardid.c index a5ec61fa64..4628cb60e0 100644 --- a/src/mainboard/google/nyan/boardid.c +++ b/src/mainboard/google/nyan/boardid.c @@ -17,10 +17,9 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include -#include - #include +#include +#include uint8_t board_id(void) { diff --git a/src/mainboard/google/nyan/bootblock.c b/src/mainboard/google/nyan/bootblock.c index 2b033a6f48..1f23d43dd3 100644 --- a/src/mainboard/google/nyan/bootblock.c +++ b/src/mainboard/google/nyan/bootblock.c @@ -22,12 +22,12 @@ #include #include #include +#include #include +#include #include -#include -#include -#include -#include /* FIXME: move back to soc code? */ +#include +#include /* FIXME: move back to soc code? */ #include "pmic.h" diff --git a/src/mainboard/google/nyan/chromeos.c b/src/mainboard/google/nyan/chromeos.c index c4d98b7e30..1210f75ad9 100644 --- a/src/mainboard/google/nyan/chromeos.c +++ b/src/mainboard/google/nyan/chromeos.c @@ -18,13 +18,13 @@ */ #include +#include #include #include #include +#include #include #include -#include -#include void fill_lb_gpios(struct lb_gpios *gpios) { diff --git a/src/mainboard/google/nyan/early_configs.c b/src/mainboard/google/nyan/early_configs.c index c1f5f9b2f6..046e2bd419 100644 --- a/src/mainboard/google/nyan/early_configs.c +++ b/src/mainboard/google/nyan/early_configs.c @@ -19,9 +19,9 @@ #include #include +#include +#include #include -#include -#include static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE; diff --git a/src/mainboard/google/nyan/mainboard.c b/src/mainboard/google/nyan/mainboard.c index e52db83d18..f4aa93adc2 100644 --- a/src/mainboard/google/nyan/mainboard.c +++ b/src/mainboard/google/nyan/mainboard.c @@ -23,13 +23,13 @@ #include #include #include +#include +#include +#include #include -#include -#include -#include -#include -#include #include +#include +#include #include #include diff --git a/src/mainboard/google/nyan/memlayout.ld b/src/mainboard/google/nyan/memlayout.ld index 33ce6446ad..ead7f47838 100644 --- a/src/mainboard/google/nyan/memlayout.ld +++ b/src/mainboard/google/nyan/memlayout.ld @@ -1 +1 @@ -#include +#include diff --git a/src/mainboard/google/nyan/pmic.c b/src/mainboard/google/nyan/pmic.c index b2908712d5..cfafff1d77 100644 --- a/src/mainboard/google/nyan/pmic.c +++ b/src/mainboard/google/nyan/pmic.c @@ -18,16 +18,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include #include #include - -#include -#include "pmic.h" #include +#include "pmic.h" + enum { AS3722_I2C_ADDR = 0x40 }; diff --git a/src/mainboard/google/nyan/reset.c b/src/mainboard/google/nyan/reset.c index 05cca2777e..de096c6520 100644 --- a/src/mainboard/google/nyan/reset.c +++ b/src/mainboard/google/nyan/reset.c @@ -18,7 +18,7 @@ */ #include -#include +#include #include void hard_reset(void) diff --git a/src/mainboard/google/nyan/romstage.c b/src/mainboard/google/nyan/romstage.c index f2077bbb27..83d2eeffea 100644 --- a/src/mainboard/google/nyan/romstage.c +++ b/src/mainboard/google/nyan/romstage.c @@ -27,20 +27,21 @@ #include #include #include -#include -#include "sdram_configs.h" -#include -#include -#include -#include -#include -#include -#include #include +#include +#include #include #include +#include +#include +#include +#include +#include #include #include +#include + +#include "sdram_configs.h" static void __attribute__((noinline)) romstage(void) { diff --git a/src/mainboard/google/nyan/sdram_configs.c b/src/mainboard/google/nyan/sdram_configs.c index 3b774b2722..d99f6bd833 100644 --- a/src/mainboard/google/nyan/sdram_configs.c +++ b/src/mainboard/google/nyan/sdram_configs.c @@ -18,7 +18,8 @@ */ #include -#include +#include + #include "sdram_configs.h" static struct sdram_params sdram_configs[] = { diff --git a/src/mainboard/google/nyan/sdram_configs.h b/src/mainboard/google/nyan/sdram_configs.h index e0ea1e285e..4a5ae68f4a 100644 --- a/src/mainboard/google/nyan/sdram_configs.h +++ b/src/mainboard/google/nyan/sdram_configs.h @@ -20,7 +20,7 @@ #ifndef __MAINBOARD_GOOGLE_NYAN_SDRAM_CONFIG_H__ #define __MAINBOARD_GOOGLE_NYAN_SDRAM_CONFIG_H__ -#include +#include /* Loads SDRAM configurations for current system. */ const struct sdram_params *get_sdram_config(void); diff --git a/src/mainboard/google/nyan_big/boardid.c b/src/mainboard/google/nyan_big/boardid.c index 3a22dede45..335da87a50 100644 --- a/src/mainboard/google/nyan_big/boardid.c +++ b/src/mainboard/google/nyan_big/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/nyan_big/bootblock.c b/src/mainboard/google/nyan_big/bootblock.c index 05bb1c94c0..b24862e8b9 100644 --- a/src/mainboard/google/nyan_big/bootblock.c +++ b/src/mainboard/google/nyan_big/bootblock.c @@ -22,12 +22,12 @@ #include #include #include +#include #include +#include #include -#include -#include -#include -#include /* FIXME: move back to soc code? */ +#include +#include /* FIXME: move back to soc code? */ #include "pmic.h" diff --git a/src/mainboard/google/nyan_big/chromeos.c b/src/mainboard/google/nyan_big/chromeos.c index 054abf6edb..28da0538f1 100644 --- a/src/mainboard/google/nyan_big/chromeos.c +++ b/src/mainboard/google/nyan_big/chromeos.c @@ -18,13 +18,13 @@ */ #include +#include #include #include #include +#include #include #include -#include -#include void fill_lb_gpios(struct lb_gpios *gpios) { diff --git a/src/mainboard/google/nyan_big/early_configs.c b/src/mainboard/google/nyan_big/early_configs.c index c1f5f9b2f6..046e2bd419 100644 --- a/src/mainboard/google/nyan_big/early_configs.c +++ b/src/mainboard/google/nyan_big/early_configs.c @@ -19,9 +19,9 @@ #include #include +#include +#include #include -#include -#include static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE; diff --git a/src/mainboard/google/nyan_big/mainboard.c b/src/mainboard/google/nyan_big/mainboard.c index 05f6faeef1..63d9d5c93e 100644 --- a/src/mainboard/google/nyan_big/mainboard.c +++ b/src/mainboard/google/nyan_big/mainboard.c @@ -18,17 +18,17 @@ */ #include +#include #include #include -#include #include +#include #include +#include +#include #include -#include -#include -#include -#include -#include +#include +#include #include #include #include diff --git a/src/mainboard/google/nyan_big/memlayout.ld b/src/mainboard/google/nyan_big/memlayout.ld index 33ce6446ad..ead7f47838 100644 --- a/src/mainboard/google/nyan_big/memlayout.ld +++ b/src/mainboard/google/nyan_big/memlayout.ld @@ -1 +1 @@ -#include +#include diff --git a/src/mainboard/google/nyan_big/pmic.c b/src/mainboard/google/nyan_big/pmic.c index c89db2895b..f57bf08c52 100644 --- a/src/mainboard/google/nyan_big/pmic.c +++ b/src/mainboard/google/nyan_big/pmic.c @@ -18,16 +18,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include #include #include - -#include -#include "pmic.h" #include +#include "pmic.h" + enum { AS3722_I2C_ADDR = 0x40 }; diff --git a/src/mainboard/google/nyan_big/reset.c b/src/mainboard/google/nyan_big/reset.c index 05cca2777e..de096c6520 100644 --- a/src/mainboard/google/nyan_big/reset.c +++ b/src/mainboard/google/nyan_big/reset.c @@ -18,7 +18,7 @@ */ #include -#include +#include #include void hard_reset(void) diff --git a/src/mainboard/google/nyan_big/romstage.c b/src/mainboard/google/nyan_big/romstage.c index f2077bbb27..83d2eeffea 100644 --- a/src/mainboard/google/nyan_big/romstage.c +++ b/src/mainboard/google/nyan_big/romstage.c @@ -27,20 +27,21 @@ #include #include #include -#include -#include "sdram_configs.h" -#include -#include -#include -#include -#include -#include -#include #include +#include +#include #include #include +#include +#include +#include +#include +#include #include #include +#include + +#include "sdram_configs.h" static void __attribute__((noinline)) romstage(void) { diff --git a/src/mainboard/google/nyan_big/sdram_configs.c b/src/mainboard/google/nyan_big/sdram_configs.c index 748b6dc3ba..7904b4e94b 100644 --- a/src/mainboard/google/nyan_big/sdram_configs.c +++ b/src/mainboard/google/nyan_big/sdram_configs.c @@ -18,7 +18,8 @@ */ #include -#include +#include + #include "sdram_configs.h" static struct sdram_params sdram_configs[] = { diff --git a/src/mainboard/google/nyan_big/sdram_configs.h b/src/mainboard/google/nyan_big/sdram_configs.h index 4bf376c190..6c3bda097a 100644 --- a/src/mainboard/google/nyan_big/sdram_configs.h +++ b/src/mainboard/google/nyan_big/sdram_configs.h @@ -20,7 +20,7 @@ #ifndef __MAINBOARD_GOOGLE_NYAN_BIG_SDRAM_CONFIG_H__ #define __MAINBOARD_GOOGLE_NYAN_BIG_SDRAM_CONFIG_H__ -#include +#include /* Loads SDRAM configurations for current system. */ const struct sdram_params *get_sdram_config(void); diff --git a/src/mainboard/google/nyan_blaze/boardid.c b/src/mainboard/google/nyan_blaze/boardid.c index 3a22dede45..335da87a50 100644 --- a/src/mainboard/google/nyan_blaze/boardid.c +++ b/src/mainboard/google/nyan_blaze/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/nyan_blaze/bootblock.c b/src/mainboard/google/nyan_blaze/bootblock.c index 05bb1c94c0..b24862e8b9 100644 --- a/src/mainboard/google/nyan_blaze/bootblock.c +++ b/src/mainboard/google/nyan_blaze/bootblock.c @@ -22,12 +22,12 @@ #include #include #include +#include #include +#include #include -#include -#include -#include -#include /* FIXME: move back to soc code? */ +#include +#include /* FIXME: move back to soc code? */ #include "pmic.h" diff --git a/src/mainboard/google/nyan_blaze/chromeos.c b/src/mainboard/google/nyan_blaze/chromeos.c index da017eaed1..0b944d1667 100644 --- a/src/mainboard/google/nyan_blaze/chromeos.c +++ b/src/mainboard/google/nyan_blaze/chromeos.c @@ -21,9 +21,9 @@ #include #include #include +#include #include #include -#include //enum { // ACTIVE_LOW = 0, diff --git a/src/mainboard/google/nyan_blaze/early_configs.c b/src/mainboard/google/nyan_blaze/early_configs.c index c1f5f9b2f6..020f3fd8a8 100644 --- a/src/mainboard/google/nyan_blaze/early_configs.c +++ b/src/mainboard/google/nyan_blaze/early_configs.c @@ -19,9 +19,9 @@ #include #include +#include +#include #include -#include -#include static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE; diff --git a/src/mainboard/google/nyan_blaze/mainboard.c b/src/mainboard/google/nyan_blaze/mainboard.c index 5f1cb49ceb..da49377166 100644 --- a/src/mainboard/google/nyan_blaze/mainboard.c +++ b/src/mainboard/google/nyan_blaze/mainboard.c @@ -18,18 +18,18 @@ */ #include +#include #include #include -#include #include #include +#include +#include +#include #include -#include -#include -#include -#include -#include #include +#include +#include #include #include diff --git a/src/mainboard/google/nyan_blaze/memlayout.ld b/src/mainboard/google/nyan_blaze/memlayout.ld index 33ce6446ad..ead7f47838 100644 --- a/src/mainboard/google/nyan_blaze/memlayout.ld +++ b/src/mainboard/google/nyan_blaze/memlayout.ld @@ -1 +1 @@ -#include +#include diff --git a/src/mainboard/google/nyan_blaze/pmic.c b/src/mainboard/google/nyan_blaze/pmic.c index c89db2895b..f57bf08c52 100644 --- a/src/mainboard/google/nyan_blaze/pmic.c +++ b/src/mainboard/google/nyan_blaze/pmic.c @@ -18,16 +18,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include #include #include #include - -#include -#include "pmic.h" #include +#include "pmic.h" + enum { AS3722_I2C_ADDR = 0x40 }; diff --git a/src/mainboard/google/nyan_blaze/reset.c b/src/mainboard/google/nyan_blaze/reset.c index 05cca2777e..de096c6520 100644 --- a/src/mainboard/google/nyan_blaze/reset.c +++ b/src/mainboard/google/nyan_blaze/reset.c @@ -18,7 +18,7 @@ */ #include -#include +#include #include void hard_reset(void) diff --git a/src/mainboard/google/nyan_blaze/romstage.c b/src/mainboard/google/nyan_blaze/romstage.c index fb1b9e2b77..034a929944 100644 --- a/src/mainboard/google/nyan_blaze/romstage.c +++ b/src/mainboard/google/nyan_blaze/romstage.c @@ -27,20 +27,21 @@ #include #include #include -#include -#include "sdram_configs.h" -#include -#include -#include -#include -#include -#include -#include #include +#include +#include #include #include +#include +#include +#include +#include +#include #include #include +#include + +#include "sdram_configs.h" static void __attribute__((noinline)) romstage(void) { diff --git a/src/mainboard/google/nyan_blaze/sdram_configs.c b/src/mainboard/google/nyan_blaze/sdram_configs.c index 6fb517d3e2..94c9203b5f 100644 --- a/src/mainboard/google/nyan_blaze/sdram_configs.c +++ b/src/mainboard/google/nyan_blaze/sdram_configs.c @@ -18,7 +18,8 @@ */ #include -#include +#include + #include "sdram_configs.h" static struct sdram_params sdram_configs[] = { diff --git a/src/mainboard/google/nyan_blaze/sdram_configs.h b/src/mainboard/google/nyan_blaze/sdram_configs.h index 26fd048120..e5f987339f 100644 --- a/src/mainboard/google/nyan_blaze/sdram_configs.h +++ b/src/mainboard/google/nyan_blaze/sdram_configs.h @@ -20,7 +20,7 @@ #ifndef __MAINBOARD_GOOGLE_NYAN_BLAZE_SDRAM_CONFIG_H__ #define __MAINBOARD_GOOGLE_NYAN_BLAZE_SDRAM_CONFIG_H__ -#include +#include /* Loads SDRAM configurations for current system. */ const struct sdram_params *get_sdram_config(void); diff --git a/src/soc/nvidia/tegra/displayport.h b/src/soc/nvidia/tegra/displayport.h index 5bf8423d11..b7face5d4e 100644 --- a/src/soc/nvidia/tegra/displayport.h +++ b/src/soc/nvidia/tegra/displayport.h @@ -17,6 +17,8 @@ #ifndef __SOC_NVIDIA_TEGRA_DISPLAYPORT_H__ #define __SOC_NVIDIA_TEGRA_DISPLAYPORT_H__ +#include + /* things we can't get rid of just yet. */ #define DPAUX_INTR_EN_AUX (0x1) #define DPAUX_INTR_AUX (0x5) diff --git a/src/soc/nvidia/tegra/software_i2c.c b/src/soc/nvidia/tegra/software_i2c.c index b50fb4f654..35fc1af3cc 100644 --- a/src/soc/nvidia/tegra/software_i2c.c +++ b/src/soc/nvidia/tegra/software_i2c.c @@ -18,8 +18,8 @@ */ #include -#include -#include +#include +#include #include "i2c.h" diff --git a/src/soc/nvidia/tegra124/bootblock.c b/src/soc/nvidia/tegra124/bootblock.c index 1ccc394be2..7318ad66b9 100644 --- a/src/soc/nvidia/tegra124/bootblock.c +++ b/src/soc/nvidia/tegra124/bootblock.c @@ -25,9 +25,9 @@ #include #include #include +#include +#include #include -#include "pinmux.h" -#include "power.h" static void run_next_stage(void *entry) { diff --git a/src/soc/nvidia/tegra124/cache.c b/src/soc/nvidia/tegra124/cache.c index 55e625478a..a925eafa63 100644 --- a/src/soc/nvidia/tegra124/cache.c +++ b/src/soc/nvidia/tegra124/cache.c @@ -18,8 +18,8 @@ */ #include +#include #include -#include "cache.h" enum { L2CTLR_ECC_PARITY = 0x1 << 21, diff --git a/src/soc/nvidia/tegra124/cbfs.c b/src/soc/nvidia/tegra124/cbfs.c index d56050d04c..33a7258feb 100644 --- a/src/soc/nvidia/tegra124/cbfs.c +++ b/src/soc/nvidia/tegra124/cbfs.c @@ -19,10 +19,9 @@ #include /* This driver serves as a CBFS media source. */ +#include #include -#include "spi.h" - int init_default_cbfs_media(struct cbfs_media *media) { return initialize_tegra_spi_cbfs_media(media, diff --git a/src/soc/nvidia/tegra124/cbmem.c b/src/soc/nvidia/tegra124/cbmem.c index 9a754a0fea..fcc19da350 100644 --- a/src/soc/nvidia/tegra124/cbmem.c +++ b/src/soc/nvidia/tegra124/cbmem.c @@ -19,7 +19,7 @@ #include #include -#include +#include void *cbmem_top(void) { diff --git a/src/soc/nvidia/tegra124/chip.h b/src/soc/nvidia/tegra124/chip.h index 08e96ab809..c3652a182a 100644 --- a/src/soc/nvidia/tegra124/chip.h +++ b/src/soc/nvidia/tegra124/chip.h @@ -21,7 +21,7 @@ #define __SOC_NVIDIA_TEGRA124_CHIP_H__ #include #include -#include "gpio.h" +#include #define EFAULT 1 #define EINVAL 2 diff --git a/src/soc/nvidia/tegra124/clock.c b/src/soc/nvidia/tegra124/clock.c index f5043af3cd..225a764431 100644 --- a/src/soc/nvidia/tegra124/clock.c +++ b/src/soc/nvidia/tegra124/clock.c @@ -14,19 +14,19 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ +#include +#include #include #include -#include #include +#include #include +#include +#include +#include +#include #include #include -#include -#include "clk_rst.h" -#include "flow.h" -#include "maincpu.h" -#include "pmc.h" -#include "sysctr.h" static struct clk_rst_ctlr *clk_rst = (void *)TEGRA_CLK_RST_BASE; static struct flow_ctlr *flow = (void *)TEGRA_FLOW_BASE; diff --git a/src/soc/nvidia/tegra124/display.c b/src/soc/nvidia/tegra124/display.c index 6f6790d56e..71fff1c93e 100644 --- a/src/soc/nvidia/tegra124/display.c +++ b/src/soc/nvidia/tegra124/display.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 "chip.h" -#include struct tegra_dc dc_data; diff --git a/src/soc/nvidia/tegra124/dma.c b/src/soc/nvidia/tegra124/dma.c index aadda80a6c..37375fd797 100644 --- a/src/soc/nvidia/tegra124/dma.c +++ b/src/soc/nvidia/tegra124/dma.c @@ -16,15 +16,13 @@ * along with this program. If not, see . */ +#include +#include #include +#include +#include #include #include -#include - -#include -#include - -#include "dma.h" struct apb_dma * const apb_dma = (struct apb_dma *)TEGRA_APB_DMA_BASE; diff --git a/src/soc/nvidia/tegra124/dp.c b/src/soc/nvidia/tegra124/dp.c index 35a5c73036..b3dab75349 100644 --- a/src/soc/nvidia/tegra124/dp.c +++ b/src/soc/nvidia/tegra124/dp.c @@ -17,18 +17,19 @@ #include #include +#include #include #include #include -#include -#include -#include #include #include #include -#include "chip.h" -#include "sor.h" #include +#include +#include +#include + +#include "chip.h" enum { DP_LT_SUCCESS = 0, diff --git a/src/soc/nvidia/tegra124/cache.h b/src/soc/nvidia/tegra124/include/soc/cache.h similarity index 100% rename from src/soc/nvidia/tegra124/cache.h rename to src/soc/nvidia/tegra124/include/soc/cache.h diff --git a/src/soc/nvidia/tegra124/clk_rst.h b/src/soc/nvidia/tegra124/include/soc/clk_rst.h similarity index 100% rename from src/soc/nvidia/tegra124/clk_rst.h rename to src/soc/nvidia/tegra124/include/soc/clk_rst.h diff --git a/src/soc/nvidia/tegra124/include/soc/clock.h b/src/soc/nvidia/tegra124/include/soc/clock.h index 82b2ad8100..3133d0f76a 100644 --- a/src/soc/nvidia/tegra124/include/soc/clock.h +++ b/src/soc/nvidia/tegra124/include/soc/clock.h @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include diff --git a/src/soc/nvidia/tegra124/dma.h b/src/soc/nvidia/tegra124/include/soc/dma.h similarity index 100% rename from src/soc/nvidia/tegra124/dma.h rename to src/soc/nvidia/tegra124/include/soc/dma.h diff --git a/src/soc/nvidia/tegra124/early_configs.h b/src/soc/nvidia/tegra124/include/soc/early_configs.h similarity index 100% rename from src/soc/nvidia/tegra124/early_configs.h rename to src/soc/nvidia/tegra124/include/soc/early_configs.h diff --git a/src/soc/nvidia/tegra124/emc.h b/src/soc/nvidia/tegra124/include/soc/emc.h similarity index 100% rename from src/soc/nvidia/tegra124/emc.h rename to src/soc/nvidia/tegra124/include/soc/emc.h diff --git a/src/soc/nvidia/tegra124/flow.h b/src/soc/nvidia/tegra124/include/soc/flow.h similarity index 100% rename from src/soc/nvidia/tegra124/flow.h rename to src/soc/nvidia/tegra124/include/soc/flow.h diff --git a/src/soc/nvidia/tegra124/gpio.h b/src/soc/nvidia/tegra124/include/soc/gpio.h similarity index 96% rename from src/soc/nvidia/tegra124/gpio.h rename to src/soc/nvidia/tegra124/include/soc/gpio.h index f7d1c3006a..34de5b93df 100644 --- a/src/soc/nvidia/tegra124/gpio.h +++ b/src/soc/nvidia/tegra124/include/soc/gpio.h @@ -21,10 +21,9 @@ #define __SOC_NVIDIA_TEGRA124_GPIO_H__ #include +#include /* for pinmux constants in GPIO macro */ #include -#include "pinmux.h" /* for pinmux constants in GPIO macro */ - /* GPIO index constants. */ #define GPIO_PORT_CONSTANTS(port) \ diff --git a/src/soc/nvidia/tegra124/maincpu.h b/src/soc/nvidia/tegra124/include/soc/maincpu.h similarity index 100% rename from src/soc/nvidia/tegra124/maincpu.h rename to src/soc/nvidia/tegra124/include/soc/maincpu.h diff --git a/src/soc/nvidia/tegra124/mc.h b/src/soc/nvidia/tegra124/include/soc/mc.h similarity index 100% rename from src/soc/nvidia/tegra124/mc.h rename to src/soc/nvidia/tegra124/include/soc/mc.h diff --git a/src/soc/nvidia/tegra124/memlayout.ld b/src/soc/nvidia/tegra124/include/soc/memlayout.ld similarity index 100% rename from src/soc/nvidia/tegra124/memlayout.ld rename to src/soc/nvidia/tegra124/include/soc/memlayout.ld diff --git a/src/soc/nvidia/tegra124/pingroup.h b/src/soc/nvidia/tegra124/include/soc/pingroup.h similarity index 100% rename from src/soc/nvidia/tegra124/pingroup.h rename to src/soc/nvidia/tegra124/include/soc/pingroup.h diff --git a/src/soc/nvidia/tegra124/pinmux.h b/src/soc/nvidia/tegra124/include/soc/pinmux.h similarity index 100% rename from src/soc/nvidia/tegra124/pinmux.h rename to src/soc/nvidia/tegra124/include/soc/pinmux.h diff --git a/src/soc/nvidia/tegra124/pmc.h b/src/soc/nvidia/tegra124/include/soc/pmc.h similarity index 100% rename from src/soc/nvidia/tegra124/pmc.h rename to src/soc/nvidia/tegra124/include/soc/pmc.h diff --git a/src/soc/nvidia/tegra124/power.h b/src/soc/nvidia/tegra124/include/soc/power.h similarity index 100% rename from src/soc/nvidia/tegra124/power.h rename to src/soc/nvidia/tegra124/include/soc/power.h diff --git a/src/soc/nvidia/tegra124/sdram.h b/src/soc/nvidia/tegra124/include/soc/sdram.h similarity index 97% rename from src/soc/nvidia/tegra124/sdram.h rename to src/soc/nvidia/tegra124/include/soc/sdram.h index d32ce37770..1571521995 100644 --- a/src/soc/nvidia/tegra124/sdram.h +++ b/src/soc/nvidia/tegra124/include/soc/sdram.h @@ -20,7 +20,7 @@ #ifndef __SOC_NVIDIA_TEGRA124_SDRAM_H__ #define __SOC_NVIDIA_TEGRA124_SDRAM_H__ -#include "sdram_param.h" +#include uint32_t sdram_get_ram_code(void); void sdram_init(const struct sdram_params *param); diff --git a/src/soc/nvidia/tegra124/sdram_param.h b/src/soc/nvidia/tegra124/include/soc/sdram_param.h similarity index 100% rename from src/soc/nvidia/tegra124/sdram_param.h rename to src/soc/nvidia/tegra124/include/soc/sdram_param.h diff --git a/src/soc/nvidia/tegra124/sor.h b/src/soc/nvidia/tegra124/include/soc/sor.h similarity index 100% rename from src/soc/nvidia/tegra124/sor.h rename to src/soc/nvidia/tegra124/include/soc/sor.h diff --git a/src/soc/nvidia/tegra124/spi.h b/src/soc/nvidia/tegra124/include/soc/spi.h similarity index 99% rename from src/soc/nvidia/tegra124/spi.h rename to src/soc/nvidia/tegra124/include/soc/spi.h index 11e88feec5..ab046323b1 100644 --- a/src/soc/nvidia/tegra124/spi.h +++ b/src/soc/nvidia/tegra124/include/soc/spi.h @@ -18,10 +18,9 @@ #define __NVIDIA_TEGRA124_SPI_H__ #include +#include #include -#include "dma.h" - struct tegra_spi_regs { u32 command1; /* 0x000: SPI_COMMAND1 */ u32 command2; /* 0x004: SPI_COMMAND2 */ diff --git a/src/soc/nvidia/tegra124/sysctr.h b/src/soc/nvidia/tegra124/include/soc/sysctr.h similarity index 100% rename from src/soc/nvidia/tegra124/sysctr.h rename to src/soc/nvidia/tegra124/include/soc/sysctr.h diff --git a/src/soc/nvidia/tegra124/power.c b/src/soc/nvidia/tegra124/power.c index 75f04942b9..825b27bda9 100644 --- a/src/soc/nvidia/tegra124/power.c +++ b/src/soc/nvidia/tegra124/power.c @@ -22,10 +22,9 @@ #include #include #include - -#include "pmc.h" -#include "power.h" -#include "flow.h" +#include +#include +#include static struct tegra_pmc_regs * const pmc = (void *)TEGRA_PMC_BASE; static struct flow_ctlr * const flow = (void *)TEGRA_FLOW_BASE; diff --git a/src/soc/nvidia/tegra124/sdram.c b/src/soc/nvidia/tegra124/sdram.c index 82219b1da5..d094c18594 100644 --- a/src/soc/nvidia/tegra124/sdram.c +++ b/src/soc/nvidia/tegra124/sdram.c @@ -22,13 +22,13 @@ #include #include #include +#include +#include +#include +#include #include #include -#include "emc.h" -#include "mc.h" -#include "pmc.h" -#include "sdram.h" static void sdram_patch(uintptr_t addr, uint32_t value) { diff --git a/src/soc/nvidia/tegra124/sdram_lp0.c b/src/soc/nvidia/tegra124/sdram_lp0.c index 0cd814ea2c..11e8bc0aba 100644 --- a/src/soc/nvidia/tegra124/sdram_lp0.c +++ b/src/soc/nvidia/tegra124/sdram_lp0.c @@ -17,12 +17,11 @@ #include #include -#include #include - -#include "clk_rst.h" -#include "pmc.h" -#include "sdram.h" +#include +#include +#include +#include /* * This function reads SDRAM parameters (and a few CLK_RST regsiter values) from diff --git a/src/soc/nvidia/tegra124/soc.c b/src/soc/nvidia/tegra124/soc.c index 5da41a9b04..58da1ebaf8 100644 --- a/src/soc/nvidia/tegra124/soc.c +++ b/src/soc/nvidia/tegra124/soc.c @@ -19,16 +19,17 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include #include #include -#include #include -#include -#include "chip.h" #include +#include #include #include +#include "chip.h" + /* this sucks, but for now, fb size/location are hardcoded. * Will break if we get 2. Sigh. * We assume it's all multiples of MiB for MMUs sake. diff --git a/src/soc/nvidia/tegra124/sor.c b/src/soc/nvidia/tegra124/sor.c index 3eaae0e8f9..3de63f9e99 100644 --- a/src/soc/nvidia/tegra124/sor.c +++ b/src/soc/nvidia/tegra124/sor.c @@ -14,26 +14,26 @@ * */ -#include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include #include #include -#include -#include "sor.h" -#include -#include "clk_rst.h" +#include +#include +#include +#include +#include +#include +#include #include -#include "chip.h" #include +#include +#include +#include +#include +#include +#include + +#include "chip.h" #define DEBUG_SOR 0 diff --git a/src/soc/nvidia/tegra124/spi.c b/src/soc/nvidia/tegra124/spi.c index b88306bb4a..aefb4da0d6 100644 --- a/src/soc/nvidia/tegra124/spi.c +++ b/src/soc/nvidia/tegra124/spi.c @@ -18,23 +18,23 @@ * 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 "dma.h" -#include "spi.h" #if defined(CONFIG_DEBUG_SPI) && CONFIG_DEBUG_SPI # define DEBUG_SPI(x,...) printk(BIOS_DEBUG, "TEGRA_SPI: " x) diff --git a/src/soc/nvidia/tegra124/uart.c b/src/soc/nvidia/tegra124/uart.c index fd8074daa0..4af00e9906 100644 --- a/src/soc/nvidia/tegra124/uart.c +++ b/src/soc/nvidia/tegra124/uart.c @@ -17,10 +17,10 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#include #include #include #include /* for __console definition */ +#include #include diff --git a/src/soc/nvidia/tegra124/verstage.c b/src/soc/nvidia/tegra124/verstage.c index 2e5ddf276c..80324232a8 100644 --- a/src/soc/nvidia/tegra124/verstage.c +++ b/src/soc/nvidia/tegra124/verstage.c @@ -20,8 +20,8 @@ #include #include #include -#include -#include +#include +#include #include #include #include