diff options
author | Simon Glass <sjg@chromium.org> | 2019-11-14 12:57:30 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-02 18:23:13 -0500 |
commit | 1045315df0f1bed617f0ee01379a10f543cec501 (patch) | |
tree | 3e76715bb70bfe6019e0b2bbb7f665b5b7830b8d /drivers | |
parent | f0143a86af1cafff17ac9893015374f0f2f6ae06 (diff) | |
download | u-boot-1045315df0f1bed617f0ee01379a10f543cec501.tar.gz u-boot-1045315df0f1bed617f0ee01379a10f543cec501.tar.bz2 u-boot-1045315df0f1bed617f0ee01379a10f543cec501.zip |
common: Move get_ticks() function out of common.h
This function belongs in time.h so move it over and add a comment.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/clk_stm32mp1.c | 1 | ||||
-rw-r--r-- | drivers/mailbox/mailbox-uclass.c | 1 | ||||
-rw-r--r-- | drivers/misc/tegra186_bpmp.c | 1 | ||||
-rw-r--r-- | drivers/mmc/bcm2835_sdhci.c | 1 | ||||
-rw-r--r-- | drivers/mmc/mxcmmc.c | 1 | ||||
-rw-r--r-- | drivers/net/pic32_eth.c | 1 | ||||
-rw-r--r-- | drivers/nvme/nvme.c | 1 | ||||
-rw-r--r-- | drivers/power/pmic/stpmic1.c | 1 | ||||
-rw-r--r-- | drivers/sound/broadwell_i2s.c | 1 | ||||
-rw-r--r-- | drivers/spi/ath79_spi.c | 1 | ||||
-rw-r--r-- | drivers/spi/exynos_spi.c | 1 | ||||
-rw-r--r-- | drivers/spi/rk_spi.c | 1 | ||||
-rw-r--r-- | drivers/spi/tegra114_spi.c | 1 | ||||
-rw-r--r-- | drivers/spi/tegra20_sflash.c | 1 | ||||
-rw-r--r-- | drivers/spi/tegra20_slink.c | 1 | ||||
-rw-r--r-- | drivers/spi/tegra210_qspi.c | 1 | ||||
-rw-r--r-- | drivers/spi/uniphier_spi.c | 1 | ||||
-rw-r--r-- | drivers/spi/zynq_spi.c | 1 | ||||
-rw-r--r-- | drivers/timer/tsc_timer.c | 1 | ||||
-rw-r--r-- | drivers/video/sunxi/sunxi_display.c | 1 | ||||
-rw-r--r-- | drivers/video/sunxi/sunxi_dw_hdmi.c | 1 |
21 files changed, 21 insertions, 0 deletions
diff --git a/drivers/clk/clk_stm32mp1.c b/drivers/clk/clk_stm32mp1.c index e223f84eac..3718970dc7 100644 --- a/drivers/clk/clk_stm32mp1.c +++ b/drivers/clk/clk_stm32mp1.c @@ -10,6 +10,7 @@ #include <regmap.h> #include <spl.h> #include <syscon.h> +#include <time.h> #include <vsprintf.h> #include <linux/io.h> #include <linux/iopoll.h> diff --git a/drivers/mailbox/mailbox-uclass.c b/drivers/mailbox/mailbox-uclass.c index 9fdb6279e4..5968c9b7eb 100644 --- a/drivers/mailbox/mailbox-uclass.c +++ b/drivers/mailbox/mailbox-uclass.c @@ -7,6 +7,7 @@ #include <dm.h> #include <mailbox.h> #include <mailbox-uclass.h> +#include <time.h> static inline struct mbox_ops *mbox_dev_ops(struct udevice *dev) { diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c index b3ed03e9da..89e27dd526 100644 --- a/drivers/misc/tegra186_bpmp.c +++ b/drivers/misc/tegra186_bpmp.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <time.h> #include <dm/lists.h> #include <dm/root.h> #include <mailbox.h> diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c index bc9ee95fd5..39c93db275 100644 --- a/drivers/mmc/bcm2835_sdhci.c +++ b/drivers/mmc/bcm2835_sdhci.c @@ -41,6 +41,7 @@ #include <malloc.h> #include <memalign.h> #include <sdhci.h> +#include <time.h> #include <asm/arch/msg.h> #include <asm/arch/mbox.h> #include <mach/sdhci.h> diff --git a/drivers/mmc/mxcmmc.c b/drivers/mmc/mxcmmc.c index dcf17c5d60..269882b202 100644 --- a/drivers/mmc/mxcmmc.c +++ b/drivers/mmc/mxcmmc.c @@ -23,6 +23,7 @@ #include <part.h> #include <malloc.h> #include <mmc.h> +#include <time.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c index 5c706c04c5..b0f7677154 100644 --- a/drivers/net/pic32_eth.c +++ b/drivers/net/pic32_eth.c @@ -9,6 +9,7 @@ #include <net.h> #include <miiphy.h> #include <console.h> +#include <time.h> #include <wait_bit.h> #include <asm/gpio.h> diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index f915817aaa..cddcc2f11d 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -9,6 +9,7 @@ #include <errno.h> #include <memalign.h> #include <pci.h> +#include <time.h> #include <dm/device-internal.h> #include "nvme.h" diff --git a/drivers/power/pmic/stpmic1.c b/drivers/power/pmic/stpmic1.c index de31934f41..2297af4157 100644 --- a/drivers/power/pmic/stpmic1.c +++ b/drivers/power/pmic/stpmic1.c @@ -9,6 +9,7 @@ #include <i2c.h> #include <misc.h> #include <sysreset.h> +#include <time.h> #include <dm/device.h> #include <dm/lists.h> #include <power/pmic.h> diff --git a/drivers/sound/broadwell_i2s.c b/drivers/sound/broadwell_i2s.c index 998792b239..3d577401bd 100644 --- a/drivers/sound/broadwell_i2s.c +++ b/drivers/sound/broadwell_i2s.c @@ -12,6 +12,7 @@ #include <common.h> #include <dm.h> #include <i2s.h> +#include <time.h> #include <asm/io.h> #include "broadwell_i2s.h" diff --git a/drivers/spi/ath79_spi.c b/drivers/spi/ath79_spi.c index 207069218f..0b8ebaabe9 100644 --- a/drivers/spi/ath79_spi.c +++ b/drivers/spi/ath79_spi.c @@ -8,6 +8,7 @@ #include <dm.h> #include <div64.h> #include <errno.h> +#include <time.h> #include <asm/io.h> #include <asm/addrspace.h> #include <asm/types.h> diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c index a9691c7603..d682a11013 100644 --- a/drivers/spi/exynos_spi.c +++ b/drivers/spi/exynos_spi.c @@ -10,6 +10,7 @@ #include <malloc.h> #include <spi.h> #include <fdtdec.h> +#include <time.h> #include <asm/arch/clk.h> #include <asm/arch/clock.h> #include <asm/arch/cpu.h> diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index a68553b75b..c04535ac44 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -16,6 +16,7 @@ #include <dt-structs.h> #include <errno.h> #include <spi.h> +#include <time.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch-rockchip/clock.h> diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index 5c35c22592..bb34b20f54 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> +#include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c index 567e33f156..0e68d33be6 100644 --- a/drivers/spi/tegra20_sflash.c +++ b/drivers/spi/tegra20_sflash.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <time.h> #include <asm/io.h> #include <asm/gpio.h> #include <asm/arch/clock.h> diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c index d55e833cc2..ae2fc3e76d 100644 --- a/drivers/spi/tegra20_slink.c +++ b/drivers/spi/tegra20_slink.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> +#include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> diff --git a/drivers/spi/tegra210_qspi.c b/drivers/spi/tegra210_qspi.c index e4b82767f8..d82ecaa61f 100644 --- a/drivers/spi/tegra210_qspi.c +++ b/drivers/spi/tegra210_qspi.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> +#include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch-tegra/clk_rst.h> diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c index ef02d07aa4..e47b969864 100644 --- a/drivers/spi/uniphier_spi.c +++ b/drivers/spi/uniphier_spi.c @@ -7,6 +7,7 @@ #include <clk.h> #include <common.h> #include <dm.h> +#include <time.h> #include <linux/bitfield.h> #include <linux/io.h> #include <spi.h> diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index 2a02942d41..0b2b2f4810 100644 --- a/drivers/spi/zynq_spi.c +++ b/drivers/spi/zynq_spi.c @@ -10,6 +10,7 @@ #include <dm.h> #include <malloc.h> #include <spi.h> +#include <time.h> #include <asm/io.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index 637c8ff25a..0df551f94c 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <malloc.h> +#include <time.h> #include <timer.h> #include <asm/cpu.h> #include <asm/io.h> diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index 46436b88c5..c45b3ebe6e 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -8,6 +8,7 @@ #include <common.h> #include <efi_loader.h> +#include <time.h> #include <asm/arch/clock.h> #include <asm/arch/display.h> diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index 66a319187c..c87c919a52 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -10,6 +10,7 @@ #include <dm.h> #include <dw_hdmi.h> #include <edid.h> +#include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/lcdc.h> |