]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
configs: keystone2: Do not include hardware.h
authorAndrew Davis <afd@ti.com>
Fri, 17 Nov 2023 22:38:28 +0000 (16:38 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 29 Nov 2023 14:32:15 +0000 (09:32 -0500)
This is a hacky way to have this file included in all source files that
include common.h, instead just include from the files that need it.

Signed-off-by: Andrew Davis <afd@ti.com>
drivers/memory/ti-aemif.c
drivers/soc/ti/keystone_serdes.c
include/configs/ti_armv7_keystone2.h

index c4bc88c15108bec1acc18dd454036d2e15dca22a..41325eb0f9414903eec725c051350786b5412fa7 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <asm/arch/hardware.h>
 #include <asm/ti-common/ti-aemif.h>
 
 #define AEMIF_WAITCYCLE_CONFIG         (KS2_AEMIF_CNTRL_BASE + 0x4)
index 2ece1a8f64701b02ef865bed66c26c1cf74f79f1..0e1bf8ff39dbb88d0a3de86489ecf57cb63cc3e0 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <errno.h>
 #include <common.h>
+#include <asm/io.h>
 #include <asm/ti-common/keystone_serdes.h>
 #include <linux/bitops.h>
 
index 637e9e4369ef7f6d71bad9bbd2ee0ccf78f2c58d..b36207cb5d185a6492943ba19ef757e0062001b5 100644 (file)
@@ -52,7 +52,6 @@
 #include <configs/ti_armv7_common.h>
 
 /* we may include files below only after all above definitions */
-#include <asm/arch/hardware.h>
 #include <asm/arch/clock.h>
 #ifndef CONFIG_SOC_K2G
 #define CFG_SYS_HZ_CLOCK               ks_clk_get_rate(KS2_CLK1_6)