dm: Use dm.h header when driver mode is used
This header includes things that are needed to make driver build. Adjust existing users to include that always, even if other dm/ includes are present Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
		
							parent
							
								
									31493dd5ff
								
							
						
					
					
						commit
						9d922450aa
					
				|  | @ -14,7 +14,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <command.h> | #include <command.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/root.h> | #include <dm/root.h> | ||||||
| #include <image.h> | #include <image.h> | ||||||
| #include <u-boot/zlib.h> | #include <u-boot/zlib.h> | ||||||
|  |  | ||||||
|  | @ -6,9 +6,8 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| #include <dm/uclass.h> |  | ||||||
| 
 | 
 | ||||||
| #include "init.h" | #include "init.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ | ||||||
|  */ |  */ | ||||||
| #define DEBUG | #define DEBUG | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <libfdt.h> | #include <libfdt.h> | ||||||
| #include <os.h> | #include <os.h> | ||||||
|  |  | ||||||
|  | @ -5,10 +5,10 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/arch/gxbb.h> | #include <asm/arch/gxbb.h> | ||||||
| #include <asm/arch/sm.h> | #include <asm/arch/sm.h> | ||||||
| #include <dm/platdata.h> |  | ||||||
| #include <phy.h> | #include <phy.h> | ||||||
| 
 | 
 | ||||||
| #define EFUSE_SN_OFFSET		20 | #define EFUSE_SN_OFFSET		20 | ||||||
|  |  | ||||||
|  | @ -18,9 +18,9 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <netdev.h> | #include <netdev.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <dm/platdata.h> |  | ||||||
| #include <dm/platform_data/serial_pl01x.h> | #include <dm/platform_data/serial_pl01x.h> | ||||||
| #include "arm-ebi.h" | #include "arm-ebi.h" | ||||||
| #include "integrator-sc.h" | #include "integrator-sc.h" | ||||||
|  |  | ||||||
|  | @ -6,12 +6,12 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <netdev.h> | #include <netdev.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <linux/compiler.h> | #include <linux/compiler.h> | ||||||
| #include <dm/platdata.h> |  | ||||||
| #include <dm/platform_data/serial_pl01x.h> | #include <dm/platform_data/serial_pl01x.h> | ||||||
| #include "pcie.h" | #include "pcie.h" | ||||||
| #include <asm/armv8/mmu.h> | #include <asm/armv8/mmu.h> | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/arch/imx-regs.h> | #include <asm/arch/imx-regs.h> | ||||||
| #include <asm/arch/sys_proto.h> | #include <asm/arch/sys_proto.h> | ||||||
|  | @ -26,7 +27,6 @@ | ||||||
| #include <linux/fb.h> | #include <linux/fb.h> | ||||||
| #include <ipu_pixfmt.h> | #include <ipu_pixfmt.h> | ||||||
| #include <fs.h> | #include <fs.h> | ||||||
| #include <dm/platdata.h> |  | ||||||
| #include <dm/platform_data/serial_mxc.h> | #include <dm/platform_data/serial_mxc.h> | ||||||
| 
 | 
 | ||||||
