Skip to content

Commit

Permalink
common: Drop linux/delay.h from common header
Browse files Browse the repository at this point in the history
Move this uncommon header out of the common header.

Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
sjg20 authored and trini committed May 19, 2020
1 parent 07e1114 commit c05ed00
Show file tree
Hide file tree
Showing 891 changed files with 897 additions and 4 deletions.
1 change: 1 addition & 0 deletions api/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <env.h>
#include <malloc.h>
#include <env_internal.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <api_public.h>
#include <u-boot/crc.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/arm920t/ep93xx/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <common.h>
#include <init.h>
#include <time.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <asm/arch/ep93xx.h>
#include <asm/io.h>
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/cpu/arm920t/imx/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#if defined (CONFIG_IMX)

#include <asm/arch/imx-regs.h>
#include <linux/delay.h>

int timer_init (void)
{
Expand Down Expand Up @@ -48,7 +49,7 @@ ulong get_timer (ulong base)
return get_timer_masked() - base;
}

void __udelay (unsigned long usec)
void __udelay(unsigned long usec)
{
ulong endtime = get_timer_masked() + usec;
signed long diff;
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/arm926ejs/armada100/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <time.h>
#include <asm/arch/cpu.h>
#include <asm/arch/armada100.h>
#include <linux/delay.h>

/*
* Timer registers
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/arm926ejs/mx27/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/ptrace.h>
#include <linux/delay.h>

/* General purpose timers bitfields */
#define GPTCR_SWR (1 << 15) /* Software reset */
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/arm926ejs/mxs/mxs.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <hang.h>
#include <init.h>
#include <net.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/arch/clock.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/arm926ejs/mxs/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
#include <linux/delay.h>

/* Maximum fixed count */
#if defined(CONFIG_MX23)
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/arm926ejs/spear/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <asm/io.h>
#include <asm/arch/hardware.h>
#include <asm/arch/spr_syscntl.h>
#include <linux/delay.h>

void reset_cpu(ulong ignored)
{
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/arm926ejs/spear/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <asm/arch/spr_gpt.h>
#include <asm/arch/spr_misc.h>
#include <asm/ptrace.h>
#include <linux/delay.h>

#define GPT_RESOLUTION (CONFIG_SPEAR_HZ_CLOCK / CONFIG_SPEAR_HZ)
#define READ_TIMER() (readl(&gpt_regs_p->count) & GPT_FREE_RUNNING)
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/bcm235xx/clk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <bitfield.h>
#include <asm/arch/sysmap.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/bcm235xx/clk-eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <common.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
#include <asm/kona-common/clk.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/bcm281xx/clk-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <bitfield.h>
#include <asm/arch/sysmap.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/bcm281xx/clk-eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

#include <common.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/arch/sysmap.h>
#include <asm/kona-common/clk.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/iproc-common/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <asm/io.h>
#include <asm/iproc-common/timer.h>
#include <asm/iproc-common/sysmap.h>
#include <linux/delay.h>

static inline uint64_t timer_global_read(void)
{
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/ls102xa/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <fsl_esdhc.h>
#include <config.h>
#include <fsl_wdog.h>
#include <linux/delay.h>

#include "fsl_epu.h"

Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/ls102xa/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <div64.h>
#include <asm/arch/immap_ls102xa.h>
#include <asm/arch/clock.h>
#include <linux/delay.h>

DECLARE_GLOBAL_DATA_PTR;

Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/s5p-common/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <asm/io.h>
#include <asm/arch/pwm.h>
#include <asm/arch/clk.h>
#include <linux/delay.h>

/* Use the old PWM interface for now */
#undef CONFIG_DM_PWM
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/stv0991/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <cpu_func.h>
#include <asm/io.h>
#include <asm/arch/stv0991_wdru.h>
#include <linux/delay.h>
void reset_cpu(ulong ignored)
{
puts("System is going to reboot ...\n");
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/stv0991/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <asm/arch-stv0991/hardware.h>
#include <asm/arch-stv0991/stv0991_cgu.h>
#include <asm/arch-stv0991/stv0991_gpt.h>
#include <linux/delay.h>

static struct stv0991_cgu_regs *const stv0991_cgu_regs = \
(struct stv0991_cgu_regs *) (CGU_BASE_ADDR);
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/sunxi/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <time.h>
#include <asm/io.h>
#include <asm/arch/timer.h>
#include <linux/delay.h>

DECLARE_GLOBAL_DATA_PTR;

Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv7/vf610/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <div64.h>
#include <asm/arch/imx-regs.h>
#include <asm/arch/clock.h>
#include <linux/delay.h>

static struct pit_reg *cur_pit = (struct pit_reg *)PIT_BASE_ADDR;

Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <common.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <env.h>
#include <log.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/arch/fsl_serdes.h>
#include <asm/arch/soc.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/armv8/fsl-layerscape/mp.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <asm/system.h>
#include <asm/arch/mp.h>
#include <asm/arch/soc.h>
#include <linux/delay.h>
#include "cpu.h"
#include <asm/arch-fsl-layerscape/soc.h>

Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/pxa/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <common.h>
#include <linux/delay.h>

#if defined(CONFIG_USB_OHCI_NEW) && defined(CONFIG_SYS_USB_OHCI_CPU_INIT)
# if defined(CONFIG_CPU_MONAHANS) || defined(CONFIG_CPU_PXA27X)
Expand Down
1 change: 1 addition & 0 deletions arch/arm/cpu/sa1100/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <common.h>
#include <SA-1100.h>
#include <time.h>
#include <linux/delay.h>

static ulong get_timer_masked (void)
{
Expand Down
1 change: 1 addition & 0 deletions arch/arm/lib/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <command.h>
#include <cpu_func.h>
#include <irq_func.h>
#include <linux/delay.h>

__weak void reset_misc(void)
{
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-at91/arm920t/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <common.h>
#include <init.h>
#include <time.h>
#include <linux/delay.h>

#include <asm/io.h>
#include <asm/arch/hardware.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-at91/armv7/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

#include <common.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/arch/hardware.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-at91/mpddrc.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <asm/io.h>
#include <asm/arch/atmel_mpddrc.h>
#include <asm/arch/at91_common.h>
#include <linux/delay.h>

#define SAMA5D3_MPDDRC_VERSION 0x140

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-at91/phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <common.h>
#include <asm/hardware.h>
#include <asm/io.h>
#include <linux/delay.h>
#include <linux/sizes.h>
#include <asm/arch/at91_rstc.h>
#include <watchdog.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-davinci/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <asm/io.h>
#include <asm/arch/timer_defs.h>
#include <div64.h>
#include <linux/delay.h>

DECLARE_GLOBAL_DATA_PTR;

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-exynos/include/mach/dp_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,5 @@ unsigned int exynos_init_dp(void)
}
#endif

#include <linux/delay.h>
#endif /* _DP_INFO_H */
1 change: 1 addition & 0 deletions arch/arm/mach-imx/ddrmc-vf610.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/iomux-vf610.h>
#include <asm/arch/ddrmc-vf610.h>
#include <linux/delay.h>
#include "ddrmc-vf610-calibration.h"

void ddrmc_setup_iomux(const iomux_v3_cfg_t *pads, int pads_count)
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/i2c-mxv7.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <malloc.h>
#include <asm/arch/clock.h>
#include <asm/arch/imx-regs.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/gpio.h>
#include <asm/mach-imx/mxc_i2c.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/imx8m/clock_imx8mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <asm/io.h>
#include <div64.h>
#include <errno.h>
#include <linux/delay.h>

DECLARE_GLOBAL_DATA_PTR;

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/imx8m/clock_imx8mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <asm/io.h>
#include <asm/arch/sys_proto.h>
#include <errno.h>
#include <linux/delay.h>
#include <linux/iopoll.h>

static struct anamix_pll *ana_pll = (struct anamix_pll *)ANATOP_BASE_ADDR;
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <lmb.h>
#include <log.h>
#include <asm/arch/sys_proto.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/mach-imx/regs-common.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/mx6/ddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <common.h>
#include <hang.h>
#include <log.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <asm/arch/clock.h>
#include <asm/arch/mx6-ddr.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/mx6/litesom.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <asm/io.h>
#include <common.h>
#include <fsl_esdhc_imx.h>
#include <linux/delay.h>
#include <linux/sizes.h>
#include <mmc.h>

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/mx6/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#include <common.h>
#include <init.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/mx7/soc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <imx_thermal.h>
#include <fsl_sec.h>
#include <asm/setup.h>
#include <linux/delay.h>

#define IOMUXC_GPR1 0x4
#define BM_IOMUXC_GPR1_IRQ 0x1000
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/mx7ulp/scg.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/pcc.h>
#include <asm/arch/sys_proto.h>
#include <linux/delay.h>

scg_p scg1_regs = (scg_p)SCG1_RBASE;

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-imx/syscounter.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <asm/arch/imx-regs.h>
#include <asm/arch/sys_proto.h>
#include <asm/mach-imx/syscounter.h>
#include <linux/delay.h>

DECLARE_GLOBAL_DATA_PTR;

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-keystone/ddr3.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <asm/arch/msmc.h>
#include <asm/arch/ddr3.h>
#include <asm/arch/psc_defs.h>
#include <linux/delay.h>

#include <asm/ti-common/ti-edma3.h>

Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-keystone/psc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

#include <common.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <asm/io.h>
#include <asm/processor.h>
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-lpc32xx/dram.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include <asm/arch/wdt.h>
#include <asm/arch/emc.h>
#include <asm/io.h>
#include <linux/delay.h>

static struct clk_pm_regs *clk = (struct clk_pm_regs *)CLK_PM_BASE;
static struct emc_regs *emc = (struct emc_regs *)EMC_BASE;
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-lpc32xx/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#include <asm/arch/clk.h>
#include <asm/arch/timer.h>
#include <asm/io.h>
#include <linux/delay.h>

static struct timer_regs *timer0 = (struct timer_regs *)TIMER0_BASE;
static struct timer_regs *timer1 = (struct timer_regs *)TIMER1_BASE;
Expand Down
1 change: 1 addition & 0 deletions arch/arm/mach-mvebu/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <ahci.h>
#include <cpu_func.h>
#include <init.h>
#include <linux/delay.h>
#include <linux/mbus.h>
#include <asm/io.h>
#include <asm/pl310.h>
Expand Down
Loading

0 comments on commit c05ed00

Please sign in to comment.