From 401d1c4f5d2d29c4bc4beaec95402ca23eb63295 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 30 Oct 2020 21:38:53 -0600 Subject: common: Drop asm/global_data.h from common header Move this out of the common header and include it only where needed. In a number of cases this requires adding "struct udevice;" to avoid adding another large header or in other cases replacing / adding missing header files that had been pulled in, very indirectly. Finally, we have a few cases where we did not need to include at all, so remove that include. Signed-off-by: Simon Glass Signed-off-by: Tom Rini --- board/freescale/mpc8313erdb/mpc8313erdb.c | 1 + board/freescale/mpc8313erdb/sdram.c | 1 + 2 files changed, 2 insertions(+) (limited to 'board/freescale/mpc8313erdb') diff --git a/board/freescale/mpc8313erdb/mpc8313erdb.c b/board/freescale/mpc8313erdb/mpc8313erdb.c index 7e1a31f..3bf5cff 100644 --- a/board/freescale/mpc8313erdb/mpc8313erdb.c +++ b/board/freescale/mpc8313erdb/mpc8313erdb.c @@ -20,6 +20,7 @@ #if defined(CONFIG_MPC83XX_GPIO) && !defined(CONFIG_SPL_BUILD) #include #endif +#include DECLARE_GLOBAL_DATA_PTR; diff --git a/board/freescale/mpc8313erdb/sdram.c b/board/freescale/mpc8313erdb/sdram.c index 99f6bcd..f146ae5 100644 --- a/board/freescale/mpc8313erdb/sdram.c +++ b/board/freescale/mpc8313erdb/sdram.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include -- cgit v1.1