dm: core: Require users of devres to include the header
At present devres.h is included in all files that include dm.h but few make use of it. Also this pulls in linux/compat which adds several more headers. Drop the automatic inclusion and require files to include devres themselves. This provides a good indication of which files use devres. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Anatolij Gustschin <agust@denx.de>
This commit is contained in:
		
							parent
							
								
									a466db5adb
								
							
						
					
					
						commit
						61b29b8268
					
				|  | @ -7,6 +7,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/arch/scu_ast2500.h> | #include <asm/arch/scu_ast2500.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int ast_get_clk(struct udevice **devp) | int ast_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| 
 | 
 | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <jffs2/jffs2.h> | #include <jffs2/jffs2.h> | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
| #include <linux/bitfield.h> | #include <linux/bitfield.h> | ||||||
| #include <regmap.h> | #include <regmap.h> | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define AO_SEC_SD_CFG8		0xe0 | #define AO_SEC_SD_CFG8		0xe0 | ||||||
| #define AO_SEC_SOCINFO_OFFSET	AO_SEC_SD_CFG8 | #define AO_SEC_SOCINFO_OFFSET	AO_SEC_SD_CFG8 | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <asm/arch/sm.h> | #include <asm/arch/sm.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <linux/bitfield.h> | #include <linux/bitfield.h> | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru_px30.h> | #include <asm/arch-rockchip/cru_px30.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru_rk3036.h> | #include <asm/arch-rockchip/cru_rk3036.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru_rk3128.h> | #include <asm/arch-rockchip/cru_rk3128.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru_rk3188.h> | #include <asm/arch-rockchip/cru_rk3188.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/grf_rk3188.h> | #include <asm/arch-rockchip/grf_rk3188.h> | ||||||
| #include <asm/arch-rockchip/hardware.h> | #include <asm/arch-rockchip/hardware.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define GRF_BASE	0x20008000 | #define GRF_BASE	0x20008000 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru_rk322x.h> | #include <asm/arch-rockchip/cru_rk322x.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru.h> | #include <asm/arch-rockchip/cru.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -17,6 +17,7 @@ | ||||||
| #include <asm/arch-rockchip/pmu_rk3288.h> | #include <asm/arch-rockchip/pmu_rk3288.h> | ||||||
| #include <asm/arch-rockchip/qos_rk3288.h> | #include <asm/arch-rockchip/qos_rk3288.h> | ||||||
| #include <asm/arch-rockchip/sdram.h> | #include <asm/arch-rockchip/sdram.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch/cru_rk3308.h> | #include <asm/arch/cru_rk3308.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru_rk3328.h> | #include <asm/arch-rockchip/cru_rk3328.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru_rk3368.h> | #include <asm/arch-rockchip/cru_rk3368.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru.h> | #include <asm/arch-rockchip/cru.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| static int rockchip_get_cruclk(struct udevice **devp) | static int rockchip_get_cruclk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <asm/arch-rockchip/cru_rv1108.h> | #include <asm/arch-rockchip/cru_rv1108.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| int rockchip_get_clk(struct udevice **devp) | int rockchip_get_clk(struct udevice **devp) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <regmap.h> | #include <regmap.h> | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <power/pmic.h> | #include <power/pmic.h> | ||||||
| #include <power/regulator.h> | #include <power/regulator.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -17,6 +17,7 @@ | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/syscon.h> | #include <asm/syscon.h> | ||||||
| #include <cpu.h> | #include <cpu.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| /* pending register */ | /* pending register */ | ||||||
| #define PENDING_REG(base, hart)	((ulong)(base) + 0x1000 + ((hart) / 4) * 4) | #define PENDING_REG(base, hart)	((ulong)(base) + 0x1000 + ((hart) / 4) * 4) | ||||||
|  |  | ||||||
|  | @ -13,6 +13,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/syscon.h> | #include <asm/syscon.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| /* mtime register */ | /* mtime register */ | ||||||
| #define MTIME_REG(base)			((ulong)(base)) | #define MTIME_REG(base)			((ulong)(base)) | ||||||
|  |  | ||||||
|  | @ -13,6 +13,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/syscon.h> | #include <asm/syscon.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| /* MSIP registers */ | /* MSIP registers */ | ||||||
| #define MSIP_REG(base, hart)		((ulong)(base) + (hart) * 4) | #define MSIP_REG(base, hart)		((ulong)(base) + (hart) * 4) | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <asm/arch-rockchip/clock.h> | #include <asm/arch-rockchip/clock.h> | ||||||
| #include <dt-bindings/clock/rk3288-cru.h> | #include <dt-bindings/clock/rk3288-cru.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <power/regulator.h> | #include <power/regulator.h> | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  |  | ||||||
|  | @ -32,6 +32,7 @@ | ||||||
| #include <asm/arch/stm32.h> | #include <asm/arch/stm32.h> | ||||||
| #include <asm/arch/sys_proto.h> | #include <asm/arch/sys_proto.h> | ||||||
| #include <jffs2/load_kernel.h> | #include <jffs2/load_kernel.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <power/regulator.h> | #include <power/regulator.h> | ||||||
| #include <usb/dwc2_udc.h> | #include <usb/dwc2_udc.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <asm/gpio.h> | #include <asm/gpio.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| __weak int name_to_gpio(const char *name) | __weak int name_to_gpio(const char *name) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -20,6 +20,7 @@ | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
| #include <memalign.h> | #include <memalign.h> | ||||||
| #include <linux/compat.h> | #include <linux/compat.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/sizes.h> | #include <linux/sizes.h> | ||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -14,6 +14,8 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <mapmem.h> | #include <mapmem.h> | ||||||
| #include <mtd.h> | #include <mtd.h> | ||||||
|  | #include <dm/devres.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #include <linux/ctype.h> | #include <linux/ctype.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -19,6 +19,7 @@ | ||||||
| #include <mtd.h> | #include <mtd.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
| #include <onenand_uboot.h> | #include <onenand_uboot.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
| #include <linux/mtd/partitions.h> | #include <linux/mtd/partitions.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define SARADC_CTRL_CHN_MASK		GENMASK(2, 0) | #define SARADC_CTRL_CHN_MASK		GENMASK(2, 0) | ||||||
| #define SARADC_CTRL_POWER_CTRL		BIT(3) | #define SARADC_CTRL_POWER_CTRL		BIT(3) | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
| #include <dm/device-internal.h> | #include <dm/device-internal.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dm/uclass-internal.h> | #include <dm/uclass-internal.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| static const char *if_typename_str[IF_TYPE_COUNT] = { | static const char *if_typename_str[IF_TYPE_COUNT] = { | ||||||
| 	[IF_TYPE_IDE]		= "ide", | 	[IF_TYPE_IDE]		= "ide", | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dm/util.h> | #include <dm/util.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
| #include <asm/arch/scu_ast2500.h> | #include <asm/arch/scu_ast2500.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dt-bindings/clock/ast2500-scu.h> | #include <dt-bindings/clock/ast2500-scu.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  * MAC Clock Delay settings, taken from Aspeed SDK |  * MAC Clock Delay settings, taken from Aspeed SDK | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <linux/err.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,6 +7,7 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <linux/err.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" | ||||||
|  |  | ||||||
|  | @ -9,8 +9,10 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #include "clk.h" | #include "clk.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -14,10 +14,12 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <dm/uclass.h> | #include <dm/uclass.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dm/device-internal.h> | #include <dm/device-internal.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/log2.h> | #include <linux/log2.h> | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
|  |  | ||||||
|  | @ -9,10 +9,12 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include "clk.h" | #include "clk.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define UBOOT_DM_CLK_IMX_FIXED_FACTOR "ccf_clk_fixed_factor" | #define UBOOT_DM_CLK_IMX_FIXED_FACTOR "ccf_clk_fixed_factor" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -12,9 +12,11 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include "clk.h" | #include "clk.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define UBOOT_DM_CLK_GATE "clk_gate" | #define UBOOT_DM_CLK_GATE "clk_gate" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -26,9 +26,11 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include "clk.h" | #include "clk.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define UBOOT_DM_CLK_CCF_MUX "ccf_clk_mux" | #define UBOOT_DM_CLK_CCF_MUX "ccf_clk_mux" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -12,6 +12,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/soc/ti/ti_sci_protocol.h> | #include <linux/soc/ti/ti_sci_protocol.h> | ||||||
| #include <k3-avs.h> | #include <k3-avs.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -10,10 +10,12 @@ | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <dm/read.h> |  | ||||||
| #include <dt-structs.h> | #include <dt-structs.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
|  | #include <dm/devres.h> | ||||||
|  | #include <dm/read.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| static inline const struct clk_ops *clk_dev_ops(struct udevice *dev) | static inline const struct clk_ops *clk_dev_ops(struct udevice *dev) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| struct clk_fixed_factor { | struct clk_fixed_factor { | ||||||
| 	struct clk parent; | 	struct clk parent; | ||||||
|  |  | ||||||
|  | @ -11,8 +11,10 @@ | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include <asm/clk.h> | #include <asm/clk.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
| #include <sandbox-clk.h> | #include <sandbox-clk.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| /*
 | /*
 | ||||||
|  * Sandbox implementation of CCF primitives necessary for clk-uclass testing |  * Sandbox implementation of CCF primitives necessary for clk-uclass testing | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include <asm/clk.h> | #include <asm/clk.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| struct sandbox_clk_test { | struct sandbox_clk_test { | ||||||
| 	struct clk clks[SANDBOX_CLK_TEST_NON_DEVM_COUNT]; | 	struct clk clks[SANDBOX_CLK_TEST_NON_DEVM_COUNT]; | ||||||
|  |  | ||||||
|  | @ -13,6 +13,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <asm/arch/sys_proto.h> | #include <asm/arch/sys_proto.h> | ||||||
| #include <zynqmp_firmware.h> | #include <zynqmp_firmware.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define MAX_PARENT			100 | #define MAX_PARENT			100 | ||||||
| #define MAX_NODES			6 | #define MAX_NODES			6 | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include <asm/arch/sys_proto.h> | #include <asm/arch/sys_proto.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| static const resource_size_t zynqmp_crf_apb_clkc_base = 0xfd1a0020; | static const resource_size_t zynqmp_crf_apb_clkc_base = 0xfd1a0020; | ||||||
| static const resource_size_t zynqmp_crl_apb_clkc_base = 0xff5e0020; | static const resource_size_t zynqmp_crl_apb_clkc_base = 0xff5e0020; | ||||||
|  |  | ||||||
|  | @ -8,9 +8,11 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include "clk.h" | #include "clk.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define UBOOT_DM_CLK_IMX_COMPOSITE "imx_clk_composite" | #define UBOOT_DM_CLK_IMX_COMPOSITE "imx_clk_composite" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -19,9 +19,11 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include "clk.h" | #include "clk.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define UBOOT_DM_CLK_IMX_GATE2 "imx_clk_gate2" | #define UBOOT_DM_CLK_IMX_GATE2 "imx_clk_gate2" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -19,10 +19,12 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include "clk.h" | #include "clk.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define UBOOT_DM_CLK_IMX_PFD "imx_clk_pfd" | #define UBOOT_DM_CLK_IMX_PFD "imx_clk_pfd" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -10,7 +10,9 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/clk-provider.h> | #include <linux/clk-provider.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/iopoll.h> | #include <linux/iopoll.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
|  |  | ||||||
|  | @ -10,9 +10,11 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <clk-uclass.h> | #include <clk-uclass.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <dm/uclass.h> | #include <dm/uclass.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include "clk.h" | #include "clk.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define UBOOT_DM_CLK_IMX_PLLV3_GENERIC	"imx_clk_pllv3_generic" | #define UBOOT_DM_CLK_IMX_PLLV3_GENERIC	"imx_clk_pllv3_generic" | ||||||
| #define UBOOT_DM_CLK_IMX_PLLV3_SYS	"imx_clk_pllv3_sys" | #define UBOOT_DM_CLK_IMX_PLLV3_SYS	"imx_clk_pllv3_sys" | ||||||
|  |  | ||||||
|  | @ -15,6 +15,7 @@ | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
| #include <dt-bindings/clock/axg-clkc.h> | #include <dt-bindings/clock/axg-clkc.h> | ||||||
| #include "clk_meson.h" | #include "clk_meson.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define XTAL_RATE 24000000 | #define XTAL_RATE 24000000 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -14,6 +14,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
| #include <dt-bindings/clock/g12a-clkc.h> | #include <dt-bindings/clock/g12a-clkc.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
| #include "clk_meson.h" | #include "clk_meson.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -15,6 +15,7 @@ | ||||||
| #include <syscon.h> | #include <syscon.h> | ||||||
| #include <dt-bindings/clock/gxbb-clkc.h> | #include <dt-bindings/clock/gxbb-clkc.h> | ||||||
| #include "clk_meson.h" | #include "clk_meson.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| /* This driver support only basic clock tree operations :
 | /* This driver support only basic clock tree operations :
 | ||||||
|  * - Can calculate clock frequency on a limited tree |  * - Can calculate clock frequency on a limited tree | ||||||
|  |  | ||||||
|  | @ -20,6 +20,7 @@ | ||||||
| #include <dm/device-internal.h> | #include <dm/device-internal.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dm/uclass-internal.h> | #include <dm/uclass-internal.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/log2.h> | #include <linux/log2.h> | ||||||
| 
 | 
 | ||||||
| enum rk3188_clk_type { | enum rk3188_clk_type { | ||||||
|  |  | ||||||
|  | @ -21,6 +21,7 @@ | ||||||
| #include <dm/device-internal.h> | #include <dm/device-internal.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dm/uclass-internal.h> | #include <dm/uclass-internal.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/log2.h> | #include <linux/log2.h> | ||||||
| 
 | 
 | ||||||
| DECLARE_GLOBAL_DATA_PTR; | DECLARE_GLOBAL_DATA_PTR; | ||||||
|  |  | ||||||
|  | @ -35,6 +35,7 @@ | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #include <linux/math64.h> | #include <linux/math64.h> | ||||||
| #include <linux/clk/analogbits-wrpll-cln28hpc.h> | #include <linux/clk/analogbits-wrpll-cln28hpc.h> | ||||||
|  |  | ||||||
|  | @ -14,6 +14,7 @@ | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
| #include <linux/list.h> | #include <linux/list.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <dm/root.h> | #include <dm/root.h> | ||||||
| #include <dm/util.h> | #include <dm/util.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| #include <dfu.h> | #include <dfu.h> | ||||||
| #include <mtd.h> | #include <mtd.h> | ||||||
| #include <jffs2/load_kernel.h> | #include <jffs2/load_kernel.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| static bool mtd_is_aligned_with_block_size(struct mtd_info *mtd, u64 size) | static bool mtd_is_aligned_with_block_size(struct mtd_info *mtd, u64 size) | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -12,7 +12,7 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <asm/dma-mapping.h> | #include <asm/dma-mapping.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <dm/device.h> | #include <dm/devres.h> | ||||||
| #include <dm/read.h> | #include <dm/read.h> | ||||||
| #include <dm/of_access.h> | #include <dm/of_access.h> | ||||||
| #include <dma.h> | #include <dma.h> | ||||||
|  | @ -20,6 +20,7 @@ | ||||||
| #include <linux/delay.h> | #include <linux/delay.h> | ||||||
| #include <dt-bindings/dma/k3-udma.h> | #include <dt-bindings/dma/k3-udma.h> | ||||||
| #include <linux/bitmap.h> | #include <linux/bitmap.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/soc/ti/k3-navss-ringacc.h> | #include <linux/soc/ti/k3-navss-ringacc.h> | ||||||
| #include <linux/soc/ti/cppi5.h> | #include <linux/soc/ti/cppi5.h> | ||||||
| #include <linux/soc/ti/ti-udma.h> | #include <linux/soc/ti/ti-udma.h> | ||||||
|  |  | ||||||
|  | @ -12,6 +12,7 @@ | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <mailbox.h> | #include <mailbox.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/compat.h> | #include <linux/compat.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
| #include <linux/soc/ti/k3-sec-proxy.h> | #include <linux/soc/ti/k3-sec-proxy.h> | ||||||
|  |  | ||||||
|  | @ -12,6 +12,7 @@ | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <dm/device-internal.h> | #include <dm/device-internal.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <dm/lists.h> | #include <dm/lists.h> | ||||||
| #include <dm/root.h> | #include <dm/root.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
|  |  | ||||||
|  | @ -13,6 +13,7 @@ | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define MSCC_SGPIOS_PER_BANK	32 | #define MSCC_SGPIOS_PER_BANK	32 | ||||||
| #define MSCC_SGPIO_BANK_DEPTH	4 | #define MSCC_SGPIO_BANK_DEPTH	4 | ||||||
|  |  | ||||||
|  | @ -13,6 +13,7 @@ | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/arch/scu_ast2500.h> | #include <asm/arch/scu_ast2500.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #include "ast_i2c.h" | #include "ast_i2c.h" | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -12,6 +12,7 @@ | ||||||
| #include <reset.h> | #include <reset.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include "designware_i2c.h" | #include "designware_i2c.h" | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #ifdef CONFIG_SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED | #ifdef CONFIG_SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED | ||||||
| static int  dw_i2c_enable(struct i2c_regs *i2c_base, bool enable) | static int  dw_i2c_enable(struct i2c_regs *i2c_base, bool enable) | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define I2C_TIMEOUT_MS		100 | #define I2C_TIMEOUT_MS		100 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| #include <asm-generic/gpio.h> | #include <asm-generic/gpio.h> | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <dm/pinctrl.h> | #include <dm/pinctrl.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| #include <i2c.h> | #include <i2c.h> | ||||||
|  |  | ||||||
|  | @ -18,6 +18,7 @@ | ||||||
| #endif | #endif | ||||||
| #include <asm/arch/gpio.h> | #include <asm/arch/gpio.h> | ||||||
| #include <asm/arch-tegra/tegra_i2c.h> | #include <asm/arch-tegra/tegra_i2c.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| enum i2c_type { | enum i2c_type { | ||||||
| 	TYPE_114, | 	TYPE_114, | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <misc.h> | #include <misc.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| struct microchip_flexcom_regs { | struct microchip_flexcom_regs { | ||||||
| 	u32 cr; | 	u32 cr; | ||||||
|  |  | ||||||
|  | @ -12,6 +12,7 @@ | ||||||
| #include <misc.h> | #include <misc.h> | ||||||
| #include <asm/arch-tegra/bpmp_abi.h> | #include <asm/arch-tegra/bpmp_abi.h> | ||||||
| #include <asm/arch-tegra/ivc.h> | #include <asm/arch-tegra/ivc.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #define BPMP_IVC_FRAME_COUNT 1 | #define BPMP_IVC_FRAME_COUNT 1 | ||||||
| #define BPMP_IVC_FRAME_SIZE 128 | #define BPMP_IVC_FRAME_SIZE 128 | ||||||
|  |  | ||||||
|  | @ -12,6 +12,7 @@ | ||||||
| #include <power-domain.h> | #include <power-domain.h> | ||||||
| #include <regmap.h> | #include <regmap.h> | ||||||
| #include <sdhci.h> | #include <sdhci.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| /* CTL_CFG Registers */ | /* CTL_CFG Registers */ | ||||||
| #define CTL_CFG_2		0x14 | #define CTL_CFG_2		0x14 | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <sdhci.h> | #include <sdhci.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| struct aspeed_sdhci_plat { | struct aspeed_sdhci_plat { | ||||||
| 	struct mmc_config cfg; | 	struct mmc_config cfg; | ||||||
|  |  | ||||||
|  | @ -19,6 +19,7 @@ | ||||||
| #include <hwconfig.h> | #include <hwconfig.h> | ||||||
| #include <mmc.h> | #include <mmc.h> | ||||||
| #include <part.h> | #include <part.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <power/regulator.h> | #include <power/regulator.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <fsl_esdhc_imx.h> | #include <fsl_esdhc_imx.h> | ||||||
|  |  | ||||||
|  | @ -47,6 +47,8 @@ | ||||||
| #include <asm/arch/mux.h> | #include <asm/arch/mux.h> | ||||||
| #endif | #endif | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
|  | #include <dm/devres.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <power/regulator.h> | #include <power/regulator.h> | ||||||
| #include <thermal.h> | #include <thermal.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <dt-structs.h> | #include <dt-structs.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/libfdt.h> | #include <linux/libfdt.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <mapmem.h> | #include <mapmem.h> | ||||||
|  |  | ||||||
|  | @ -14,6 +14,7 @@ | ||||||
| #include <asm/gpio.h> | #include <asm/gpio.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/arch-tegra/tegra_mmc.h> | #include <asm/arch-tegra/tegra_mmc.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| struct tegra_mmc_plat { | struct tegra_mmc_plat { | ||||||
| 	struct mmc_config cfg; | 	struct mmc_config cfg; | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| #include "mmc_private.h" | #include "mmc_private.h" | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/libfdt.h> | #include <linux/libfdt.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <sdhci.h> | #include <sdhci.h> | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <env.h> | #include <env.h> | ||||||
| #include <dm/device.h> | #include <dm/device.h> | ||||||
| #include <dm/uclass-internal.h> | #include <dm/uclass-internal.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
| #include <linux/mtd/partitions.h> | #include <linux/mtd/partitions.h> | ||||||
| #include <mtd.h> | #include <mtd.h> | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #ifndef __UBOOT__ | #ifndef __UBOOT__ | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
| #include <linux/module.h> | #include <linux/module.h> | ||||||
| #include <linux/slab.h> | #include <linux/slab.h> | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #ifndef __UBOOT__ | #ifndef __UBOOT__ | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/module.h> | #include <linux/module.h> | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
| #include <linux/ptrace.h> | #include <linux/ptrace.h> | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #ifndef __UBOOT__ | #ifndef __UBOOT__ | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/module.h> | #include <linux/module.h> | ||||||
| #include <linux/types.h> | #include <linux/types.h> | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
| #define pr_fmt(fmt)	"nand-bbt: " fmt | #define pr_fmt(fmt)	"nand-bbt: " fmt | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/mtd/nand.h> | #include <linux/mtd/nand.h> | ||||||
| #ifndef __UBOOT__ | #ifndef __UBOOT__ | ||||||
| #include <linux/slab.h> | #include <linux/slab.h> | ||||||
|  |  | ||||||
|  | @ -13,6 +13,7 @@ | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <asm/gpio.h> | #include <asm/gpio.h> | ||||||
| #include <asm/arch/gpio.h> | #include <asm/arch/gpio.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| 
 | 
 | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <memalign.h> | #include <memalign.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/ioport.h> | #include <linux/ioport.h> | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <memalign.h> | #include <memalign.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/ioport.h> | #include <linux/ioport.h> | ||||||