| enum LED_GPIOS { | enum LED_GPIOS { | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <command.h> | #include <command.h> | ||||||
| #include <dm/platdata.h> | #include <dm.h> | ||||||
| #include <dm/platform_data/net_ethoc.h> | #include <dm/platform_data/net_ethoc.h> | ||||||
| #include <linux/ctype.h> | #include <linux/ctype.h> | ||||||
| #include <linux/string.h> | #include <linux/string.h> | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ | ||||||
| **/ | **/ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <linux/compiler.h> | #include <linux/compiler.h> | ||||||
|  | @ -13,7 +14,6 @@ | ||||||
| #include <asm/armv8/mmu.h> | #include <asm/armv8/mmu.h> | ||||||
| 
 | 
 | ||||||
| #if !CONFIG_IS_ENABLED(OF_CONTROL) | #if !CONFIG_IS_ENABLED(OF_CONTROL) | ||||||
| #include <dm/platdata.h> |  | ||||||
| #include <dm/platform_data/serial_pl01x.h> | #include <dm/platform_data/serial_pl01x.h> | ||||||
| 
 | 
 | ||||||
| static const struct pl01x_serial_platdata serial0 = { | static const struct pl01x_serial_platdata serial0 = { | ||||||
|  |  | ||||||
|  | @ -5,6 +5,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <fsl_validate.h> | #include <fsl_validate.h> | ||||||
| #include <fsl_secboot_err.h> | #include <fsl_secboot_err.h> | ||||||
| #include <fsl_sfp.h> | #include <fsl_sfp.h> | ||||||
|  |  | ||||||
|  | @ -5,13 +5,13 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <fsl_validate.h> | #include <fsl_validate.h> | ||||||
| #include <fsl_secboot_err.h> | #include <fsl_secboot_err.h> | ||||||
| #include <fsl_sfp.h> | #include <fsl_sfp.h> | ||||||
| #include <fsl_sec.h> | #include <fsl_sec.h> | ||||||
| #include <command.h> | #include <command.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <dm/uclass.h> |  | ||||||
| #include <u-boot/rsa-mod-exp.h> | #include <u-boot/rsa-mod-exp.h> | ||||||
| #include <hash.h> | #include <hash.h> | ||||||
| #include <fsl_secboot_err.h> | #include <fsl_secboot_err.h> | ||||||
|  |  | ||||||
|  | @ -12,12 +12,12 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/armv7m.h> | #include <asm/armv7m.h> | ||||||
| #include <asm/arch/stm32.h> | #include <asm/arch/stm32.h> | ||||||
| #include <asm/arch/gpio.h> | #include <asm/arch/gpio.h> | ||||||
| #include <asm/arch/fmc.h> | #include <asm/arch/fmc.h> | ||||||
| #include <dm/platdata.h> |  | ||||||
| #include <dm/platform_data/serial_stm32.h> | #include <dm/platform_data/serial_stm32.h> | ||||||
| #include <asm/arch/stm32_periph.h> | #include <asm/arch/stm32_periph.h> | ||||||
| #include <asm/arch/stm32_defs.h> | #include <asm/arch/stm32_defs.h> | ||||||
|  |  | ||||||
|  | @ -12,7 +12,7 @@ | ||||||
| #include <asm/armv7m.h> | #include <asm/armv7m.h> | ||||||
| #include <asm/arch/stm32.h> | #include <asm/arch/stm32.h> | ||||||
| #include <asm/arch/gpio.h> | #include <asm/arch/gpio.h> | ||||||
| #include <dm/platdata.h> | #include <asm/arch/fmc.h> | ||||||
| #include <dm/platform_data/serial_stm32x7.h> | #include <dm/platform_data/serial_stm32x7.h> | ||||||
| #include <asm/arch/stm32_periph.h> | #include <asm/arch/stm32_periph.h> | ||||||
| #include <asm/arch/stm32_defs.h> | #include <asm/arch/stm32_defs.h> | ||||||
|  |  | ||||||
|  | @ -6,6 +6,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <miiphy.h> | #include <miiphy.h> | ||||||
| #include <asm/arch/stv0991_periph.h> | #include <asm/arch/stv0991_periph.h> | ||||||
| #include <asm/arch/stv0991_defs.h> | #include <asm/arch/stv0991_defs.h> | ||||||
|  | @ -13,7 +14,6 @@ | ||||||
| #include <asm/arch/gpio.h> | #include <asm/arch/gpio.h> | ||||||
| #include <netdev.h> | #include <netdev.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <dm/platdata.h> |  | ||||||
| #include <dm/platform_data/serial_pl01x.h> | #include <dm/platform_data/serial_pl01x.h> | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <asm/arch/clock.h> | #include <asm/arch/clock.h> | ||||||
| #include <asm/arch/crm_regs.h> | #include <asm/arch/crm_regs.h> | ||||||
| #include <asm/arch/mxc_hdmi.h> | #include <asm/arch/mxc_hdmi.h> | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <asm/arch/clock.h> | #include <asm/arch/clock.h> | ||||||
| #include <asm/arch/crm_regs.h> | #include <asm/arch/crm_regs.h> | ||||||
| #include <asm/arch/imx-regs.h> | #include <asm/arch/imx-regs.h> | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <asm/arch/hardware.h> | #include <asm/arch/hardware.h> | ||||||
| #include <asm/arch/pxa.h> | #include <asm/arch/pxa.h> | ||||||
| #include <asm/arch/regs-mmc.h> | #include <asm/arch/regs-mmc.h> | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <command.h> | #include <command.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <efi_loader.h> | #include <efi_loader.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <libfdt.h> | #include <libfdt.h> | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <environment.h> | #include <environment.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <spi.h> | #include <spi.h> | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <mach/at91_pmc.h> | #include <mach/at91_pmc.h> | ||||||
| #include "pmc.h" | #include "pmc.h" | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/util.h> | #include <dm/util.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <mach/at91_pmc.h> | #include <mach/at91_pmc.h> | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <mach/at91_pmc.h> | #include <mach/at91_pmc.h> | ||||||
| #include "pmc.h" | #include "pmc.h" | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <mach/at91_pmc.h> | #include <mach/at91_pmc.h> | ||||||
| #include "pmc.h" | #include "pmc.h" | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <mach/at91_pmc.h> | #include <mach/at91_pmc.h> | ||||||
| #include "pmc.h" | #include "pmc.h" | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| 
 | 
 | ||||||
| static int at91_slow_clk_enable(struct clk *clk) | static int at91_slow_clk_enable(struct clk *clk) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <mach/at91_pmc.h> | #include <mach/at91_pmc.h> | ||||||
| #include "pmc.h" | #include "pmc.h" | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <mach/at91_pmc.h> | #include <mach/at91_pmc.h> | ||||||
| #include "pmc.h" | #include "pmc.h" | ||||||
|  |  | ||||||
|  | @ -7,9 +7,8 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dm/root.h> |  | ||||||
| #include <dm/util.h> | #include <dm/util.h> | ||||||
| #include "pmc.h" | #include "pmc.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -6,8 +6,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/root.h> |  | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -9,8 +9,8 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <linux/bitops.h> | #include <linux/bitops.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
|  | #include <dm.h> | ||||||
| 
 | 
 | ||||||
| #define ZYNQMP_GEM0_REF_CTRL		0xFF5E0050 | #define ZYNQMP_GEM0_REF_CTRL		0xFF5E0050 | ||||||
| #define ZYNQMP_IOPLL_CTRL		0xFF5E0020 | #define ZYNQMP_IOPLL_CTRL		0xFF5E0020 | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/bitops.h> | #include <linux/bitops.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
|  |  | ||||||
|  | @ -11,8 +11,8 @@ | ||||||
| 
 | 
 | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <dma.h> | #include <dma.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <asm/omap_common.h> | #include <asm/omap_common.h> | ||||||
| #include <asm/ti-common/ti-edma3.h> | #include <asm/ti-common/ti-edma3.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -2,7 +2,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/uclass.h> | #include <dm.h> | ||||||
| 
 | 
 | ||||||
| /* Firmware access is platform-dependent.  No generic code in uclass */ | /* Firmware access is platform-dependent.  No generic code in uclass */ | ||||||
| UCLASS_DRIVER(firmware) = { | UCLASS_DRIVER(firmware) = { | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <libfdt.h> | #include <libfdt.h> | ||||||
| #include <linux/arm-smccc.h> | #include <linux/arm-smccc.h> | ||||||
|  |  | ||||||
|  | @ -9,10 +9,10 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <asm/gpio.h> | #include <asm/gpio.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <dm/device.h> |  | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/bitops.h> | #include <linux/bitops.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
|  |  | ||||||
|  | @ -9,10 +9,10 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <linux/types.h> | #include <linux/types.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <dm/root.h> | #include <dm/root.h> | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
|  |  | ||||||
|  | @ -7,12 +7,12 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <linux/types.h> | #include <linux/types.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/iopoll.h> | #include <linux/iopoll.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -7,11 +7,11 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <linux/types.h> | #include <linux/types.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <mmc.h> | #include <mmc.h> | ||||||
| #include <part.h> | #include <part.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
|  | @ -19,7 +20,6 @@ | ||||||
| #include <asm/byteorder.h> | #include <asm/byteorder.h> | ||||||
| #include <asm/arch/clk.h> | #include <asm/arch/clk.h> | ||||||
| #include <asm/arch/hardware.h> | #include <asm/arch/hardware.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include "atmel_mci.h" | #include "atmel_mci.h" | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
|  |  | ||||||
|  | @ -5,12 +5,12 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <mmc.h> | #include <mmc.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/arch/sd_emmc.h> | #include <asm/arch/sd_emmc.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <linux/log2.h> | #include <linux/log2.h> | ||||||
| 
 | 
 | ||||||
| static inline void *get_regbase(const struct mmc *mmc) | static inline void *get_regbase(const struct mmc *mmc) | ||||||
|  |  | ||||||
|  | @ -6,10 +6,10 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/iopoll.h> | #include <linux/iopoll.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <libfdt.h> | #include <libfdt.h> | ||||||
| #include <mmc.h> | #include <mmc.h> | ||||||
| #include <sdhci.h> | #include <sdhci.h> | ||||||
|  |  | ||||||
|  | @ -9,7 +9,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <bouncebuf.h> | #include <bouncebuf.h> | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <asm/gpio.h> | #include <asm/gpio.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
|  |  | ||||||
|  | @ -9,7 +9,7 @@ | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| #include <mmc.h> | #include <mmc.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <linux/compat.h> | #include <linux/compat.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
|  |  | ||||||
|  | @ -11,7 +11,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/platform_data/net_ethoc.h> | #include <dm/platform_data/net_ethoc.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| #include <dt-bindings/gpio/meson-gxbb-gpio.h> | #include <dt-bindings/gpio/meson-gxbb-gpio.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| #include <fdt_support.h> | #include <fdt_support.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ | ||||||
| #include <mapmem.h> | #include <mapmem.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-imx.h" | #include "pinctrl-imx.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-imx.h" | #include "pinctrl-imx.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-imx.h" | #include "pinctrl-imx.h" | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-imx.h" | #include "pinctrl-imx.h" | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-imx.h" | #include "pinctrl-imx.h" | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
|  |  | ||||||
|  | @ -8,7 +8,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
|  |  | ||||||
|  | @ -5,8 +5,8 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <linux/compat.h> | #include <linux/compat.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
|  |  | ||||||
|  | @ -7,7 +7,7 @@ | ||||||
| /* #define DEBUG */ | /* #define DEBUG */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| static const char * const sandbox_pins[] = { | static const char * const sandbox_pins[] = { | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| #include <libfdt.h> | #include <libfdt.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
|  |  | ||||||
|  | @ -8,10 +8,9 @@ | ||||||
| #include <libfdt.h> | #include <libfdt.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
| #include <linux/list.h> | #include <linux/list.h> | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| #include <dm/uclass.h> |  | ||||||
| #include <dm/util.h> | #include <dm/util.h> | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
|  |  | ||||||
|  | @ -6,10 +6,10 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| 
 | 
 | ||||||
| #include "pinctrl-uniphier.h" | #include "pinctrl-uniphier.h" | ||||||
|  |  | ||||||
|  | @ -9,10 +9,10 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <ram.h> | #include <ram.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <dm/device.h> |  | ||||||
| 
 | 
 | ||||||
| #define SDRAM_CFG_REG		0x0 | #define SDRAM_CFG_REG		0x0 | ||||||
| #define SDRAM_CFG_COL_SHIFT	4 | #define SDRAM_CFG_COL_SHIFT	4 | ||||||
|  |  | ||||||
|  | @ -6,8 +6,8 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <reset-uclass.h> | #include <reset-uclass.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <linux/bitops.h> | #include <linux/bitops.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
|  |  | ||||||
|  | @ -8,12 +8,12 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <debug_uart.h> | #include <debug_uart.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <serial.h> | #include <serial.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/types.h> | #include <asm/types.h> | ||||||
| #include <dm/device.h> |  | ||||||
| 
 | 
 | ||||||
| /* UART Control register */ | /* UART Control register */ | ||||||
| #define UART_CTL_REG			0x0 | #define UART_CTL_REG			0x0 | ||||||
|  |  | ||||||
|  | @ -6,11 +6,11 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
|  | #include <dm.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/serial_reg.h> | #include <linux/serial_reg.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <dm/device.h> |  | ||||||
| #include <serial.h> | #include <serial.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -4,7 +4,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0+ |  * SPDX-License-Identifier:	GPL-2.0+ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <dm/device.h> | #include <dm.h> | ||||||
| #include <sysreset.h> | #include <sysreset.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <linux/psci.h> | #include <linux/psci.h> | ||||||
|  |  | ||||||
|  | @ -17,6 +17,7 @@ | ||||||
|  * SPDX-License-Identifier:	GPL-2.0 |  * SPDX-License-Identifier:	GPL-2.0 | ||||||
|  */ |  */ | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm.h> | ||||||
| #include <asm/arch/cpu.h> | #include <asm/arch/cpu.h> | ||||||
| #include <asm/arch/clock.h> | #include <asm/arch/clock.h> | ||||||
| #include <asm/arch/gpio.h> | #include <asm/arch/gpio.h> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue