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 <asm/global_data.h> at all, so remove that include. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
#include <asm/arch/mmc_host_def.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/mem.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/emif.h>
|
||||
#include <asm/gpio.h>
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/mmc_host_def.h>
|
||||
#include <asm/arch/mem.h>
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <common.h>
|
||||
#include <eeprom.h>
|
||||
#include <image.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <dm/uclass.h>
|
||||
#include <env.h>
|
||||
#include <fdt_support.h>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <serial.h>
|
||||
#include <usb.h>
|
||||
#include <errno.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/omap_common.h>
|
||||
#include <asm/omap_sec_common.h>
|
||||
#include <asm/emif.h>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <net.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/omap_common.h>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <status_led.h>
|
||||
#endif
|
||||
#include <twl4030.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/mmc_host_def.h>
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include <palmas.h>
|
||||
#include <sata.h>
|
||||
#include <serial.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <linux/string.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <usb.h>
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <net.h>
|
||||
#include <ns16550.h>
|
||||
#include <serial.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/mem.h>
|
||||
#include <asm/arch/mux.h>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <net.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/hardware.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/gpio.h>
|
||||
#include <asm/io.h>
|
||||
#include <spl.h>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/global_data.h>
|
||||
#include "board.h"
|
||||
#include <env.h>
|
||||
#include <hang.h>
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#include <serial.h>
|
||||
#include <tca642x.h>
|
||||
#include <usb.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/usb/gadget.h>
|
||||
#include <dwc3-uboot.h>
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <log.h>
|
||||
#include <net.h>
|
||||
#include <serial.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/mach-types.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/mmc_host_def.h>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <serial.h>
|
||||
#include <asm/arch/sys_proto.h>
|
||||
#include <asm/arch/mmc_host_def.h>
|
||||
#include <asm/global_data.h>
|
||||
|
||||
#include "sdp4430_mux_data.h"
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
#include <net.h>
|
||||
#include <spl.h>
|
||||
#include <asm/cache.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/clock.h>
|
||||
#include <asm/arch/cpu.h>
|
||||
|
||||
Reference in New Issue
Block a user