|  |  | ||||||
|  | @ -4,6 +4,7 @@ | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <memalign.h> | #include <memalign.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/ioport.h> | #include <linux/ioport.h> | ||||||
|  |  | ||||||
|  | @ -17,6 +17,8 @@ | ||||||
| #include <memalign.h> | #include <memalign.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
| #include <clk.h> | #include <clk.h> | ||||||
|  | #include <dm/devres.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/ioport.h> | #include <linux/ioport.h> | ||||||
| #include <linux/completion.h> | #include <linux/completion.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
|  |  | ||||||
|  | @ -2,6 +2,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include "brcmnand_compat.h" | #include "brcmnand_compat.h" | ||||||
|  | #include <dm/devres.h> | ||||||
| 
 | 
 | ||||||
| static char *devm_kvasprintf(struct udevice *dev, gfp_t gfp, const char *fmt, | static char *devm_kvasprintf(struct udevice *dev, gfp_t gfp, const char *fmt, | ||||||
| 			     va_list ap) | 			     va_list ap) | ||||||
|  |  | ||||||
|  | @ -8,8 +8,10 @@ | ||||||
| #include <asm/dma-mapping.h> | #include <asm/dma-mapping.h> | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/bitfield.h> | #include <linux/bitfield.h> | ||||||
| #include <linux/dma-direction.h> | #include <linux/dma-direction.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <linux/io.h> | #include <linux/io.h> | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
|  |  | ||||||
|  | @ -11,6 +11,7 @@ | ||||||
| #include <command.h> | #include <command.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| 
 | 
 | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
| #include <linux/mtd/rawnand.h> | #include <linux/mtd/rawnand.h> | ||||||
|  |  | ||||||
|  | @ -10,6 +10,7 @@ | ||||||
| #include <command.h> | #include <command.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| 
 | 
 | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
| #include <linux/mtd/rawnand.h> | #include <linux/mtd/rawnand.h> | ||||||
|  |  | ||||||
|  | @ -7,6 +7,7 @@ | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <mxs_nand.h> | #include <mxs_nand.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| static struct mtd_info *mtd; | static struct mtd_info *mtd; | ||||||
| static struct nand_chip nand_chip; | static struct nand_chip nand_chip; | ||||||
|  |  | ||||||
|  | @ -34,6 +34,7 @@ | ||||||
| #endif | #endif | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <watchdog.h> | #include <watchdog.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/err.h> | #include <linux/err.h> | ||||||
| #include <linux/compat.h> | #include <linux/compat.h> | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
|  |  | ||||||
|  | @ -59,6 +59,7 @@ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/compat.h> | #include <linux/compat.h> | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
| #include <linux/mtd/bbm.h> | #include <linux/mtd/bbm.h> | ||||||
|  |  | ||||||
|  | @ -8,6 +8,7 @@ | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| /*#include <asm/io.h>*/ | /*#include <asm/io.h>*/ | ||||||
| #include <linux/types.h> | #include <linux/types.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
|  * |  * | ||||||
|  */ |  */ | ||||||
| #include <common.h> | #include <common.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
| #include <linux/mtd/rawnand.h> | #include <linux/mtd/rawnand.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -24,6 +24,7 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <memalign.h> | #include <memalign.h> | ||||||
| #include <div64.h> | #include <div64.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| 
 | 
 | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
|  |  | ||||||
|  | @ -10,6 +10,8 @@ | ||||||
| #include <malloc.h> | #include <malloc.h> | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <dm/devres.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/errno.h> | #include <linux/errno.h> | ||||||
| #include <asm/io.h> | #include <asm/io.h> | ||||||
| #include <asm/arch/cpu.h> | #include <asm/arch/cpu.h> | ||||||
|  |  | ||||||
|  | @ -9,6 +9,7 @@ | ||||||
| #include <dm.h> | #include <dm.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
| #include <reset.h> | #include <reset.h> | ||||||
|  | #include <linux/err.h> | ||||||
| #include <linux/iopoll.h> | #include <linux/iopoll.h> | ||||||
| #include <linux/ioport.h> | #include <linux/ioport.h> | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -28,6 +28,8 @@ | ||||||
| #include <fdtdec.h> | #include <fdtdec.h> | ||||||
| #include <memalign.h> | #include <memalign.h> | ||||||
| #include <nand.h> | #include <nand.h> | ||||||
|  | #include <dm/devres.h> | ||||||
|  | #include <linux/err.h> | ||||||
| 
 | 
 | ||||||
| #include <linux/kernel.h> | #include <linux/kernel.h> | ||||||
| #include <linux/mtd/mtd.h> | #include <linux/mtd/mtd.h> | ||||||
|  |  | ||||||
|  | @ -24,6 +24,7 @@ | ||||||
| #include <errno.h> | #include <errno.h> | ||||||
| #include <spi.h> | #include <spi.h> | ||||||
| #include <spi-mem.h> | #include <spi-mem.h> | ||||||
|  | #include <dm/devres.h> | ||||||
| #include <linux/mtd/spinand.h> | #include <linux/mtd/spinand.h> | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
Some files were not shown because too many files have changed in this diff Show More
		Loading…
	
		Reference in New Issue