diff options
| author | Tom Rini <[email protected]> | 2024-05-20 10:16:33 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-05-20 10:16:33 -0600 |
| commit | d4781422d1268aa6deca3e49d2fb227e79c160b4 (patch) | |
| tree | 420073c8a29a401a3908803000df6f54673e1731 /drivers | |
| parent | 85854bc3324edd0c81047780ee60033d056fd490 (diff) | |
| parent | a7f0154c412859323396111dd0c09dbafbc153cb (diff) | |
Merge tag 'v2024.07-rc3' into next
Prepare v2024.07-rc3
Diffstat (limited to 'drivers')
1883 files changed, 2078 insertions, 3814 deletions
diff --git a/drivers/adc/adc-uclass.c b/drivers/adc/adc-uclass.c index 16600be821c..1b35bf22014 100644 --- a/drivers/adc/adc-uclass.c +++ b/drivers/adc/adc-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_ADC +#include <common.h> #include <errno.h> #include <div64.h> #include <dm.h> diff --git a/drivers/adc/exynos-adc.c b/drivers/adc/exynos-adc.c index ecc564cd219..2bda733af90 100644 --- a/drivers/adc/exynos-adc.c +++ b/drivers/adc/exynos-adc.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Samsung Electronics * Przemyslaw Marczak <[email protected]> */ +#include <common.h> #include <errno.h> #include <dm.h> #include <adc.h> diff --git a/drivers/adc/imx93-adc.c b/drivers/adc/imx93-adc.c index f593fb6447b..41d04e0426c 100644 --- a/drivers/adc/imx93-adc.c +++ b/drivers/adc/imx93-adc.c @@ -6,6 +6,7 @@ * Originally based on NXP linux-imx kernel v5.15 drivers/iio/adc/imx93_adc.c */ +#include <common.h> #include <errno.h> #include <dm.h> #include <linux/bitfield.h> diff --git a/drivers/adc/meson-saradc.c b/drivers/adc/meson-saradc.c index 60e348968fb..c15c7fea47f 100644 --- a/drivers/adc/meson-saradc.c +++ b/drivers/adc/meson-saradc.c @@ -7,6 +7,7 @@ * Amlogic Meson Successive Approximation Register (SAR) A/D Converter */ +#include <common.h> #include <adc.h> #include <clk.h> #include <dm.h> diff --git a/drivers/adc/rockchip-saradc.c b/drivers/adc/rockchip-saradc.c index f6832ab3073..10ded1b088f 100644 --- a/drivers/adc/rockchip-saradc.c +++ b/drivers/adc/rockchip-saradc.c @@ -5,6 +5,7 @@ * Rockchip SARADC driver for U-Boot */ +#include <common.h> #include <adc.h> #include <clk.h> #include <dm.h> diff --git a/drivers/adc/sandbox.c b/drivers/adc/sandbox.c index 24d4af63bd9..43cad34ffeb 100644 --- a/drivers/adc/sandbox.c +++ b/drivers/adc/sandbox.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Samsung Electronics * Przemyslaw Marczak <[email protected]> */ +#include <common.h> #include <errno.h> #include <dm.h> #include <adc.h> diff --git a/drivers/adc/stm32-adc-core.c b/drivers/adc/stm32-adc-core.c index af340b8b273..6c176961f17 100644 --- a/drivers/adc/stm32-adc-core.c +++ b/drivers/adc/stm32-adc-core.c @@ -6,6 +6,7 @@ * Originally based on the Linux kernel v4.18 drivers/iio/adc/stm32-adc-core.c. */ +#include <common.h> #include <dm.h> #include <asm/io.h> #include <dm/device_compat.h> diff --git a/drivers/adc/stm32-adc.c b/drivers/adc/stm32-adc.c index d50f00f1233..1fba707c6f7 100644 --- a/drivers/adc/stm32-adc.c +++ b/drivers/adc/stm32-adc.c @@ -6,6 +6,7 @@ * Originally based on the Linux kernel v4.18 drivers/iio/adc/stm32-adc.c. */ +#include <common.h> #include <adc.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/ata/ahci-pci.c b/drivers/ata/ahci-pci.c index f2102aaa635..5356b9d83d3 100644 --- a/drivers/ata/ahci-pci.c +++ b/drivers/ata/ahci-pci.c @@ -3,6 +3,7 @@ * Copyright (C) 2017, Bin Meng <[email protected]> */ +#include <common.h> #include <ahci.h> #include <scsi.h> #include <dm.h> diff --git a/drivers/ata/ahci-uclass.c b/drivers/ata/ahci-uclass.c index 7affb3f1ec7..d398b50b9a1 100644 --- a/drivers/ata/ahci-uclass.c +++ b/drivers/ata/ahci-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_AHCI +#include <common.h> #include <ahci.h> #include <dm.h> diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index ac869296d52..04ddc339464 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -8,10 +8,10 @@ * * This driver provides a SCSI interface to SATA. */ +#include <common.h> #include <blk.h> #include <cpu_func.h> #include <log.h> -#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/ata/ahci_mvebu.c b/drivers/ata/ahci_mvebu.c index f6e2d6bee45..f05150d61dd 100644 --- a/drivers/ata/ahci_mvebu.c +++ b/drivers/ata/ahci_mvebu.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ +#include <common.h> #include <ahci.h> #include <dm.h> #include <log.h> diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index 6cf5cee055e..9064774e661 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -1,3 +1,4 @@ +#include <common.h> #include <ahci.h> #include <dm.h> #include <log.h> diff --git a/drivers/ata/dwc_ahci.c b/drivers/ata/dwc_ahci.c index b480cde4465..15fd3e365b2 100644 --- a/drivers/ata/dwc_ahci.c +++ b/drivers/ata/dwc_ahci.c @@ -8,6 +8,7 @@ * Author: Mugunthan V N <[email protected]> */ +#include <common.h> #include <dm.h> #include <ahci.h> #include <scsi.h> diff --git a/drivers/ata/dwc_ahsata.c b/drivers/ata/dwc_ahsata.c index a29d641343e..b4d4e39c9b3 100644 --- a/drivers/ata/dwc_ahsata.c +++ b/drivers/ata/dwc_ahsata.c @@ -4,6 +4,7 @@ * Terry Lv <[email protected]> */ +#include <common.h> #include <ahci.h> #include <blk.h> #include <cpu_func.h> diff --git a/drivers/ata/fsl_sata.c b/drivers/ata/fsl_sata.c index 4990148388b..969bc191f8e 100644 --- a/drivers/ata/fsl_sata.c +++ b/drivers/ata/fsl_sata.c @@ -5,6 +5,7 @@ * Author: Dave Liu <[email protected]> */ +#include <common.h> #include <ahci.h> #include <blk.h> #include <command.h> diff --git a/drivers/ata/libata.c b/drivers/ata/libata.c index ef659cb1728..47e2c5c1cc4 100644 --- a/drivers/ata/libata.c +++ b/drivers/ata/libata.c @@ -5,9 +5,9 @@ * port from the libata of linux kernel */ +#include <common.h> #include <compiler.h> #include <libata.h> -#include <stdio.h> u64 ata_id_n_sectors(u16 *id) { diff --git a/drivers/ata/mtk_ahci.c b/drivers/ata/mtk_ahci.c index 53aabee0a5e..2c5227df306 100644 --- a/drivers/ata/mtk_ahci.c +++ b/drivers/ata/mtk_ahci.c @@ -8,6 +8,7 @@ * Author: Frank Wunderlich <[email protected]> */ +#include <common.h> #include <ahci.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/ata/sata.c b/drivers/ata/sata.c index 84437d3d346..784d9bbeacb 100644 --- a/drivers/ata/sata.c +++ b/drivers/ata/sata.c @@ -9,6 +9,7 @@ * Dave Liu <[email protected]> */ +#include <common.h> #include <ahci.h> #include <blk.h> #include <dm.h> diff --git a/drivers/ata/sata_bootdev.c b/drivers/ata/sata_bootdev.c index a5ca6f6fd5b..f638493ce04 100644 --- a/drivers/ata/sata_bootdev.c +++ b/drivers/ata/sata_bootdev.c @@ -5,6 +5,7 @@ * Copyright 2023 Tony Dinh <[email protected]> */ +#include <common.h> #include <ahci.h> #include <bootdev.h> #include <dm.h> diff --git a/drivers/ata/sata_ceva.c b/drivers/ata/sata_ceva.c index a81b3165992..7769d4f99ef 100644 --- a/drivers/ata/sata_ceva.c +++ b/drivers/ata/sata_ceva.c @@ -3,6 +3,7 @@ * (C) Copyright 2015 - 2016 Xilinx, Inc. * Michal Simek <[email protected]> */ +#include <common.h> #include <dm.h> #include <ahci.h> #include <generic-phy.h> diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index ac78760a33e..94d7369351a 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -31,6 +31,7 @@ * No port multiplier support */ +#include <common.h> #include <ahci.h> #include <blk.h> #include <bootdev.h> @@ -45,7 +46,6 @@ #include <libata.h> #include <malloc.h> #include <sata.h> -#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index 5b80f6249d7..43a91a79120 100644 --- a/drivers/ata/sata_sil.c +++ b/drivers/ata/sata_sil.c @@ -5,6 +5,7 @@ * Author: Tang Yuantian <[email protected]> */ +#include <common.h> #include <blk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/axi/axi-emul-uclass.c b/drivers/axi/axi-emul-uclass.c index bea0b040738..e6f3ef07200 100644 --- a/drivers/axi/axi-emul-uclass.c +++ b/drivers/axi/axi-emul-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_AXI_EMUL +#include <common.h> #include <axi.h> #include <dm.h> #include <log.h> diff --git a/drivers/axi/axi-uclass.c b/drivers/axi/axi-uclass.c index fa2475cbaf4..41551ae85c9 100644 --- a/drivers/axi/axi-uclass.c +++ b/drivers/axi/axi-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_AXI +#include <common.h> #include <dm.h> #include <axi.h> diff --git a/drivers/axi/axi_sandbox.c b/drivers/axi/axi_sandbox.c index 6f698a405f9..b91c91f6b3b 100644 --- a/drivers/axi/axi_sandbox.c +++ b/drivers/axi/axi_sandbox.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <axi.h> #include <dm.h> #include <asm/axi.h> diff --git a/drivers/axi/ihs_axi.c b/drivers/axi/ihs_axi.c index a37dd1e1786..a7e9761fbfc 100644 --- a/drivers/axi/ihs_axi.c +++ b/drivers/axi/ihs_axi.c @@ -7,6 +7,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <axi.h> #include <dm.h> #include <log.h> diff --git a/drivers/axi/sandbox_store.c b/drivers/axi/sandbox_store.c index b9413c758f7..ef349a50b79 100644 --- a/drivers/axi/sandbox_store.c +++ b/drivers/axi/sandbox_store.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <axi.h> #include <dm.h> #include <log.h> diff --git a/drivers/bios_emulator/atibios.c b/drivers/bios_emulator/atibios.c index d544ffb5ffb..7ebead6bfad 100644 --- a/drivers/bios_emulator/atibios.c +++ b/drivers/bios_emulator/atibios.c @@ -45,6 +45,7 @@ * Jason ported this file to u-boot to run the ATI video card * BIOS in u-boot. ****************************************************************************/ +#include <common.h> #include <compiler.h> #include <bios_emul.h> #include <errno.h> diff --git a/drivers/bios_emulator/besys.c b/drivers/bios_emulator/besys.c index 690fb5a4d7b..02c4286a854 100644 --- a/drivers/bios_emulator/besys.c +++ b/drivers/bios_emulator/besys.c @@ -48,6 +48,7 @@ ****************************************************************************/ #define __io +#include <common.h> #include <asm/io.h> #include "biosemui.h" diff --git a/drivers/bios_emulator/bios.c b/drivers/bios_emulator/bios.c index 7f883daf8f0..9596a1fdd3e 100644 --- a/drivers/bios_emulator/bios.c +++ b/drivers/bios_emulator/bios.c @@ -42,6 +42,7 @@ ****************************************************************************/ #define __io +#include <common.h> #include <asm/io.h> #include "biosemui.h" diff --git a/drivers/bios_emulator/biosemu.c b/drivers/bios_emulator/biosemu.c index ba4328474ce..82befbae66f 100644 --- a/drivers/bios_emulator/biosemu.c +++ b/drivers/bios_emulator/biosemu.c @@ -46,6 +46,7 @@ ****************************************************************************/ #include <malloc.h> +#include <common.h> #include "biosemui.h" BE_sysEnv _BE_env = {{0}}; diff --git a/drivers/bios_emulator/x86emu/debug.c b/drivers/bios_emulator/x86emu/debug.c index b426dc3bc45..95f3cc09aad 100644 --- a/drivers/bios_emulator/x86emu/debug.c +++ b/drivers/bios_emulator/x86emu/debug.c @@ -38,6 +38,7 @@ ****************************************************************************/ #include <stdarg.h> +#include <common.h> #include <linux/ctype.h> #include <linux/printk.h> #include "x86emu/x86emui.h" diff --git a/drivers/bios_emulator/x86emu/decode.c b/drivers/bios_emulator/x86emu/decode.c index 7e188d58a52..e2028eaf083 100644 --- a/drivers/bios_emulator/x86emu/decode.c +++ b/drivers/bios_emulator/x86emu/decode.c @@ -36,6 +36,7 @@ * instruction decoding and accessess of immediate data via IP. etc. * ****************************************************************************/ +#include <common.h> #include <linux/printk.h> #include "x86emu/x86emui.h" diff --git a/drivers/bios_emulator/x86emu/ops.c b/drivers/bios_emulator/x86emu/ops.c index 57422ec3d47..8c1a146165c 100644 --- a/drivers/bios_emulator/x86emu/ops.c +++ b/drivers/bios_emulator/x86emu/ops.c @@ -72,6 +72,7 @@ * ****************************************************************************/ +#include <common.h> #include <linux/printk.h> #include "x86emu/x86emui.h" diff --git a/drivers/bios_emulator/x86emu/ops2.c b/drivers/bios_emulator/x86emu/ops2.c index 32fecb34791..6cd1ac39825 100644 --- a/drivers/bios_emulator/x86emu/ops2.c +++ b/drivers/bios_emulator/x86emu/ops2.c @@ -41,6 +41,7 @@ * ****************************************************************************/ +#include <common.h> #include <linux/compiler.h> #include <linux/printk.h> #include "x86emu/x86emui.h" diff --git a/drivers/bios_emulator/x86emu/prim_ops.c b/drivers/bios_emulator/x86emu/prim_ops.c index b3cccb17f20..5f6c795fb7f 100644 --- a/drivers/bios_emulator/x86emu/prim_ops.c +++ b/drivers/bios_emulator/x86emu/prim_ops.c @@ -97,6 +97,7 @@ * ****************************************************************************/ +#include <common.h> #define PRIM_OPS_NO_REDEFINE_ASM #include "x86emu/x86emui.h" diff --git a/drivers/bios_emulator/x86emu/sys.c b/drivers/bios_emulator/x86emu/sys.c index 483ecd52efe..f96652415cd 100644 --- a/drivers/bios_emulator/x86emu/sys.c +++ b/drivers/bios_emulator/x86emu/sys.c @@ -39,6 +39,7 @@ * ****************************************************************************/ +#include <common.h> #include <linux/printk.h> #include "x86emu/x86emui.h" diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index 512c952f4d7..77066da352a 100644 --- a/drivers/block/blk-uclass.c +++ b/drivers/block/blk-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_BLK +#include <common.h> #include <blk.h> #include <dm.h> #include <log.h> diff --git a/drivers/block/blk_legacy.c b/drivers/block/blk_legacy.c index f36932183d1..5bf1d047152 100644 --- a/drivers/block/blk_legacy.c +++ b/drivers/block/blk_legacy.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <blk.h> #include <part.h> #include <linux/err.h> diff --git a/drivers/block/blkcache.c b/drivers/block/blkcache.c index 0e69160249c..26bcbea4353 100644 --- a/drivers/block/blkcache.c +++ b/drivers/block/blkcache.c @@ -4,6 +4,7 @@ * Author: Eric Nelson<[email protected]> * */ +#include <common.h> #include <blk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/block/blkmap.c b/drivers/block/blkmap.c index 34eed1380dc..21201409ed4 100644 --- a/drivers/block/blkmap.c +++ b/drivers/block/blkmap.c @@ -4,6 +4,7 @@ * Author: Tobias Waldekranz <[email protected]> */ +#include <common.h> #include <blk.h> #include <blkmap.h> #include <dm.h> diff --git a/drivers/block/efi-media-uclass.c b/drivers/block/efi-media-uclass.c index dc5e4f59b7f..e012f6f2f4c 100644 --- a/drivers/block/efi-media-uclass.c +++ b/drivers/block/efi-media-uclass.c @@ -5,6 +5,7 @@ * Copyright 2021 Google LLC */ +#include <common.h> #include <dm.h> UCLASS_DRIVER(efi_media) = { diff --git a/drivers/block/efi_blk.c b/drivers/block/efi_blk.c index 9766cd6f832..917a19f6025 100644 --- a/drivers/block/efi_blk.c +++ b/drivers/block/efi_blk.c @@ -8,6 +8,7 @@ * Copyright 2021 Google LLC */ +#include <common.h> #include <blk.h> #include <dm.h> #include <efi.h> diff --git a/drivers/block/host-uclass.c b/drivers/block/host-uclass.c index cf42bd1e07a..b3647e3ce33 100644 --- a/drivers/block/host-uclass.c +++ b/drivers/block/host-uclass.c @@ -9,6 +9,7 @@ #define LOG_CATEGORY UCLASS_HOST +#include <common.h> #include <blk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/block/host_dev.c b/drivers/block/host_dev.c index b3ff3cd1fab..52313435a0c 100644 --- a/drivers/block/host_dev.c +++ b/drivers/block/host_dev.c @@ -9,6 +9,7 @@ #define LOG_CATEGORY UCLASS_HOST +#include <common.h> #include <blk.h> #include <bootdev.h> #include <dm.h> diff --git a/drivers/block/ide.c b/drivers/block/ide.c index b16623d7a3a..c698f9cbd55 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_IDE +#include <common.h> #include <ata.h> #include <blk.h> #include <bootdev.h> diff --git a/drivers/block/sandbox.c b/drivers/block/sandbox.c index ec34f1ad8c2..be4e02cb601 100644 --- a/drivers/block/sandbox.c +++ b/drivers/block/sandbox.c @@ -3,6 +3,7 @@ * Copyright (C) 2013 Henrik Nordstrom <[email protected]> */ +#include <common.h> #include <blk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/block/sb_efi_media.c b/drivers/block/sb_efi_media.c index 3255db06496..52af155a600 100644 --- a/drivers/block/sb_efi_media.c +++ b/drivers/block/sb_efi_media.c @@ -5,6 +5,7 @@ * Copyright 2021 Google LLC */ +#include <common.h> #include <dm.h> static const struct udevice_id sandbox_efi_media_ids[] = { diff --git a/drivers/bootcount/bootcount-uclass.c b/drivers/bootcount/bootcount-uclass.c index 0178c1818e5..5a369c82f1c 100644 --- a/drivers/bootcount/bootcount-uclass.c +++ b/drivers/bootcount/bootcount-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_BOOTCOUNT +#include <common.h> #include <dm.h> #include <errno.h> #include <bootcount.h> diff --git a/drivers/bootcount/bootcount_at91.c b/drivers/bootcount/bootcount_at91.c index 1a06db1fb74..c4ab5ceafab 100644 --- a/drivers/bootcount/bootcount_at91.c +++ b/drivers/bootcount/bootcount_at91.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <asm/io.h> #include <asm/arch/hardware.h> #include <asm/arch/at91_gpbr.h> diff --git a/drivers/bootcount/bootcount_env.c b/drivers/bootcount/bootcount_env.c index 960cd71b9d5..b75c9002b2c 100644 --- a/drivers/bootcount/bootcount_env.c +++ b/drivers/bootcount/bootcount_env.c @@ -4,6 +4,7 @@ * Heiko Schocher, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <env.h> void bootcount_store(ulong a) diff --git a/drivers/bootcount/bootcount_ram.c b/drivers/bootcount/bootcount_ram.c index 33e157b865a..8cc30cf40ef 100644 --- a/drivers/bootcount/bootcount_ram.c +++ b/drivers/bootcount/bootcount_ram.c @@ -4,6 +4,7 @@ * Heiko Schocher, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <cpu_func.h> #include <asm/cache.h> #include <asm/global_data.h> diff --git a/drivers/bootcount/bootcount_syscon.c b/drivers/bootcount/bootcount_syscon.c index 5dbc13cd545..f80d87071d9 100644 --- a/drivers/bootcount/bootcount_syscon.c +++ b/drivers/bootcount/bootcount_syscon.c @@ -3,6 +3,7 @@ * Copyright (c) Vaisala Oyj. All rights reserved. */ +#include <common.h> #include <bootcount.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/bootcount/i2c-eeprom.c b/drivers/bootcount/i2c-eeprom.c index 12c430465c9..709be094b11 100644 --- a/drivers/bootcount/i2c-eeprom.c +++ b/drivers/bootcount/i2c-eeprom.c @@ -4,6 +4,7 @@ * (C) Copyright 2019 GE */ +#include <common.h> #include <bootcount.h> #include <dm.h> #include <i2c_eeprom.h> diff --git a/drivers/bootcount/pmic_pfuze100.c b/drivers/bootcount/pmic_pfuze100.c index 8c529f5592b..df046f1b0ab 100644 --- a/drivers/bootcount/pmic_pfuze100.c +++ b/drivers/bootcount/pmic_pfuze100.c @@ -8,6 +8,7 @@ * This works only, if the PMIC is not connected to a battery. */ +#include <common.h> #include <bootcount.h> #include <dm.h> #include <power/pmic.h> diff --git a/drivers/bootcount/rtc.c b/drivers/bootcount/rtc.c index b131946aa9d..483caaa80df 100644 --- a/drivers/bootcount/rtc.c +++ b/drivers/bootcount/rtc.c @@ -3,6 +3,7 @@ * (C) Copyright 2018 Theobroma Systems Design und Consulting GmbH */ +#include <common.h> #include <bootcount.h> #include <dm.h> #include <log.h> diff --git a/drivers/bootcount/spi-flash.c b/drivers/bootcount/spi-flash.c index 155d0323ee7..03050e66613 100644 --- a/drivers/bootcount/spi-flash.c +++ b/drivers/bootcount/spi-flash.c @@ -4,6 +4,7 @@ * (C) Copyright 2019 GE */ +#include <common.h> #include <bootcount.h> #include <dm.h> #include <spi_flash.h> diff --git a/drivers/bus/ti-pwmss.c b/drivers/bus/ti-pwmss.c index d1f6f3bab00..265b4cf83b5 100644 --- a/drivers/bus/ti-pwmss.c +++ b/drivers/bus/ti-pwmss.c @@ -5,6 +5,7 @@ * Copyright (C) 2020 Dario Binacchi <[email protected]> */ +#include <common.h> #include <dm.h> static const struct udevice_id ti_pwmss_ids[] = { diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 5f9f0a0d0b7..778c0654f6a 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -5,6 +5,7 @@ * Copyright (C) 2020 Dario Binacchi <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/button/button-adc.c b/drivers/button/button-adc.c index da7ddf2a857..9c24c960e6f 100644 --- a/drivers/button/button-adc.c +++ b/drivers/button/button-adc.c @@ -5,6 +5,7 @@ * Author: Marek Szyprowski <[email protected]> */ +#include <common.h> #include <adc.h> #include <button.h> #include <log.h> diff --git a/drivers/button/button-gpio.c b/drivers/button/button-gpio.c index 43b82d98aeb..7b5b3affe2d 100644 --- a/drivers/button/button-gpio.c +++ b/drivers/button/button-gpio.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Philippe Reynes <[email protected]> */ +#include <common.h> #include <button.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/button/button-uclass.c b/drivers/button/button-uclass.c index cda243389df..032191d61ab 100644 --- a/drivers/button/button-uclass.c +++ b/drivers/button/button-uclass.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_BUTTON +#include <common.h> #include <button.h> #include <dm.h> #include <dm/uclass-internal.h> diff --git a/drivers/cache/Kconfig b/drivers/cache/Kconfig index 26c2d80a1c5..4f358657444 100644 --- a/drivers/cache/Kconfig +++ b/drivers/cache/Kconfig @@ -22,11 +22,11 @@ config L2X0_CACHE ARMv7(32-bit) devices. The driver configures the cache settings found in the device tree. -config V5L2_CACHE - bool "Andes V5L2 cache driver" +config ANDES_L2_CACHE + bool "Andes L2 cache driver" select CACHE help - Support Andes V5L2 cache controller in AE350 platform. + Support Andes L2 cache controller in AE350 platform. It will configure tag and data ram timing control from the device tree and enable L2 cache. diff --git a/drivers/cache/Makefile b/drivers/cache/Makefile index 78e673d09e5..e1b71e0ed51 100644 --- a/drivers/cache/Makefile +++ b/drivers/cache/Makefile @@ -3,6 +3,6 @@ obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache-uclass.o obj-$(CONFIG_SANDBOX) += sandbox_cache.o obj-$(CONFIG_L2X0_CACHE) += cache-l2x0.o obj-$(CONFIG_NCORE_CACHE) += cache-ncore.o -obj-$(CONFIG_V5L2_CACHE) += cache-v5l2.o +obj-$(CONFIG_ANDES_L2_CACHE) += cache-andes-l2.o obj-$(CONFIG_SIFIVE_CCACHE) += cache-sifive-ccache.o obj-$(CONFIG_SIFIVE_PL2) += cache-sifive-pl2.o diff --git a/drivers/cache/cache-v5l2.c b/drivers/cache/cache-andes-l2.c index f0b8ecc8807..45d29f2fbd9 100644 --- a/drivers/cache/cache-v5l2.c +++ b/drivers/cache/cache-andes-l2.c @@ -4,6 +4,7 @@ * Rick Chen, Andes Technology Corporation <[email protected]> */ +#include <common.h> #include <command.h> #include <cache.h> #include <dm.h> @@ -72,7 +73,7 @@ static u32 status_bit_offset = 0x4; DECLARE_GLOBAL_DATA_PTR; -struct v5l2_plat { +struct andes_l2_plat { struct l2cache *regs; u32 iprefetch; u32 dprefetch; @@ -80,9 +81,9 @@ struct v5l2_plat { u32 dram_ctl[2]; }; -static int v5l2_enable(struct udevice *dev) +static int andes_l2_enable(struct udevice *dev) { - struct v5l2_plat *plat = dev_get_plat(dev); + struct andes_l2_plat *plat = dev_get_plat(dev); volatile struct l2cache *regs = plat->regs; if (regs) @@ -91,9 +92,9 @@ static int v5l2_enable(struct udevice *dev) return 0; } -static int v5l2_disable(struct udevice *dev) +static int andes_l2_disable(struct udevice *dev) { - struct v5l2_plat *plat = dev_get_plat(dev); + struct andes_l2_plat *plat = dev_get_plat(dev); volatile struct l2cache *regs = plat->regs; u8 hart = gd->arch.boot_hart; void __iomem *cctlcmd = (void __iomem *)CCTL_CMD_REG(regs, hart); @@ -113,9 +114,9 @@ static int v5l2_disable(struct udevice *dev) return 0; } -static int v5l2_of_to_plat(struct udevice *dev) +static int andes_l2_of_to_plat(struct udevice *dev) { - struct v5l2_plat *plat = dev_get_plat(dev); + struct andes_l2_plat *plat = dev_get_plat(dev); struct l2cache *regs; regs = dev_read_addr_ptr(dev); @@ -137,9 +138,9 @@ static int v5l2_of_to_plat(struct udevice *dev) return 0; } -static int v5l2_probe(struct udevice *dev) +static int andes_l2_probe(struct udevice *dev) { - struct v5l2_plat *plat = dev_get_plat(dev); + struct andes_l2_plat *plat = dev_get_plat(dev); struct l2cache *regs = plat->regs; u32 cfg_val, ctl_val; @@ -182,23 +183,23 @@ static int v5l2_probe(struct udevice *dev) return 0; } -static const struct udevice_id v5l2_cache_ids[] = { +static const struct udevice_id andes_l2_cache_ids[] = { { .compatible = "cache" }, {} }; -static const struct cache_ops v5l2_cache_ops = { - .enable = v5l2_enable, - .disable = v5l2_disable, +static const struct cache_ops andes_l2_cache_ops = { + .enable = andes_l2_enable, + .disable = andes_l2_disable, }; -U_BOOT_DRIVER(v5l2_cache) = { - .name = "v5l2_cache", +U_BOOT_DRIVER(andes_l2_cache) = { + .name = "andes_l2_cache", .id = UCLASS_CACHE, - .of_match = v5l2_cache_ids, - .of_to_plat = v5l2_of_to_plat, - .probe = v5l2_probe, - .plat_auto = sizeof(struct v5l2_plat), - .ops = &v5l2_cache_ops, + .of_match = andes_l2_cache_ids, + .of_to_plat = andes_l2_of_to_plat, + .probe = andes_l2_probe, + .plat_auto = sizeof(struct andes_l2_plat), + .ops = &andes_l2_cache_ops, .flags = DM_FLAG_PRE_RELOC, }; diff --git a/drivers/cache/cache-l2x0.c b/drivers/cache/cache-l2x0.c index c7bdd9d064a..560f4c94f1e 100644 --- a/drivers/cache/cache-l2x0.c +++ b/drivers/cache/cache-l2x0.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2019 Intel Corporation <www.intel.com> */ +#include <common.h> #include <command.h> #include <dm.h> diff --git a/drivers/cache/cache-sifive-ccache.c b/drivers/cache/cache-sifive-ccache.c index cc00b80f60b..521df40466f 100644 --- a/drivers/cache/cache-sifive-ccache.c +++ b/drivers/cache/cache-sifive-ccache.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 SiFive */ +#include <common.h> #include <cache.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/cache/cache-uclass.c b/drivers/cache/cache-uclass.c index 300e7bc86e1..0c13dbdb75c 100644 --- a/drivers/cache/cache-uclass.c +++ b/drivers/cache/cache-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_CACHE +#include <common.h> #include <cache.h> #include <dm.h> diff --git a/drivers/cache/sandbox_cache.c b/drivers/cache/sandbox_cache.c index 2e20b83ab80..955dfc8a0f8 100644 --- a/drivers/cache/sandbox_cache.c +++ b/drivers/cache/sandbox_cache.c @@ -3,6 +3,7 @@ * Copyright (C) 2019 Intel Corporation <www.intel.com> */ +#include <common.h> #include <cache.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/Kconfig b/drivers/clk/Kconfig index 9acbc47fe8e..bda6873be33 100644 --- a/drivers/clk/Kconfig +++ b/drivers/clk/Kconfig @@ -246,7 +246,6 @@ config CLK_ZYNQMP This clock driver adds support for clock realted settings for ZynqMP platform. -source "drivers/clk/adi/Kconfig" source "drivers/clk/analogbits/Kconfig" source "drivers/clk/at91/Kconfig" source "drivers/clk/exynos/Kconfig" diff --git a/drivers/clk/Makefile b/drivers/clk/Makefile index 847b9b29110..638ad04baeb 100644 --- a/drivers/clk/Makefile +++ b/drivers/clk/Makefile @@ -12,7 +12,6 @@ obj-$(CONFIG_$(SPL_TPL_)CLK_CCF) += clk-fixed-factor.o obj-$(CONFIG_$(SPL_TPL_)CLK_COMPOSITE_CCF) += clk-composite.o obj-$(CONFIG_$(SPL_TPL_)CLK_GPIO) += clk-gpio.o -obj-y += adi/ obj-y += analogbits/ obj-y += imx/ obj-$(CONFIG_CLK_JH7110) += starfive/ diff --git a/drivers/clk/adi/Kconfig b/drivers/clk/adi/Kconfig deleted file mode 100644 index 5745bedf88c..00000000000 --- a/drivers/clk/adi/Kconfig +++ /dev/null @@ -1,83 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -# -# (C) Copyright 2022 - Analog Devices, Inc. -# -# Written and/or maintained by Timesys Corporation -# -# Contact: Nathan Barrett-Morrison <[email protected]> -# Contact: Greg Malysa <[email protected]> -# - -config COMMON_CLK_ADI_SHARED - bool "Enable shared ADI clock framework code" - help - Required for shared code between SoC clock drivers. Automatically - selected by an appropriate SoC-specific clock driver version. - -config COMMON_CLK_ADI_SC598 - bool "Clock driver for ADI SC598 SoCs" - select DM - select CLK - select CLK_CCF - select OF_CONTROL - select CMD_CLK - select SPL_DM if SPL - select SPL_CLK if SPL - select SPL_CLK_CCF if SPL - select SPL_OF_CONTROL if SPL - select COMMON_CLK_ADI_SHARED - depends on SC59X_64 - help - This driver supports the system clocks on Analog Devices SC598-series - SoCs. It includes CGU and CDU clocks and supports gating unused clocks. - Modifying PLL configuration is not supported; that must be done prior - to booting the kernel. Clock dividers after the PLLs may be configured. - -config COMMON_CLK_ADI_SC594 - bool "Clock driver for ADI SC594 SoCs" - select DM - select CLK - select CLK_CCF - select OF_CONTROL - select CMD_CLK - select SPL_DM if SPL - select SPL_CLK if SPL - select SPL_CLK_CCF if SPL - select SPL_OF_CONTROL if SPL - select COMMON_CLK_ADI_SHARED - depends on SC59X - help - This driver supports the system clocks on Analog Devices SC594-series - SoCs. It includes CGU and CDU clocks and supports gating unused clocks. - Modifying PLL configuration is not supported; that must be done prior - to booting the kernel. Clock dividers after the PLLs may be configured. - -config COMMON_CLK_ADI_SC58X - bool "Clock driver for ADI SC58X SoCs" - select DM - select CLK - select CLK_CCF - select OF_CONTROL - select CMD_CLK - select COMMON_CLK_ADI_SHARED - depends on SC58X - help - This driver supports the system clocks on Analog Devices SC58x-series - SoCs. It includes CGU and CDU clocks and supports gating unused clocks. - Modifying PLL configuration is not supported; that must be done prior - to booting the kernel. Clock dividers after the PLLs may be configured. - -config COMMON_CLK_ADI_SC57X - bool "Clock driver for ADI SC57X SoCs" - select DM - select CLK - select CLK_CCF - select OF_CONTROL - select CMD_CLK - select COMMON_CLK_ADI_SHARED - depends on SC57X - help - This driver supports the system clocks on Analog Devices SC57x-series - SoCs. It includes CGU and CDU clocks and supports gating unused clocks. - Modifying PLL configuration is not supported; that must be done prior - to booting the kernel. Clock dividers after the PLLs may be configured. diff --git a/drivers/clk/adi/Makefile b/drivers/clk/adi/Makefile deleted file mode 100644 index f3f1fd92e5f..00000000000 --- a/drivers/clk/adi/Makefile +++ /dev/null @@ -1,16 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -# -# (C) Copyright 2022 - Analog Devices, Inc. -# -# Written and/or maintained by Timesys Corporation -# -# Contact: Nathan Barrett-Morrison <[email protected]> -# Contact: Greg Malysa <[email protected]> -# - -obj-$(CONFIG_COMMON_CLK_ADI_SHARED) += clk-shared.o clk-adi-pll.o - -obj-$(CONFIG_COMMON_CLK_ADI_SC594) += clk-adi-sc594.o -obj-$(CONFIG_COMMON_CLK_ADI_SC598) += clk-adi-sc598.o -obj-$(CONFIG_COMMON_CLK_ADI_SC58X) += clk-adi-sc58x.o -obj-$(CONFIG_COMMON_CLK_ADI_SC57X) += clk-adi-sc57x.o diff --git a/drivers/clk/adi/clk-adi-pll.c b/drivers/clk/adi/clk-adi-pll.c deleted file mode 100644 index 372baa9c11b..00000000000 --- a/drivers/clk/adi/clk-adi-pll.c +++ /dev/null @@ -1,93 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Author: Greg Malysa <[email protected]> - * - * Ported from Linux: Nathan Barrett-Morrison <[email protected]> - */ - -#include <clk.h> -#include <clk-uclass.h> -#include <asm/io.h> -#include <dm/device.h> -#include <linux/compiler_types.h> -#include <linux/err.h> -#include <linux/kernel.h> - -#include "clk.h" - -#define ADI_CLK_PLL_GENERIC "adi_clk_pll_generic" - -struct clk_sc5xx_cgu_pll { - struct clk clk; - void __iomem *base; - u32 mask; - u32 max; - u32 m_offset; - u8 shift; - bool half_m; -}; - -#define to_clk_sc5xx_cgu_pll(_clk) container_of(_clk, struct clk_sc5xx_cgu_pll, clk) - -static unsigned long sc5xx_cgu_pll_get_rate(struct clk *clk) -{ - struct clk_sc5xx_cgu_pll *pll = to_clk_sc5xx_cgu_pll(dev_get_clk_ptr(clk->dev)); - unsigned long parent_rate = clk_get_parent_rate(clk); - - u32 reg = readl(pll->base); - u32 m = ((reg & pll->mask) >> pll->shift) + pll->m_offset; - - if (m == 0) - m = pll->max; - - if (pll->half_m) - return parent_rate * m * 2; - return parent_rate * m; -} - -static const struct clk_ops clk_sc5xx_cgu_pll_ops = { - .get_rate = sc5xx_cgu_pll_get_rate, -}; - -struct clk *sc5xx_cgu_pll(const char *name, const char *parent_name, - void __iomem *base, u8 shift, u8 width, u32 m_offset, - bool half_m) -{ - struct clk_sc5xx_cgu_pll *pll; - struct clk *clk; - int ret; - char *drv_name = ADI_CLK_PLL_GENERIC; - - pll = kzalloc(sizeof(*pll), GFP_KERNEL); - if (!pll) - return ERR_PTR(-ENOMEM); - - pll->base = base; - pll->shift = shift; - pll->mask = GENMASK(width - 1, 0) << shift; - pll->max = pll->mask + 1; - pll->m_offset = m_offset; - pll->half_m = half_m; - - clk = &pll->clk; - - ret = clk_register(clk, drv_name, name, parent_name); - if (ret) { - pr_err("Failed to register %s in %s: %d\n", name, __func__, ret); - kfree(pll); - return ERR_PTR(ret); - } - - return clk; -} - -U_BOOT_DRIVER(clk_adi_pll_generic) = { - .name = ADI_CLK_PLL_GENERIC, - .id = UCLASS_CLK, - .ops = &clk_sc5xx_cgu_pll_ops, - .flags = DM_FLAG_PRE_RELOC, -}; diff --git a/drivers/clk/adi/clk-adi-sc57x.c b/drivers/clk/adi/clk-adi-sc57x.c deleted file mode 100644 index b17563f0444..00000000000 --- a/drivers/clk/adi/clk-adi-sc57x.c +++ /dev/null @@ -1,206 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Author: Greg Malysa <[email protected]> - * - * Ported from Linux: Nathan Barrett-Morrison <[email protected]> - */ - -#include <clk.h> -#include <clk-uclass.h> -#include <dm.h> -#include <dt-bindings/clock/adi-sc5xx-clock.h> -#include <linux/compiler_types.h> -#include <linux/clk-provider.h> -#include <linux/io.h> -#include <linux/ioport.h> -#include <linux/printk.h> -#include <linux/types.h> - -#include "clk.h" - -static const char * const cgu1_in_sels[] = {"sys_clkin0", "sys_clkin1"}; -static const char * const sharc0_sels[] = {"cclk0_0", "sysclk_0", "dummy", "dummy"}; -static const char * const sharc1_sels[] = {"cclk0_0", "sysclk_0", "dummy", "dummy"}; -static const char * const arm_sels[] = {"cclk1_0", "sysclk_0", "dummy", "dummy"}; -static const char * const cdu_ddr_sels[] = {"dclk_0", "dclk_1", "dummy", "dummy"}; -static const char * const can_sels[] = {"oclk_0", "oclk_1", "dclk_1", "oclk_0_half"}; -static const char * const spdif_sels[] = {"oclk_0", "oclk_1", "dclk_1", "dclk_0"}; -static const char * const gige_sels[] = {"sclk1_0", "sclk1_1", "cclk0_1", "oclk_0"}; -static const char * const sdio_sels[] = {"oclk_0_half", "cclk1_1_half", "cclk1_1", - "dclk_1"}; - -static int sc57x_clock_probe(struct udevice *dev) -{ - void __iomem *cgu0; - void __iomem *cgu1; - void __iomem *cdu; - int ret; - struct resource res; - - struct clk *clks[ADSP_SC57X_CLK_END]; - struct clk dummy, clkin0, clkin1; - - ret = dev_read_resource_byname(dev, "cgu0", &res); - if (ret) - return ret; - cgu0 = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "cgu1", &res); - if (ret) - return ret; - cgu1 = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "cdu", &res); - if (ret) - return ret; - cdu = devm_ioremap(dev, res.start, resource_size(&res)); - - // Input clock configuration - clk_get_by_name(dev, "dummy", &dummy); - clk_get_by_name(dev, "sys_clkin0", &clkin0); - clk_get_by_name(dev, "sys_clkin1", &clkin1); - - clks[ADSP_SC57X_CLK_DUMMY] = &dummy; - clks[ADSP_SC57X_CLK_SYS_CLKIN0] = &clkin0; - clks[ADSP_SC57X_CLK_SYS_CLKIN1] = &clkin1; - - clks[ADSP_SC57X_CLK_CGU1_IN] = clk_register_mux(NULL, "cgu1_in_sel", cgu1_in_sels, - 2, CLK_SET_RATE_PARENT, - cdu + CDU_CLKINSEL, 0, 1, 0); - - // CGU configuration and internal clocks - clks[ADSP_SC57X_CLK_CGU0_PLL_IN] = clk_register_divider(NULL, "cgu0_df", - "sys_clkin0", - CLK_SET_RATE_PARENT, - cgu0 + CGU_CTL, 0, 1, 0); - clks[ADSP_SC57X_CLK_CGU1_PLL_IN] = clk_register_divider(NULL, "cgu1_df", - "cgu1_in_sel", - CLK_SET_RATE_PARENT, - cgu1 + CGU_CTL, 0, 1, 0); - - // VCO output == PLL output - clks[ADSP_SC57X_CLK_CGU0_PLLCLK] = sc5xx_cgu_pll("cgu0_pllclk", "cgu0_df", - cgu0 + CGU_CTL, CGU_MSEL_SHIFT, - CGU_MSEL_WIDTH, 0, false); - clks[ADSP_SC57X_CLK_CGU1_PLLCLK] = sc5xx_cgu_pll("cgu1_pllclk", "cgu1_df", - cgu1 + CGU_CTL, CGU_MSEL_SHIFT, - CGU_MSEL_WIDTH, 0, false); - - // Dividers from pll output - clks[ADSP_SC57X_CLK_CGU0_CDIV] = cgu_divider("cgu0_cdiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 0, 5, 0); - clks[ADSP_SC57X_CLK_CGU0_SYSCLK] = cgu_divider("sysclk_0", "cgu0_pllclk", - cgu0 + CGU_DIV, 8, 5, 0); - clks[ADSP_SC57X_CLK_CGU0_DDIV] = cgu_divider("cgu0_ddiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 16, 5, 0); - clks[ADSP_SC57X_CLK_CGU0_ODIV] = cgu_divider("cgu0_odiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 22, 7, 0); - clks[ADSP_SC57X_CLK_CGU0_S0SELDIV] = cgu_divider("cgu0_s0seldiv", "sysclk_0", - cgu0 + CGU_DIV, 5, 3, 0); - clks[ADSP_SC57X_CLK_CGU0_S1SELDIV] = cgu_divider("cgu0_s1seldiv", "sysclk_0", - cgu0 + CGU_DIV, 13, 3, 0); - - clks[ADSP_SC57X_CLK_CGU1_CDIV] = cgu_divider("cgu1_cdiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 0, 5, 0); - clks[ADSP_SC57X_CLK_CGU1_SYSCLK] = cgu_divider("sysclk_1", "cgu1_pllclk", - cgu1 + CGU_DIV, 8, 5, 0); - clks[ADSP_SC57X_CLK_CGU1_DDIV] = cgu_divider("cgu1_ddiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 16, 5, 0); - clks[ADSP_SC57X_CLK_CGU1_ODIV] = cgu_divider("cgu1_odiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 22, 7, 0); - clks[ADSP_SC57X_CLK_CGU1_S0SELDIV] = cgu_divider("cgu1_s0seldiv", - "sysclk_1", cgu1 + CGU_DIV, 5, - 3, 0); - clks[ADSP_SC57X_CLK_CGU1_S1SELDIV] = cgu_divider("cgu1_s1seldiv", - "sysclk_1", cgu1 + CGU_DIV, 13, - 3, 0); - - // Gates to enable CGU outputs - clks[ADSP_SC57X_CLK_CGU0_CCLK0] = cgu_gate("cclk0_0", "cgu0_cdiv", - cgu0 + CGU_CCBF_DIS, 0); - clks[ADSP_SC57X_CLK_CGU0_CCLK1] = cgu_gate("cclk1_0", "cgu0_cdiv", - cgu1 + CGU_CCBF_DIS, 1); - clks[ADSP_SC57X_CLK_CGU0_OCLK] = cgu_gate("oclk_0", "cgu0_odiv", - cgu0 + CGU_SCBF_DIS, 3); - clks[ADSP_SC57X_CLK_CGU0_DCLK] = cgu_gate("dclk_0", "cgu0_ddiv", - cgu0 + CGU_SCBF_DIS, 2); - clks[ADSP_SC57X_CLK_CGU0_SCLK1] = cgu_gate("sclk1_0", "cgu0_s1seldiv", - cgu0 + CGU_SCBF_DIS, 1); - clks[ADSP_SC57X_CLK_CGU0_SCLK0] = cgu_gate("sclk0_0", "cgu0_s0seldiv", - cgu0 + CGU_SCBF_DIS, 0); - - clks[ADSP_SC57X_CLK_CGU1_CCLK0] = cgu_gate("cclk0_1", "cgu1_cdiv", - cgu1 + CGU_CCBF_DIS, 0); - clks[ADSP_SC57X_CLK_CGU1_CCLK1] = cgu_gate("cclk1_1", "cgu1_cdiv", - cgu1 + CGU_CCBF_DIS, 1); - clks[ADSP_SC57X_CLK_CGU1_OCLK] = cgu_gate("oclk_1", "cgu1_odiv", - cgu1 + CGU_SCBF_DIS, 3); - clks[ADSP_SC57X_CLK_CGU1_DCLK] = cgu_gate("dclk_1", "cgu1_ddiv", - cgu1 + CGU_SCBF_DIS, 2); - clks[ADSP_SC57X_CLK_CGU1_SCLK1] = cgu_gate("sclk1_1", "cgu1_s1seldiv", - cgu1 + CGU_SCBF_DIS, 1); - clks[ADSP_SC57X_CLK_CGU1_SCLK0] = cgu_gate("sclk0_1", "cgu1_s0seldiv", - cgu1 + CGU_SCBF_DIS, 0); - - // Extra half rate clocks generated in the CDU - clks[ADSP_SC57X_CLK_OCLK0_HALF] = clk_register_fixed_factor(NULL, "oclk_0_half", - "oclk_0", - CLK_SET_RATE_PARENT, - 1, 2); - clks[ADSP_SC57X_CLK_CCLK1_1_HALF] = clk_register_fixed_factor(NULL, - "cclk1_1_half", - "cclk1_1", - CLK_SET_RATE_PARENT, - 1, 2); - - // CDU output muxes - clks[ADSP_SC57X_CLK_SHARC0_SEL] = cdu_mux("sharc0_sel", cdu + CDU_CFG0, - sharc0_sels); - clks[ADSP_SC57X_CLK_SHARC1_SEL] = cdu_mux("sharc1_sel", cdu + CDU_CFG1, - sharc1_sels); - clks[ADSP_SC57X_CLK_ARM_SEL] = cdu_mux("arm_sel", cdu + CDU_CFG2, arm_sels); - clks[ADSP_SC57X_CLK_CDU_DDR_SEL] = cdu_mux("cdu_ddr_sel", cdu + CDU_CFG3, - cdu_ddr_sels); - clks[ADSP_SC57X_CLK_CAN_SEL] = cdu_mux("can_sel", cdu + CDU_CFG4, can_sels); - clks[ADSP_SC57X_CLK_SPDIF_SEL] = cdu_mux("spdif_sel", cdu + CDU_CFG5, spdif_sels); - clks[ADSP_SC57X_CLK_GIGE_SEL] = cdu_mux("gige_sel", cdu + CDU_CFG7, gige_sels); - clks[ADSP_SC57X_CLK_SDIO_SEL] = cdu_mux("sdio_sel", cdu + CDU_CFG9, sdio_sels); - - // CDU output enable gates - clks[ADSP_SC57X_CLK_SHARC0] = cdu_gate("sharc0", "sharc0_sel", cdu + CDU_CFG0, - CLK_IS_CRITICAL); - clks[ADSP_SC57X_CLK_SHARC1] = cdu_gate("sharc1", "sharc1_sel", cdu + CDU_CFG1, - CLK_IS_CRITICAL); - clks[ADSP_SC57X_CLK_ARM] = cdu_gate("arm", "arm_sel", cdu + CDU_CFG2, - CLK_IS_CRITICAL); - clks[ADSP_SC57X_CLK_CDU_DDR] = cdu_gate("cdu_ddr", "cdu_ddr_sel", cdu + CDU_CFG3, - CLK_IS_CRITICAL); - clks[ADSP_SC57X_CLK_CAN] = cdu_gate("can", "can_sel", cdu + CDU_CFG4, 0); - clks[ADSP_SC57X_CLK_SPDIF] = cdu_gate("spdif", "spdif_sel", cdu + CDU_CFG5, 0); - clks[ADSP_SC57X_CLK_GIGE] = cdu_gate("gige", "gige_sel", cdu + CDU_CFG7, 0); - clks[ADSP_SC57X_CLK_SDIO] = cdu_gate("sdio", "sdio_sel", cdu + CDU_CFG9, 0); - - ret = cdu_check_clocks(clks, ARRAY_SIZE(clks)); - if (ret) - pr_err("CDU error detected\n"); - - return ret; -} - -static const struct udevice_id adi_sc57x_clk_ids[] = { - { .compatible = "adi,sc57x-clocks" }, - { }, -}; - -U_BOOT_DRIVER(adi_sc57x_clk) = { - .name = "clk_adi_sc57x", - .id = UCLASS_CLK, - .of_match = adi_sc57x_clk_ids, - .ops = &adi_clk_ops, - .probe = sc57x_clock_probe, - .flags = DM_FLAG_PRE_RELOC, -}; diff --git a/drivers/clk/adi/clk-adi-sc58x.c b/drivers/clk/adi/clk-adi-sc58x.c deleted file mode 100644 index 05a0feddec7..00000000000 --- a/drivers/clk/adi/clk-adi-sc58x.c +++ /dev/null @@ -1,222 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Author: Greg Malysa <[email protected]> - * - * Ported from Linux: Nathan Barrett-Morrison <[email protected]> - */ - -#include <clk.h> -#include <clk-uclass.h> -#include <dm.h> -#include <dt-bindings/clock/adi-sc5xx-clock.h> -#include <linux/compiler_types.h> -#include <linux/clk-provider.h> -#include <linux/io.h> -#include <linux/ioport.h> -#include <linux/printk.h> -#include <linux/types.h> - -#include "clk.h" - -static const char * const cgu1_in_sels[] = {"sys_clkin0", "sys_clkin1"}; -static const char * const sharc0_sels[] = {"cclk0_0", "sysclk_0", "dummy", "dummy"}; -static const char * const sharc1_sels[] = {"cclk0_0", "sysclk_0", "dummy", "dummy"}; -static const char * const arm_sels[] = {"cclk1_0", "sysclk_0", "dummy", "dummy"}; -static const char * const cdu_ddr_sels[] = {"dclk_0", "dclk_1", "dummy", "dummy"}; -static const char * const can_sels[] = {"oclk_0", "oclk_1", "dclk_1", "dummy"}; -static const char * const spdif_sels[] = {"oclk_0", "oclk_1", "dclk_1", "dclk_0"}; -static const char * const reserved_sels[] = {"sclk0_0", "oclk_0", "dummy", "dummy"}; -static const char * const gige_sels[] = {"sclk0_0", "sclk1_1", "cclk0_1", "oclk_0"}; -static const char * const lp_sels[] = {"sclk0_0", "sclk0_1", "cclk1_1", "dclk_1"}; -static const char * const sdio_sels[] = {"oclk_0_half", "cclk1_1_half", "cclk1_1", - "dclk_1"}; - -static int sc58x_clock_probe(struct udevice *dev) -{ - void __iomem *cgu0; - void __iomem *cgu1; - void __iomem *cdu; - int ret; - struct resource res; - - struct clk *clks[ADSP_SC58X_CLK_END]; - struct clk dummy, clkin0, clkin1; - - ret = dev_read_resource_byname(dev, "cgu0", &res); - if (ret) - return ret; - cgu0 = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "cgu1", &res); - if (ret) - return ret; - cgu1 = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "cdu", &res); - if (ret) - return ret; - cdu = devm_ioremap(dev, res.start, resource_size(&res)); - - // Input clock configuration - clk_get_by_name(dev, "dummy", &dummy); - clk_get_by_name(dev, "sys_clkin0", &clkin0); - clk_get_by_name(dev, "sys_clkin1", &clkin1); - - clks[ADSP_SC58X_CLK_DUMMY] = &dummy; - clks[ADSP_SC58X_CLK_SYS_CLKIN0] = &clkin0; - clks[ADSP_SC58X_CLK_SYS_CLKIN1] = &clkin1; - - clks[ADSP_SC58X_CLK_CGU1_IN] = clk_register_mux(NULL, "cgu1_in_sel", cgu1_in_sels, - 2, CLK_SET_RATE_PARENT, - cdu + CDU_CLKINSEL, 0, 1, 0); - - // CGU configuration and internal clocks - clks[ADSP_SC58X_CLK_CGU0_PLL_IN] = clk_register_divider(NULL, "cgu0_df", - "sys_clkin0", - CLK_SET_RATE_PARENT, - cgu0 + CGU_CTL, 0, 1, 0); - clks[ADSP_SC58X_CLK_CGU1_PLL_IN] = clk_register_divider(NULL, "cgu1_df", - "cgu1_in_sel", - CLK_SET_RATE_PARENT, - cgu1 + CGU_CTL, 0, 1, 0); - - // VCO output inside PLL - clks[ADSP_SC58X_CLK_CGU0_VCO_OUT] = sc5xx_cgu_pll("cgu0_vco", "cgu0_df", - cgu0 + CGU_CTL, CGU_MSEL_SHIFT, - CGU_MSEL_WIDTH, 0, false); - clks[ADSP_SC58X_CLK_CGU1_VCO_OUT] = sc5xx_cgu_pll("cgu1_vco", "cgu1_df", - cgu1 + CGU_CTL, CGU_MSEL_SHIFT, - CGU_MSEL_WIDTH, 0, false); - - // Final PLL output - clks[ADSP_SC58X_CLK_CGU0_PLLCLK] = clk_register_fixed_factor(NULL, "cgu0_pllclk", - "cgu0_vco", - CLK_SET_RATE_PARENT, - 1, 1); - clks[ADSP_SC58X_CLK_CGU1_PLLCLK] = clk_register_fixed_factor(NULL, "cgu1_pllclk", - "cgu1_vco", - CLK_SET_RATE_PARENT, - 1, 1); - - // Dividers from pll output - clks[ADSP_SC58X_CLK_CGU0_CDIV] = cgu_divider("cgu0_cdiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 0, 5, 0); - clks[ADSP_SC58X_CLK_CGU0_SYSCLK] = cgu_divider("sysclk_0", "cgu0_pllclk", - cgu0 + CGU_DIV, 8, 5, 0); - clks[ADSP_SC58X_CLK_CGU0_DDIV] = cgu_divider("cgu0_ddiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 16, 5, 0); - clks[ADSP_SC58X_CLK_CGU0_ODIV] = cgu_divider("cgu0_odiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 22, 7, 0); - clks[ADSP_SC58X_CLK_CGU0_S0SELDIV] = cgu_divider("cgu0_s0seldiv", "sysclk_0", - cgu0 + CGU_DIV, 5, 3, 0); - clks[ADSP_SC58X_CLK_CGU0_S1SELDIV] = cgu_divider("cgu0_s1seldiv", "sysclk_0", - cgu0 + CGU_DIV, 13, 3, 0); - - clks[ADSP_SC58X_CLK_CGU1_CDIV] = cgu_divider("cgu1_cdiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 0, 5, 0); - clks[ADSP_SC58X_CLK_CGU1_SYSCLK] = cgu_divider("sysclk_1", "cgu1_pllclk", - cgu1 + CGU_DIV, 8, 5, 0); - clks[ADSP_SC58X_CLK_CGU1_DDIV] = cgu_divider("cgu1_ddiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 16, 5, 0); - clks[ADSP_SC58X_CLK_CGU1_ODIV] = cgu_divider("cgu1_odiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 22, 7, 0); - clks[ADSP_SC58X_CLK_CGU1_S0SELDIV] = cgu_divider("cgu1_s0seldiv", "sysclk_1", - cgu1 + CGU_DIV, 5, 3, 0); - clks[ADSP_SC58X_CLK_CGU1_S1SELDIV] = cgu_divider("cgu1_s1seldiv", "sysclk_1", - cgu1 + CGU_DIV, 13, 3, 0); - - // Gates to enable CGU outputs - clks[ADSP_SC58X_CLK_CGU0_CCLK0] = cgu_gate("cclk0_0", "cgu0_cdiv", - cgu0 + CGU_CCBF_DIS, 0); - clks[ADSP_SC58X_CLK_CGU0_CCLK1] = cgu_gate("cclk1_0", "cgu0_cdiv", - cgu1 + CGU_CCBF_DIS, 1); - clks[ADSP_SC58X_CLK_CGU0_OCLK] = cgu_gate("oclk_0", "cgu0_odiv", - cgu0 + CGU_SCBF_DIS, 3); - clks[ADSP_SC58X_CLK_CGU0_DCLK] = cgu_gate("dclk_0", "cgu0_ddiv", - cgu0 + CGU_SCBF_DIS, 2); - clks[ADSP_SC58X_CLK_CGU0_SCLK1] = cgu_gate("sclk1_0", "cgu0_s1seldiv", - cgu0 + CGU_SCBF_DIS, 1); - clks[ADSP_SC58X_CLK_CGU0_SCLK0] = cgu_gate("sclk0_0", "cgu0_s0seldiv", - cgu0 + CGU_SCBF_DIS, 0); - - clks[ADSP_SC58X_CLK_CGU1_CCLK0] = cgu_gate("cclk0_1", "cgu1_cdiv", - cgu1 + CGU_CCBF_DIS, 0); - clks[ADSP_SC58X_CLK_CGU1_CCLK1] = cgu_gate("cclk1_1", "cgu1_cdiv", - cgu1 + CGU_CCBF_DIS, 1); - clks[ADSP_SC58X_CLK_CGU1_OCLK] = cgu_gate("oclk_1", "cgu1_odiv", - cgu1 + CGU_SCBF_DIS, 3); - clks[ADSP_SC58X_CLK_CGU1_DCLK] = cgu_gate("dclk_1", "cgu1_ddiv", - cgu1 + CGU_SCBF_DIS, 2); - clks[ADSP_SC58X_CLK_CGU1_SCLK1] = cgu_gate("sclk1_1", "cgu1_s1seldiv", - cgu1 + CGU_SCBF_DIS, 1); - clks[ADSP_SC58X_CLK_CGU1_SCLK0] = cgu_gate("sclk0_1", "cgu1_s0seldiv", - cgu1 + CGU_SCBF_DIS, 0); - - // Extra half rate clocks generated in the CDU - clks[ADSP_SC58X_CLK_OCLK0_HALF] = clk_register_fixed_factor(NULL, "oclk_0_half", - "oclk_0", - CLK_SET_RATE_PARENT, - 1, 2); - clks[ADSP_SC58X_CLK_CCLK1_1_HALF] = clk_register_fixed_factor(NULL, - "cclk1_1_half", - "cclk1_1", - CLK_SET_RATE_PARENT, - 1, 2); - - // CDU output muxes - clks[ADSP_SC58X_CLK_SHARC0_SEL] = cdu_mux("sharc0_sel", cdu + CDU_CFG0, - sharc0_sels); - clks[ADSP_SC58X_CLK_SHARC1_SEL] = cdu_mux("sharc1_sel", cdu + CDU_CFG1, - sharc1_sels); - clks[ADSP_SC58X_CLK_ARM_SEL] = cdu_mux("arm_sel", cdu + CDU_CFG2, arm_sels); - clks[ADSP_SC58X_CLK_CDU_DDR_SEL] = cdu_mux("cdu_ddr_sel", cdu + CDU_CFG3, - cdu_ddr_sels); - clks[ADSP_SC58X_CLK_CAN_SEL] = cdu_mux("can_sel", cdu + CDU_CFG4, can_sels); - clks[ADSP_SC58X_CLK_SPDIF_SEL] = cdu_mux("spdif_sel", cdu + CDU_CFG5, spdif_sels); - clks[ADSP_SC58X_CLK_RESERVED_SEL] = cdu_mux("reserved_sel", cdu + CDU_CFG6, - reserved_sels); - clks[ADSP_SC58X_CLK_GIGE_SEL] = cdu_mux("gige_sel", cdu + CDU_CFG7, gige_sels); - clks[ADSP_SC58X_CLK_LP_SEL] = cdu_mux("lp_sel", cdu + CDU_CFG8, lp_sels); - clks[ADSP_SC58X_CLK_SDIO_SEL] = cdu_mux("sdio_sel", cdu + CDU_CFG9, sdio_sels); - - // CDU output enable gates - clks[ADSP_SC58X_CLK_SHARC0] = cdu_gate("sharc0", "sharc0_sel", cdu + CDU_CFG0, - CLK_IS_CRITICAL); - clks[ADSP_SC58X_CLK_SHARC1] = cdu_gate("sharc1", "sharc1_sel", cdu + CDU_CFG1, - CLK_IS_CRITICAL); - clks[ADSP_SC58X_CLK_ARM] = cdu_gate("arm", "arm_sel", cdu + CDU_CFG2, - CLK_IS_CRITICAL); - clks[ADSP_SC58X_CLK_CDU_DDR] = cdu_gate("cdu_ddr", "cdu_ddr_sel", cdu + CDU_CFG3, - CLK_IS_CRITICAL); - clks[ADSP_SC58X_CLK_CAN] = cdu_gate("can", "can_sel", cdu + CDU_CFG4, 0); - clks[ADSP_SC58X_CLK_SPDIF] = cdu_gate("spdif", "spdif_sel", cdu + CDU_CFG5, 0); - clks[ADSP_SC58X_CLK_RESERVED] = cdu_gate("reserved", "reserved_sel", - cdu + CDU_CFG6, 0); - clks[ADSP_SC58X_CLK_GIGE] = cdu_gate("gige", "gige_sel", cdu + CDU_CFG7, 0); - clks[ADSP_SC58X_CLK_LP] = cdu_gate("lp", "lp_sel", cdu + CDU_CFG8, 0); - clks[ADSP_SC58X_CLK_SDIO] = cdu_gate("sdio", "sdio_sel", cdu + CDU_CFG9, 0); - - ret = cdu_check_clocks(clks, ARRAY_SIZE(clks)); - if (ret) - pr_err("CDU error detected\n"); - - return ret; -} - -static const struct udevice_id adi_sc58x_clk_ids[] = { - { .compatible = "adi,sc58x-clocks" }, - { }, -}; - -U_BOOT_DRIVER(adi_sc58x_clk) = { - .name = "clk_adi_sc58x", - .id = UCLASS_CLK, - .of_match = adi_sc58x_clk_ids, - .ops = &adi_clk_ops, - .probe = sc58x_clock_probe, - .flags = DM_FLAG_PRE_RELOC, -}; diff --git a/drivers/clk/adi/clk-adi-sc594.c b/drivers/clk/adi/clk-adi-sc594.c deleted file mode 100644 index c80bbf9728d..00000000000 --- a/drivers/clk/adi/clk-adi-sc594.c +++ /dev/null @@ -1,231 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Author: Greg Malysa <[email protected]> - * - * Ported from Linux: Nathan Barrett-Morrison <[email protected]> - */ - -#include <clk.h> -#include <clk-uclass.h> -#include <dm.h> -#include <dt-bindings/clock/adi-sc5xx-clock.h> -#include <linux/compiler_types.h> -#include <linux/clk-provider.h> -#include <linux/io.h> -#include <linux/ioport.h> -#include <linux/printk.h> -#include <linux/types.h> - -#include "clk.h" - -static const char * const cgu1_in_sels[] = {"sys_clkin0", "sys_clkin1"}; -static const char * const cgu0_s1sels[] = {"cgu0_s1seldiv", "cgu0_s1selexdiv"}; -static const char * const cgu1_s1sels[] = {"cgu1_s1seldiv", "cgu1_s1selexdiv"}; -static const char * const sharc0_sels[] = {"cclk0_0", "dummy", "dummy", "dummy"}; -static const char * const sharc1_sels[] = {"cclk0_0", "dummy", "dummy", "dummy"}; -static const char * const arm_sels[] = {"cclk1_0", "dummy", "dummy", "dummy"}; -static const char * const cdu_ddr_sels[] = {"dclk_0", "dclk_1", "dummy", "dummy"}; -static const char * const can_sels[] = {"oclk_0", "oclk_1", "dummy", "dummy"}; -static const char * const spdif_sels[] = {"sclk1_0", "dummy", "dummy", "dummy"}; -static const char * const spi_sels[] = {"sclk0_0", "oclk_0", "dummy", "dummy"}; -static const char * const gige_sels[] = {"sclk0_0", "sclk0_1", "cclk0_1", "dummy"}; -static const char * const lp_sels[] = {"oclk_0", "sclk0_0", "cclk0_1", "dummy"}; -static const char * const lpddr_sels[] = {"oclk_0", "dclk_0", "sysclkin_1", "dummy"}; -static const char * const ospi_sels[] = {"sysclk_0", "sclk0_0", "sclk1_1", "dummy"}; -static const char * const trace_sels[] = {"sclk0_0", "dummy", "dummy", "dummy"}; - -static int sc594_clock_probe(struct udevice *dev) -{ - void __iomem *cgu0; - void __iomem *cgu1; - void __iomem *cdu; - int ret; - struct resource res; - - struct clk *clks[ADSP_SC594_CLK_END]; - struct clk dummy, clkin0, clkin1; - - ret = dev_read_resource_byname(dev, "cgu0", &res); - if (ret) - return ret; - cgu0 = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "cgu1", &res); - if (ret) - return ret; - cgu1 = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "cdu", &res); - if (ret) - return ret; - cdu = devm_ioremap(dev, res.start, resource_size(&res)); - - // Input clock configuration - clk_get_by_name(dev, "dummy", &dummy); - clk_get_by_name(dev, "sys_clkin0", &clkin0); - clk_get_by_name(dev, "sys_clkin1", &clkin1); - - clks[ADSP_SC594_CLK_DUMMY] = &dummy; - clks[ADSP_SC594_CLK_SYS_CLKIN0] = &clkin0; - clks[ADSP_SC594_CLK_SYS_CLKIN1] = &clkin1; - clks[ADSP_SC594_CLK_CGU1_IN] = clk_register_mux(NULL, "cgu1_in_sel", cgu1_in_sels, - 2, CLK_SET_RATE_PARENT, - cdu + CDU_CLKINSEL, 0, 1, 0); - - // CGU configuration and internal clocks - clks[ADSP_SC594_CLK_CGU0_PLL_IN] = clk_register_divider(NULL, "cgu0_df", - "sys_clkin0", - CLK_SET_RATE_PARENT, - cgu0 + CGU_CTL, 0, 1, 0); - clks[ADSP_SC594_CLK_CGU1_PLL_IN] = clk_register_divider(NULL, "cgu1_df", - "cgu1_in_sel", - CLK_SET_RATE_PARENT, - cgu1 + CGU_CTL, 0, 1, 0); - - // VCO output inside PLL - clks[ADSP_SC594_CLK_CGU0_VCO_OUT] = sc5xx_cgu_pll("cgu0_vco", "cgu0_df", - cgu0 + CGU_CTL, CGU_MSEL_SHIFT, - CGU_MSEL_WIDTH, 0, false); - clks[ADSP_SC594_CLK_CGU1_VCO_OUT] = sc5xx_cgu_pll("cgu1_vco", "cgu1_df", - cgu1 + CGU_CTL, CGU_MSEL_SHIFT, - CGU_MSEL_WIDTH, 0, false); - - // Final PLL output - clks[ADSP_SC594_CLK_CGU0_PLLCLK] = clk_register_fixed_factor(NULL, "cgu0_pllclk", - "cgu0_vco", - CLK_SET_RATE_PARENT, - 1, 1); - clks[ADSP_SC594_CLK_CGU1_PLLCLK] = clk_register_fixed_factor(NULL, "cgu1_pllclk", - "cgu1_vco", - CLK_SET_RATE_PARENT, - 1, 1); - - // Dividers from pll output - clks[ADSP_SC594_CLK_CGU0_CDIV] = cgu_divider("cgu0_cdiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 0, 5, 0); - clks[ADSP_SC594_CLK_CGU0_SYSCLK] = cgu_divider("sysclk_0", "cgu0_pllclk", - cgu0 + CGU_DIV, 8, 5, 0); - clks[ADSP_SC594_CLK_CGU0_DDIV] = cgu_divider("cgu0_ddiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 16, 5, 0); - clks[ADSP_SC594_CLK_CGU0_ODIV] = cgu_divider("cgu0_odiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 22, 7, 0); - clks[ADSP_SC594_CLK_CGU0_S0SELDIV] = cgu_divider("cgu0_s0seldiv", "sysclk_0", - cgu0 + CGU_DIV, 5, 3, 0); - clks[ADSP_SC594_CLK_CGU0_S1SELDIV] = cgu_divider("cgu0_s1seldiv", "sysclk_0", - cgu0 + CGU_DIV, 13, 3, 0); - clks[ADSP_SC594_CLK_CGU0_S1SELEXDIV] = cgu_divider("cgu0_s1selexdiv", - "cgu0_pllclk", - cgu0 + CGU_DIVEX, 16, 8, 0); - clks[ADSP_SC594_CLK_CGU0_S1SEL] = clk_register_mux(NULL, "cgu0_sclk1sel", - cgu0_s1sels, 2, - CLK_SET_RATE_PARENT, - cgu0 + CGU_CTL, 17, 1, 0); - - clks[ADSP_SC594_CLK_CGU1_CDIV] = cgu_divider("cgu1_cdiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 0, 5, 0); - clks[ADSP_SC594_CLK_CGU1_SYSCLK] = cgu_divider("sysclk_1", "cgu1_pllclk", - cgu1 + CGU_DIV, 8, 5, 0); - clks[ADSP_SC594_CLK_CGU1_DDIV] = cgu_divider("cgu1_ddiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 16, 5, 0); - clks[ADSP_SC594_CLK_CGU1_ODIV] = cgu_divider("cgu1_odiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 22, 7, 0); - clks[ADSP_SC594_CLK_CGU1_S0SELDIV] = cgu_divider("cgu1_s0seldiv", "sysclk_1", - cgu1 + CGU_DIV, 5, 3, 0); - clks[ADSP_SC594_CLK_CGU1_S1SELDIV] = cgu_divider("cgu1_s1seldiv", "sysclk_1", - cgu1 + CGU_DIV, 13, 3, 0); - clks[ADSP_SC594_CLK_CGU1_S1SELEXDIV] = cgu_divider("cgu1_s1selexdiv", - "cgu1_pllclk", - cgu1 + CGU_DIVEX, 16, 8, 0); - clks[ADSP_SC594_CLK_CGU1_S1SEL] = clk_register_mux(NULL, "cgu1_sclk1sel", - cgu1_s1sels, 2, - CLK_SET_RATE_PARENT, - cgu1 + CGU_CTL, 17, 1, 0); - - // Gates to enable CGU outputs - clks[ADSP_SC594_CLK_CGU0_CCLK0] = cgu_gate("cclk0_0", "cgu0_cdiv", - cgu0 + CGU_CCBF_DIS, 0); - clks[ADSP_SC594_CLK_CGU0_CCLK1] = cgu_gate("cclk1_0", "cgu0_cdiv", - cgu1 + CGU_CCBF_DIS, 1); - clks[ADSP_SC594_CLK_CGU0_OCLK] = cgu_gate("oclk_0", "cgu0_odiv", - cgu0 + CGU_SCBF_DIS, 3); - clks[ADSP_SC594_CLK_CGU0_DCLK] = cgu_gate("dclk_0", "cgu0_ddiv", - cgu0 + CGU_SCBF_DIS, 2); - clks[ADSP_SC594_CLK_CGU0_SCLK1] = cgu_gate("sclk1_0", "cgu0_sclk1sel", - cgu0 + CGU_SCBF_DIS, 1); - clks[ADSP_SC594_CLK_CGU0_SCLK0] = cgu_gate("sclk0_0", "cgu0_s0seldiv", - cgu0 + CGU_SCBF_DIS, 0); - - clks[ADSP_SC594_CLK_CGU1_CCLK0] = cgu_gate("cclk0_1", "cgu1_cdiv", - cgu1 + CGU_CCBF_DIS, 0); - clks[ADSP_SC594_CLK_CGU1_CCLK1] = cgu_gate("cclk1_1", "cgu1_cdiv", - cgu1 + CGU_CCBF_DIS, 1); - clks[ADSP_SC594_CLK_CGU1_OCLK] = cgu_gate("oclk_1", "cgu1_odiv", - cgu1 + CGU_SCBF_DIS, 3); - clks[ADSP_SC594_CLK_CGU1_DCLK] = cgu_gate("dclk_1", "cgu1_ddiv", - cgu1 + CGU_SCBF_DIS, 2); - clks[ADSP_SC594_CLK_CGU1_SCLK1] = cgu_gate("sclk1_1", "cgu1_sclk1sel", - cgu1 + CGU_SCBF_DIS, 1); - clks[ADSP_SC594_CLK_CGU1_SCLK0] = cgu_gate("sclk0_1", "cgu1_s0seldiv", - cgu1 + CGU_SCBF_DIS, 0); - - // CDU output muxes - clks[ADSP_SC594_CLK_SHARC0_SEL] = cdu_mux("sharc0_sel", cdu + CDU_CFG0, - sharc0_sels); - clks[ADSP_SC594_CLK_SHARC1_SEL] = cdu_mux("sharc1_sel", cdu + CDU_CFG1, - sharc1_sels); - clks[ADSP_SC594_CLK_ARM_SEL] = cdu_mux("arm_sel", cdu + CDU_CFG2, arm_sels); - clks[ADSP_SC594_CLK_CDU_DDR_SEL] = cdu_mux("cdu_ddr_sel", cdu + CDU_CFG3, - cdu_ddr_sels); - clks[ADSP_SC594_CLK_CAN_SEL] = cdu_mux("can_sel", cdu + CDU_CFG4, can_sels); - clks[ADSP_SC594_CLK_SPDIF_SEL] = cdu_mux("spdif_sel", cdu + CDU_CFG5, spdif_sels); - clks[ADSP_SC594_CLK_RESERVED_SEL] = cdu_mux("spi_sel", cdu + CDU_CFG6, spi_sels); - clks[ADSP_SC594_CLK_GIGE_SEL] = cdu_mux("gige_sel", cdu + CDU_CFG7, gige_sels); - clks[ADSP_SC594_CLK_LP_SEL] = cdu_mux("lp_sel", cdu + CDU_CFG8, lp_sels); - clks[ADSP_SC594_CLK_LPDDR_SEL] = cdu_mux("lpddr_sel", cdu + CDU_CFG9, lpddr_sels); - clks[ADSP_SC594_CLK_OSPI_SEL] = cdu_mux("ospi_sel", cdu + CDU_CFG10, - ospi_sels); - clks[ADSP_SC594_CLK_TRACE_SEL] = cdu_mux("trace_sel", cdu + CDU_CFG12, - trace_sels); - - // CDU output enable gates - clks[ADSP_SC594_CLK_SHARC0] = cdu_gate("sharc0", "sharc0_sel", - cdu + CDU_CFG0, CLK_IS_CRITICAL); - clks[ADSP_SC594_CLK_SHARC1] = cdu_gate("sharc1", "sharc1_sel", - cdu + CDU_CFG1, CLK_IS_CRITICAL); - clks[ADSP_SC594_CLK_ARM] = cdu_gate("arm", "arm_sel", cdu + CDU_CFG2, - CLK_IS_CRITICAL); - clks[ADSP_SC594_CLK_CDU_DDR] = cdu_gate("cdu_ddr", "cdu_ddr_sel", - cdu + CDU_CFG3, CLK_IS_CRITICAL); - clks[ADSP_SC594_CLK_CAN] = cdu_gate("can", "can_sel", cdu + CDU_CFG4, 0); - clks[ADSP_SC594_CLK_SPDIF] = cdu_gate("spdif", "spdif_sel", cdu + CDU_CFG5, 0); - clks[ADSP_SC594_CLK_SPI] = cdu_gate("spi", "spi_sel", cdu + CDU_CFG6, 0); - clks[ADSP_SC594_CLK_GIGE] = cdu_gate("gige", "gige_sel", cdu + CDU_CFG7, 0); - clks[ADSP_SC594_CLK_LP] = cdu_gate("lp", "lp_sel", cdu + CDU_CFG8, 0); - clks[ADSP_SC594_CLK_LPDDR] = cdu_gate("lpddr", "lpddr_sel", cdu + CDU_CFG9, 0); - clks[ADSP_SC594_CLK_OSPI] = cdu_gate("ospi", "ospi_sel", cdu + CDU_CFG10, 0); - clks[ADSP_SC594_CLK_TRACE] = cdu_gate("trace", "trace_sel", cdu + CDU_CFG12, 0); - - ret = cdu_check_clocks(clks, ARRAY_SIZE(clks)); - if (ret) - pr_err("CDU error detected\n"); - - return ret; -} - -static const struct udevice_id adi_sc594_clk_ids[] = { - { .compatible = "adi,sc594-clocks" }, - { }, -}; - -U_BOOT_DRIVER(adi_sc594_clk) = { - .name = "clk_adi_sc594", - .id = UCLASS_CLK, - .of_match = adi_sc594_clk_ids, - .ops = &adi_clk_ops, - .probe = sc594_clock_probe, - .flags = DM_FLAG_PRE_RELOC, -}; diff --git a/drivers/clk/adi/clk-adi-sc598.c b/drivers/clk/adi/clk-adi-sc598.c deleted file mode 100644 index d4a16ac9603..00000000000 --- a/drivers/clk/adi/clk-adi-sc598.c +++ /dev/null @@ -1,308 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Author: Greg Malysa <[email protected]> - * - * Ported from Linux: Nathan Barrett-Morrison <[email protected]> - */ - -#include <clk.h> -#include <clk-uclass.h> -#include <dm.h> -#include <dt-bindings/clock/adi-sc5xx-clock.h> -#include <linux/compiler_types.h> -#include <linux/clk-provider.h> -#include <linux/io.h> -#include <linux/ioport.h> -#include <linux/printk.h> -#include <linux/types.h> - -#include "clk.h" - -static const char * const cgu1_in_sels[] = {"sys_clkin0", "sys_clkin1"}; -static const char * const cgu0_s1sels[] = {"cgu0_s1seldiv", "cgu0_s1selexdiv"}; -static const char * const cgu1_s0sels[] = {"cgu1_s0seldiv", "cgu1_s0selexdiv"}; -static const char * const cgu1_s1sels[] = {"cgu1_s1seldiv", "cgu1_s1selexdiv"}; -static const char * const sharc0_sels[] = {"cclk0_0", "dummy", "dummy", "dummy"}; -static const char * const sharc1_sels[] = {"cclk0_0", "dummy", "dummy", "dummy"}; -static const char * const arm_sels[] = {"dummy", "dummy", "cclk2_0", "cclk2_1"}; -static const char * const cdu_ddr_sels[] = {"dclk_0", "dclk_1", "dummy", "dummy"}; -static const char * const can_sels[] = {"dummy", "oclk_1", "dummy", "dummy"}; -static const char * const spdif_sels[] = {"sclk1_0", "dummy", "dummy", "dummy"}; -static const char * const spi_sels[] = {"sclk0_0", "oclk_0", "dummy", "dummy"}; -static const char * const gige_sels[] = {"sclk0_0", "sclk0_1", "dummy", "dummy"}; -static const char * const lp_sels[] = {"oclk_0", "sclk0_0", "cclk0_1", "dummy"}; -static const char * const lp_ddr_sels[] = {"oclk_0", "dclk_0", "sysclk_1", "dummy"}; -static const char * const ospi_refclk_sels[] = {"sysclk_0", "sclk0_0", "sclk1_1", - "dummy"}; -static const char * const trace_sels[] = {"sclk0_0", "dummy", "dummy", "dummy"}; -static const char * const emmc_sels[] = {"oclk_0", "sclk0_1", "dclk_0_half", - "dclk_1_half"}; -static const char * const emmc_timer_sels[] = {"dummy", "sclk1_1_half", "dummy", - "dummy"}; -static const char * const ddr_sels[] = {"cdu_ddr", "3pll_ddiv"}; - -static int sc598_clock_probe(struct udevice *dev) -{ - void __iomem *cgu0; - void __iomem *cgu1; - void __iomem *cdu; - void __iomem *pll3; - int ret; - struct resource res; - - struct clk *clks[ADSP_SC598_CLK_END]; - struct clk dummy, clkin0, clkin1; - - ret = dev_read_resource_byname(dev, "cgu0", &res); - if (ret) - return ret; - cgu0 = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "cgu1", &res); - if (ret) - return ret; - cgu1 = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "cdu", &res); - if (ret) - return ret; - cdu = devm_ioremap(dev, res.start, resource_size(&res)); - - ret = dev_read_resource_byname(dev, "pll3", &res); - if (ret) - return ret; - pll3 = devm_ioremap(dev, res.start, resource_size(&res)); - - // We only access this one register for pll3 - pll3 = pll3 + PLL3_OFFSET; - - // Input clock configuration - clk_get_by_name(dev, "dummy", &dummy); - clk_get_by_name(dev, "sys_clkin0", &clkin0); - clk_get_by_name(dev, "sys_clkin1", &clkin1); - - clks[ADSP_SC598_CLK_DUMMY] = &dummy; - clks[ADSP_SC598_CLK_SYS_CLKIN0] = &clkin0; - clks[ADSP_SC598_CLK_SYS_CLKIN1] = &clkin1; - - clks[ADSP_SC598_CLK_CGU1_IN] = clk_register_mux(NULL, "cgu1_in_sel", cgu1_in_sels, - 2, CLK_SET_RATE_PARENT, - cdu + CDU_CLKINSEL, 0, 1, 0); - - // 3rd pll reuses cgu1 clk in selection, feeds directly into 3pll df - // changing the cgu1 in sel mux will affect 3pll so reuse the same clocks - - // CGU configuration and internal clocks - clks[ADSP_SC598_CLK_CGU0_PLL_IN] = clk_register_divider(NULL, "cgu0_df", - "sys_clkin0", - CLK_SET_RATE_PARENT, - cgu0 + CGU_CTL, 0, 1, 0); - clks[ADSP_SC598_CLK_CGU1_PLL_IN] = clk_register_divider(NULL, "cgu1_df", - "cgu1_in_sel", - CLK_SET_RATE_PARENT, - cgu1 + CGU_CTL, 0, 1, 0); - clks[ADSP_SC598_CLK_3PLL_PLL_IN] = clk_register_divider(NULL, "3pll_df", - "cgu1_in_sel", - CLK_SET_RATE_PARENT, - pll3, 3, 1, 0); - - // VCO output inside PLL - clks[ADSP_SC598_CLK_CGU0_VCO_OUT] = sc5xx_cgu_pll("cgu0_vco", "cgu0_df", - cgu0 + CGU_CTL, CGU_MSEL_SHIFT, - CGU_MSEL_WIDTH, 0, true); - clks[ADSP_SC598_CLK_CGU1_VCO_OUT] = sc5xx_cgu_pll("cgu1_vco", "cgu1_df", - cgu1 + CGU_CTL, CGU_MSEL_SHIFT, - CGU_MSEL_WIDTH, 0, true); - clks[ADSP_SC598_CLK_3PLL_VCO_OUT] = sc5xx_cgu_pll("3pll_vco", "3pll_df", - pll3, PLL3_MSEL_SHIFT, - PLL3_MSEL_WIDTH, 1, true); - - // Final PLL output - clks[ADSP_SC598_CLK_CGU0_PLLCLK] = clk_register_fixed_factor(NULL, "cgu0_pllclk", - "cgu0_vco", - CLK_SET_RATE_PARENT, - 1, 2); - clks[ADSP_SC598_CLK_CGU1_PLLCLK] = clk_register_fixed_factor(NULL, "cgu1_pllclk", - "cgu1_vco", - CLK_SET_RATE_PARENT, - 1, 2); - clks[ADSP_SC598_CLK_3PLL_PLLCLK] = clk_register_fixed_factor(NULL, "3pll_pllclk", - "3pll_vco", - CLK_SET_RATE_PARENT, - 1, 2); - - // Dividers from pll output - clks[ADSP_SC598_CLK_CGU0_CDIV] = cgu_divider("cgu0_cdiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 0, 5, 0); - clks[ADSP_SC598_CLK_CGU0_SYSCLK] = cgu_divider("sysclk_0", "cgu0_pllclk", - cgu0 + CGU_DIV, 8, 5, 0); - clks[ADSP_SC598_CLK_CGU0_DDIV] = cgu_divider("cgu0_ddiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 16, 5, 0); - clks[ADSP_SC598_CLK_CGU0_ODIV] = cgu_divider("cgu0_odiv", "cgu0_pllclk", - cgu0 + CGU_DIV, 22, 7, 0); - clks[ADSP_SC598_CLK_CGU0_S0SELDIV] = cgu_divider("cgu0_s0seldiv", "sysclk_0", - cgu0 + CGU_DIV, 5, 3, 0); - clks[ADSP_SC598_CLK_CGU0_S1SELDIV] = cgu_divider("cgu0_s1seldiv", "sysclk_0", - cgu0 + CGU_DIV, 13, 3, 0); - clks[ADSP_SC598_CLK_CGU0_S1SELEXDIV] = cgu_divider("cgu0_s1selexdiv", - "cgu0_pllclk", - cgu0 + CGU_DIVEX, 16, 8, 0); - clks[ADSP_SC598_CLK_CGU0_S1SEL] = clk_register_mux(NULL, "cgu0_sclk1sel", - cgu0_s1sels, 2, - CLK_SET_RATE_PARENT, - cgu0 + CGU_CTL, 17, 1, 0); - clks[ADSP_SC598_CLK_CGU0_CCLK2] = clk_register_fixed_factor(NULL, "cclk2_0", - "cgu0_vco", - CLK_SET_RATE_PARENT, - 1, 3); - - clks[ADSP_SC598_CLK_CGU1_CDIV] = cgu_divider("cgu1_cdiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 0, 5, 0); - clks[ADSP_SC598_CLK_CGU1_SYSCLK] = cgu_divider("sysclk_1", "cgu1_pllclk", - cgu1 + CGU_DIV, 8, 5, 0); - clks[ADSP_SC598_CLK_CGU1_DDIV] = cgu_divider("cgu1_ddiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 16, 5, 0); - clks[ADSP_SC598_CLK_CGU1_ODIV] = cgu_divider("cgu1_odiv", "cgu1_pllclk", - cgu1 + CGU_DIV, 22, 7, 0); - clks[ADSP_SC598_CLK_CGU1_S0SELDIV] = cgu_divider("cgu1_s0seldiv", "sysclk_1", - cgu1 + CGU_DIV, 5, 3, 0); - clks[ADSP_SC598_CLK_CGU1_S1SELDIV] = cgu_divider("cgu1_s1seldiv", "sysclk_1", - cgu1 + CGU_DIV, 13, 3, 0); - clks[ADSP_SC598_CLK_CGU1_S0SELEXDIV] = cgu_divider("cgu1_s0selexdiv", - "cgu1_pllclk", - cgu1 + CGU_DIVEX, 0, 8, 0); - clks[ADSP_SC598_CLK_CGU1_S1SELEXDIV] = cgu_divider("cgu1_s1selexdiv", - "cgu1_pllclk", - cgu1 + CGU_DIVEX, 16, 8, 0); - clks[ADSP_SC598_CLK_CGU1_S0SEL] = clk_register_mux(NULL, "cgu1_sclk0sel", - cgu1_s0sels, 2, - CLK_SET_RATE_PARENT, - cgu1 + CGU_CTL, 16, 1, 0); - clks[ADSP_SC598_CLK_CGU1_S1SEL] = clk_register_mux(NULL, "cgu1_sclk1sel", - cgu1_s1sels, 2, - CLK_SET_RATE_PARENT, - cgu1 + CGU_CTL, 17, 1, 0); - clks[ADSP_SC598_CLK_CGU1_CCLK2] = clk_register_fixed_factor(NULL, "cclk2_1", - "cgu1_vco", - CLK_SET_RATE_PARENT, - 1, 3); - - clks[ADSP_SC598_CLK_3PLL_DDIV] = clk_register_divider(NULL, "3pll_ddiv", - "3pll_pllclk", - CLK_SET_RATE_PARENT, pll3, - 12, 5, 0); - - // Gates to enable CGU outputs - clks[ADSP_SC598_CLK_CGU0_CCLK0] = cgu_gate("cclk0_0", "cgu0_cdiv", - cgu0 + CGU_CCBF_DIS, 0); - clks[ADSP_SC598_CLK_CGU0_OCLK] = cgu_gate("oclk_0", "cgu0_odiv", - cgu0 + CGU_SCBF_DIS, 3); - clks[ADSP_SC598_CLK_CGU0_DCLK] = cgu_gate("dclk_0", "cgu0_ddiv", - cgu0 + CGU_SCBF_DIS, 2); - clks[ADSP_SC598_CLK_CGU0_SCLK1] = cgu_gate("sclk1_0", "cgu0_sclk1sel", - cgu0 + CGU_SCBF_DIS, 1); - clks[ADSP_SC598_CLK_CGU0_SCLK0] = cgu_gate("sclk0_0", "cgu0_s0seldiv", - cgu0 + CGU_SCBF_DIS, 0); - - clks[ADSP_SC598_CLK_CGU1_CCLK0] = cgu_gate("cclk0_1", "cgu1_cdiv", - cgu1 + CGU_CCBF_DIS, 0); - clks[ADSP_SC598_CLK_CGU1_OCLK] = cgu_gate("oclk_1", "cgu1_odiv", - cgu1 + CGU_SCBF_DIS, 3); - clks[ADSP_SC598_CLK_CGU1_DCLK] = cgu_gate("dclk_1", "cgu1_ddiv", - cgu1 + CGU_SCBF_DIS, 2); - clks[ADSP_SC598_CLK_CGU1_SCLK1] = cgu_gate("sclk1_1", "cgu1_sclk1sel", - cgu1 + CGU_SCBF_DIS, 1); - clks[ADSP_SC598_CLK_CGU1_SCLK0] = cgu_gate("sclk0_1", "cgu1_sclk0sel", - cgu1 + CGU_SCBF_DIS, 0); - - // Extra half rate clocks generated in the CDU - clks[ADSP_SC598_CLK_DCLK0_HALF] = clk_register_fixed_factor(NULL, "dclk_0_half", - "dclk_0", - CLK_SET_RATE_PARENT, - 1, 2); - clks[ADSP_SC598_CLK_DCLK1_HALF] = clk_register_fixed_factor(NULL, "dclk_1_half", - "dclk_1", - CLK_SET_RATE_PARENT, - 1, 2); - clks[ADSP_SC598_CLK_CGU1_SCLK1_HALF] = clk_register_fixed_factor(NULL, - "sclk1_1_half", - "sclk1_1", - CLK_SET_RATE_PARENT, - 1, 2); - - // CDU output muxes - clks[ADSP_SC598_CLK_SHARC0_SEL] = cdu_mux("sharc0_sel", cdu + CDU_CFG0, - sharc0_sels); - clks[ADSP_SC598_CLK_SHARC1_SEL] = cdu_mux("sharc1_sel", cdu + CDU_CFG1, - sharc1_sels); - clks[ADSP_SC598_CLK_ARM_SEL] = cdu_mux("arm_sel", cdu + CDU_CFG2, arm_sels); - clks[ADSP_SC598_CLK_CDU_DDR_SEL] = cdu_mux("cdu_ddr_sel", cdu + CDU_CFG3, - cdu_ddr_sels); - clks[ADSP_SC598_CLK_CAN_SEL] = cdu_mux("can_sel", cdu + CDU_CFG4, can_sels); - clks[ADSP_SC598_CLK_SPDIF_SEL] = cdu_mux("spdif_sel", cdu + CDU_CFG5, spdif_sels); - clks[ADSP_SC598_CLK_SPI_SEL] = cdu_mux("spi_sel", cdu + CDU_CFG6, spi_sels); - clks[ADSP_SC598_CLK_GIGE_SEL] = cdu_mux("gige_sel", cdu + CDU_CFG7, gige_sels); - clks[ADSP_SC598_CLK_LP_SEL] = cdu_mux("lp_sel", cdu + CDU_CFG8, lp_sels); - clks[ADSP_SC598_CLK_LP_DDR_SEL] = cdu_mux("lp_ddr_sel", cdu + CDU_CFG9, - lp_ddr_sels); - clks[ADSP_SC598_CLK_OSPI_REFCLK_SEL] = cdu_mux("ospi_refclk_sel", cdu + CDU_CFG10, - ospi_refclk_sels); - clks[ADSP_SC598_CLK_TRACE_SEL] = cdu_mux("trace_sel", cdu + CDU_CFG12, - trace_sels); - clks[ADSP_SC598_CLK_EMMC_SEL] = cdu_mux("emmc_sel", cdu + CDU_CFG13, emmc_sels); - clks[ADSP_SC598_CLK_EMMC_TIMER_QMC_SEL] = cdu_mux("emmc_timer_qmc_sel", - cdu + CDU_CFG14, - emmc_timer_sels); - - // CDU output enable gates - clks[ADSP_SC598_CLK_SHARC0] = cdu_gate("sharc0", "sharc0_sel", cdu + CDU_CFG0, - CLK_IS_CRITICAL); - clks[ADSP_SC598_CLK_SHARC1] = cdu_gate("sharc1", "sharc1_sel", cdu + CDU_CFG1, - CLK_IS_CRITICAL); - clks[ADSP_SC598_CLK_ARM] = cdu_gate("arm", "arm_sel", cdu + CDU_CFG2, - CLK_IS_CRITICAL); - clks[ADSP_SC598_CLK_CDU_DDR] = cdu_gate("cdu_ddr", "cdu_ddr_sel", cdu + CDU_CFG3, - 0); - clks[ADSP_SC598_CLK_CAN] = cdu_gate("can", "can_sel", cdu + CDU_CFG4, 0); - clks[ADSP_SC598_CLK_SPDIF] = cdu_gate("spdif", "spdif_sel", cdu + CDU_CFG5, 0); - clks[ADSP_SC598_CLK_SPI] = cdu_gate("spi", "spi_sel", cdu + CDU_CFG6, 0); - clks[ADSP_SC598_CLK_GIGE] = cdu_gate("gige", "gige_sel", cdu + CDU_CFG7, 0); - clks[ADSP_SC598_CLK_LP] = cdu_gate("lp", "lp_sel", cdu + CDU_CFG8, 0); - clks[ADSP_SC598_CLK_LP_DDR] = cdu_gate("lp_ddr", "lp_ddr_sel", cdu + CDU_CFG9, 0); - clks[ADSP_SC598_CLK_OSPI_REFCLK] = cdu_gate("ospi_refclk", "ospi_refclk_sel", - cdu + CDU_CFG10, 0); - clks[ADSP_SC598_CLK_TRACE] = cdu_gate("trace", "trace_sel", cdu + CDU_CFG12, 0); - clks[ADSP_SC598_CLK_EMMC] = cdu_gate("emmc", "emmc_sel", cdu + CDU_CFG13, 0); - clks[ADSP_SC598_CLK_EMMC_TIMER_QMC] = cdu_gate("emmc_timer_qmc", - "emmc_timer_qmc_sel", - cdu + CDU_CFG14, 0); - - // Dedicated DDR output mux - clks[ADSP_SC598_CLK_DDR] = clk_register_mux(NULL, "ddr", ddr_sels, 2, - CLK_SET_RATE_PARENT | CLK_IS_CRITICAL, - pll3, 11, 1, 0); - - ret = cdu_check_clocks(clks, ARRAY_SIZE(clks)); - if (ret) - pr_err("CDU error detected\n"); - - return ret; -} - -static const struct udevice_id adi_sc598_clk_ids[] = { - { .compatible = "adi,sc598-clocks" }, - { }, -}; - -U_BOOT_DRIVER(adi_sc598_clk) = { - .name = "clk_adi_sc598", - .id = UCLASS_CLK, - .of_match = adi_sc598_clk_ids, - .ops = &adi_clk_ops, - .probe = sc598_clock_probe, - .flags = DM_FLAG_PRE_RELOC, -}; diff --git a/drivers/clk/adi/clk-shared.c b/drivers/clk/adi/clk-shared.c deleted file mode 100644 index dcadcafa9d2..00000000000 --- a/drivers/clk/adi/clk-shared.c +++ /dev/null @@ -1,48 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Author: Greg Malysa <[email protected]> - */ - -#include "clk.h" - -static ulong adi_get_rate(struct clk *clk) -{ - struct clk *c; - int ret; - - ret = clk_get_by_id(clk->id, &c); - if (ret) - return ret; - - return clk_get_rate(c); -} - -static ulong adi_set_rate(struct clk *clk, ulong rate) -{ - //Not yet implemented - return 0; -} - -static int adi_enable(struct clk *clk) -{ - //Not yet implemented - return 0; -} - -static int adi_disable(struct clk *clk) -{ - //Not yet implemented - return 0; -} - -const struct clk_ops adi_clk_ops = { - .set_rate = adi_set_rate, - .get_rate = adi_get_rate, - .enable = adi_enable, - .disable = adi_disable, -}; - diff --git a/drivers/clk/adi/clk.h b/drivers/clk/adi/clk.h deleted file mode 100644 index f230205c311..00000000000 --- a/drivers/clk/adi/clk.h +++ /dev/null @@ -1,123 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Author: Greg Malysa <[email protected]> - * - * Ported from Linux: Nathan Barrett-Morrison <[email protected]> - */ - -#ifndef CLK_ADI_CLK_H -#define CLK_ADI_CLK_H - -#include <linux/compiler_types.h> -#include <linux/types.h> -#include <linux/clk-provider.h> - -#define CGU_CTL 0x00 -#define CGU_PLLCTL 0x04 -#define CGU_STAT 0x08 -#define CGU_DIV 0x0C -#define CGU_CLKOUTSEL 0x10 -#define CGU_OSCWDCTL 0x14 -#define CGU_TSCTL 0x18 -#define CGU_TSVALUE0 0x1C -#define CGU_TSVALUE1 0x20 -#define CGU_TSCOUNT0 0x24 -#define CGU_TSCOUNT1 0x28 -#define CGU_CCBF_DIS 0x2C -#define CGU_CCBF_STAT 0x30 -#define CGU_SCBF_DIS 0x38 -#define CGU_SCBF_STAT 0x3C -#define CGU_DIVEX 0x40 -#define CGU_REVID 0x48 - -#define CDU_CFG0 0x00 -#define CDU_CFG1 0x04 -#define CDU_CFG2 0x08 -#define CDU_CFG3 0x0C -#define CDU_CFG4 0x10 -#define CDU_CFG5 0x14 -#define CDU_CFG6 0x18 -#define CDU_CFG7 0x1C -#define CDU_CFG8 0x20 -#define CDU_CFG9 0x24 -#define CDU_CFG10 0x28 -#define CDU_CFG11 0x2C -#define CDU_CFG12 0x30 -#define CDU_CFG13 0x34 -#define CDU_CFG14 0x38 - -#define PLL3_OFFSET 0x2c - -#define CDU_CLKINSEL 0x44 - -#define CGU_MSEL_SHIFT 8 -#define CGU_MSEL_WIDTH 7 - -#define PLL3_MSEL_SHIFT 4 -#define PLL3_MSEL_WIDTH 7 - -#define CDU_MUX_SIZE 4 -#define CDU_MUX_SHIFT 1 -#define CDU_MUX_WIDTH 2 -#define CDU_EN_BIT 0 - -extern const struct clk_ops adi_clk_ops; - -struct clk *sc5xx_cgu_pll(const char *name, const char *parent_name, - void __iomem *base, u8 shift, u8 width, u32 m_offset, bool half_m); - -/** - * All CDU clock muxes are the same size - */ -static inline struct clk *cdu_mux(const char *name, void __iomem *reg, - const char * const *parents) -{ - return clk_register_mux(NULL, name, parents, CDU_MUX_SIZE, - CLK_SET_RATE_PARENT, reg, CDU_MUX_SHIFT, CDU_MUX_WIDTH, 0); -} - -static inline struct clk *cgu_divider(const char *name, const char *parent, - void __iomem *reg, u8 shift, u8 width, u8 extra_flags) -{ - return clk_register_divider(NULL, name, parent, CLK_SET_RATE_PARENT, - reg, shift, width, CLK_DIVIDER_MAX_AT_ZERO | extra_flags); -} - -static inline struct clk *cdu_gate(const char *name, const char *parent, - void __iomem *reg, u32 flags) -{ - return clk_register_gate(NULL, name, parent, CLK_SET_RATE_PARENT | flags, - reg, CDU_EN_BIT, 0, NULL); -} - -static inline struct clk *cgu_gate(const char *name, const char *parent, - void __iomem *reg, u8 bit) -{ - return clk_register_gate(NULL, name, parent, CLK_SET_RATE_PARENT, reg, bit, - CLK_GATE_SET_TO_DISABLE, NULL); -} - -static inline int cdu_check_clocks(struct clk *clks[], size_t count) -{ - size_t i; - - for (i = 0; i < count; ++i) { - if (clks[i]) { - if (IS_ERR(clks[i])) { - pr_err("Clock %zu failed to register: %ld\n", i, PTR_ERR(clks[i])); - return PTR_ERR(clks[i]); - } - clks[i]->id = i; - } else { - pr_err("ADI Clock framework: Null pointer detected on clock %zu\n", i); - } - } - - return 0; -} - -#endif diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c index bdc7be0fb5d..cca6d674122 100644 --- a/drivers/clk/altera/clk-agilex.c +++ b/drivers/clk/altera/clk-agilex.c @@ -3,6 +3,7 @@ * Copyright (C) 2019 Intel Corporation <www.intel.com> */ +#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/clk/altera/clk-agilex5.c b/drivers/clk/altera/clk-agilex5.c index 72b923465df..92f2abdaf93 100644 --- a/drivers/clk/altera/clk-agilex5.c +++ b/drivers/clk/altera/clk-agilex5.c @@ -15,6 +15,7 @@ #include <asm/global_data.h> #include <asm/io.h> #include <asm/system.h> +#include <asm/u-boot.h> #include <dm/lists.h> #include <dm/util.h> #include <linux/bitops.h> diff --git a/drivers/clk/altera/clk-arria10.c b/drivers/clk/altera/clk-arria10.c index 1840f73beee..578597a16e8 100644 --- a/drivers/clk/altera/clk-arria10.c +++ b/drivers/clk/altera/clk-arria10.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Marek Vasut <[email protected]> */ +#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/altera/clk-mem-n5x.c b/drivers/clk/altera/clk-mem-n5x.c index b75f52d203b..9bbe2cd0ca7 100644 --- a/drivers/clk/altera/clk-mem-n5x.c +++ b/drivers/clk/altera/clk-mem-n5x.c @@ -3,6 +3,7 @@ * Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ +#include <common.h> #include <asm/arch/clock_manager.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/clk/altera/clk-n5x.c b/drivers/clk/altera/clk-n5x.c index 3e256101a94..3fa19e05c47 100644 --- a/drivers/clk/altera/clk-n5x.c +++ b/drivers/clk/altera/clk-n5x.c @@ -3,6 +3,7 @@ * Copyright (C) 2020-2022 Intel Corporation <www.intel.com> */ +#include <common.h> #include <asm/arch/clock_manager.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/clk/aspeed/clk_ast2500.c b/drivers/clk/aspeed/clk_ast2500.c index a330dcda4dc..dc446ce9fb7 100644 --- a/drivers/clk/aspeed/clk_ast2500.c +++ b/drivers/clk/aspeed/clk_ast2500.c @@ -3,6 +3,7 @@ * (C) Copyright 2016 Google, Inc */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/aspeed/clk_ast2600.c b/drivers/clk/aspeed/clk_ast2600.c index 535010b7941..a15909329bb 100644 --- a/drivers/clk/aspeed/clk_ast2600.c +++ b/drivers/clk/aspeed/clk_ast2600.c @@ -3,6 +3,7 @@ * Copyright (C) ASPEED Technology Inc. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/clk/at91/clk-generic.c b/drivers/clk/at91/clk-generic.c index c410cd2b505..87738b7b5bf 100644 --- a/drivers/clk/at91/clk-generic.c +++ b/drivers/clk/at91/clk-generic.c @@ -8,6 +8,7 @@ * * Based on drivers/clk/at91/clk-generated.c from Linux. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/io.h> diff --git a/drivers/clk/at91/clk-main.c b/drivers/clk/at91/clk-main.c index 09daae97676..025c7a7aa26 100644 --- a/drivers/clk/at91/clk-main.c +++ b/drivers/clk/at91/clk-main.c @@ -10,6 +10,7 @@ */ #include <asm/processor.h> +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/clk-master.c b/drivers/clk/at91/clk-master.c index d28775d64d3..aec0bca7b3c 100644 --- a/drivers/clk/at91/clk-master.c +++ b/drivers/clk/at91/clk-master.c @@ -11,6 +11,7 @@ #include <asm/processor.h> #include <clk-uclass.h> +#include <common.h> #include <div64.h> #include <dm.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/clk-peripheral.c b/drivers/clk/at91/clk-peripheral.c index 08d7e7dddc9..52cbc520cef 100644 --- a/drivers/clk/at91/clk-peripheral.c +++ b/drivers/clk/at91/clk-peripheral.c @@ -8,6 +8,7 @@ * * Based on drivers/clk/at91/clk-peripheral.c from Linux. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/io.h> diff --git a/drivers/clk/at91/clk-programmable.c b/drivers/clk/at91/clk-programmable.c index d0b14656c4d..868de4b1774 100644 --- a/drivers/clk/at91/clk-programmable.c +++ b/drivers/clk/at91/clk-programmable.c @@ -8,6 +8,7 @@ * * Based on drivers/clk/at91/clk-programmable.c from Linux. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/clk-sam9x60-pll.c b/drivers/clk/at91/clk-sam9x60-pll.c index a30035eb8ce..383f79cfbaf 100644 --- a/drivers/clk/at91/clk-sam9x60-pll.c +++ b/drivers/clk/at91/clk-sam9x60-pll.c @@ -11,6 +11,7 @@ */ #include <asm/processor.h> +#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/at91/clk-system.c b/drivers/clk/at91/clk-system.c index 3545b0b24bd..82f79e74a19 100644 --- a/drivers/clk/at91/clk-system.c +++ b/drivers/clk/at91/clk-system.c @@ -9,6 +9,7 @@ * Based on drivers/clk/at91/clk-system.c from Linux. */ #include <asm/processor.h> +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/io.h> diff --git a/drivers/clk/at91/clk-utmi.c b/drivers/clk/at91/clk-utmi.c index 84784ae41ce..7c8bcfb51db 100644 --- a/drivers/clk/at91/clk-utmi.c +++ b/drivers/clk/at91/clk-utmi.c @@ -9,6 +9,7 @@ * Based on drivers/clk/at91/clk-utmi.c from Linux. */ #include <asm/processor.h> +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/compat.c b/drivers/clk/at91/compat.c index 1d738f160b6..ee67093c607 100644 --- a/drivers/clk/at91/compat.c +++ b/drivers/clk/at91/compat.c @@ -6,7 +6,7 @@ * * Author: Claudiu Beznea <[email protected]> */ -#include <config.h> +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/clk/at91/pmc.c b/drivers/clk/at91/pmc.c index aa4bc8fa47a..87d2069d89c 100644 --- a/drivers/clk/at91/pmc.c +++ b/drivers/clk/at91/pmc.c @@ -4,6 +4,7 @@ * Wenyou.Yang <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <clk-uclass.h> #include <linux/clk-provider.h> diff --git a/drivers/clk/at91/sam9x60.c b/drivers/clk/at91/sam9x60.c index b7d64bdbb3d..d858c860f69 100644 --- a/drivers/clk/at91/sam9x60.c +++ b/drivers/clk/at91/sam9x60.c @@ -7,6 +7,7 @@ * Based on sam9x60.c on Linux. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clk/at91.h> diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 63b2c647467..3e62fb1f58d 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -9,6 +9,7 @@ * Based on drivers/clk/at91/sama7g5.c from Linux. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clk/at91.h> diff --git a/drivers/clk/at91/sckc.c b/drivers/clk/at91/sckc.c index 6d6f12578db..43136ab2e34 100644 --- a/drivers/clk/at91/sckc.c +++ b/drivers/clk/at91/sckc.c @@ -7,6 +7,7 @@ * Author: Claudiu Beznea <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clk/at91.h> diff --git a/drivers/clk/clk-cdce9xx.c b/drivers/clk/clk-cdce9xx.c index e5f74e714d5..b8700f517fc 100644 --- a/drivers/clk/clk-cdce9xx.c +++ b/drivers/clk/clk-cdce9xx.c @@ -8,6 +8,7 @@ * Based on Linux kernel clk-cdce925.c. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-composite.c b/drivers/clk/clk-composite.c index 199ca6eaa37..d2e5a1ae401 100644 --- a/drivers/clk/clk-composite.c +++ b/drivers/clk/clk-composite.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk-divider.c b/drivers/clk/clk-divider.c index aa210e3d15f..2ad682b8fe2 100644 --- a/drivers/clk/clk-divider.c +++ b/drivers/clk/clk-divider.c @@ -11,6 +11,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c index 068798cf9b0..2a446788e19 100644 --- a/drivers/clk/clk-fixed-factor.c +++ b/drivers/clk/clk-fixed-factor.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index bf1c6a93b46..cfd90b717e7 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -9,6 +9,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk.h> #include <log.h> #include <clk-uclass.h> diff --git a/drivers/clk/clk-hsdk-cgu.c b/drivers/clk/clk-hsdk-cgu.c index 53655059279..85074f1b86e 100644 --- a/drivers/clk/clk-hsdk-cgu.c +++ b/drivers/clk/clk-hsdk-cgu.c @@ -9,6 +9,7 @@ * warranty of any kind, whether express or implied. */ +#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/clk-mux.c b/drivers/clk/clk-mux.c index 39e01c3fbc6..f410518461e 100644 --- a/drivers/clk/clk-mux.c +++ b/drivers/clk/clk-mux.c @@ -23,6 +23,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk-uclass.c b/drivers/clk/clk-uclass.c index 4c832f1a530..ed6e60bc484 100644 --- a/drivers/clk/clk-uclass.c +++ b/drivers/clk/clk-uclass.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/clk-xlnx-clock-wizard.c b/drivers/clk/clk-xlnx-clock-wizard.c index 4a3f50c638b..a10a843f11f 100644 --- a/drivers/clk/clk-xlnx-clock-wizard.c +++ b/drivers/clk/clk-xlnx-clock-wizard.c @@ -7,6 +7,7 @@ * Author: Zhengxun Li <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index b8c2e8d531b..6ede1b4d4dc 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <log.h> diff --git a/drivers/clk/clk_bcm6345.c b/drivers/clk/clk_bcm6345.c index 0b41872b719..8c22ed2f43d 100644 --- a/drivers/clk/clk_bcm6345.c +++ b/drivers/clk/clk_bcm6345.c @@ -6,6 +6,7 @@ * Copyright (C) 2008 Maxime Bizon <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/clk_boston.c b/drivers/clk/clk_boston.c index 030ff7cc58e..4bcf9117551 100644 --- a/drivers/clk/clk_boston.c +++ b/drivers/clk/clk_boston.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Imagination Technologies */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clock/boston-clock.h> diff --git a/drivers/clk/clk_fixed_factor.c b/drivers/clk/clk_fixed_factor.c index 1d740cf49f6..6c1139e5c51 100644 --- a/drivers/clk/clk_fixed_factor.c +++ b/drivers/clk/clk_fixed_factor.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/clk_fixed_rate.c b/drivers/clk/clk_fixed_rate.c index d1da05cc18a..b5e78c70559 100644 --- a/drivers/clk/clk_fixed_rate.c +++ b/drivers/clk/clk_fixed_rate.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_k210.c b/drivers/clk/clk_k210.c index d1a6cde8f0f..7432ae8f064 100644 --- a/drivers/clk/clk_k210.c +++ b/drivers/clk/clk_k210.c @@ -4,6 +4,7 @@ */ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/clk_pic32.c b/drivers/clk/clk_pic32.c index 885aa834516..a77d0e7419c 100644 --- a/drivers/clk/clk_pic32.c +++ b/drivers/clk/clk_pic32.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/clk_sandbox.c b/drivers/clk/clk_sandbox.c index 8dd77f18d90..73d943f9e09 100644 --- a/drivers/clk/clk_sandbox.c +++ b/drivers/clk/clk_sandbox.c @@ -3,6 +3,7 @@ * (C) Copyright 2015 Google, Inc */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/clk_sandbox_ccf.c b/drivers/clk/clk_sandbox_ccf.c index f96a15c30b3..38184e27aa4 100644 --- a/drivers/clk/clk_sandbox_ccf.c +++ b/drivers/clk/clk_sandbox_ccf.c @@ -6,6 +6,7 @@ * Common Clock Framework [CCF] driver for Sandbox */ +#include <common.h> #include <dm.h> #include <clk.h> #include <malloc.h> diff --git a/drivers/clk/clk_sandbox_test.c b/drivers/clk/clk_sandbox_test.c index 87350212775..c224dc1d2cb 100644 --- a/drivers/clk/clk_sandbox_test.c +++ b/drivers/clk/clk_sandbox_test.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <clk.h> #include <malloc.h> diff --git a/drivers/clk/clk_scmi.c b/drivers/clk/clk_scmi.c index e42d2032d45..34a49363a51 100644 --- a/drivers/clk/clk_scmi.c +++ b/drivers/clk/clk_scmi.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <scmi_agent.h> diff --git a/drivers/clk/clk_versaclock.c b/drivers/clk/clk_versaclock.c index 9ccaf13d242..bbe72256032 100644 --- a/drivers/clk/clk_versaclock.c +++ b/drivers/clk/clk_versaclock.c @@ -5,6 +5,7 @@ * Derived from code Copyright (C) 2017 Marek Vasut <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/clk_versal.c b/drivers/clk/clk_versal.c index 35ee56d0693..42ab032bf7e 100644 --- a/drivers/clk/clk_versal.c +++ b/drivers/clk/clk_versal.c @@ -4,6 +4,7 @@ * Siva Durga Prasad Paladugu <[email protected]>> */ +#include <common.h> #include <log.h> #include <asm/cache.h> #include <asm/ptrace.h> diff --git a/drivers/clk/clk_vexpress_osc.c b/drivers/clk/clk_vexpress_osc.c index 2e0e7bbe68f..3b1e0208d47 100644 --- a/drivers/clk/clk_vexpress_osc.c +++ b/drivers/clk/clk_vexpress_osc.c @@ -5,6 +5,7 @@ * */ #define DEBUG +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_zynq.c b/drivers/clk/clk_zynq.c index b62b4646f4e..e3cefe2e0c7 100644 --- a/drivers/clk/clk_zynq.c +++ b/drivers/clk/clk_zynq.c @@ -7,6 +7,7 @@ * Copyright (C) 2013 Xilinx, Inc. All rights reserved. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/clk_zynqmp.c b/drivers/clk/clk_zynqmp.c index 59999266148..e23f7da3f92 100644 --- a/drivers/clk/clk_zynqmp.c +++ b/drivers/clk/clk_zynqmp.c @@ -5,6 +5,7 @@ * Copyright (C) 2016 Xilinx, Inc. */ +#include <common.h> #include <log.h> #include <malloc.h> #include <dm/device_compat.h> diff --git a/drivers/clk/exynos/clk-exynos7420.c b/drivers/clk/exynos/clk-exynos7420.c index 3aa751bf4e4..9caa932e12f 100644 --- a/drivers/clk/exynos/clk-exynos7420.c +++ b/drivers/clk/exynos/clk-exynos7420.c @@ -5,6 +5,7 @@ * Thomas Abraham <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/ics8n3qv01.c b/drivers/clk/ics8n3qv01.c index 9c61a84ea61..33fb6ed0c7a 100644 --- a/drivers/clk/ics8n3qv01.c +++ b/drivers/clk/ics8n3qv01.c @@ -9,6 +9,7 @@ * Dirk Eibach, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <clk-uclass.h> #include <i2c.h> diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c index 45f1bcaea28..494156751da 100644 --- a/drivers/clk/imx/clk-composite-8m.c +++ b/drivers/clk/imx/clk-composite-8m.c @@ -3,6 +3,7 @@ * Copyright 2019 NXP */ +#include <common.h> #include <log.h> #include <asm/io.h> #include <malloc.h> diff --git a/drivers/clk/imx/clk-composite-93.c b/drivers/clk/imx/clk-composite-93.c index 2cf20be2cca..6d71c0c03ff 100644 --- a/drivers/clk/imx/clk-composite-93.c +++ b/drivers/clk/imx/clk-composite-93.c @@ -4,6 +4,7 @@ * * Peng Fan <[email protected]> */ +#include <common.h> #include <log.h> #include <asm/io.h> #include <malloc.h> diff --git a/drivers/clk/imx/clk-fracn-gppll.c b/drivers/clk/imx/clk-fracn-gppll.c index 8f42a5cb1b7..9228f279e27 100644 --- a/drivers/clk/imx/clk-fracn-gppll.c +++ b/drivers/clk/imx/clk-fracn-gppll.c @@ -3,6 +3,7 @@ * Copyright 2021 NXP */ +#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-gate-93.c b/drivers/clk/imx/clk-gate-93.c index d7f2640fbb7..bc857413713 100644 --- a/drivers/clk/imx/clk-gate-93.c +++ b/drivers/clk/imx/clk-gate-93.c @@ -5,6 +5,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 65fa6b5b139..da272302377 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -14,6 +14,7 @@ * */ +#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-imx6q.c b/drivers/clk/imx/clk-imx6q.c index ba9923d8f6f..67825af89b8 100644 --- a/drivers/clk/imx/clk-imx6q.c +++ b/drivers/clk/imx/clk-imx6q.c @@ -4,6 +4,7 @@ * Lukasz Majewski, DENX Software Engineering, [email protected] */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8.c b/drivers/clk/imx/clk-imx8.c index 96cf5fece75..d39b87b2e24 100644 --- a/drivers/clk/imx/clk-imx8.c +++ b/drivers/clk/imx/clk-imx8.c @@ -4,6 +4,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8mm.c b/drivers/clk/imx/clk-imx8mm.c index 70e2e53bdea..1a00dd1d287 100644 --- a/drivers/clk/imx/clk-imx8mm.c +++ b/drivers/clk/imx/clk-imx8mm.c @@ -4,6 +4,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mn.c b/drivers/clk/imx/clk-imx8mn.c index ed9e16d7c18..457acb8a401 100644 --- a/drivers/clk/imx/clk-imx8mn.c +++ b/drivers/clk/imx/clk-imx8mn.c @@ -4,6 +4,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mp.c b/drivers/clk/imx/clk-imx8mp.c index 1f498b6ba4e..7dfc829df2c 100644 --- a/drivers/clk/imx/clk-imx8mp.c +++ b/drivers/clk/imx/clk-imx8mp.c @@ -4,6 +4,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8mq.c b/drivers/clk/imx/clk-imx8mq.c index ed4acd79ef7..cf197df96db 100644 --- a/drivers/clk/imx/clk-imx8mq.c +++ b/drivers/clk/imx/clk-imx8mq.c @@ -5,6 +5,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imx8qm.c b/drivers/clk/imx/clk-imx8qm.c index 62fed7e3e32..01e33de9d63 100644 --- a/drivers/clk/imx/clk-imx8qm.c +++ b/drivers/clk/imx/clk-imx8qm.c @@ -4,6 +4,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx8qxp.c b/drivers/clk/imx/clk-imx8qxp.c index 18bdc08971b..d900d4cd528 100644 --- a/drivers/clk/imx/clk-imx8qxp.c +++ b/drivers/clk/imx/clk-imx8qxp.c @@ -4,6 +4,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/imx/clk-imx93.c b/drivers/clk/imx/clk-imx93.c index ede36c412bf..f0cb797d975 100644 --- a/drivers/clk/imx/clk-imx93.c +++ b/drivers/clk/imx/clk-imx93.c @@ -3,6 +3,7 @@ * Copyright 2021 NXP. */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1020.c b/drivers/clk/imx/clk-imxrt1020.c index c80b02975aa..dc91ac5adbf 100644 --- a/drivers/clk/imx/clk-imxrt1020.c +++ b/drivers/clk/imx/clk-imxrt1020.c @@ -4,6 +4,7 @@ * Author(s): Giulio Benetti <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c index 754f3948427..d40635d17a4 100644 --- a/drivers/clk/imx/clk-imxrt1050.c +++ b/drivers/clk/imx/clk-imxrt1050.c @@ -4,6 +4,7 @@ * Author(s): Giulio Benetti <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-imxrt1170.c b/drivers/clk/imx/clk-imxrt1170.c index 20b9dc31500..077dd1bf02d 100644 --- a/drivers/clk/imx/clk-imxrt1170.c +++ b/drivers/clk/imx/clk-imxrt1170.c @@ -4,6 +4,7 @@ * Author(s): Jesse Taube <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/imx/clk-pfd.c b/drivers/clk/imx/clk-pfd.c index 378cdff072f..b8be3167c4c 100644 --- a/drivers/clk/imx/clk-pfd.c +++ b/drivers/clk/imx/clk-pfd.c @@ -14,6 +14,7 @@ * http://www.gnu.org/copyleft/gpl.html */ +#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c index 3911e033905..1cb685ee9ab 100644 --- a/drivers/clk/imx/clk-pll14xx.c +++ b/drivers/clk/imx/clk-pll14xx.c @@ -5,6 +5,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/imx/clk-pllv3.c b/drivers/clk/imx/clk-pllv3.c index c6692f2f9f5..fad306aeed2 100644 --- a/drivers/clk/imx/clk-pllv3.c +++ b/drivers/clk/imx/clk-pllv3.c @@ -4,6 +4,7 @@ * Lukasz Majewski, DENX Software Engineering, [email protected] */ +#include <common.h> #include <asm/io.h> #include <div64.h> #include <malloc.h> diff --git a/drivers/clk/intel/clk_intel.c b/drivers/clk/intel/clk_intel.c index a677a7caac7..46ccbb1d834 100644 --- a/drivers/clk/intel/clk_intel.c +++ b/drivers/clk/intel/clk_intel.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <clk-uclass.h> #include <dt-bindings/clock/intel-clock.h> diff --git a/drivers/clk/mediatek/clk-mt7622.c b/drivers/clk/mediatek/clk-mt7622.c index 2beb63030f2..259ea335959 100644 --- a/drivers/clk/mediatek/clk-mt7622.c +++ b/drivers/clk/mediatek/clk-mt7622.c @@ -6,6 +6,7 @@ * Author: Ryder Lee <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt7623.c b/drivers/clk/mediatek/clk-mt7623.c index 5072c9983c1..0c7411ee814 100644 --- a/drivers/clk/mediatek/clk-mt7623.c +++ b/drivers/clk/mediatek/clk-mt7623.c @@ -6,6 +6,7 @@ * Author: Ryder Lee <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt7629.c b/drivers/clk/mediatek/clk-mt7629.c index 0c796a1788a..31b6fa02251 100644 --- a/drivers/clk/mediatek/clk-mt7629.c +++ b/drivers/clk/mediatek/clk-mt7629.c @@ -6,6 +6,7 @@ * Author: Ryder Lee <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <asm/arch-mediatek/reset.h> diff --git a/drivers/clk/mediatek/clk-mt8183.c b/drivers/clk/mediatek/clk-mt8183.c index 9612a62e56a..17e653a1f00 100644 --- a/drivers/clk/mediatek/clk-mt8183.c +++ b/drivers/clk/mediatek/clk-mt8183.c @@ -8,6 +8,7 @@ * Author: Weiyi Lu <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8183-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8512.c b/drivers/clk/mediatek/clk-mt8512.c index ab270673442..193e069cb05 100644 --- a/drivers/clk/mediatek/clk-mt8512.c +++ b/drivers/clk/mediatek/clk-mt8512.c @@ -6,6 +6,7 @@ * Author: Chen Zhong <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8512-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8516.c b/drivers/clk/mediatek/clk-mt8516.c index 623f88499f1..29f70620e09 100644 --- a/drivers/clk/mediatek/clk-mt8516.c +++ b/drivers/clk/mediatek/clk-mt8516.c @@ -6,6 +6,7 @@ * Author: Fabien Parent <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8516-clk.h> diff --git a/drivers/clk/mediatek/clk-mt8518.c b/drivers/clk/mediatek/clk-mt8518.c index ba8cc584d46..23865148372 100644 --- a/drivers/clk/mediatek/clk-mt8518.c +++ b/drivers/clk/mediatek/clk-mt8518.c @@ -6,6 +6,7 @@ * Author: Chen Zhong <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/io.h> #include <dt-bindings/clock/mt8518-clk.h> diff --git a/drivers/clk/mediatek/clk-mtk.c b/drivers/clk/mediatek/clk-mtk.c index d2c45be30de..4303300d3a8 100644 --- a/drivers/clk/mediatek/clk-mtk.c +++ b/drivers/clk/mediatek/clk-mtk.c @@ -6,6 +6,7 @@ * Author: Ryder Lee <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/meson/a1.c b/drivers/clk/meson/a1.c index a1b8d791491..5220a337a8b 100644 --- a/drivers/clk/meson/a1.c +++ b/drivers/clk/meson/a1.c @@ -4,6 +4,7 @@ * Author: Igor Prusov <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/clk/meson/axg-ao.c b/drivers/clk/meson/axg-ao.c index 6ccf52127b0..311ffc1cca9 100644 --- a/drivers/clk/meson/axg-ao.c +++ b/drivers/clk/meson/axg-ao.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <log.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/meson/axg.c b/drivers/clk/meson/axg.c index c421a622a58..d6da59d269b 100644 --- a/drivers/clk/meson/axg.c +++ b/drivers/clk/meson/axg.c @@ -5,6 +5,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <log.h> #include <asm/arch/clock-axg.h> #include <asm/io.h> diff --git a/drivers/clk/meson/g12a-ao.c b/drivers/clk/meson/g12a-ao.c index 61d489c6e1c..1a855a68966 100644 --- a/drivers/clk/meson/g12a-ao.c +++ b/drivers/clk/meson/g12a-ao.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <log.h> #include <asm/io.h> #include <clk-uclass.h> diff --git a/drivers/clk/meson/g12a.c b/drivers/clk/meson/g12a.c index 5d7faaa3eab..e4fed8ddfb2 100644 --- a/drivers/clk/meson/g12a.c +++ b/drivers/clk/meson/g12a.c @@ -5,6 +5,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <log.h> #include <asm/arch/clock-g12a.h> #include <asm/io.h> diff --git a/drivers/clk/meson/gxbb.c b/drivers/clk/meson/gxbb.c index 72ad4fd0e85..e379540deee 100644 --- a/drivers/clk/meson/gxbb.c +++ b/drivers/clk/meson/gxbb.c @@ -5,6 +5,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <log.h> #include <asm/arch/clock-gx.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk.c b/drivers/clk/microchip/mpfs_clk.c index 0a82777ff74..08f8bfcecbe 100644 --- a/drivers/clk/microchip/mpfs_clk.c +++ b/drivers/clk/microchip/mpfs_clk.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Microchip Technology Inc. * Padmarao Begari <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/microchip/mpfs_clk_cfg.c b/drivers/clk/microchip/mpfs_clk_cfg.c index 5e8fb995289..5739fd66e8d 100644 --- a/drivers/clk/microchip/mpfs_clk_cfg.c +++ b/drivers/clk/microchip/mpfs_clk_cfg.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Microchip Technology Inc. * Padmarao Begari <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk_msspll.c b/drivers/clk/microchip/mpfs_clk_msspll.c index d0e7b1ff844..f37c0d86047 100644 --- a/drivers/clk/microchip/mpfs_clk_msspll.c +++ b/drivers/clk/microchip/mpfs_clk_msspll.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2022 Microchip Technology Inc. */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/microchip/mpfs_clk_periph.c b/drivers/clk/microchip/mpfs_clk_periph.c index 41c6df4fb97..ddeccb91457 100644 --- a/drivers/clk/microchip/mpfs_clk_periph.c +++ b/drivers/clk/microchip/mpfs_clk_periph.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Microchip Technology Inc. * Padmarao Begari <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <asm/io.h> diff --git a/drivers/clk/mpc83xx_clk.c b/drivers/clk/mpc83xx_clk.c index a29ad0d7a68..cc734450ef0 100644 --- a/drivers/clk/mpc83xx_clk.c +++ b/drivers/clk/mpc83xx_clk.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <clk-uclass.h> #include <clock_legacy.h> #include <command.h> diff --git a/drivers/clk/mtmips/clk-mt7628.c b/drivers/clk/mtmips/clk-mt7628.c index 2e263fb2cd2..4d3ac847d1d 100644 --- a/drivers/clk/mtmips/clk-mt7628.c +++ b/drivers/clk/mtmips/clk-mt7628.c @@ -5,6 +5,7 @@ * Author: Weijie Gao <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-bindings/clock/mt7628-clk.h> diff --git a/drivers/clk/mvebu/armada-37xx-periph.c b/drivers/clk/mvebu/armada-37xx-periph.c index 30330393f76..f5c9bd735c1 100644 --- a/drivers/clk/mvebu/armada-37xx-periph.c +++ b/drivers/clk/mvebu/armada-37xx-periph.c @@ -8,6 +8,7 @@ * Gregory CLEMENT <[email protected]> */ +#include <common.h> #include <malloc.h> #include <clk-uclass.h> #include <clk.h> diff --git a/drivers/clk/mvebu/armada-37xx-tbg.c b/drivers/clk/mvebu/armada-37xx-tbg.c index c1bab84c070..846a73cd6b3 100644 --- a/drivers/clk/mvebu/armada-37xx-tbg.c +++ b/drivers/clk/mvebu/armada-37xx-tbg.c @@ -8,6 +8,7 @@ * Gregory CLEMENT <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <clk.h> #include <dm.h> diff --git a/drivers/clk/owl/clk_owl.c b/drivers/clk/owl/clk_owl.c index 513112c1146..678fdd5a454 100644 --- a/drivers/clk/owl/clk_owl.c +++ b/drivers/clk/owl/clk_owl.c @@ -6,6 +6,7 @@ * Copyright (C) 2018 Manivannan Sadhasivam <[email protected]> */ +#include <common.h> #include <dm.h> #include "clk_owl.h" #include <asm/io.h> diff --git a/drivers/clk/qcom/clock-apq8016.c b/drivers/clk/qcom/clock-apq8016.c index 41fe4d896a7..d3b63b9c1ac 100644 --- a/drivers/clk/qcom/clock-apq8016.c +++ b/drivers/clk/qcom/clock-apq8016.c @@ -7,6 +7,7 @@ * Based on Little Kernel driver, simplified */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-apq8096.c b/drivers/clk/qcom/clock-apq8096.c index c77d69128b0..479f9771a46 100644 --- a/drivers/clk/qcom/clock-apq8096.c +++ b/drivers/clk/qcom/clock-apq8096.c @@ -7,6 +7,7 @@ * Based on Little Kernel driver, simplified */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-ipq4019.c b/drivers/clk/qcom/clock-ipq4019.c index 0e6d93b3d7c..72f235eab21 100644 --- a/drivers/clk/qcom/clock-ipq4019.c +++ b/drivers/clk/qcom/clock-ipq4019.c @@ -9,6 +9,7 @@ */ #include <clk-uclass.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <dt-bindings/clock/qcom,gcc-ipq4019.h> diff --git a/drivers/clk/qcom/clock-qcom.c b/drivers/clk/qcom/clock-qcom.c index 3a9cf2a231f..05e5ab7d094 100644 --- a/drivers/clk/qcom/clock-qcom.c +++ b/drivers/clk/qcom/clock-qcom.c @@ -12,6 +12,7 @@ * Based on Little Kernel driver, simplified */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/clk/qcom/clock-qcs404.c b/drivers/clk/qcom/clock-qcs404.c index 70a1f648e58..8a897a52bc0 100644 --- a/drivers/clk/qcom/clock-qcs404.c +++ b/drivers/clk/qcom/clock-qcs404.c @@ -5,6 +5,7 @@ * (C) Copyright 2022 Sumit Garg <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/qcom/clock-sdm845.c b/drivers/clk/qcom/clock-sdm845.c index f41f8c9e8de..782df7da844 100644 --- a/drivers/clk/qcom/clock-sdm845.c +++ b/drivers/clk/qcom/clock-sdm845.c @@ -8,6 +8,7 @@ * Based on Little Kernel driver, simplified */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <linux/delay.h> diff --git a/drivers/clk/rockchip/clk_pll.c b/drivers/clk/rockchip/clk_pll.c index 44c6f14618d..66f8bb16695 100644 --- a/drivers/clk/rockchip/clk_pll.c +++ b/drivers/clk/rockchip/clk_pll.c @@ -2,6 +2,7 @@ /* * (C) Copyright 2018-2019 Rockchip Electronics Co., Ltd */ + #include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c index d7825c66493..2875c152b20 100644 --- a/drivers/clk/rockchip/clk_px30.c +++ b/drivers/clk/rockchip/clk_px30.c @@ -3,6 +3,7 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3036.c b/drivers/clk/rockchip/clk_rk3036.c index 274428f2b4b..6238b14c29e 100644 --- a/drivers/clk/rockchip/clk_rk3036.c +++ b/drivers/clk/rockchip/clk_rk3036.c @@ -3,6 +3,7 @@ * (C) Copyright 2015 Google, Inc */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3066.c b/drivers/clk/rockchip/clk_rk3066.c index f7dea7859f7..f83335df6db 100644 --- a/drivers/clk/rockchip/clk_rk3066.c +++ b/drivers/clk/rockchip/clk_rk3066.c @@ -5,6 +5,7 @@ */ #include <bitfield.h> +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk3128.c b/drivers/clk/rockchip/clk_rk3128.c index a07285593b5..182754e7052 100644 --- a/drivers/clk/rockchip/clk_rk3128.c +++ b/drivers/clk/rockchip/clk_rk3128.c @@ -3,6 +3,7 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3188.c b/drivers/clk/rockchip/clk_rk3188.c index f569a100f22..f98b46a0f73 100644 --- a/drivers/clk/rockchip/clk_rk3188.c +++ b/drivers/clk/rockchip/clk_rk3188.c @@ -4,6 +4,7 @@ * (C) Copyright 2016 Heiko Stuebner <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk322x.c b/drivers/clk/rockchip/clk_rk322x.c index 9b71fd863ba..9371c4f63a4 100644 --- a/drivers/clk/rockchip/clk_rk322x.c +++ b/drivers/clk/rockchip/clk_rk322x.c @@ -3,6 +3,7 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/rockchip/clk_rk3288.c b/drivers/clk/rockchip/clk_rk3288.c index 432a79291c8..0b7eefad15f 100644 --- a/drivers/clk/rockchip/clk_rk3288.c +++ b/drivers/clk/rockchip/clk_rk3288.c @@ -3,6 +3,7 @@ * (C) Copyright 2015 Google, Inc */ +#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/rockchip/clk_rk3308.c b/drivers/clk/rockchip/clk_rk3308.c index e73bb6790af..861648321d4 100644 --- a/drivers/clk/rockchip/clk_rk3308.c +++ b/drivers/clk/rockchip/clk_rk3308.c @@ -2,6 +2,7 @@ /* * (C) Copyright 2017-2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3328.c b/drivers/clk/rockchip/clk_rk3328.c index 4b94d6364d1..314b903eaa0 100644 --- a/drivers/clk/rockchip/clk_rk3328.c +++ b/drivers/clk/rockchip/clk_rk3328.c @@ -3,6 +3,7 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> @@ -705,6 +706,9 @@ static ulong rk3328_clk_get_rate(struct clk *clk) case PCLK_HDMIPHY: rate = rk3328_hdmiphy_get_clk(priv->cru); break; + case SCLK_USB3OTG_REF: + rate = OSC_HZ; + break; default: return -ENOENT; } @@ -779,6 +783,7 @@ static ulong rk3328_clk_set_rate(struct clk *clk, ulong rate) case PCLK_DDR: case ACLK_GMAC: case PCLK_GMAC: + case SCLK_USB3OTG_REF: case SCLK_USB3OTG_SUSPEND: case USB480M: return 0; diff --git a/drivers/clk/rockchip/clk_rk3368.c b/drivers/clk/rockchip/clk_rk3368.c index d8943980521..1c5dfaa3800 100644 --- a/drivers/clk/rockchip/clk_rk3368.c +++ b/drivers/clk/rockchip/clk_rk3368.c @@ -5,6 +5,7 @@ * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/clk/rockchip/clk_rk3399.c b/drivers/clk/rockchip/clk_rk3399.c index cc414c38432..67b2c05ec9e 100644 --- a/drivers/clk/rockchip/clk_rk3399.c +++ b/drivers/clk/rockchip/clk_rk3399.c @@ -4,6 +4,7 @@ * (C) 2017 Theobroma Systems Design und Consulting GmbH */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dt-structs.h> @@ -925,6 +926,26 @@ static ulong rk3399_saradc_set_clk(struct rockchip_cru *cru, uint hz) return rk3399_saradc_get_clk(cru); } +static ulong rk3399_pciephy_get_clk(struct rockchip_cru *cru) +{ + if (readl(&cru->clksel_con[18]) & BIT(10)) + return 100 * MHz; + else + return OSC_HZ; +} + +static ulong rk3399_pciephy_set_clk(struct rockchip_cru *cru, uint hz) +{ + if (hz == 100 * MHz) + rk_setreg(&cru->clksel_con[18], BIT(10)); + else if (hz == OSC_HZ) + rk_clrreg(&cru->clksel_con[18], BIT(10)); + else + return -EINVAL; + + return rk3399_pciephy_get_clk(cru); +} + static ulong rk3399_clk_get_rate(struct clk *clk) { struct rk3399_clk_priv *priv = dev_get_priv(clk->dev); @@ -955,7 +976,9 @@ static ulong rk3399_clk_get_rate(struct clk *clk) case SCLK_UART1: case SCLK_UART2: case SCLK_UART3: - return 24000000; + case SCLK_USB3OTG0_REF: + case SCLK_USB3OTG1_REF: + return OSC_HZ; case PCLK_HDMI_CTRL: break; case DCLK_VOP0: @@ -966,10 +989,14 @@ static ulong rk3399_clk_get_rate(struct clk *clk) case SCLK_SARADC: rate = rk3399_saradc_get_clk(priv->cru); break; + case SCLK_PCIEPHY_REF: + rate = rk3399_pciephy_get_clk(priv->cru); + break; case ACLK_VIO: case ACLK_HDCP: case ACLK_GIC_PRE: case PCLK_DDR: + case ACLK_VDU: break; case PCLK_ALIVE: case PCLK_WDT: @@ -1048,7 +1075,7 @@ static ulong rk3399_clk_set_rate(struct clk *clk, ulong rate) * return 0 to satisfy clk_set_defaults during device probe. */ return 0; - case SCLK_DDRCLK: + case SCLK_DDRC: ret = rk3399_ddr_set_clk(priv->cru, rate); break; case PCLK_EFUSE1024NS: @@ -1056,10 +1083,14 @@ static ulong rk3399_clk_set_rate(struct clk *clk, ulong rate) case SCLK_SARADC: ret = rk3399_saradc_set_clk(priv->cru, rate); break; + case SCLK_PCIEPHY_REF: + ret = rk3399_pciephy_set_clk(priv->cru, rate); + break; case ACLK_VIO: case ACLK_HDCP: case ACLK_GIC_PRE: case PCLK_DDR: + case ACLK_VDU: return 0; default: log_debug("Unknown clock %lu\n", clk->id); @@ -1105,12 +1136,39 @@ static int __maybe_unused rk3399_gmac_set_parent(struct clk *clk, return -EINVAL; } +static int __maybe_unused rk3399_pciephy_set_parent(struct clk *clk, + struct clk *parent) +{ + struct rk3399_clk_priv *priv = dev_get_priv(clk->dev); + const char *clock_output_name; + int ret; + + if (parent->dev == clk->dev && parent->id == SCLK_PCIEPHY_REF100M) { + rk_setreg(&priv->cru->clksel_con[18], BIT(10)); + return 0; + } + + ret = dev_read_string_index(parent->dev, "clock-output-names", + parent->id, &clock_output_name); + if (ret < 0) + return -ENODATA; + + if (!strcmp(clock_output_name, "xin24m")) { + rk_clrreg(&priv->cru->clksel_con[18], BIT(10)); + return 0; + } + + return -EINVAL; +} + static int __maybe_unused rk3399_clk_set_parent(struct clk *clk, struct clk *parent) { switch (clk->id) { case SCLK_RMII_SRC: return rk3399_gmac_set_parent(clk, parent); + case SCLK_PCIEPHY_REF: + return rk3399_pciephy_set_parent(clk, parent); } debug("%s: unsupported clk %ld\n", __func__, clk->id); @@ -1201,7 +1259,8 @@ static int rk3399_clk_enable(struct clk *clk) rk_clrreg(&priv->cru->clkgate_con[13], BIT(7)); break; case SCLK_PCIEPHY_REF: - rk_clrreg(&priv->cru->clksel_con[18], BIT(10)); + if (readl(&priv->cru->clksel_con[18]) & BIT(10)) + rk_clrreg(&priv->cru->clkgate_con[12], BIT(6)); break; default: debug("%s: unsupported clk %ld\n", __func__, clk->id); @@ -1295,7 +1354,8 @@ static int rk3399_clk_disable(struct clk *clk) rk_setreg(&priv->cru->clkgate_con[13], BIT(7)); break; case SCLK_PCIEPHY_REF: - rk_clrreg(&priv->cru->clksel_con[18], BIT(10)); + if (readl(&priv->cru->clksel_con[18]) & BIT(10)) + rk_setreg(&priv->cru->clkgate_con[12], BIT(6)); break; default: debug("%s: unsupported clk %ld\n", __func__, clk->id); diff --git a/drivers/clk/rockchip/clk_rk3568.c b/drivers/clk/rockchip/clk_rk3568.c index 35563509d61..24eeca8bf26 100644 --- a/drivers/clk/rockchip/clk_rk3568.c +++ b/drivers/clk/rockchip/clk_rk3568.c @@ -4,6 +4,7 @@ * Author: Elaine Zhang <[email protected]> */ +#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c index ceae08a19aa..4c611a39049 100644 --- a/drivers/clk/rockchip/clk_rk3588.c +++ b/drivers/clk/rockchip/clk_rk3588.c @@ -4,6 +4,7 @@ * Author: Elaine Zhang <[email protected]> */ +#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rv1108.c b/drivers/clk/rockchip/clk_rv1108.c index 75202a66aa6..fc442f7eebe 100644 --- a/drivers/clk/rockchip/clk_rv1108.c +++ b/drivers/clk/rockchip/clk_rv1108.c @@ -4,6 +4,7 @@ * Author: Andy Yan <[email protected]> */ +#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/rockchip/clk_rv1126.c b/drivers/clk/rockchip/clk_rv1126.c index aeeea956914..cfdfcbdb0f4 100644 --- a/drivers/clk/rockchip/clk_rv1126.c +++ b/drivers/clk/rockchip/clk_rv1126.c @@ -5,6 +5,7 @@ * Author: Finley Xiao <[email protected]> */ +#include <common.h> #include <bitfield.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/sifive/sifive-prci.c b/drivers/clk/sifive/sifive-prci.c index 5ea86062800..c8fb6002907 100644 --- a/drivers/clk/sifive/sifive-prci.c +++ b/drivers/clk/sifive/sifive-prci.c @@ -22,6 +22,7 @@ * https://github.com/riscv/riscv-linux/commit/999529edf517ed75b56659d456d221b2ee56bb60 */ +#include <common.h> #include <clk-uclass.h> #include <clk.h> #include <dm.h> diff --git a/drivers/clk/starfive/clk-jh7110-pll.c b/drivers/clk/starfive/clk-jh7110-pll.c index 581035842fc..1568a1f4cd9 100644 --- a/drivers/clk/starfive/clk-jh7110-pll.c +++ b/drivers/clk/starfive/clk-jh7110-pll.c @@ -6,6 +6,7 @@ * Xingyu Wu <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <malloc.h> #include <clk-uclass.h> diff --git a/drivers/clk/starfive/clk-jh7110.c b/drivers/clk/starfive/clk-jh7110.c index 191da75d7ba..a38694809a0 100644 --- a/drivers/clk/starfive/clk-jh7110.c +++ b/drivers/clk/starfive/clk-jh7110.c @@ -6,6 +6,7 @@ * Xingyu Wu <[email protected]> */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <dm.h> diff --git a/drivers/clk/stm32/clk-stm32-core.c b/drivers/clk/stm32/clk-stm32-core.c index cad07cc952e..37e996e78f9 100644 --- a/drivers/clk/stm32/clk-stm32-core.c +++ b/drivers/clk/stm32/clk-stm32-core.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32f.c b/drivers/clk/stm32/clk-stm32f.c index fceb3c44b94..d68c75ed201 100644 --- a/drivers/clk/stm32/clk-stm32f.c +++ b/drivers/clk/stm32/clk-stm32f.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32h7.c b/drivers/clk/stm32/clk-stm32h7.c index a554eda504d..d440c28eb48 100644 --- a/drivers/clk/stm32/clk-stm32h7.c +++ b/drivers/clk/stm32/clk-stm32h7.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/stm32/clk-stm32mp1.c b/drivers/clk/stm32/clk-stm32mp1.c index 204ac170531..6f000c8e444 100644 --- a/drivers/clk/stm32/clk-stm32mp1.c +++ b/drivers/clk/stm32/clk-stm32mp1.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_CLK +#include <common.h> #include <clk-uclass.h> #include <div64.h> #include <dm.h> diff --git a/drivers/clk/stm32/clk-stm32mp13.c b/drivers/clk/stm32/clk-stm32mp13.c index 362dba10252..5174ae53a1a 100644 --- a/drivers/clk/stm32/clk-stm32mp13.c +++ b/drivers/clk/stm32/clk-stm32mp13.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_CLK #include <clk-uclass.h> +#include <common.h> #include <dm.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/clk/sunxi/clk_a10.c b/drivers/clk/sunxi/clk_a10.c index 19fe248044b..f27306fe33b 100644 --- a/drivers/clk/sunxi/clk_a10.c +++ b/drivers/clk/sunxi/clk_a10.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a10s.c b/drivers/clk/sunxi/clk_a10s.c index f771369c942..16ac589bb2b 100644 --- a/drivers/clk/sunxi/clk_a10s.c +++ b/drivers/clk/sunxi/clk_a10s.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a23.c b/drivers/clk/sunxi/clk_a23.c index fdee4347e99..45d5ba75bf5 100644 --- a/drivers/clk/sunxi/clk_a23.c +++ b/drivers/clk/sunxi/clk_a23.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a31.c b/drivers/clk/sunxi/clk_a31.c index 04f76a7c2a3..6ca800050ed 100644 --- a/drivers/clk/sunxi/clk_a31.c +++ b/drivers/clk/sunxi/clk_a31.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a64.c b/drivers/clk/sunxi/clk_a64.c index f1b01d25ddd..fd26cd4f5d6 100644 --- a/drivers/clk/sunxi/clk_a64.c +++ b/drivers/clk/sunxi/clk_a64.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a80.c b/drivers/clk/sunxi/clk_a80.c index 6751af8a803..c5834f44103 100644 --- a/drivers/clk/sunxi/clk_a80.c +++ b/drivers/clk/sunxi/clk_a80.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_a83t.c b/drivers/clk/sunxi/clk_a83t.c index d8621a3e64c..760d98cd620 100644 --- a/drivers/clk/sunxi/clk_a83t.c +++ b/drivers/clk/sunxi/clk_a83t.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_d1.c b/drivers/clk/sunxi/clk_d1.c index b990a118594..9dae761de83 100644 --- a/drivers/clk/sunxi/clk_d1.c +++ b/drivers/clk/sunxi/clk_d1.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Samuel Holland <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_f1c100s.c b/drivers/clk/sunxi/clk_f1c100s.c index e2295699201..7b4c3ce5176 100644 --- a/drivers/clk/sunxi/clk_f1c100s.c +++ b/drivers/clk/sunxi/clk_f1c100s.c @@ -3,6 +3,7 @@ * Copyright (C) 2019 George Hilliard <[email protected]>. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h3.c b/drivers/clk/sunxi/clk_h3.c index ce55caeb157..32bc95fccca 100644 --- a/drivers/clk/sunxi/clk_h3.c +++ b/drivers/clk/sunxi/clk_h3.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h6.c b/drivers/clk/sunxi/clk_h6.c index 1b7bd9dea2f..071fd581003 100644 --- a/drivers/clk/sunxi/clk_h6.c +++ b/drivers/clk/sunxi/clk_h6.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_h616.c b/drivers/clk/sunxi/clk_h616.c index b1e999e18c1..113dcff2851 100644 --- a/drivers/clk/sunxi/clk_h616.c +++ b/drivers/clk/sunxi/clk_h616.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Jernej Skrabec <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_r40.c b/drivers/clk/sunxi/clk_r40.c index 721debdae23..0fef6f3566d 100644 --- a/drivers/clk/sunxi/clk_r40.c +++ b/drivers/clk/sunxi/clk_r40.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_sunxi.c b/drivers/clk/sunxi/clk_sunxi.c index 2ef4f45dacf..1782cffc404 100644 --- a/drivers/clk/sunxi/clk_sunxi.c +++ b/drivers/clk/sunxi/clk_sunxi.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/sunxi/clk_v3s.c b/drivers/clk/sunxi/clk_v3s.c index 85410e282e8..6524c13540e 100644 --- a/drivers/clk/sunxi/clk_v3s.c +++ b/drivers/clk/sunxi/clk_v3s.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <errno.h> diff --git a/drivers/clk/tegra/tegra-car-clk.c b/drivers/clk/tegra/tegra-car-clk.c index 1d61f8dc378..c5214b9b3e2 100644 --- a/drivers/clk/tegra/tegra-car-clk.c +++ b/drivers/clk/tegra/tegra-car-clk.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/tegra/tegra186-clk.c b/drivers/clk/tegra/tegra186-clk.c index ec52326c3b3..5a98a3f3f0e 100644 --- a/drivers/clk/tegra/tegra186-clk.c +++ b/drivers/clk/tegra/tegra186-clk.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/clk/ti/clk-am3-dpll-x2.c b/drivers/clk/ti/clk-am3-dpll-x2.c index 1b0b9818cdd..3cf279d6a3a 100644 --- a/drivers/clk/ti/clk-am3-dpll-x2.c +++ b/drivers/clk/ti/clk-am3-dpll-x2.c @@ -7,6 +7,7 @@ * Loosely based on Linux kernel drivers/clk/ti/dpll.c */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/clk/ti/clk-am3-dpll.c b/drivers/clk/ti/clk-am3-dpll.c index 21ec01f8dd9..398a011a5ce 100644 --- a/drivers/clk/ti/clk-am3-dpll.c +++ b/drivers/clk/ti/clk-am3-dpll.c @@ -7,6 +7,7 @@ * Loosely based on Linux kernel drivers/clk/ti/dpll.c */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/ti/clk-ctrl.c b/drivers/clk/ti/clk-ctrl.c index c5c97dc35c4..8926e57ebc8 100644 --- a/drivers/clk/ti/clk-ctrl.c +++ b/drivers/clk/ti/clk-ctrl.c @@ -5,6 +5,7 @@ * Copyright (C) 2020 Dario Binacchi <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <clk-uclass.h> diff --git a/drivers/clk/ti/clk-divider.c b/drivers/clk/ti/clk-divider.c index 40a742d7fdc..15941f17811 100644 --- a/drivers/clk/ti/clk-divider.c +++ b/drivers/clk/ti/clk-divider.c @@ -7,6 +7,7 @@ * Loosely based on Linux kernel drivers/clk/ti/divider.c */ +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/clk/ti/clk-gate.c b/drivers/clk/ti/clk-gate.c index 873ceb8a2ab..eb15f6243f2 100644 --- a/drivers/clk/ti/clk-gate.c +++ b/drivers/clk/ti/clk-gate.c @@ -7,6 +7,7 @@ * Loosely based on Linux kernel drivers/clk/ti/gate.c */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <clk-uclass.h> diff --git a/drivers/clk/ti/clk-k3-pll.c b/drivers/clk/ti/clk-k3-pll.c index b3a1b4cedb7..8323e6e6919 100644 --- a/drivers/clk/ti/clk-k3-pll.c +++ b/drivers/clk/ti/clk-k3-pll.c @@ -6,6 +6,7 @@ * Tero Kristo <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <dm.h> #include <div64.h> diff --git a/drivers/clk/ti/clk-k3.c b/drivers/clk/ti/clk-k3.c index 41e5022ea0c..7aa162c2f70 100644 --- a/drivers/clk/ti/clk-k3.c +++ b/drivers/clk/ti/clk-k3.c @@ -6,6 +6,7 @@ * Tero Kristo <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <soc.h> diff --git a/drivers/clk/ti/clk-mux.c b/drivers/clk/ti/clk-mux.c index db539341431..215241b1613 100644 --- a/drivers/clk/ti/clk-mux.c +++ b/drivers/clk/ti/clk-mux.c @@ -7,6 +7,7 @@ * Based on Linux kernel drivers/clk/ti/mux.c */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <clk-uclass.h> diff --git a/drivers/clk/ti/clk-sci.c b/drivers/clk/ti/clk-sci.c index e374bd3bcc2..9e5760d3354 100644 --- a/drivers/clk/ti/clk-sci.c +++ b/drivers/clk/ti/clk-sci.c @@ -8,6 +8,7 @@ * Loosely based on Linux kernel sci-clk.c... */ +#include <common.h> #include <dm.h> #include <errno.h> #include <clk-uclass.h> diff --git a/drivers/clk/ti/clk.c b/drivers/clk/ti/clk.c index 28cd1512881..6e5cc90f0f8 100644 --- a/drivers/clk/ti/clk.c +++ b/drivers/clk/ti/clk.c @@ -5,6 +5,7 @@ * Copyright (C) 2020 Dario Binacchi <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <regmap.h> diff --git a/drivers/clk/ti/omap4-cm.c b/drivers/clk/ti/omap4-cm.c index a30ce9d09d2..3cdc9b28887 100644 --- a/drivers/clk/ti/omap4-cm.c +++ b/drivers/clk/ti/omap4-cm.c @@ -5,6 +5,7 @@ * Copyright (C) 2020 Dario Binacchi <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/clk/uniphier/clk-uniphier-core.c b/drivers/clk/uniphier/clk-uniphier-core.c index 33369c93916..c31e59641d9 100644 --- a/drivers/clk/uniphier/clk-uniphier-core.c +++ b/drivers/clk/uniphier/clk-uniphier-core.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/core/acpi.c b/drivers/core/acpi.c index 9f784228921..0ebd288ab42 100644 --- a/drivers/core/acpi.c +++ b/drivers/core/acpi.c @@ -8,6 +8,7 @@ #define LOG_CATEOGRY LOGC_ACPI +#include <common.h> #include <display_options.h> #include <dm.h> #include <log.h> diff --git a/drivers/core/device-remove.c b/drivers/core/device-remove.c index 437080ed778..a86b9325dd8 100644 --- a/drivers/core/device-remove.c +++ b/drivers/core/device-remove.c @@ -10,6 +10,7 @@ #define LOG_CATEGORY LOGC_DM +#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/core/device.c b/drivers/core/device.c index 18e2bd02dd5..bf7f261cbce 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -8,8 +8,8 @@ * Pavel Herrmann <[email protected]> */ +#include <common.h> #include <cpu_func.h> -#include <errno.h> #include <event.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/core/devres.c b/drivers/core/devres.c index 8df08b91021..78914bdf7f2 100644 --- a/drivers/core/devres.c +++ b/drivers/core/devres.c @@ -9,6 +9,7 @@ #define LOG_CATEGORY LOGC_DEVRES +#include <common.h> #include <log.h> #include <malloc.h> #include <linux/compat.h> diff --git a/drivers/core/dump.c b/drivers/core/dump.c index 5ec30d5b3c1..841124830ee 100644 --- a/drivers/core/dump.c +++ b/drivers/core/dump.c @@ -3,6 +3,7 @@ * Copyright (c) 2015 Google, Inc */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <mapmem.h> diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c index 6be8ea0c0a9..5f27d251148 100644 --- a/drivers/core/fdtaddr.c +++ b/drivers/core/fdtaddr.c @@ -8,6 +8,7 @@ * Pavel Herrmann <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdt_support.h> #include <log.h> diff --git a/drivers/core/lists.c b/drivers/core/lists.c index 2839a9b7371..8034a8f48d9 100644 --- a/drivers/core/lists.c +++ b/drivers/core/lists.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY LOGC_DM +#include <common.h> #include <errno.h> #include <log.h> #include <dm/device.h> diff --git a/drivers/core/of_access.c b/drivers/core/of_access.c index 41f2e09b9c2..c8db743f529 100644 --- a/drivers/core/of_access.c +++ b/drivers/core/of_access.c @@ -19,6 +19,7 @@ * Linux version. */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/core/of_addr.c b/drivers/core/of_addr.c index d7913ab3d2f..b3b3d7ccdd5 100644 --- a/drivers/core/of_addr.c +++ b/drivers/core/of_addr.c @@ -6,6 +6,7 @@ * Copyright (c) 2017 Google, Inc */ +#include <common.h> #include <log.h> #include <linux/bug.h> #include <linux/libfdt.h> diff --git a/drivers/core/of_extra.c b/drivers/core/of_extra.c index a3ebe9e9c24..59ce9174ad0 100644 --- a/drivers/core/of_extra.c +++ b/drivers/core/of_extra.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <log.h> #include <linux/libfdt.h> #include <dm/of_access.h> diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index 9a5eaaa4d13..21a233f90f0 100644 --- a/drivers/core/ofnode.c +++ b/drivers/core/ofnode.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY LOGC_DT +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> diff --git a/drivers/core/read.c b/drivers/core/read.c index 55c19f335ae..1a4a95cddea 100644 --- a/drivers/core/read.c +++ b/drivers/core/read.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/of_access.h> #include <mapmem.h> diff --git a/drivers/core/read_extra.c b/drivers/core/read_extra.c index 5a0153a4661..51383488278 100644 --- a/drivers/core/read_extra.c +++ b/drivers/core/read_extra.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/of_addr.h> #include <dm/read.h> diff --git a/drivers/core/regmap.c b/drivers/core/regmap.c index 7ff7834bdf0..dd32328098c 100644 --- a/drivers/core/regmap.c +++ b/drivers/core/regmap.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY LOGC_DM +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/core/root.c b/drivers/core/root.c index 4bfd08f4813..d4ae652bcfb 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_ROOT +#include <common.h> #include <errno.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/core/simple-bus.c b/drivers/core/simple-bus.c index f402bb5d674..6022e7514e0 100644 --- a/drivers/core/simple-bus.c +++ b/drivers/core/simple-bus.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SIMPLE_BUS +#include <common.h> #include <asm/global_data.h> #include <dm.h> #include <dm/simple_bus.h> diff --git a/drivers/core/simple-pm-bus.c b/drivers/core/simple-pm-bus.c index f38372ec60b..1bb0d86e289 100644 --- a/drivers/core/simple-pm-bus.c +++ b/drivers/core/simple-pm-bus.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Sean Anderson <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> diff --git a/drivers/core/syscon-uclass.c b/drivers/core/syscon-uclass.c index f0e69d7216b..a47b8bd3c01 100644 --- a/drivers/core/syscon-uclass.c +++ b/drivers/core/syscon-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SYSCON +#include <common.h> #include <log.h> #include <syscon.h> #include <dm.h> diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index 762536eebc6..e46d5717aa6 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY LOGC_DM +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/core/util.c b/drivers/core/util.c index 108a3bc4dac..81497df85ff 100644 --- a/drivers/core/util.c +++ b/drivers/core/util.c @@ -3,6 +3,7 @@ * Copyright (c) 2013 Google, Inc */ +#include <common.h> #include <dm/device.h> #include <dm/ofnode.h> #include <dm/read.h> diff --git a/drivers/cpu/at91_cpu.c b/drivers/cpu/at91_cpu.c index b45cc6ca1a9..34a3f61c7e9 100644 --- a/drivers/cpu/at91_cpu.c +++ b/drivers/cpu/at91_cpu.c @@ -5,6 +5,7 @@ * Author: Claudiu Beznea <[email protected]> */ +#include <common.h> #include <cpu.h> #include <dm.h> #include <div64.h> diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c index db624ee47fb..3dd04fa8858 100644 --- a/drivers/cpu/bmips_cpu.c +++ b/drivers/cpu/bmips_cpu.c @@ -7,6 +7,7 @@ * Copyright (C) 2009 Florian Fainelli <[email protected]> */ +#include <common.h> #include <cpu.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index 16f8f2e5219..9772578968b 100644 --- a/drivers/cpu/cpu-uclass.c +++ b/drivers/cpu/cpu-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_CPU +#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h> diff --git a/drivers/cpu/cpu_sandbox.c b/drivers/cpu/cpu_sandbox.c index e65e1bdc51b..2e871fe313c 100644 --- a/drivers/cpu/cpu_sandbox.c +++ b/drivers/cpu/cpu_sandbox.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <cpu.h> diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 4781a565547..98ff95f5ff5 100644 --- a/drivers/cpu/imx8_cpu.c +++ b/drivers/cpu/imx8_cpu.c @@ -3,6 +3,7 @@ * Copyright 2019 NXP */ +#include <common.h> #include <cpu.h> #include <dm.h> #include <thermal.h> diff --git a/drivers/cpu/microblaze_cpu.c b/drivers/cpu/microblaze_cpu.c index 4e24ada4002..a229f6913b0 100644 --- a/drivers/cpu/microblaze_cpu.c +++ b/drivers/cpu/microblaze_cpu.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2022, Ovidiu Panait <[email protected]> */ +#include <common.h> #include <cpu.h> #include <dm.h> #include <asm/cpuinfo.h> diff --git a/drivers/cpu/mpc83xx_cpu.c b/drivers/cpu/mpc83xx_cpu.c index 9a7b5fd7c42..e451c11116a 100644 --- a/drivers/cpu/mpc83xx_cpu.c +++ b/drivers/cpu/mpc83xx_cpu.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <bitfield.h> #include <clk.h> #include <cpu.h> diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c index 4f2958a23ce..d39a943cb84 100644 --- a/drivers/cpu/riscv_cpu.c +++ b/drivers/cpu/riscv_cpu.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h> @@ -23,7 +24,7 @@ static int riscv_cpu_get_desc(const struct udevice *dev, char *buf, int size) const char *cpu; cpu = dev_read_string(dev, "compatible"); - if (size < (strlen(cpu) + 1)) + if (!cpu || size < (strlen(cpu) + 1)) return -ENOSPC; strcpy(buf, cpu); diff --git a/drivers/crypto/ace_sha.c b/drivers/crypto/ace_sha.c index 0e43e82fc5f..261d3efe84e 100644 --- a/drivers/crypto/ace_sha.c +++ b/drivers/crypto/ace_sha.c @@ -3,12 +3,10 @@ * Advanced Crypto Engine - SHA Firmware * Copyright (c) 2012 Samsung Electronics */ - -#include <config.h> +#include <common.h> #include "ace_sha.h" #include <log.h> #include <rand.h> -#include <linux/string.h> #ifdef CONFIG_SHA_HW_ACCEL #include <u-boot/sha256.h> diff --git a/drivers/crypto/ace_sha.h b/drivers/crypto/ace_sha.h index efc791a4def..ad9e81a586c 100644 --- a/drivers/crypto/ace_sha.h +++ b/drivers/crypto/ace_sha.h @@ -8,8 +8,6 @@ #ifndef __ACE_SHA_H #define __ACE_SHA_H -#include <linux/types.h> - struct exynos_ace_sfr { unsigned int fc_intstat; /* base + 0 */ unsigned int fc_intenset; diff --git a/drivers/crypto/aspeed/aspeed_acry.c b/drivers/crypto/aspeed/aspeed_acry.c index e3f81ebd5c7..47a007f633a 100644 --- a/drivers/crypto/aspeed/aspeed_acry.c +++ b/drivers/crypto/aspeed/aspeed_acry.c @@ -3,6 +3,7 @@ * Copyright 2021 ASPEED Technology Inc. */ #include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <asm/types.h> diff --git a/drivers/crypto/aspeed/aspeed_hace.c b/drivers/crypto/aspeed/aspeed_hace.c index 17cc30a7b54..6b6c8fa6588 100644 --- a/drivers/crypto/aspeed/aspeed_hace.c +++ b/drivers/crypto/aspeed/aspeed_hace.c @@ -3,6 +3,7 @@ * Copyright 2021 ASPEED Technology Inc. */ #include <config.h> +#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/crypto/fsl/dcp_rng.c b/drivers/crypto/fsl/dcp_rng.c index 6b19c171fcd..31706960157 100644 --- a/drivers/crypto/fsl/dcp_rng.c +++ b/drivers/crypto/fsl/dcp_rng.c @@ -7,6 +7,7 @@ * Based on RNGC driver in drivers/char/hw_random/imx-rngc.c in Linux */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <rng.h> diff --git a/drivers/crypto/fsl/error.c b/drivers/crypto/fsl/error.c index 7b232d94c2a..c76574919c7 100644 --- a/drivers/crypto/fsl/error.c +++ b/drivers/crypto/fsl/error.c @@ -7,9 +7,9 @@ * Derived from error.c file in linux drivers/crypto/caam */ +#include <common.h> #include <log.h> #include <malloc.h> -#include <vsprintf.h> #include "desc.h" #include "jr.h" diff --git a/drivers/crypto/fsl/fsl_blob.c b/drivers/crypto/fsl/fsl_blob.c index 0ecd6befd25..9b6e4bca062 100644 --- a/drivers/crypto/fsl/fsl_blob.c +++ b/drivers/crypto/fsl/fsl_blob.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/crypto/fsl/fsl_hash.c b/drivers/crypto/fsl/fsl_hash.c index 79b32e2627c..f22f24b6077 100644 --- a/drivers/crypto/fsl/fsl_hash.c +++ b/drivers/crypto/fsl/fsl_hash.c @@ -4,6 +4,7 @@ * Copyright 2021 NXP */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/crypto/fsl/fsl_mfgprot.c b/drivers/crypto/fsl/fsl_mfgprot.c index 7c22f8e012b..29af79f577d 100644 --- a/drivers/crypto/fsl/fsl_mfgprot.c +++ b/drivers/crypto/fsl/fsl_mfgprot.c @@ -4,6 +4,7 @@ * Copyright 2017 NXP */ +#include <common.h> #include <errno.h> #include <fsl_sec.h> #include <memalign.h> diff --git a/drivers/crypto/fsl/fsl_rsa.c b/drivers/crypto/fsl/fsl_rsa.c index 125a72ae6d3..335b7fe25ac 100644 --- a/drivers/crypto/fsl/fsl_rsa.c +++ b/drivers/crypto/fsl/fsl_rsa.c @@ -5,6 +5,7 @@ */ #include <config.h> +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/crypto/fsl/jobdesc.c b/drivers/crypto/fsl/jobdesc.c index 55191736931..d32c1fe5c31 100644 --- a/drivers/crypto/fsl/jobdesc.c +++ b/drivers/crypto/fsl/jobdesc.c @@ -8,7 +8,7 @@ * */ -#include <config.h> +#include <common.h> #include <cpu_func.h> #include <fsl_sec.h> #include "desc_constr.h" diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index 27e24808946..8ae5c434bdb 100644 --- a/drivers/crypto/fsl/jr.c +++ b/drivers/crypto/fsl/jr.c @@ -6,7 +6,7 @@ * Based on CAAM driver in drivers/crypto/caam in Linux */ -#include <config.h> +#include <common.h> #include <cpu_func.h> #include <linux/kernel.h> #include <log.h> diff --git a/drivers/crypto/fsl/rng.c b/drivers/crypto/fsl/rng.c index 786a710f5fb..06364948052 100644 --- a/drivers/crypto/fsl/rng.c +++ b/drivers/crypto/fsl/rng.c @@ -7,6 +7,7 @@ */ #include <asm/cache.h> +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <rng.h> diff --git a/drivers/crypto/fsl/sec.c b/drivers/crypto/fsl/sec.c index e9c39ddcfd9..9de30a6112f 100644 --- a/drivers/crypto/fsl/sec.c +++ b/drivers/crypto/fsl/sec.c @@ -3,7 +3,7 @@ * Copyright 2014 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <linux/libfdt.h> #include <fdt_support.h> #if CONFIG_SYS_FSL_SEC_COMPAT == 2 || CONFIG_SYS_FSL_SEC_COMPAT >= 4 diff --git a/drivers/crypto/hash/hash-uclass.c b/drivers/crypto/hash/hash-uclass.c index 5d9f1e0d59b..446eb9e56a4 100644 --- a/drivers/crypto/hash/hash-uclass.c +++ b/drivers/crypto/hash/hash-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_HASH +#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <u-boot/hash.h> diff --git a/drivers/crypto/hash/hash_sw.c b/drivers/crypto/hash/hash_sw.c index ffd4ab149ff..d8065d68ea4 100644 --- a/drivers/crypto/hash/hash_sw.c +++ b/drivers/crypto/hash/hash_sw.c @@ -4,6 +4,7 @@ * Author: ChiaWei Wang <[email protected]> */ #include <config.h> +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/crypto/nuvoton/npcm_aes.c b/drivers/crypto/nuvoton/npcm_aes.c index 8d3a30ea918..6493ea108ec 100644 --- a/drivers/crypto/nuvoton/npcm_aes.c +++ b/drivers/crypto/nuvoton/npcm_aes.c @@ -3,13 +3,13 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <uboot_aes.h> #include <asm/io.h> #include <asm/arch/aes.h> #include <asm/arch/otp.h> #include <malloc.h> -#include <time.h> #define ONE_SECOND 0xC00000 diff --git a/drivers/crypto/nuvoton/npcm_sha.c b/drivers/crypto/nuvoton/npcm_sha.c index 6da162069aa..2a5e6726880 100644 --- a/drivers/crypto/nuvoton/npcm_sha.c +++ b/drivers/crypto/nuvoton/npcm_sha.c @@ -3,6 +3,7 @@ * Copyright (c) 2024 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <hash.h> #include <malloc.h> diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c index 4f59adc09c9..7bed444c3fb 100644 --- a/drivers/crypto/rsa_mod_exp/mod_exp_sw.c +++ b/drivers/crypto/rsa_mod_exp/mod_exp_sw.c @@ -5,6 +5,7 @@ */ #include <config.h> +#include <common.h> #include <dm.h> #include <log.h> #include <u-boot/rsa-mod-exp.h> diff --git a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c index 107500dd6e0..057cc74b10b 100644 --- a/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c +++ b/drivers/crypto/rsa_mod_exp/mod_exp_uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_MOD_EXP +#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <u-boot/rsa-mod-exp.h> diff --git a/drivers/ddr/altera/sdram_agilex.c b/drivers/ddr/altera/sdram_agilex.c index 7f2cccb6af2..65ecdd022c4 100644 --- a/drivers/ddr/altera/sdram_agilex.c +++ b/drivers/ddr/altera/sdram_agilex.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <div64.h> diff --git a/drivers/ddr/altera/sdram_arria10.c b/drivers/ddr/altera/sdram_arria10.c index bd2af94bb0d..8ef5fa4c481 100644 --- a/drivers/ddr/altera/sdram_arria10.c +++ b/drivers/ddr/altera/sdram_arria10.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Intel Corporation <www.intel.com> */ +#include <common.h> #include <cpu_func.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/ddr/altera/sdram_gen5.c b/drivers/ddr/altera/sdram_gen5.c index 46c53e7c7a3..34d2a2789cc 100644 --- a/drivers/ddr/altera/sdram_gen5.c +++ b/drivers/ddr/altera/sdram_gen5.c @@ -2,6 +2,7 @@ /* * Copyright Altera Corporation (C) 2014-2015 */ +#include <common.h> #include <dm.h> #include <errno.h> #include <div64.h> diff --git a/drivers/ddr/altera/sdram_n5x.c b/drivers/ddr/altera/sdram_n5x.c index db09986f64b..d9039443b91 100644 --- a/drivers/ddr/altera/sdram_n5x.c +++ b/drivers/ddr/altera/sdram_n5x.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/ddr/altera/sdram_s10.c b/drivers/ddr/altera/sdram_s10.c index 4ac4c79e0ac..4d36fb45332 100644 --- a/drivers/ddr/altera/sdram_s10.c +++ b/drivers/ddr/altera/sdram_s10.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ddr/altera/sdram_soc64.c b/drivers/ddr/altera/sdram_soc64.c index 9e57c2ecfa4..4716abfc9a8 100644 --- a/drivers/ddr/altera/sdram_soc64.c +++ b/drivers/ddr/altera/sdram_soc64.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c index 7636e71a0a6..e402f2929ab 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -3,8 +3,8 @@ * Copyright Altera Corporation (C) 2012-2015 */ +#include <common.h> #include <log.h> -#include <linux/string.h> #include <asm/io.h> #include <asm/arch/sdram.h> #include <errno.h> diff --git a/drivers/ddr/altera/sequencer.h b/drivers/ddr/altera/sequencer.h index 618ba00da64..c72a683ffef 100644 --- a/drivers/ddr/altera/sequencer.h +++ b/drivers/ddr/altera/sequencer.h @@ -6,8 +6,6 @@ #ifndef _SEQUENCER_H_ #define _SEQUENCER_H_ -#include <config.h> - #define RW_MGR_NUM_DM_PER_WRITE_GROUP (seq->rwcfg->mem_data_mask_width \ / seq->rwcfg->mem_if_write_dqs_width) #define RW_MGR_NUM_TRUE_DM_PER_WRITE_GROUP ( \ diff --git a/drivers/ddr/fsl/arm_ddr_gen3.c b/drivers/ddr/fsl/arm_ddr_gen3.c index 9f9aea804d9..9dada5e1175 100644 --- a/drivers/ddr/fsl/arm_ddr_gen3.c +++ b/drivers/ddr/fsl/arm_ddr_gen3.c @@ -5,7 +5,7 @@ * Derived from mpc85xx_ddr_gen3.c, removed all workarounds */ -#include <config.h> +#include <common.h> #include <log.h> #include <asm/io.h> #include <fsl_ddr_sdram.h> diff --git a/drivers/ddr/fsl/ctrl_regs.c b/drivers/ddr/fsl/ctrl_regs.c index 9a25192c079..8f8c2c864c3 100644 --- a/drivers/ddr/fsl/ctrl_regs.c +++ b/drivers/ddr/fsl/ctrl_regs.c @@ -10,13 +10,12 @@ * Author: James Yang [at freescale.com] */ -#include <config.h> +#include <common.h> #include <fsl_ddr_sdram.h> #include <fsl_errata.h> #include <fsl_ddr.h> #include <fsl_immap.h> #include <log.h> -#include <linux/string.h> #include <asm/bitops.h> #include <asm/io.h> #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \ diff --git a/drivers/ddr/fsl/ddr1_dimm_params.c b/drivers/ddr/fsl/ddr1_dimm_params.c index cc87a95214d..e5481eaa0dd 100644 --- a/drivers/ddr/fsl/ddr1_dimm_params.c +++ b/drivers/ddr/fsl/ddr1_dimm_params.c @@ -3,6 +3,7 @@ * Copyright 2008 Freescale Semiconductor, Inc. */ +#include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> #include <asm/bitops.h> diff --git a/drivers/ddr/fsl/ddr2_dimm_params.c b/drivers/ddr/fsl/ddr2_dimm_params.c index 5674685a191..3b78118a9d8 100644 --- a/drivers/ddr/fsl/ddr2_dimm_params.c +++ b/drivers/ddr/fsl/ddr2_dimm_params.c @@ -3,9 +3,9 @@ * Copyright 2008 Freescale Semiconductor, Inc. */ +#include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> -#include <linux/string.h> #include <asm/bitops.h> #include <fsl_ddr.h> diff --git a/drivers/ddr/fsl/ddr3_dimm_params.c b/drivers/ddr/fsl/ddr3_dimm_params.c index c30ecdaafaf..1f8db90c45b 100644 --- a/drivers/ddr/fsl/ddr3_dimm_params.c +++ b/drivers/ddr/fsl/ddr3_dimm_params.c @@ -8,7 +8,7 @@ * JEDEC standard No.21-C 4_01_02_11R18.pdf */ -#include <linux/string.h> +#include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> diff --git a/drivers/ddr/fsl/ddr4_dimm_params.c b/drivers/ddr/fsl/ddr4_dimm_params.c index 75e3bfe08be..ea791622628 100644 --- a/drivers/ddr/fsl/ddr4_dimm_params.c +++ b/drivers/ddr/fsl/ddr4_dimm_params.c @@ -10,10 +10,10 @@ * */ +#include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> #include <linux/bug.h> -#include <linux/string.h> #include <fsl_ddr.h> diff --git a/drivers/ddr/fsl/fsl_ddr_gen4.c b/drivers/ddr/fsl/fsl_ddr_gen4.c index 31c58d9a8e3..f8d1468a26f 100644 --- a/drivers/ddr/fsl/fsl_ddr_gen4.c +++ b/drivers/ddr/fsl/fsl_ddr_gen4.c @@ -4,7 +4,7 @@ * Copyright 2021 NXP */ -#include <config.h> +#include <common.h> #include <env.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/ddr/fsl/fsl_mmdc.c b/drivers/ddr/fsl/fsl_mmdc.c index 7812b1b01ca..28f2219b2a4 100644 --- a/drivers/ddr/fsl/fsl_mmdc.c +++ b/drivers/ddr/fsl/fsl_mmdc.c @@ -7,7 +7,7 @@ * Generic driver for Freescale MMDC(Multi Mode DDR Controller). */ -#include <config.h> +#include <common.h> #include <fsl_mmdc.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/ddr/fsl/interactive.c b/drivers/ddr/fsl/interactive.c index 94a5e447d56..eb2f06e8300 100644 --- a/drivers/ddr/fsl/interactive.c +++ b/drivers/ddr/fsl/interactive.c @@ -11,11 +11,11 @@ * York Sun [at freescale.com] */ +#include <common.h> #include <cli.h> #include <command.h> #include <env.h> #include <log.h> -#include <vsprintf.h> #include <asm/bitops.h> #include <linux/ctype.h> #include <asm/types.h> diff --git a/drivers/ddr/fsl/lc_common_dimm_params.c b/drivers/ddr/fsl/lc_common_dimm_params.c index aaf9800b372..5e4ad56f071 100644 --- a/drivers/ddr/fsl/lc_common_dimm_params.c +++ b/drivers/ddr/fsl/lc_common_dimm_params.c @@ -4,6 +4,7 @@ * Copyright 2017-2021 NXP Semiconductor */ +#include <common.h> #include <fsl_ddr_sdram.h> #include <log.h> #include <asm/bitops.h> diff --git a/drivers/ddr/fsl/main.c b/drivers/ddr/fsl/main.c index 31091bb4495..cd332718b64 100644 --- a/drivers/ddr/fsl/main.c +++ b/drivers/ddr/fsl/main.c @@ -10,7 +10,7 @@ * Author: James Yang [at freescale.com] */ -#include <config.h> +#include <common.h> #include <display_options.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen1.c b/drivers/ddr/fsl/mpc85xx_ddr_gen1.c index a8520754006..16186bdbae7 100644 --- a/drivers/ddr/fsl/mpc85xx_ddr_gen1.c +++ b/drivers/ddr/fsl/mpc85xx_ddr_gen1.c @@ -3,7 +3,7 @@ * Copyright 2008 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <log.h> #include <asm/io.h> #include <fsl_ddr_sdram.h> diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen2.c b/drivers/ddr/fsl/mpc85xx_ddr_gen2.c index 00b4b376dd4..b830e7cbd14 100644 --- a/drivers/ddr/fsl/mpc85xx_ddr_gen2.c +++ b/drivers/ddr/fsl/mpc85xx_ddr_gen2.c @@ -3,9 +3,9 @@ * Copyright 2008-2011 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <asm/io.h> -#include <asm/ppc.h> +#include <asm/processor.h> #include <fsl_ddr_sdram.h> #include <linux/delay.h> diff --git a/drivers/ddr/fsl/mpc85xx_ddr_gen3.c b/drivers/ddr/fsl/mpc85xx_ddr_gen3.c index b0a61fa2b41..1c4a1cae4df 100644 --- a/drivers/ddr/fsl/mpc85xx_ddr_gen3.c +++ b/drivers/ddr/fsl/mpc85xx_ddr_gen3.c @@ -3,10 +3,9 @@ * Copyright 2008-2020 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <log.h> #include <asm/io.h> -#include <asm/ppc.h> #include <fsl_ddr_sdram.h> #include <asm/processor.h> #include <linux/delay.h> diff --git a/drivers/ddr/fsl/options.c b/drivers/ddr/fsl/options.c index 852a5d0eca4..7cff8234584 100644 --- a/drivers/ddr/fsl/options.c +++ b/drivers/ddr/fsl/options.c @@ -4,19 +4,16 @@ * Copyright 2017-2018 NXP Semiconductor */ -#include <config.h> +#include <common.h> #include <env.h> #include <hwconfig.h> #include <fsl_ddr_sdram.h> #include <log.h> -#include <vsprintf.h> #include <fsl_ddr.h> #if defined(CONFIG_FSL_LSCH2) || defined(CONFIG_FSL_LSCH3) || \ defined(CONFIG_ARM) #include <asm/arch/clock.h> -#else -#include <asm/ppc.h> #endif /* diff --git a/drivers/ddr/fsl/util.c b/drivers/ddr/fsl/util.c index 0a73170e418..60051392e71 100644 --- a/drivers/ddr/fsl/util.c +++ b/drivers/ddr/fsl/util.c @@ -4,10 +4,9 @@ * Copyright 2021 NXP */ -#include <config.h> +#include <common.h> #ifdef CONFIG_PPC #include <asm/fsl_law.h> -#include <asm/ppc.h> #endif #include <div64.h> #include <linux/delay.h> diff --git a/drivers/ddr/imx/imx8m/ddr_init.c b/drivers/ddr/imx/imx8m/ddr_init.c index e9209ce8b61..52a4aa63230 100644 --- a/drivers/ddr/imx/imx8m/ddr_init.c +++ b/drivers/ddr/imx/imx8m/ddr_init.c @@ -3,6 +3,7 @@ * Copyright 2018-2019 NXP */ +#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/ddr/imx/imx8ulp/ddr_init.c b/drivers/ddr/imx/imx8ulp/ddr_init.c index 172e260a55d..c362a2da338 100644 --- a/drivers/ddr/imx/imx8ulp/ddr_init.c +++ b/drivers/ddr/imx/imx8ulp/ddr_init.c @@ -2,6 +2,7 @@ /* * Copyright 2021 NXP */ +#include <common.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/ddr.h> diff --git a/drivers/ddr/imx/imx9/ddr_init.c b/drivers/ddr/imx/imx9/ddr_init.c index 5b0ad773875..7a333880e6b 100644 --- a/drivers/ddr/imx/imx9/ddr_init.c +++ b/drivers/ddr/imx/imx9/ddr_init.c @@ -3,6 +3,7 @@ * Copyright 2022 NXP */ +#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> @@ -10,7 +11,6 @@ #include <asm/arch/clock.h> #include <asm/arch/sys_proto.h> #include <linux/delay.h> -#include <linux/string.h> static unsigned int g_cdd_rr_max[4]; static unsigned int g_cdd_rw_max[4]; diff --git a/drivers/ddr/imx/phy/ddrphy_train.c b/drivers/ddr/imx/phy/ddrphy_train.c index ccc10df1845..cd905f952c6 100644 --- a/drivers/ddr/imx/phy/ddrphy_train.c +++ b/drivers/ddr/imx/phy/ddrphy_train.c @@ -3,6 +3,7 @@ * Copyright 2018 NXP */ +#include <common.h> #include <log.h> #include <linux/kernel.h> #include <asm/arch/ddr.h> diff --git a/drivers/ddr/imx/phy/ddrphy_utils.c b/drivers/ddr/imx/phy/ddrphy_utils.c index cf5bdad7abe..45e1a70dbd4 100644 --- a/drivers/ddr/imx/phy/ddrphy_utils.c +++ b/drivers/ddr/imx/phy/ddrphy_utils.c @@ -3,6 +3,7 @@ * Copyright 2018 NXP */ +#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/ddr/imx/phy/helper.c b/drivers/ddr/imx/phy/helper.c index c1fc800f191..b9b2403012d 100644 --- a/drivers/ddr/imx/phy/helper.c +++ b/drivers/ddr/imx/phy/helper.c @@ -3,6 +3,7 @@ * Copyright 2018 NXP */ +#include <common.h> #include <binman_sym.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_dfs.c b/drivers/ddr/marvell/axp/ddr3_dfs.c index 985835ec923..2a4596680b1 100644 --- a/drivers/ddr/marvell/axp/ddr3_dfs.c +++ b/drivers/ddr/marvell/axp/ddr3_dfs.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <spl.h> #include <asm/io.h> diff --git a/drivers/ddr/marvell/axp/ddr3_dqs.c b/drivers/ddr/marvell/axp/ddr3_dqs.c index bda0d7ec473..0db94212b90 100644 --- a/drivers/ddr/marvell/axp/ddr3_dqs.c +++ b/drivers/ddr/marvell/axp/ddr3_dqs.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_hw_training.c b/drivers/ddr/marvell/axp/ddr3_hw_training.c index bb3e1be1f4c..35d98faf58f 100644 --- a/drivers/ddr/marvell/axp/ddr3_hw_training.c +++ b/drivers/ddr/marvell/axp/ddr3_hw_training.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_init.c b/drivers/ddr/marvell/axp/ddr3_init.c index 23c6d119f61..a9dcb74cecb 100644 --- a/drivers/ddr/marvell/axp/ddr3_init.c +++ b/drivers/ddr/marvell/axp/ddr3_init.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_pbs.c b/drivers/ddr/marvell/axp/ddr3_pbs.c index 2322900185d..069a42fbf5e 100644 --- a/drivers/ddr/marvell/axp/ddr3_pbs.c +++ b/drivers/ddr/marvell/axp/ddr3_pbs.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <spl.h> #include <asm/io.h> diff --git a/drivers/ddr/marvell/axp/ddr3_read_leveling.c b/drivers/ddr/marvell/axp/ddr3_read_leveling.c index db7003f72ca..30a5c354885 100644 --- a/drivers/ddr/marvell/axp/ddr3_read_leveling.c +++ b/drivers/ddr/marvell/axp/ddr3_read_leveling.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/ddr3_sdram.c b/drivers/ddr/marvell/axp/ddr3_sdram.c index f8fee2623d0..0b150b20f3a 100644 --- a/drivers/ddr/marvell/axp/ddr3_sdram.c +++ b/drivers/ddr/marvell/axp/ddr3_sdram.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <spl.h> #include <asm/io.h> diff --git a/drivers/ddr/marvell/axp/ddr3_spd.c b/drivers/ddr/marvell/axp/ddr3_spd.c index c169a8ea16b..4763403c127 100644 --- a/drivers/ddr/marvell/axp/ddr3_spd.c +++ b/drivers/ddr/marvell/axp/ddr3_spd.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <spl.h> #include <asm/io.h> diff --git a/drivers/ddr/marvell/axp/ddr3_write_leveling.c b/drivers/ddr/marvell/axp/ddr3_write_leveling.c index ea7bac56d0e..d4add447774 100644 --- a/drivers/ddr/marvell/axp/ddr3_write_leveling.c +++ b/drivers/ddr/marvell/axp/ddr3_write_leveling.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/marvell/axp/xor.c b/drivers/ddr/marvell/axp/xor.c index 6ecacfeb933..76aea96682c 100644 --- a/drivers/ddr/marvell/axp/xor.c +++ b/drivers/ddr/marvell/axp/xor.c @@ -3,6 +3,7 @@ * Copyright (C) Marvell International Ltd. and its affiliates */ +#include <common.h> #include <i2c.h> #include <log.h> #include <spl.h> diff --git a/drivers/ddr/microchip/ddr2.c b/drivers/ddr/microchip/ddr2.c index bfba5d245c6..149b6071cfd 100644 --- a/drivers/ddr/microchip/ddr2.c +++ b/drivers/ddr/microchip/ddr2.c @@ -3,6 +3,7 @@ * (c) 2015 Paul Thacker <[email protected]> * */ +#include <common.h> #include <wait_bit.h> #include <linux/kernel.h> #include <linux/bitops.h> diff --git a/drivers/demo/demo-pdata.c b/drivers/demo/demo-pdata.c index 73711991626..818f77503a3 100644 --- a/drivers/demo/demo-pdata.c +++ b/drivers/demo/demo-pdata.c @@ -3,6 +3,7 @@ * Copyright (c) 2013 Google, Inc */ +#include <common.h> #include <dm.h> #include <dm-demo.h> diff --git a/drivers/demo/demo-shape.c b/drivers/demo/demo-shape.c index 3ccd5bced95..b6b29bcb31b 100644 --- a/drivers/demo/demo-shape.c +++ b/drivers/demo/demo-shape.c @@ -3,6 +3,7 @@ * Copyright (c) 2013 Google, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/demo/demo-simple.c b/drivers/demo/demo-simple.c index 944d5897222..28b271f7791 100644 --- a/drivers/demo/demo-simple.c +++ b/drivers/demo/demo-simple.c @@ -6,6 +6,7 @@ * Pavel Herrmann <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm-demo.h> #include <mapmem.h> diff --git a/drivers/demo/demo-uclass.c b/drivers/demo/demo-uclass.c index d7b1305dc65..09f9a47d4de 100644 --- a/drivers/demo/demo-uclass.c +++ b/drivers/demo/demo-uclass.c @@ -6,6 +6,7 @@ * Pavel Herrmann <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm-demo.h> #include <errno.h> diff --git a/drivers/dfu/dfu.c b/drivers/dfu/dfu.c index 540d48fab77..2adf26e2fe2 100644 --- a/drivers/dfu/dfu.c +++ b/drivers/dfu/dfu.c @@ -6,6 +6,7 @@ * author: Lukasz Majewski <[email protected]> */ +#include <common.h> #include <env.h> #include <errno.h> #include <log.h> diff --git a/drivers/dfu/dfu_alt.c b/drivers/dfu/dfu_alt.c index e9132936a90..ece3d2236f3 100644 --- a/drivers/dfu/dfu_alt.c +++ b/drivers/dfu/dfu_alt.c @@ -4,6 +4,7 @@ * Lukasz Majewski <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_mmc.c b/drivers/dfu/dfu_mmc.c index cfa6334e439..12c54e90ef7 100644 --- a/drivers/dfu/dfu_mmc.c +++ b/drivers/dfu/dfu_mmc.c @@ -6,6 +6,7 @@ * author: Lukasz Majewski <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c index c36ac09189f..485586989c8 100644 --- a/drivers/dfu/dfu_mtd.c +++ b/drivers/dfu/dfu_mtd.c @@ -7,6 +7,7 @@ * Based on dfu_nand.c */ +#include <common.h> #include <dfu.h> #include <mtd.h> #include <linux/err.h> diff --git a/drivers/dfu/dfu_nand.c b/drivers/dfu/dfu_nand.c index 940cfefc986..08e8cf5cdb3 100644 --- a/drivers/dfu/dfu_nand.c +++ b/drivers/dfu/dfu_nand.c @@ -9,6 +9,7 @@ * author: Lukasz Majewski <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/dfu/dfu_ram.c b/drivers/dfu/dfu_ram.c index 043acbf022f..c4f4bd2e482 100644 --- a/drivers/dfu/dfu_ram.c +++ b/drivers/dfu/dfu_ram.c @@ -8,6 +8,7 @@ * author: Lukasz Majewski <[email protected]> */ +#include <common.h> #include <malloc.h> #include <mapmem.h> #include <errno.h> diff --git a/drivers/dfu/dfu_sf.c b/drivers/dfu/dfu_sf.c index 7c1c0f9e2dc..2dae1593706 100644 --- a/drivers/dfu/dfu_sf.c +++ b/drivers/dfu/dfu_sf.c @@ -3,6 +3,7 @@ * Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. */ +#include <common.h> #include <malloc.h> #include <errno.h> #include <div64.h> diff --git a/drivers/dfu/dfu_virt.c b/drivers/dfu/dfu_virt.c index 2c31445af12..29f7a08f672 100644 --- a/drivers/dfu/dfu_virt.c +++ b/drivers/dfu/dfu_virt.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2019, STMicroelectronics - All Rights Reserved */ +#include <common.h> #include <dfu.h> #include <errno.h> #include <log.h> diff --git a/drivers/dma/apbh_dma.c b/drivers/dma/apbh_dma.c index 331815c469f..da988f6bb66 100644 --- a/drivers/dma/apbh_dma.c +++ b/drivers/dma/apbh_dma.c @@ -15,6 +15,7 @@ #include <asm/cache.h> #include <linux/list.h> +#include <common.h> #include <malloc.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/dma/bcm6348-iudma.c b/drivers/dma/bcm6348-iudma.c index fd3a353d548..33c7b981415 100644 --- a/drivers/dma/bcm6348-iudma.c +++ b/drivers/dma/bcm6348-iudma.c @@ -15,6 +15,7 @@ * Copyright (C) 2010 Broadcom Corporation */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/dma/dma-uclass.c b/drivers/dma/dma-uclass.c index 2c76ba3fe32..0c1d88e10c6 100644 --- a/drivers/dma/dma-uclass.c +++ b/drivers/dma/dma-uclass.c @@ -11,6 +11,7 @@ #define LOG_CATEGORY UCLASS_DMA +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/dma/fsl_dma.c b/drivers/dma/fsl_dma.c index 0cd9bcb5110..700df2236bd 100644 --- a/drivers/dma/fsl_dma.c +++ b/drivers/dma/fsl_dma.c @@ -9,6 +9,7 @@ */ #include <config.h> +#include <common.h> #include <asm/io.h> #include <asm/fsl_dma.h> diff --git a/drivers/dma/keystone_nav.c b/drivers/dma/keystone_nav.c index c84db454bfd..9a5ba79f3fe 100644 --- a/drivers/dma/keystone_nav.c +++ b/drivers/dma/keystone_nav.c @@ -5,10 +5,10 @@ * (C) Copyright 2012-2014 * Texas Instruments Incorporated, <www.ti.com> */ +#include <common.h> #include <asm/io.h> #include <asm/ti-common/keystone_nav.h> #include <linux/delay.h> -#include <linux/string.h> struct qm_config qm_memmap = { .stat_cfg = KS2_QM_QUEUE_STATUS_BASE, diff --git a/drivers/dma/lpc32xx_dma.c b/drivers/dma/lpc32xx_dma.c index f15b67546a9..0efdfd028cf 100644 --- a/drivers/dma/lpc32xx_dma.c +++ b/drivers/dma/lpc32xx_dma.c @@ -7,9 +7,9 @@ * Copyright (c) 2015 Tyco Fire Protection Products. */ +#include <common.h> #include <errno.h> #include <init.h> -#include <time.h> #include <asm/arch/dma.h> #include <asm/arch/cpu.h> #include <asm/arch/clk.h> diff --git a/drivers/dma/sandbox-dma-test.c b/drivers/dma/sandbox-dma-test.c index 0290b93340f..a19e5e37fb9 100644 --- a/drivers/dma/sandbox-dma-test.c +++ b/drivers/dma/sandbox-dma-test.c @@ -7,6 +7,7 @@ * Author: Grygorii Strashko <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/dma/ti-edma3.c b/drivers/dma/ti-edma3.c index d64059f39ab..31ffff07f5b 100644 --- a/drivers/dma/ti-edma3.c +++ b/drivers/dma/ti-edma3.c @@ -10,6 +10,7 @@ #include <asm/cache.h> #include <asm/io.h> +#include <common.h> #include <dm.h> #include <dma-uclass.h> #include <linux/dma-mapping.h> diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index da341a24778..8f6d396653e 100644 --- a/drivers/dma/ti/k3-udma.c +++ b/drivers/dma/ti/k3-udma.c @@ -5,6 +5,7 @@ */ #define pr_fmt(fmt) "udma: " fmt +#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/cache.h> diff --git a/drivers/dma/xilinx_dpdma.c b/drivers/dma/xilinx_dpdma.c index 1d615ec2838..d4ee21dfc07 100644 --- a/drivers/dma/xilinx_dpdma.c +++ b/drivers/dma/xilinx_dpdma.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Xilinx Inc. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dma.h> diff --git a/drivers/extcon/extcon-max14526.c b/drivers/extcon/extcon-max14526.c index 2d2166bde68..a33b5ef919c 100644 --- a/drivers/extcon/extcon-max14526.c +++ b/drivers/extcon/extcon-max14526.c @@ -3,6 +3,7 @@ * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]> */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <linux/delay.h> diff --git a/drivers/extcon/extcon-uclass.c b/drivers/extcon/extcon-uclass.c index 1a592873882..9dd22b57626 100644 --- a/drivers/extcon/extcon-uclass.c +++ b/drivers/extcon/extcon-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_EXTCON +#include <common.h> #include <extcon.h> #include <dm.h> diff --git a/drivers/fastboot/fb_command.c b/drivers/fastboot/fb_command.c index e4484d65aca..01443c5d39e 100644 --- a/drivers/fastboot/fb_command.c +++ b/drivers/fastboot/fb_command.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 The Android Open Source Project */ +#include <common.h> #include <command.h> #include <console.h> #include <env.h> @@ -12,7 +13,6 @@ #include <fb_nand.h> #include <part.h> #include <stdlib.h> -#include <vsprintf.h> #include <linux/printk.h> /** diff --git a/drivers/fastboot/fb_common.c b/drivers/fastboot/fb_common.c index 12ffb463deb..3576b067729 100644 --- a/drivers/fastboot/fb_common.c +++ b/drivers/fastboot/fb_common.c @@ -11,11 +11,11 @@ */ #include <bcb.h> +#include <common.h> #include <command.h> #include <env.h> #include <fastboot.h> #include <net.h> -#include <vsprintf.h> /** * fastboot_buf_addr - base address of the fastboot download buffer diff --git a/drivers/fastboot/fb_getvar.c b/drivers/fastboot/fb_getvar.c index 93cbd598e02..f65519c57b4 100644 --- a/drivers/fastboot/fb_getvar.c +++ b/drivers/fastboot/fb_getvar.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 The Android Open Source Project */ +#include <common.h> #include <env.h> #include <fastboot.h> #include <fastboot-internal.h> @@ -11,7 +12,6 @@ #include <fs.h> #include <part.h> #include <version.h> -#include <vsprintf.h> #include <linux/printk.h> static void getvar_version(char *var_parameter, char *response); diff --git a/drivers/fastboot/fb_mmc.c b/drivers/fastboot/fb_mmc.c index f11eb66761b..060918e4910 100644 --- a/drivers/fastboot/fb_mmc.c +++ b/drivers/fastboot/fb_mmc.c @@ -4,6 +4,7 @@ */ #include <config.h> +#include <common.h> #include <blk.h> #include <env.h> #include <fastboot.h> diff --git a/drivers/fastboot/fb_nand.c b/drivers/fastboot/fb_nand.c index afc64fd5280..bbe26ddcc9b 100644 --- a/drivers/fastboot/fb_nand.c +++ b/drivers/fastboot/fb_nand.c @@ -5,6 +5,7 @@ */ #include <config.h> +#include <common.h> #include <blk.h> #include <fastboot.h> diff --git a/drivers/firmware/arm-ffa/arm-ffa-uclass.c b/drivers/firmware/arm-ffa/arm-ffa-uclass.c index e0767fc7551..f1e91d151ea 100644 --- a/drivers/firmware/arm-ffa/arm-ffa-uclass.c +++ b/drivers/firmware/arm-ffa/arm-ffa-uclass.c @@ -5,6 +5,7 @@ * Authors: * Abdellatif El Khlifi <[email protected]> */ +#include <common.h> #include <arm_ffa.h> #include <arm_ffa_priv.h> #include <dm.h> diff --git a/drivers/firmware/arm-ffa/arm-ffa.c b/drivers/firmware/arm-ffa/arm-ffa.c index 94e6105cb38..ee0bf9a55b4 100644 --- a/drivers/firmware/arm-ffa/arm-ffa.c +++ b/drivers/firmware/arm-ffa/arm-ffa.c @@ -6,6 +6,7 @@ * Abdellatif El Khlifi <[email protected]> */ +#include <common.h> #include <arm_ffa.h> #include <arm_ffa_priv.h> #include <dm.h> diff --git a/drivers/firmware/arm-ffa/ffa-emul-uclass.c b/drivers/firmware/arm-ffa/ffa-emul-uclass.c index 1521d9b66ac..4bf9f6041fe 100644 --- a/drivers/firmware/arm-ffa/ffa-emul-uclass.c +++ b/drivers/firmware/arm-ffa/ffa-emul-uclass.c @@ -5,6 +5,7 @@ * Authors: * Abdellatif El Khlifi <[email protected]> */ +#include <common.h> #include <dm.h> #include <mapmem.h> #include <string.h> diff --git a/drivers/firmware/arm-ffa/sandbox_ffa.c b/drivers/firmware/arm-ffa/sandbox_ffa.c index 44b32a829dd..11142429c09 100644 --- a/drivers/firmware/arm-ffa/sandbox_ffa.c +++ b/drivers/firmware/arm-ffa/sandbox_ffa.c @@ -5,6 +5,7 @@ * Authors: * Abdellatif El Khlifi <[email protected]> */ +#include <common.h> #include <arm_ffa.h> #include <dm.h> #include <log.h> diff --git a/drivers/firmware/firmware-sandbox.c b/drivers/firmware/firmware-sandbox.c index 226b5cfc191..d970d75f781 100644 --- a/drivers/firmware/firmware-sandbox.c +++ b/drivers/firmware/firmware-sandbox.c @@ -5,6 +5,7 @@ * Copyright (C) 2018 Xilinx, Inc. */ +#include <common.h> #include <dm.h> static const struct udevice_id generic_sandbox_firmware_ids[] = { diff --git a/drivers/firmware/firmware-uclass.c b/drivers/firmware/firmware-uclass.c index 84caf25548b..e83a147a000 100644 --- a/drivers/firmware/firmware-uclass.c +++ b/drivers/firmware/firmware-uclass.c @@ -2,6 +2,7 @@ #define LOG_CATEGORY UCLASS_FIRMWARE +#include <common.h> #include <dm.h> /* Firmware access is platform-dependent. No generic code in uclass */ diff --git a/drivers/firmware/firmware-zynqmp.c b/drivers/firmware/firmware-zynqmp.c index f99507d86c6..dfad798a2e7 100644 --- a/drivers/firmware/firmware-zynqmp.c +++ b/drivers/firmware/firmware-zynqmp.c @@ -5,6 +5,7 @@ * Copyright (C) 2018-2019 Xilinx, Inc. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/firmware/psci.c b/drivers/firmware/psci.c index c32c3f5c6a5..03544d76ed4 100644 --- a/drivers/firmware/psci.c +++ b/drivers/firmware/psci.c @@ -6,6 +6,7 @@ * Copyright (C) 2015 ARM Limited */ +#include <common.h> #include <command.h> #include <dm.h> #include <efi_loader.h> diff --git a/drivers/firmware/scmi/base.c b/drivers/firmware/scmi/base.c index f4e3974ff5b..1d41a8a98fc 100644 --- a/drivers/firmware/scmi/base.c +++ b/drivers/firmware/scmi/base.c @@ -6,6 +6,7 @@ * author: AKASHI Takahiro <[email protected]> */ +#include <common.h> #include <dm.h> #include <scmi_agent.h> #include <scmi_protocols.h> diff --git a/drivers/firmware/scmi/mailbox_agent.c b/drivers/firmware/scmi/mailbox_agent.c index 6d4497f4b92..7ad3e8da9f0 100644 --- a/drivers/firmware/scmi/mailbox_agent.c +++ b/drivers/firmware/scmi/mailbox_agent.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SCMI_AGENT +#include <common.h> #include <dm.h> #include <errno.h> #include <mailbox.h> diff --git a/drivers/firmware/scmi/optee_agent.c b/drivers/firmware/scmi/optee_agent.c index 631625d715b..48dbb88a3fb 100644 --- a/drivers/firmware/scmi/optee_agent.c +++ b/drivers/firmware/scmi/optee_agent.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SCMI_AGENT +#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/sandbox-scmi_agent.c b/drivers/firmware/scmi/sandbox-scmi_agent.c index 19be280ec44..cc9011c7312 100644 --- a/drivers/firmware/scmi/sandbox-scmi_agent.c +++ b/drivers/firmware/scmi/sandbox-scmi_agent.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SCMI_AGENT +#include <common.h> #include <dm.h> #include <malloc.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/sandbox-scmi_devices.c b/drivers/firmware/scmi/sandbox-scmi_devices.c index 96c2922b067..603e2bb40af 100644 --- a/drivers/firmware/scmi/sandbox-scmi_devices.c +++ b/drivers/firmware/scmi/sandbox-scmi_devices.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_MISC +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/firmware/scmi/scmi_agent-uclass.c b/drivers/firmware/scmi/scmi_agent-uclass.c index 8c907c3b032..0f1003e167e 100644 --- a/drivers/firmware/scmi/scmi_agent-uclass.c +++ b/drivers/firmware/scmi/scmi_agent-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SCMI_AGENT +#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/smccc_agent.c b/drivers/firmware/scmi/smccc_agent.c index ac35d07ebaf..972c6addde2 100644 --- a/drivers/firmware/scmi/smccc_agent.c +++ b/drivers/firmware/scmi/smccc_agent.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SCMI_AGENT +#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/firmware/scmi/smt.c b/drivers/firmware/scmi/smt.c index 67d2f450024..509ed618a99 100644 --- a/drivers/firmware/scmi/smt.c +++ b/drivers/firmware/scmi/smt.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SCMI_AGENT +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 8ce0f46e70c..6c581b9df9c 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -7,6 +7,7 @@ * Lokesh Vutla <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/fpga/ACEX1K.c b/drivers/fpga/ACEX1K.c index cb7877a8afe..4c00cdf0b57 100644 --- a/drivers/fpga/ACEX1K.c +++ b/drivers/fpga/ACEX1K.c @@ -9,7 +9,7 @@ #define LOG_CATEGORY UCLASS_FPGA -#include <config.h> /* core U-Boot definitions */ +#include <common.h> /* core U-Boot definitions */ #include <console.h> #include <log.h> #include <ACEX1K.h> /* ACEX device family */ diff --git a/drivers/fpga/altera.c b/drivers/fpga/altera.c index ae06f0123a0..6a4f0cb9bc0 100644 --- a/drivers/fpga/altera.c +++ b/drivers/fpga/altera.c @@ -12,6 +12,7 @@ /* * Altera FPGA support */ +#include <common.h> #include <errno.h> #include <ACEX1K.h> #include <log.h> diff --git a/drivers/fpga/cyclon2.c b/drivers/fpga/cyclon2.c index 7e78d6e2d6c..6e8a313db35 100644 --- a/drivers/fpga/cyclon2.c +++ b/drivers/fpga/cyclon2.c @@ -7,9 +7,8 @@ #define LOG_CATEGORY UCLASS_FPGA -#include <config.h> /* core U-Boot definitions */ +#include <common.h> /* core U-Boot definitions */ #include <log.h> -#include <time.h> #include <altera.h> #include <ACEX1K.h> /* ACEX device family */ #include <linux/delay.h> diff --git a/drivers/fpga/fpga.c b/drivers/fpga/fpga.c index 38ba6c21ea2..81e6d8ffc0b 100644 --- a/drivers/fpga/fpga.c +++ b/drivers/fpga/fpga.c @@ -5,6 +5,7 @@ */ /* Generic FPGA support */ +#include <common.h> /* core U-Boot definitions */ #include <init.h> #include <log.h> #include <xilinx.h> /* xilinx specific definitions */ diff --git a/drivers/fpga/intel_sdm_mb.c b/drivers/fpga/intel_sdm_mb.c index 45caef4f5c1..903d143a361 100644 --- a/drivers/fpga/intel_sdm_mb.c +++ b/drivers/fpga/intel_sdm_mb.c @@ -3,16 +3,14 @@ * Copyright (C) 2018 Intel Corporation <www.intel.com> */ +#include <common.h> #include <altera.h> #include <log.h> -#include <time.h> #include <watchdog.h> #include <asm/arch/mailbox_s10.h> #include <asm/arch/smc_api.h> #include <linux/delay.h> -#include <linux/errno.h> #include <linux/intel-smc.h> -#include <linux/string.h> #define RECONFIG_STATUS_POLL_RESP_TIMEOUT_MS 60000 #define RECONFIG_STATUS_INTERVAL_DELAY_US 1000000 diff --git a/drivers/fpga/ivm_core.c b/drivers/fpga/ivm_core.c index b9cecdd8720..adc60919f3b 100644 --- a/drivers/fpga/ivm_core.c +++ b/drivers/fpga/ivm_core.c @@ -29,6 +29,7 @@ * the ispVMLCOUNT function */ +#include <common.h> #include <log.h> #include <linux/string.h> #include <malloc.h> diff --git a/drivers/fpga/lattice.c b/drivers/fpga/lattice.c index 036580cad70..e292d991cd1 100644 --- a/drivers/fpga/lattice.c +++ b/drivers/fpga/lattice.c @@ -10,6 +10,7 @@ * Copyright 2009 Lattice Semiconductor Corp. */ +#include <common.h> #include <log.h> #include <malloc.h> #include <fpga.h> diff --git a/drivers/fpga/socfpga.c b/drivers/fpga/socfpga.c index bb98c0e2bcf..d73414d5ac5 100644 --- a/drivers/fpga/socfpga.c +++ b/drivers/fpga/socfpga.c @@ -4,7 +4,7 @@ * All rights reserved. */ -#include <config.h> +#include <common.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/fpga_manager.h> diff --git a/drivers/fpga/socfpga_arria10.c b/drivers/fpga/socfpga_arria10.c index e9822b2bb0e..96b195063e0 100644 --- a/drivers/fpga/socfpga_arria10.c +++ b/drivers/fpga/socfpga_arria10.c @@ -13,6 +13,7 @@ #include <asm/arch/misc.h> #include <altera.h> #include <asm/arch/pinmux.h> +#include <common.h> #include <dm.h> #include <dm/ofnode.h> #include <errno.h> diff --git a/drivers/fpga/socfpga_gen5.c b/drivers/fpga/socfpga_gen5.c index 9473f057328..d73474f29ee 100644 --- a/drivers/fpga/socfpga_gen5.c +++ b/drivers/fpga/socfpga_gen5.c @@ -4,7 +4,7 @@ * All rights reserved. */ -#include <config.h> +#include <common.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/fpga_manager.h> diff --git a/drivers/fpga/spartan2.c b/drivers/fpga/spartan2.c index 9cd6cb7f0fb..6eef87b78e1 100644 --- a/drivers/fpga/spartan2.c +++ b/drivers/fpga/spartan2.c @@ -6,7 +6,7 @@ #define LOG_CATEGORY UCLASS_FPGA -#include <config.h> /* core U-Boot definitions */ +#include <common.h> /* core U-Boot definitions */ #include <log.h> #include <spartan2.h> /* Spartan-II device family */ diff --git a/drivers/fpga/spartan3.c b/drivers/fpga/spartan3.c index b4d87d47d93..e892fa571f1 100644 --- a/drivers/fpga/spartan3.c +++ b/drivers/fpga/spartan3.c @@ -11,9 +11,8 @@ #define LOG_CATEGORY UCLASS_FPGA -#include <config.h> /* core U-Boot definitions */ +#include <common.h> /* core U-Boot definitions */ #include <log.h> -#include <time.h> #include <spartan3.h> /* Spartan-II device family */ /* Note: The assumption is that we cannot possibly run fast enough to diff --git a/drivers/fpga/stratixII.c b/drivers/fpga/stratixII.c index 73fecd9dca5..b450a81072e 100644 --- a/drivers/fpga/stratixII.c +++ b/drivers/fpga/stratixII.c @@ -4,6 +4,7 @@ * Eran Liberty, Extricom , [email protected] */ +#include <common.h> /* core U-Boot definitions */ #include <altera.h> #include <linux/delay.h> diff --git a/drivers/fpga/stratixv.c b/drivers/fpga/stratixv.c index 372f16d92d1..abae3b5b751 100644 --- a/drivers/fpga/stratixv.c +++ b/drivers/fpga/stratixv.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ +#include <common.h> #include <altera.h> #include <log.h> #include <spi.h> diff --git a/drivers/fpga/versalpl.c b/drivers/fpga/versalpl.c index 1957e8dcaca..be58db54275 100644 --- a/drivers/fpga/versalpl.c +++ b/drivers/fpga/versalpl.c @@ -4,6 +4,7 @@ * Siva Durga Prasad Paladugu <[email protected]>> */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/arch/sys_proto.h> diff --git a/drivers/fpga/virtex2.c b/drivers/fpga/virtex2.c index 8e2c12bb58b..3ded27f9b3f 100644 --- a/drivers/fpga/virtex2.c +++ b/drivers/fpga/virtex2.c @@ -14,7 +14,7 @@ #define LOG_CATEGORY UCLASS_FPGA -#include <config.h> +#include <common.h> #include <console.h> #include <log.h> #include <virtex2.h> diff --git a/drivers/fpga/xilinx.c b/drivers/fpga/xilinx.c index c46513226d9..8170c3368ef 100644 --- a/drivers/fpga/xilinx.c +++ b/drivers/fpga/xilinx.c @@ -11,13 +11,13 @@ * Xilinx FPGA support */ +#include <common.h> #include <fpga.h> #include <log.h> #include <virtex2.h> #include <spartan2.h> #include <spartan3.h> #include <zynqpl.h> -#include <linux/string.h> /* Local Static Functions */ static int xilinx_validate(xilinx_desc *desc, char *fn); diff --git a/drivers/fpga/zynqmppl.c b/drivers/fpga/zynqmppl.c index 2b62bbbe3cf..2656f5fc5ec 100644 --- a/drivers/fpga/zynqmppl.c +++ b/drivers/fpga/zynqmppl.c @@ -6,6 +6,7 @@ */ #include <console.h> +#include <common.h> #include <compiler.h> #include <cpu_func.h> #include <fpga.h> diff --git a/drivers/fpga/zynqpl.c b/drivers/fpga/zynqpl.c index 57467b4d975..a2e3b305fa4 100644 --- a/drivers/fpga/zynqpl.c +++ b/drivers/fpga/zynqpl.c @@ -6,11 +6,10 @@ * Joe Hershberger <[email protected]> */ -#include <config.h> +#include <common.h> #include <console.h> #include <cpu_func.h> #include <log.h> -#include <time.h> #include <asm/cache.h> #include <asm/io.h> #include <fs.h> diff --git a/drivers/fuzz/fuzzing_engine-uclass.c b/drivers/fuzz/fuzzing_engine-uclass.c index 08ce3ed2ec1..b16f1c4cfb7 100644 --- a/drivers/fuzz/fuzzing_engine-uclass.c +++ b/drivers/fuzz/fuzzing_engine-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_FUZZING_ENGINE +#include <common.h> #include <dm.h> #include <fuzzing_engine.h> diff --git a/drivers/fuzz/sandbox_fuzzing_engine.c b/drivers/fuzz/sandbox_fuzzing_engine.c index 677402470ed..ebb938e5ba8 100644 --- a/drivers/fuzz/sandbox_fuzzing_engine.c +++ b/drivers/fuzz/sandbox_fuzzing_engine.c @@ -4,6 +4,7 @@ * Written by Andrew Scull <[email protected]> */ +#include <common.h> #include <dm.h> #include <fuzzing_engine.h> #include <asm/fuzzing_engine.h> diff --git a/drivers/fwu-mdata/fwu-mdata-uclass.c b/drivers/fwu-mdata/fwu-mdata-uclass.c index bab7a7e80d1..0a8edaaa418 100644 --- a/drivers/fwu-mdata/fwu-mdata-uclass.c +++ b/drivers/fwu-mdata/fwu-mdata-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_FWU_MDATA +#include <common.h> #include <dm.h> #include <efi_loader.h> #include <fwu.h> diff --git a/drivers/gpio/74x164_gpio.c b/drivers/gpio/74x164_gpio.c index 331428ccdb9..7a7cfe86114 100644 --- a/drivers/gpio/74x164_gpio.c +++ b/drivers/gpio/74x164_gpio.c @@ -8,6 +8,7 @@ * */ +#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/altera_pio.c b/drivers/gpio/altera_pio.c index 7ba1595e4ae..edc5a8093b0 100644 --- a/drivers/gpio/altera_pio.c +++ b/drivers/gpio/altera_pio.c @@ -4,6 +4,7 @@ * Copyright (C) 2011 Missing Link Electronics * Joachim Foerster <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/at91_gpio.c b/drivers/gpio/at91_gpio.c index 50a69815907..f80f4afd24f 100644 --- a/drivers/gpio/at91_gpio.c +++ b/drivers/gpio/at91_gpio.c @@ -8,6 +8,7 @@ */ #include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/atmel_pio4.c b/drivers/gpio/atmel_pio4.c index 65d064b46df..be1dd752bf7 100644 --- a/drivers/gpio/atmel_pio4.c +++ b/drivers/gpio/atmel_pio4.c @@ -5,6 +5,7 @@ * Copyright (C) 2015 Atmel Corporation * Wenyou.Yang <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/axp_gpio.c b/drivers/gpio/axp_gpio.c index 6e632c8fc73..af6631697f5 100644 --- a/drivers/gpio/axp_gpio.c +++ b/drivers/gpio/axp_gpio.c @@ -5,6 +5,7 @@ * X-Powers AXP Power Management ICs gpio driver */ +#include <common.h> #include <asm/arch/pmic_bus.h> #include <asm/gpio.h> #include <axp_pmic.h> diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c index ccf84fdae11..704a6fa7121 100644 --- a/drivers/gpio/bcm2835_gpio.c +++ b/drivers/gpio/bcm2835_gpio.c @@ -4,6 +4,7 @@ */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <errno.h> diff --git a/drivers/gpio/bcm6345_gpio.c b/drivers/gpio/bcm6345_gpio.c index e76c84e806a..e031f71a784 100644 --- a/drivers/gpio/bcm6345_gpio.c +++ b/drivers/gpio/bcm6345_gpio.c @@ -7,6 +7,7 @@ * Copyright (C) 2008-2011 Florian Fainelli <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/gpio.h> diff --git a/drivers/gpio/cortina_gpio.c b/drivers/gpio/cortina_gpio.c index e0ea14cce69..72ef523be96 100644 --- a/drivers/gpio/cortina_gpio.c +++ b/drivers/gpio/cortina_gpio.c @@ -5,6 +5,7 @@ * GPIO Driver for Cortina Access CAxxxx Line of SoCs */ +#include <common.h> #include <dm.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/gpio/da8xx_gpio.c b/drivers/gpio/da8xx_gpio.c index 1ccb9e69f15..b310f2dbf65 100644 --- a/drivers/gpio/da8xx_gpio.c +++ b/drivers/gpio/da8xx_gpio.c @@ -6,6 +6,7 @@ * Laurence Withers <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/gpio/ftgpio010.c b/drivers/gpio/ftgpio010.c index 4cb550a540c..6c091d4fd87 100644 --- a/drivers/gpio/ftgpio010.c +++ b/drivers/gpio/ftgpio010.c @@ -3,6 +3,7 @@ * Faraday Technology's FTGPIO010 controller. */ +#include <common.h> #include <dm.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/gpio-aspeed.c b/drivers/gpio/gpio-aspeed.c index c5608f4a9df..1c3d18796b3 100644 --- a/drivers/gpio/gpio-aspeed.c +++ b/drivers/gpio/gpio-aspeed.c @@ -6,6 +6,7 @@ * * Implementation extracted from the Linux kernel and adapted for u-boot. */ +#include <common.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/gpio-fxl6408.c b/drivers/gpio/gpio-fxl6408.c index c8d2dff5f7b..ca7aa14eeb2 100644 --- a/drivers/gpio/gpio-fxl6408.c +++ b/drivers/gpio/gpio-fxl6408.c @@ -37,6 +37,7 @@ #include <asm-generic/gpio.h> #include <asm/global_data.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dt-bindings/gpio/gpio.h> diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index d1a39938809..70778501232 100644 --- a/drivers/gpio/gpio-rcar.c +++ b/drivers/gpio/gpio-rcar.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Marek Vasut <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/gpio-rza1.c b/drivers/gpio/gpio-rza1.c index 8c3fe61b25f..f14be871e8d 100644 --- a/drivers/gpio/gpio-rza1.c +++ b/drivers/gpio/gpio-rza1.c @@ -3,6 +3,7 @@ * Copyright (C) 2019 Marek Vasut <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/gpio/gpio-uclass.c b/drivers/gpio/gpio-uclass.c index 92ce68dd4a1..4234cd912c9 100644 --- a/drivers/gpio/gpio-uclass.c +++ b/drivers/gpio/gpio-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_GPIO +#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/gpio/gpio-uniphier.c b/drivers/gpio/gpio-uniphier.c index 033fb4b60ee..61c705b5ac5 100644 --- a/drivers/gpio/gpio-uniphier.c +++ b/drivers/gpio/gpio-uniphier.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <linux/io.h> diff --git a/drivers/gpio/gpio_slg7xl45106.c b/drivers/gpio/gpio_slg7xl45106.c index a7c9ff53af7..4ad06c18b4b 100644 --- a/drivers/gpio/gpio_slg7xl45106.c +++ b/drivers/gpio/gpio_slg7xl45106.c @@ -5,6 +5,7 @@ * Copyright (C) 2021 Xilinx, Inc. */ +#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/gpio/hi6220_gpio.c b/drivers/gpio/hi6220_gpio.c index 7ceb5f424c9..e287c31b93f 100644 --- a/drivers/gpio/hi6220_gpio.c +++ b/drivers/gpio/hi6220_gpio.c @@ -4,6 +4,7 @@ * Peter Griffin <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/hsdk-creg-gpio.c b/drivers/gpio/hsdk-creg-gpio.c index 734b31d3dc1..66f8441840b 100644 --- a/drivers/gpio/hsdk-creg-gpio.c +++ b/drivers/gpio/hsdk-creg-gpio.c @@ -12,6 +12,7 @@ #include <log.h> #include <asm-generic/gpio.h> #include <asm/io.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <linux/bitops.h> diff --git a/drivers/gpio/imx_rgpio2p.c b/drivers/gpio/imx_rgpio2p.c index fc1d418315c..3227a8d5b57 100644 --- a/drivers/gpio/imx_rgpio2p.c +++ b/drivers/gpio/imx_rgpio2p.c @@ -5,6 +5,7 @@ * RGPIO2P driver for the Freescale i.MX7ULP. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_broadwell_gpio.c b/drivers/gpio/intel_broadwell_gpio.c index 53ed0a3eed0..20af35de2cf 100644 --- a/drivers/gpio/intel_broadwell_gpio.c +++ b/drivers/gpio/intel_broadwell_gpio.c @@ -3,6 +3,7 @@ * Copyright (c) 2012 The Chromium OS Authors. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_gpio.c b/drivers/gpio/intel_gpio.c index 0ab6e8a90bc..4a3ec6d6350 100644 --- a/drivers/gpio/intel_gpio.c +++ b/drivers/gpio/intel_gpio.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_GPIO +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/intel_ich6_gpio.c b/drivers/gpio/intel_ich6_gpio.c index 096bc3b05bb..2ed0d0bea9a 100644 --- a/drivers/gpio/intel_ich6_gpio.c +++ b/drivers/gpio/intel_ich6_gpio.c @@ -28,6 +28,7 @@ #define LOG_CATEGORY UCLASS_GPIO +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/iproc_gpio.c b/drivers/gpio/iproc_gpio.c index 8688f12e43c..7187d3257b9 100644 --- a/drivers/gpio/iproc_gpio.c +++ b/drivers/gpio/iproc_gpio.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Broadcom */ +#include <common.h> #include <errno.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/kw_gpio.c b/drivers/gpio/kw_gpio.c index e183f5594b5..a15769793f1 100644 --- a/drivers/gpio/kw_gpio.c +++ b/drivers/gpio/kw_gpio.c @@ -12,6 +12,7 @@ * Dieter Kiermaier [email protected] */ +#include <common.h> #include <linux/bitops.h> #include <asm/io.h> #include <asm/arch/soc.h> diff --git a/drivers/gpio/lpc32xx_gpio.c b/drivers/gpio/lpc32xx_gpio.c index 2b537e007ba..de66c765d11 100644 --- a/drivers/gpio/lpc32xx_gpio.c +++ b/drivers/gpio/lpc32xx_gpio.c @@ -6,6 +6,7 @@ * Written-by: Albert ARIBAUD <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <asm/arch-lpc32xx/cpu.h> #include <asm/arch-lpc32xx/gpio.h> diff --git a/drivers/gpio/max7320_gpio.c b/drivers/gpio/max7320_gpio.c index f733cc924e5..647aed907b4 100644 --- a/drivers/gpio/max7320_gpio.c +++ b/drivers/gpio/max7320_gpio.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <asm-generic/gpio.h> diff --git a/drivers/gpio/mcp230xx_gpio.c b/drivers/gpio/mcp230xx_gpio.c index 42e7fe9d474..df99fde5660 100644 --- a/drivers/gpio/mcp230xx_gpio.c +++ b/drivers/gpio/mcp230xx_gpio.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_GPIO +#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/gpio/mpc83xx_spisel_boot.c b/drivers/gpio/mpc83xx_spisel_boot.c index 2be8c73ae3d..fd26a36a0f9 100644 --- a/drivers/gpio/mpc83xx_spisel_boot.c +++ b/drivers/gpio/mpc83xx_spisel_boot.c @@ -5,6 +5,7 @@ * GPIO driver to set/clear SPISEL_BOOT pin on mpc83xx. */ +#include <common.h> #include <log.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/gpio/mpc8xx_gpio.c b/drivers/gpio/mpc8xx_gpio.c index e2b12f8b56c..2f653465331 100644 --- a/drivers/gpio/mpc8xx_gpio.c +++ b/drivers/gpio/mpc8xx_gpio.c @@ -10,6 +10,7 @@ * Copyright 2010 eXMeritus, A Boeing Company */ +#include <common.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/gpio/mpc8xxx_gpio.c b/drivers/gpio/mpc8xxx_gpio.c index e9bd38f162c..f7ffd8926ad 100644 --- a/drivers/gpio/mpc8xxx_gpio.c +++ b/drivers/gpio/mpc8xxx_gpio.c @@ -9,6 +9,7 @@ * Copyright 2020-2021 NXP */ +#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mscc_sgpio.c b/drivers/gpio/mscc_sgpio.c index 5a40304f1f9..c97e44005ee 100644 --- a/drivers/gpio/mscc_sgpio.c +++ b/drivers/gpio/mscc_sgpio.c @@ -7,6 +7,7 @@ * Copyright (c) 2018 Microsemi Corporation */ +#include <common.h> #include <dm.h> #include <log.h> #include <asm/gpio.h> diff --git a/drivers/gpio/msm_gpio.c b/drivers/gpio/msm_gpio.c index 2fb266f1285..f5d9ab54e81 100644 --- a/drivers/gpio/msm_gpio.c +++ b/drivers/gpio/msm_gpio.c @@ -5,6 +5,7 @@ * (C) Copyright 2015 Mateusz Kulikowski <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/gpio/mt7621_gpio.c b/drivers/gpio/mt7621_gpio.c index 63a202310a5..43bb4df4da7 100644 --- a/drivers/gpio/mt7621_gpio.c +++ b/drivers/gpio/mt7621_gpio.c @@ -7,6 +7,7 @@ * Copyright (C) 2013 John Crispin <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/mvebu_gpio.c b/drivers/gpio/mvebu_gpio.c index 0d82380dde4..f706a6dfa4f 100644 --- a/drivers/gpio/mvebu_gpio.c +++ b/drivers/gpio/mvebu_gpio.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <asm/gpio.h> diff --git a/drivers/gpio/mxc_gpio.c b/drivers/gpio/mxc_gpio.c index cac6b32b279..1dec4e35e0a 100644 --- a/drivers/gpio/mxc_gpio.c +++ b/drivers/gpio/mxc_gpio.c @@ -6,6 +6,7 @@ * Copyright (C) 2011 * Stefano Babic, DENX Software Engineering, <[email protected]> */ +#include <common.h> #include <errno.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/gpio/mxs_gpio.c b/drivers/gpio/mxs_gpio.c index 80910c9ec4c..1356f89ac2f 100644 --- a/drivers/gpio/mxs_gpio.c +++ b/drivers/gpio/mxs_gpio.c @@ -6,6 +6,7 @@ * on behalf of DENX Software Engineering GmbH */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/gpio/nmk_gpio.c b/drivers/gpio/nmk_gpio.c index c2716e71763..e1bb41b196c 100644 --- a/drivers/gpio/nmk_gpio.c +++ b/drivers/gpio/nmk_gpio.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */ +#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/npcm_gpio.c b/drivers/gpio/npcm_gpio.c index da3b3ffbc92..98e5dc79c1c 100644 --- a/drivers/gpio/npcm_gpio.c +++ b/drivers/gpio/npcm_gpio.c @@ -3,6 +3,7 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <linux/io.h> diff --git a/drivers/gpio/nx_gpio.c b/drivers/gpio/nx_gpio.c index 741b2ff7f17..e2565d70953 100644 --- a/drivers/gpio/nx_gpio.c +++ b/drivers/gpio/nx_gpio.c @@ -4,6 +4,7 @@ * DeokJin, Lee <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/omap_gpio.c b/drivers/gpio/omap_gpio.c index 1aceafcdf58..50c4f75ddf5 100644 --- a/drivers/gpio/omap_gpio.c +++ b/drivers/gpio/omap_gpio.c @@ -17,6 +17,7 @@ * Copyright (C) 2003-2005 Nokia Corporation * Written by Juha YrjölĂ€ <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/gpio/pca953x.c b/drivers/gpio/pca953x.c index fc4dcf9f986..b5ed35256ee 100644 --- a/drivers/gpio/pca953x.c +++ b/drivers/gpio/pca953x.c @@ -8,11 +8,10 @@ * pca9539, etc) */ -#include <config.h> +#include <common.h> #include <command.h> #include <i2c.h> #include <pca953x.h> -#include <vsprintf.h> /* Default to an address that hopefully won't corrupt other i2c devices */ #ifndef CFG_SYS_I2C_PCA953X_ADDR diff --git a/drivers/gpio/pca953x_gpio.c b/drivers/gpio/pca953x_gpio.c index 80ebaadb3e4..b0c66d18317 100644 --- a/drivers/gpio/pca953x_gpio.c +++ b/drivers/gpio/pca953x_gpio.c @@ -18,6 +18,7 @@ * 2. Support Polarity Inversion */ +#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/pcf8575_gpio.c b/drivers/gpio/pcf8575_gpio.c index 10ae86ec5d4..f38e215c4d6 100644 --- a/drivers/gpio/pcf8575_gpio.c +++ b/drivers/gpio/pcf8575_gpio.c @@ -17,6 +17,7 @@ * */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/gpio/pic32_gpio.c b/drivers/gpio/pic32_gpio.c index d8edfefb2d7..975a2af3ccb 100644 --- a/drivers/gpio/pic32_gpio.c +++ b/drivers/gpio/pic32_gpio.c @@ -4,6 +4,7 @@ * Purna Chandra Mandal <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/gpio/qcom_pmic_gpio.c b/drivers/gpio/qcom_pmic_gpio.c index 80fee841ee3..0dd3434e9e0 100644 --- a/drivers/gpio/qcom_pmic_gpio.c +++ b/drivers/gpio/qcom_pmic_gpio.c @@ -5,6 +5,7 @@ * (C) Copyright 2015 Mateusz Kulikowski <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/gpio/qe_gpio.c b/drivers/gpio/qe_gpio.c index ac6e68299e0..16e8d1eae6e 100644 --- a/drivers/gpio/qe_gpio.c +++ b/drivers/gpio/qe_gpio.c @@ -4,6 +4,7 @@ * Christophe Leroy <[email protected]> */ +#include <common.h> #include <dm.h> #include <mapmem.h> #include <asm/gpio.h> diff --git a/drivers/gpio/rk_gpio.c b/drivers/gpio/rk_gpio.c index 24ba12dd820..2e901ac5c73 100644 --- a/drivers/gpio/rk_gpio.c +++ b/drivers/gpio/rk_gpio.c @@ -6,6 +6,7 @@ * Peter, Software Engineering, <[email protected]>. */ +#include <common.h> #include <dm.h> #include <syscon.h> #include <linux/errno.h> diff --git a/drivers/gpio/s5p_gpio.c b/drivers/gpio/s5p_gpio.c index 83e65aa4aec..06ed585f3d6 100644 --- a/drivers/gpio/s5p_gpio.c +++ b/drivers/gpio/s5p_gpio.c @@ -4,6 +4,7 @@ * Minkyu Kang <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/sandbox.c b/drivers/gpio/sandbox.c index f5be2781443..305f9a6ff62 100644 --- a/drivers/gpio/sandbox.c +++ b/drivers/gpio/sandbox.c @@ -3,6 +3,7 @@ * Copyright (c) 2011 The Chromium OS Authors. */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/gpio/sandbox_test.c b/drivers/gpio/sandbox_test.c index 4699a976252..c76e1997419 100644 --- a/drivers/gpio/sandbox_test.c +++ b/drivers/gpio/sandbox_test.c @@ -5,6 +5,7 @@ * Copyright 2021 Google LLC */ +#include <common.h> #include <dm.h> #include <asm-generic/gpio.h> diff --git a/drivers/gpio/sh_pfc.c b/drivers/gpio/sh_pfc.c index 9f6051c1c4d..2495d6c1c15 100644 --- a/drivers/gpio/sh_pfc.c +++ b/drivers/gpio/sh_pfc.c @@ -9,6 +9,7 @@ * for more details. */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/bitops.h> diff --git a/drivers/gpio/sifive-gpio.c b/drivers/gpio/sifive-gpio.c index 90f59120ecd..151f484e8fd 100644 --- a/drivers/gpio/sifive-gpio.c +++ b/drivers/gpio/sifive-gpio.c @@ -5,6 +5,7 @@ * Copyright (C) 2019 SiFive, Inc. */ +#include <common.h> #include <dm.h> #include <asm/arch/gpio.h> #include <asm/io.h> diff --git a/drivers/gpio/sl28cpld-gpio.c b/drivers/gpio/sl28cpld-gpio.c index e85f9260ec3..700fc3df298 100644 --- a/drivers/gpio/sl28cpld-gpio.c +++ b/drivers/gpio/sl28cpld-gpio.c @@ -5,6 +5,7 @@ * Copyright (c) 2021 Michael Walle <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <sl28cpld.h> diff --git a/drivers/gpio/stm32_gpio.c b/drivers/gpio/stm32_gpio.c index b8eb55465d3..7a2ca91c769 100644 --- a/drivers/gpio/stm32_gpio.c +++ b/drivers/gpio/stm32_gpio.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_GPIO +#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/gpio/sunxi_gpio.c b/drivers/gpio/sunxi_gpio.c index 5e86474d3db..e4463a223f7 100644 --- a/drivers/gpio/sunxi_gpio.c +++ b/drivers/gpio/sunxi_gpio.c @@ -9,6 +9,7 @@ * Tom Cubie <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/tca642x.c b/drivers/gpio/tca642x.c index 1d45b500746..b07496e6e49 100644 --- a/drivers/gpio/tca642x.c +++ b/drivers/gpio/tca642x.c @@ -20,7 +20,7 @@ * MA 02111-1307 USA */ -#include <config.h> +#include <common.h> #include <command.h> #include <i2c.h> #include <tca642x.h> diff --git a/drivers/gpio/tegra186_gpio.c b/drivers/gpio/tegra186_gpio.c index 01b8245c8d5..94a20d143e1 100644 --- a/drivers/gpio/tegra186_gpio.c +++ b/drivers/gpio/tegra186_gpio.c @@ -4,6 +4,7 @@ * (based on tegra_gpio.c) */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <errno.h> diff --git a/drivers/gpio/tegra_gpio.c b/drivers/gpio/tegra_gpio.c index 0c40d36c41e..55105f2802c 100644 --- a/drivers/gpio/tegra_gpio.c +++ b/drivers/gpio/tegra_gpio.c @@ -10,6 +10,7 @@ * Tom Warren ([email protected]) */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/vybrid_gpio.c b/drivers/gpio/vybrid_gpio.c index 5b4bba96da7..339392dcd35 100644 --- a/drivers/gpio/vybrid_gpio.c +++ b/drivers/gpio/vybrid_gpio.c @@ -4,6 +4,7 @@ * Bhuvanchandra DV, Toradex, Inc. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/gpio/xilinx_gpio.c b/drivers/gpio/xilinx_gpio.c index c0a92378b03..fa8d630b465 100644 --- a/drivers/gpio/xilinx_gpio.c +++ b/drivers/gpio/xilinx_gpio.c @@ -3,6 +3,7 @@ * Copyright (c) 2013 - 2018 Xilinx, Michal Simek */ +#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/gpio/zynq_gpio.c b/drivers/gpio/zynq_gpio.c index 7db58c70663..71a56127c0a 100644 --- a/drivers/gpio/zynq_gpio.c +++ b/drivers/gpio/zynq_gpio.c @@ -8,6 +8,7 @@ * Copyright (C) 2009 - 2014 Xilinx, Inc. */ +#include <common.h> #include <asm/gpio.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/gpio/zynqmp_gpio_modepin.c b/drivers/gpio/zynqmp_gpio_modepin.c index 8aaffaf37b3..e9565ff5430 100644 --- a/drivers/gpio/zynqmp_gpio_modepin.c +++ b/drivers/gpio/zynqmp_gpio_modepin.c @@ -5,6 +5,7 @@ * Copyright (C) 2021 Xilinx, Inc. */ +#include <common.h> #include <errno.h> #include <asm/io.h> #include <asm/gpio.h> diff --git a/drivers/hwspinlock/hwspinlock-uclass.c b/drivers/hwspinlock/hwspinlock-uclass.c index ea93efc97df..e9a4d7f9fbb 100644 --- a/drivers/hwspinlock/hwspinlock-uclass.c +++ b/drivers/hwspinlock/hwspinlock-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_HWSPINLOCK +#include <common.h> #include <dm.h> #include <errno.h> #include <hwspinlock.h> diff --git a/drivers/hwspinlock/sandbox_hwspinlock.c b/drivers/hwspinlock/sandbox_hwspinlock.c index fcda55517e1..be920f5f99d 100644 --- a/drivers/hwspinlock/sandbox_hwspinlock.c +++ b/drivers/hwspinlock/sandbox_hwspinlock.c @@ -3,6 +3,7 @@ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved */ +#include <common.h> #include <dm.h> #include <hwspinlock.h> #include <asm/state.h> diff --git a/drivers/hwspinlock/stm32_hwspinlock.c b/drivers/hwspinlock/stm32_hwspinlock.c index 5273b9bfed8..346b138e98f 100644 --- a/drivers/hwspinlock/stm32_hwspinlock.c +++ b/drivers/hwspinlock/stm32_hwspinlock.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_HWSPINLOCK +#include <common.h> #include <clk.h> #include <dm.h> #include <hwspinlock.h> diff --git a/drivers/i2c/acpi_i2c.c b/drivers/i2c/acpi_i2c.c index 82cb5db5cc8..142f41178c1 100644 --- a/drivers/i2c/acpi_i2c.c +++ b/drivers/i2c/acpi_i2c.c @@ -3,6 +3,7 @@ * Copyright 2019 Google LLC */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/ast2600_i2c.c b/drivers/i2c/ast2600_i2c.c index 9d1d70670b9..e566b01feac 100644 --- a/drivers/i2c/ast2600_i2c.c +++ b/drivers/i2c/ast2600_i2c.c @@ -2,6 +2,7 @@ /* * Copyright ASPEED Technology Inc. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/ast_i2c.c b/drivers/i2c/ast_i2c.c index 02ee406bbd7..1c1d5566dad 100644 --- a/drivers/i2c/ast_i2c.c +++ b/drivers/i2c/ast_i2c.c @@ -5,6 +5,7 @@ * Copyright 2017 Google, Inc. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/at91_i2c.c b/drivers/i2c/at91_i2c.c index cfae36c74d1..b7a25885e66 100644 --- a/drivers/i2c/at91_i2c.c +++ b/drivers/i2c/at91_i2c.c @@ -8,6 +8,7 @@ #include <malloc.h> #include <asm/global_data.h> #include <asm/io.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/cros_ec_ldo.c b/drivers/i2c/cros_ec_ldo.c index dfe823c142c..c593540ac13 100644 --- a/drivers/i2c/cros_ec_ldo.c +++ b/drivers/i2c/cros_ec_ldo.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <cros_ec.h> #include <errno.h> diff --git a/drivers/i2c/cros_ec_tunnel.c b/drivers/i2c/cros_ec_tunnel.c index 2d610e0a2aa..75828b6e7c2 100644 --- a/drivers/i2c/cros_ec_tunnel.c +++ b/drivers/i2c/cros_ec_tunnel.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <cros_ec.h> #include <errno.h> diff --git a/drivers/i2c/davinci_i2c.c b/drivers/i2c/davinci_i2c.c index 39132747208..25ef937dc0b 100644 --- a/drivers/i2c/davinci_i2c.c +++ b/drivers/i2c/davinci_i2c.c @@ -11,7 +11,7 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */ -#include <config.h> +#include <common.h> #include <i2c.h> #include <dm.h> #include <log.h> diff --git a/drivers/i2c/designware_i2c.c b/drivers/i2c/designware_i2c.c index e8c1623d41f..29cf63375c7 100644 --- a/drivers/i2c/designware_i2c.c +++ b/drivers/i2c/designware_i2c.c @@ -4,6 +4,7 @@ * Vipin Kumar, STMicroelectronics, [email protected]. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/designware_i2c_pci.c b/drivers/i2c/designware_i2c_pci.c index 11c98672265..28495a3f428 100644 --- a/drivers/i2c/designware_i2c_pci.c +++ b/drivers/i2c/designware_i2c_pci.c @@ -5,6 +5,7 @@ * Copyright 2019 Google Inc */ +#include <common.h> #include <dm.h> #include <log.h> #include <spl.h> diff --git a/drivers/i2c/exynos_hs_i2c.c b/drivers/i2c/exynos_hs_i2c.c index 9a364fdae37..a7349e06cfd 100644 --- a/drivers/i2c/exynos_hs_i2c.c +++ b/drivers/i2c/exynos_hs_i2c.c @@ -6,6 +6,7 @@ * David Mueller, ELSOFT AG, [email protected] */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/fsl_i2c.c b/drivers/i2c/fsl_i2c.c index bac14fb2f42..d9d8ee81d2e 100644 --- a/drivers/i2c/fsl_i2c.c +++ b/drivers/i2c/fsl_i2c.c @@ -6,7 +6,7 @@ * Changes for multibus/multiadapter I2C support. */ -#include <config.h> +#include <common.h> #include <command.h> #include <i2c.h> /* Functional interface */ #include <log.h> diff --git a/drivers/i2c/i2c-cdns.c b/drivers/i2c/i2c-cdns.c index 3f7cf8533ec..935b2ac6377 100644 --- a/drivers/i2c/i2c-cdns.c +++ b/drivers/i2c/i2c-cdns.c @@ -7,6 +7,7 @@ * with added driver-model support and code cleanup. */ +#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/i2c/i2c-cortina.c b/drivers/i2c/i2c-cortina.c index 96f957164c1..960ae8c700f 100644 --- a/drivers/i2c/i2c-cortina.c +++ b/drivers/i2c/i2c-cortina.c @@ -4,12 +4,12 @@ * Arthur Li, Cortina Access, [email protected]. */ +#include <common.h> #include <i2c.h> #include <log.h> #include <asm/io.h> #include <dm.h> #include <mapmem.h> -#include <time.h> #include "i2c-cortina.h" static void set_speed(struct i2c_regs *regs, int i2c_spd) diff --git a/drivers/i2c/i2c-emul-uclass.c b/drivers/i2c/i2c-emul-uclass.c index 0954d53847e..d421ddfcbe2 100644 --- a/drivers/i2c/i2c-emul-uclass.c +++ b/drivers/i2c/i2c-emul-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_I2C_EMUL +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c index e0a575fb4a4..5fc3cfe42ef 100644 --- a/drivers/i2c/i2c-gpio.c +++ b/drivers/i2c/i2c-gpio.c @@ -5,6 +5,7 @@ * This file is based on: drivers/i2c/soft-i2c.c, * with added driver-model support and code cleanup. */ +#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-microchip.c b/drivers/i2c/i2c-microchip.c index 788747879a2..d453e243d6f 100644 --- a/drivers/i2c/i2c-microchip.c +++ b/drivers/i2c/i2c-microchip.c @@ -6,6 +6,7 @@ * Padmarao Begari <[email protected]> * Conor Dooley <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 380a9f8f3ad..98f95859f3b 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_I2C +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/i2c-versatile.c b/drivers/i2c/i2c-versatile.c index a8f0a170f79..0a1a85dfc28 100644 --- a/drivers/i2c/i2c-versatile.c +++ b/drivers/i2c/i2c-versatile.c @@ -5,6 +5,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/i2c_core.c b/drivers/i2c/i2c_core.c index 7c43a5546d3..fe0cd75d94a 100644 --- a/drivers/i2c/i2c_core.c +++ b/drivers/i2c/i2c_core.c @@ -7,7 +7,7 @@ * * Multibus/multiadapter I2C core functions (wrappers) */ -#include <config.h> +#include <common.h> #include <i2c.h> #include <linker_lists.h> #include <asm/global_data.h> diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index dc88cd19167..d715714638f 100644 --- a/drivers/i2c/ihs_i2c.c +++ b/drivers/i2c/ihs_i2c.c @@ -4,6 +4,7 @@ * Dirk Eibach, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <i2c.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/i2c/imx_lpi2c.c b/drivers/i2c/imx_lpi2c.c index 6c0d8eb5f4f..ad9293c92e1 100644 --- a/drivers/i2c/imx_lpi2c.c +++ b/drivers/i2c/imx_lpi2c.c @@ -3,6 +3,7 @@ * Copyright 2016 Freescale Semiconductors, Inc. */ +#include <common.h> #include <errno.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/i2c/intel_i2c.c b/drivers/i2c/intel_i2c.c index d8ceea10cda..4fc6f1a11a7 100644 --- a/drivers/i2c/intel_i2c.c +++ b/drivers/i2c/intel_i2c.c @@ -7,11 +7,11 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> #include <pci.h> -#include <time.h> #include <asm/io.h> /* PCI Configuration Space (D31:F3): SMBus */ diff --git a/drivers/i2c/iproc_i2c.c b/drivers/i2c/iproc_i2c.c index 6570f64fe77..39af49c4ec5 100644 --- a/drivers/i2c/iproc_i2c.c +++ b/drivers/i2c/iproc_i2c.c @@ -6,6 +6,7 @@ #include <asm/global_data.h> #include <asm/io.h> +#include <common.h> #include <config.h> #include <dm.h> #include <linux/printk.h> diff --git a/drivers/i2c/lpc32xx_i2c.c b/drivers/i2c/lpc32xx_i2c.c index a4e42e64a9b..496f4feec56 100644 --- a/drivers/i2c/lpc32xx_i2c.c +++ b/drivers/i2c/lpc32xx_i2c.c @@ -6,7 +6,7 @@ * Written-by: Albert ARIBAUD - 3ADEV <[email protected]> */ -#include <config.h> +#include <common.h> #include <log.h> #include <asm/io.h> #include <i2c.h> diff --git a/drivers/i2c/meson_i2c.c b/drivers/i2c/meson_i2c.c index 19f1b6b0819..434e3461b1d 100644 --- a/drivers/i2c/meson_i2c.c +++ b/drivers/i2c/meson_i2c.c @@ -2,6 +2,7 @@ /* * (C) Copyright 2017 - Beniamino Galvani <[email protected]> */ +#include <common.h> #include <log.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c index a83d7cb0829..ad730e0e79f 100644 --- a/drivers/i2c/muxes/i2c-arb-gpio-challenge.c +++ b/drivers/i2c/muxes/i2c-arb-gpio-challenge.c @@ -4,12 +4,12 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> #include <log.h> #include <malloc.h> -#include <time.h> #include <asm/global_data.h> #include <asm/gpio.h> #include <linux/delay.h> diff --git a/drivers/i2c/muxes/i2c-mux-gpio.c b/drivers/i2c/muxes/i2c-mux-gpio.c index f212bd1f983..4ca206115f8 100644 --- a/drivers/i2c/muxes/i2c-mux-gpio.c +++ b/drivers/i2c/muxes/i2c-mux-gpio.c @@ -10,6 +10,7 @@ #include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/i2c/muxes/i2c-mux-uclass.c b/drivers/i2c/muxes/i2c-mux-uclass.c index d1999d21feb..a5d1bb0576d 100644 --- a/drivers/i2c/muxes/i2c-mux-uclass.c +++ b/drivers/i2c/muxes/i2c-mux-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_I2C_MUX +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index b4e3e16a976..0034dfbf6da 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.c @@ -5,6 +5,7 @@ * Written by Michal Simek */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/mv_i2c.c b/drivers/i2c/mv_i2c.c index 949cc45d308..5bc9cd7b295 100644 --- a/drivers/i2c/mv_i2c.c +++ b/drivers/i2c/mv_i2c.c @@ -16,6 +16,7 @@ * [email protected], 27-Jan-01. */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c index 44e8e191b03..c38330f758a 100644 --- a/drivers/i2c/mvtwsi.c +++ b/drivers/i2c/mvtwsi.c @@ -7,7 +7,7 @@ * Copyright (c) 2010 Albert Aribaud. */ -#include <config.h> +#include <common.h> #include <i2c.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/i2c/mxc_i2c.c b/drivers/i2c/mxc_i2c.c index 0acdaf7e743..d501133a0c8 100644 --- a/drivers/i2c/mxc_i2c.c +++ b/drivers/i2c/mxc_i2c.c @@ -14,7 +14,7 @@ * */ -#include <config.h> +#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/i2c/nx_i2c.c b/drivers/i2c/nx_i2c.c index 8562dd82bd6..07cda0fa679 100644 --- a/drivers/i2c/nx_i2c.c +++ b/drivers/i2c/nx_i2c.c @@ -1,8 +1,8 @@ +#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> #include <log.h> -#include <time.h> #include <asm/arch/nexell.h> #include <asm/arch/reset.h> #include <asm/arch/clk.h> diff --git a/drivers/i2c/ocores_i2c.c b/drivers/i2c/ocores_i2c.c index cf714d22ee4..fff85118d0d 100644 --- a/drivers/i2c/ocores_i2c.c +++ b/drivers/i2c/ocores_i2c.c @@ -12,6 +12,7 @@ * Andreas Larsson <[email protected]> */ +#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c index ebe472e20cd..6fc9d1eba9d 100644 --- a/drivers/i2c/omap24xx_i2c.c +++ b/drivers/i2c/omap24xx_i2c.c @@ -38,6 +38,7 @@ * */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/qup_i2c.c b/drivers/i2c/qup_i2c.c index 26707d63980..5ae3cccd4ac 100644 --- a/drivers/i2c/qup_i2c.c +++ b/drivers/i2c/qup_i2c.c @@ -9,6 +9,7 @@ #include <init.h> #include <env.h> +#include <common.h> #include <log.h> #include <dm/device_compat.h> #include <linux/delay.h> diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c index f0f9b2afacf..ff9a2d80dda 100644 --- a/drivers/i2c/rcar_i2c.c +++ b/drivers/i2c/rcar_i2c.c @@ -11,6 +11,7 @@ * Kuninori Morimoto <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/rcar_iic.c b/drivers/i2c/rcar_iic.c index 2aa0f5fbfae..f0e50914c68 100644 --- a/drivers/i2c/rcar_iic.c +++ b/drivers/i2c/rcar_iic.c @@ -9,6 +9,7 @@ * Copyright (C) 2011, 2013 Nobuhiro Iwamatsu <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/rk_i2c.c b/drivers/i2c/rk_i2c.c index fa167268ae7..9927af94a80 100644 --- a/drivers/i2c/rk_i2c.c +++ b/drivers/i2c/rk_i2c.c @@ -6,6 +6,7 @@ * Peter, Software Engineering, <[email protected]>. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/i2c/s3c24x0_i2c.c b/drivers/i2c/s3c24x0_i2c.c index 72d2ab0f73d..505e20bc61c 100644 --- a/drivers/i2c/s3c24x0_i2c.c +++ b/drivers/i2c/s3c24x0_i2c.c @@ -4,10 +4,10 @@ * David Mueller, ELSOFT AG, [email protected] */ +#include <common.h> #include <errno.h> #include <dm.h> #include <fdtdec.h> -#include <time.h> #if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5) #include <log.h> #include <asm/arch/clk.h> diff --git a/drivers/i2c/sandbox_i2c.c b/drivers/i2c/sandbox_i2c.c index 74bb5e93397..c99e6de9332 100644 --- a/drivers/i2c/sandbox_i2c.c +++ b/drivers/i2c/sandbox_i2c.c @@ -5,6 +5,7 @@ * Copyright (c) 2014 Google, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/sh_i2c.c b/drivers/i2c/sh_i2c.c index ab816101dea..3335d9482a2 100644 --- a/drivers/i2c/sh_i2c.c +++ b/drivers/i2c/sh_i2c.c @@ -7,6 +7,7 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */ +#include <common.h> #include <i2c.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/i2c/soft_i2c.c b/drivers/i2c/soft_i2c.c index 1f2afc65e8b..ed8ba47de45 100644 --- a/drivers/i2c/soft_i2c.c +++ b/drivers/i2c/soft_i2c.c @@ -15,7 +15,7 @@ * Please see doc/driver-model/i2c-howto.rst for instructions. */ -#include <config.h> +#include <common.h> #if defined(CONFIG_AT91FAMILY) #include <asm/io.h> #include <asm/arch/hardware.h> diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index 3f51b1dd1db..f42e08a6418 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c/stm32f7_i2c.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_I2C +#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/i2c/sun6i_p2wi.c b/drivers/i2c/sun6i_p2wi.c index c927c0edf25..b8e07a533ca 100644 --- a/drivers/i2c/sun6i_p2wi.c +++ b/drivers/i2c/sun6i_p2wi.c @@ -15,6 +15,7 @@ #include <axp_pmic.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/sun8i_rsb.c b/drivers/i2c/sun8i_rsb.c index 2197f180566..f36f2c7afac 100644 --- a/drivers/i2c/sun8i_rsb.c +++ b/drivers/i2c/sun8i_rsb.c @@ -10,6 +10,7 @@ #include <axp_pmic.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/tegra186_bpmp_i2c.c b/drivers/i2c/tegra186_bpmp_i2c.c index d30eb523122..588f6bdcc4b 100644 --- a/drivers/i2c/tegra186_bpmp_i2c.c +++ b/drivers/i2c/tegra186_bpmp_i2c.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c index 3c324bd2663..57d77d56ea5 100644 --- a/drivers/i2c/tegra_i2c.c +++ b/drivers/i2c/tegra_i2c.c @@ -5,6 +5,7 @@ * NVIDIA Corporation <www.nvidia.com> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/i2c/xilinx_xiic.c b/drivers/i2c/xilinx_xiic.c index 056024e350f..72199a62b2d 100644 --- a/drivers/i2c/xilinx_xiic.c +++ b/drivers/i2c/xilinx_xiic.c @@ -9,6 +9,7 @@ * Copyright (c) 2009-2010 Intel Corporation */ +#include <common.h> #include <clk.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/input/apple_spi_kbd.c b/drivers/input/apple_spi_kbd.c index 5b30cec2dcb..7cf12f453a3 100644 --- a/drivers/input/apple_spi_kbd.c +++ b/drivers/input/apple_spi_kbd.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Mark Kettenis <[email protected]> */ +#include <common.h> #include <dm.h> #include <keyboard.h> #include <spi.h> diff --git a/drivers/input/button_kbd.c b/drivers/input/button_kbd.c index 0a917ac8b99..c73d3b18be9 100644 --- a/drivers/input/button_kbd.c +++ b/drivers/input/button_kbd.c @@ -4,6 +4,7 @@ */ #include <stdlib.h> +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <input.h> diff --git a/drivers/input/cros_ec_keyb.c b/drivers/input/cros_ec_keyb.c index 0917ee20fed..c4853463739 100644 --- a/drivers/input/cros_ec_keyb.c +++ b/drivers/input/cros_ec_keyb.c @@ -5,6 +5,7 @@ * Copyright (c) 2012 The Chromium OS Authors. */ +#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h> diff --git a/drivers/input/i8042.c b/drivers/input/i8042.c index 9bf21053cf0..e6070ca0152 100644 --- a/drivers/input/i8042.c +++ b/drivers/input/i8042.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_KEYBOARD +#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/input/input.c b/drivers/input/input.c index 3f146fb07e6..8a6506e7c6f 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c @@ -6,13 +6,13 @@ * (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, [email protected] */ +#include <common.h> #include <console.h> #include <dm.h> #include <env.h> #include <errno.h> #include <log.h> #include <stdio_dev.h> -#include <time.h> #include <input.h> #ifdef CONFIG_DM_KEYBOARD #include <keyboard.h> diff --git a/drivers/input/key_matrix.c b/drivers/input/key_matrix.c index 2e631660c88..e2fb2e17078 100644 --- a/drivers/input/key_matrix.c +++ b/drivers/input/key_matrix.c @@ -6,6 +6,7 @@ * (C) Copyright 2004 DENX Software Engineering, Wolfgang Denk, [email protected] */ +#include <common.h> #include <dm.h> #include <key_matrix.h> #include <log.h> diff --git a/drivers/input/keyboard-uclass.c b/drivers/input/keyboard-uclass.c index df9ee8f7d65..aefc8e825e2 100644 --- a/drivers/input/keyboard-uclass.c +++ b/drivers/input/keyboard-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_KEYBOARD +#include <common.h> #include <dm.h> #include <keyboard.h> #include <log.h> diff --git a/drivers/input/tegra-kbc.c b/drivers/input/tegra-kbc.c index fc13975d4f0..d4741a76663 100644 --- a/drivers/input/tegra-kbc.c +++ b/drivers/input/tegra-kbc.c @@ -4,6 +4,7 @@ * NVIDIA Corporation <www.nvidia.com> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <input.h> @@ -12,7 +13,6 @@ #include <log.h> #include <stdio_dev.h> #include <tegra-kbc.h> -#include <time.h> #include <asm/io.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/iommu/apple_dart.c b/drivers/iommu/apple_dart.c index 9327dea1e3b..6ecd84303bc 100644 --- a/drivers/iommu/apple_dart.c +++ b/drivers/iommu/apple_dart.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Mark Kettenis <[email protected]> */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <iommu.h> diff --git a/drivers/iommu/iommu-uclass.c b/drivers/iommu/iommu-uclass.c index bb31cd519d2..dff3239cccb 100644 --- a/drivers/iommu/iommu-uclass.c +++ b/drivers/iommu/iommu-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_IOMMU +#include <common.h> #include <dm.h> #include <iommu.h> #include <malloc.h> diff --git a/drivers/iommu/sandbox_iommu.c b/drivers/iommu/sandbox_iommu.c index e37976f86f0..6ceb7fd5ec3 100644 --- a/drivers/iommu/sandbox_iommu.c +++ b/drivers/iommu/sandbox_iommu.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Mark Kettenis <[email protected]> */ +#include <common.h> #include <dm.h> #include <iommu.h> #include <lmb.h> diff --git a/drivers/led/led-uclass.c b/drivers/led/led-uclass.c index f37bf6a1550..a4be56fc258 100644 --- a/drivers/led/led-uclass.c +++ b/drivers/led/led-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_LED +#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_bcm6328.c b/drivers/led/led_bcm6328.c index dcc5741195c..f59a92fb1fd 100644 --- a/drivers/led/led_bcm6328.c +++ b/drivers/led/led_bcm6328.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Ălvaro FernĂĄndez Rojas <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_bcm6358.c b/drivers/led/led_bcm6358.c index b1373ab7426..25aa3994d0e 100644 --- a/drivers/led/led_bcm6358.c +++ b/drivers/led/led_bcm6358.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Ălvaro FernĂĄndez Rojas <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_bcm6753.c b/drivers/led/led_bcm6753.c index 170caf7bdca..2466d930116 100644 --- a/drivers/led/led_bcm6753.c +++ b/drivers/led/led_bcm6753.c @@ -6,6 +6,7 @@ * drivers/led/led_bcm6858.c */ +#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_bcm6858.c b/drivers/led/led_bcm6858.c index a6efdcf6405..397dc0d8693 100644 --- a/drivers/led/led_bcm6858.c +++ b/drivers/led/led_bcm6858.c @@ -7,6 +7,7 @@ * drivers/led/led_bcm6358.c */ +#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_cortina.c b/drivers/led/led_cortina.c index 2d3ad323d33..bcbe78d632a 100644 --- a/drivers/led/led_cortina.c +++ b/drivers/led/led_cortina.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_gpio.c b/drivers/led/led_gpio.c index ce22fb49f2a..71421de628c 100644 --- a/drivers/led/led_gpio.c +++ b/drivers/led/led_gpio.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/led/led_pwm.c b/drivers/led/led_pwm.c index 15dd836509b..ae6de3087ab 100644 --- a/drivers/led/led_pwm.c +++ b/drivers/led/led_pwm.c @@ -4,6 +4,7 @@ * Author: Ivan Vozvakhov <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <led.h> diff --git a/drivers/mailbox/apple-mbox.c b/drivers/mailbox/apple-mbox.c index 2ee49734f40..30c8e2f03fa 100644 --- a/drivers/mailbox/apple-mbox.c +++ b/drivers/mailbox/apple-mbox.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Mark Kettenis <[email protected]> */ +#include <common.h> #include <dm.h> #include <mailbox-uclass.h> #include <asm/io.h> diff --git a/drivers/mailbox/k3-sec-proxy.c b/drivers/mailbox/k3-sec-proxy.c index 5eafe46fd4d..05f6b1795d6 100644 --- a/drivers/mailbox/k3-sec-proxy.c +++ b/drivers/mailbox/k3-sec-proxy.c @@ -6,6 +6,7 @@ * Lokesh Vutla <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/mailbox/mailbox-uclass.c b/drivers/mailbox/mailbox-uclass.c index 4bf4987ce0a..85ba8c5fd99 100644 --- a/drivers/mailbox/mailbox-uclass.c +++ b/drivers/mailbox/mailbox-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_MAILBOX +#include <common.h> #include <dm.h> #include <log.h> #include <mailbox.h> diff --git a/drivers/mailbox/sandbox-mbox-test.c b/drivers/mailbox/sandbox-mbox-test.c index a2cfde2f62d..ffd4674d1ef 100644 --- a/drivers/mailbox/sandbox-mbox-test.c +++ b/drivers/mailbox/sandbox-mbox-test.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <mailbox.h> #include <malloc.h> diff --git a/drivers/mailbox/sandbox-mbox.c b/drivers/mailbox/sandbox-mbox.c index 87e06e492fe..87d38de0cb6 100644 --- a/drivers/mailbox/sandbox-mbox.c +++ b/drivers/mailbox/sandbox-mbox.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <mailbox-uclass.h> diff --git a/drivers/mailbox/stm32-ipcc.c b/drivers/mailbox/stm32-ipcc.c index dda108735fc..046e1a8aca6 100644 --- a/drivers/mailbox/stm32-ipcc.c +++ b/drivers/mailbox/stm32-ipcc.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_MAILBOX +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/mailbox/tegra-hsp.c b/drivers/mailbox/tegra-hsp.c index bfd4d7cdf2e..08c51c40f14 100644 --- a/drivers/mailbox/tegra-hsp.c +++ b/drivers/mailbox/tegra-hsp.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/mailbox/zynqmp-ipi.c b/drivers/mailbox/zynqmp-ipi.c index 4df69734ed9..eb86847bbe2 100644 --- a/drivers/mailbox/zynqmp-ipi.c +++ b/drivers/mailbox/zynqmp-ipi.c @@ -5,6 +5,7 @@ * Copyright (C) 2018-2019 Xilinx, Inc. */ +#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/system.h> diff --git a/drivers/memory/stm32-fmc2-ebi.c b/drivers/memory/stm32-fmc2-ebi.c index 713dead5c57..1ce96077858 100644 --- a/drivers/memory/stm32-fmc2-ebi.c +++ b/drivers/memory/stm32-fmc2-ebi.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_NOP +#include <common.h> #include <clk.h> #include <dm.h> #include <reset.h> diff --git a/drivers/memory/ti-aemif.c b/drivers/memory/ti-aemif.c index 29131f536a6..41325eb0f94 100644 --- a/drivers/memory/ti-aemif.c +++ b/drivers/memory/ti-aemif.c @@ -6,6 +6,7 @@ * Texas Instruments Incorporated, <www.ti.com> */ +#include <common.h> #include <asm/arch/hardware.h> #include <asm/ti-common/ti-aemif.h> diff --git a/drivers/memory/ti-gpmc.c b/drivers/memory/ti-gpmc.c index 8af48e199a7..8877b8f4385 100644 --- a/drivers/memory/ti-gpmc.c +++ b/drivers/memory/ti-gpmc.c @@ -7,6 +7,7 @@ #include <asm/io.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/misc/altera_sysid.c b/drivers/misc/altera_sysid.c index 21e64fa3e6f..878df12771c 100644 --- a/drivers/misc/altera_sysid.c +++ b/drivers/misc/altera_sysid.c @@ -4,6 +4,7 @@ * Scott McNutt <[email protected]> */ +#include <common.h> #include <command.h> #include <dm.h> #include <errno.h> diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index 3b9046da880..707daa90bdb 100644 --- a/drivers/misc/atsha204a-i2c.c +++ b/drivers/misc/atsha204a-i2c.c @@ -10,6 +10,7 @@ * published by the Free Software Foundation. */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <errno.h> diff --git a/drivers/misc/cbmem_console.c b/drivers/misc/cbmem_console.c index 8220addd579..ba3a599c4a5 100644 --- a/drivers/misc/cbmem_console.c +++ b/drivers/misc/cbmem_console.c @@ -3,8 +3,8 @@ * Copyright (C) 2011 The ChromiumOS Authors. All rights reserved. */ +#include <common.h> #include <console.h> -#include <linux/string.h> #include <asm/cb_sysinfo.h> void cbmemc_putc(struct stdio_dev *dev, char data) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index fabe4964a33..9c1e6a5e3e7 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -15,6 +15,7 @@ #define LOG_CATEGORY UCLASS_CROS_EC +#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> @@ -23,7 +24,6 @@ #include <log.h> #include <malloc.h> #include <spi.h> -#include <time.h> #include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> diff --git a/drivers/misc/cros_ec_i2c.c b/drivers/misc/cros_ec_i2c.c index 5516aa8b3ff..a1b78a3045d 100644 --- a/drivers/misc/cros_ec_i2c.c +++ b/drivers/misc/cros_ec_i2c.c @@ -12,6 +12,7 @@ * KBC. */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <cros_ec.h> diff --git a/drivers/misc/cros_ec_lpc.c b/drivers/misc/cros_ec_lpc.c index e2a3226362a..1a8a81349c3 100644 --- a/drivers/misc/cros_ec_lpc.c +++ b/drivers/misc/cros_ec_lpc.c @@ -12,11 +12,11 @@ * KBC. */ +#include <common.h> #include <dm.h> #include <command.h> #include <cros_ec.h> #include <log.h> -#include <time.h> #include <asm/io.h> #ifdef DEBUG_TRACE diff --git a/drivers/misc/cros_ec_sandbox.c b/drivers/misc/cros_ec_sandbox.c index 1cad51d474d..1201535f4af 100644 --- a/drivers/misc/cros_ec_sandbox.c +++ b/drivers/misc/cros_ec_sandbox.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_CROS_EC +#include <common.h> #include <cros_ec.h> #include <dm.h> #include <ec_commands.h> @@ -16,7 +17,6 @@ #include <os.h> #include <u-boot/sha256.h> #include <spi.h> -#include <time.h> #include <asm/malloc.h> #include <asm/state.h> #include <asm/sdl.h> diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c index e86791c03a7..591ff30df89 100644 --- a/drivers/misc/cros_ec_spi.c +++ b/drivers/misc/cros_ec_spi.c @@ -12,12 +12,12 @@ * KBC. */ +#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h> #include <log.h> #include <spi.h> -#include <time.h> int cros_ec_spi_packet(struct udevice *udev, int out_bytes, int in_bytes) { diff --git a/drivers/misc/ds4510.c b/drivers/misc/ds4510.c index 302015e2793..9340596f2c6 100644 --- a/drivers/misc/ds4510.c +++ b/drivers/misc/ds4510.c @@ -8,6 +8,7 @@ * and 4 programmable non-volatile GPIO pins. */ +#include <common.h> #include <i2c.h> #include <command.h> #include <linux/delay.h> diff --git a/drivers/misc/esm_pmic.c b/drivers/misc/esm_pmic.c index 1963c8664a5..a518f750611 100644 --- a/drivers/misc/esm_pmic.c +++ b/drivers/misc/esm_pmic.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <power/pmic.h> diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c index 66803f4b997..1ffc199ba1e 100644 --- a/drivers/misc/fs_loader.c +++ b/drivers/misc/fs_loader.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_FS_FIRMWARE_LOADER +#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/misc/fsl_devdis.c b/drivers/misc/fsl_devdis.c index 2c3d2348076..179053a298a 100644 --- a/drivers/misc/fsl_devdis.c +++ b/drivers/misc/fsl_devdis.c @@ -3,7 +3,7 @@ * Copyright 2015 Freescale Semiconductor, Inc. * Author: Zhuoyu Zhang <[email protected]> */ -#include <config.h> +#include <common.h> #include <asm/io.h> #include <asm/arch-ls102xa/immap_ls102xa.h> #include <asm/arch-ls102xa/config.h> diff --git a/drivers/misc/fsl_ifc.c b/drivers/misc/fsl_ifc.c index 93f41da0f97..f165b8c36ba 100644 --- a/drivers/misc/fsl_ifc.c +++ b/drivers/misc/fsl_ifc.c @@ -4,7 +4,7 @@ * Author: Dipen Dudhat <[email protected]> */ -#include <config.h> +#include <common.h> #include <fsl_ifc.h> #include <part.h> diff --git a/drivers/misc/fsl_iim.c b/drivers/misc/fsl_iim.c index 65468a68dbd..85cc3c26b2e 100644 --- a/drivers/misc/fsl_iim.c +++ b/drivers/misc/fsl_iim.c @@ -8,6 +8,7 @@ * Martha Marx <[email protected]> */ +#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/fsl_portals.c b/drivers/misc/fsl_portals.c index e7c0df78b6b..6b831281e96 100644 --- a/drivers/misc/fsl_portals.c +++ b/drivers/misc/fsl_portals.c @@ -4,7 +4,7 @@ * Copyright 2017 NXP */ -#include <config.h> +#include <common.h> #include <log.h> #include <linux/libfdt.h> #include <fdt_support.h> diff --git a/drivers/misc/fsl_sec_mon.c b/drivers/misc/fsl_sec_mon.c index 7518089e1e3..3597ee22242 100644 --- a/drivers/misc/fsl_sec_mon.c +++ b/drivers/misc/fsl_sec_mon.c @@ -3,7 +3,7 @@ * Copyright 2015 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <fsl_sec_mon.h> #include <linux/delay.h> diff --git a/drivers/misc/gdsys_ioep.c b/drivers/misc/gdsys_ioep.c index d4916a277b8..145cfa23c6c 100644 --- a/drivers/misc/gdsys_ioep.c +++ b/drivers/misc/gdsys_ioep.c @@ -11,6 +11,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/misc/gdsys_rxaui_ctrl.c b/drivers/misc/gdsys_rxaui_ctrl.c index d4cd63ca9f8..8f5cbe420f8 100644 --- a/drivers/misc/gdsys_rxaui_ctrl.c +++ b/drivers/misc/gdsys_rxaui_ctrl.c @@ -7,6 +7,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <regmap.h> #include <misc.h> diff --git a/drivers/misc/gdsys_soc.c b/drivers/misc/gdsys_soc.c index 0adbb8df3c2..27e7dc48327 100644 --- a/drivers/misc/gdsys_soc.c +++ b/drivers/misc/gdsys_soc.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/lists.h> diff --git a/drivers/misc/gpio_led.c b/drivers/misc/gpio_led.c index e63689967a7..30679f80cf1 100644 --- a/drivers/misc/gpio_led.c +++ b/drivers/misc/gpio_led.c @@ -5,6 +5,7 @@ * Licensed under the GPL-2 or later. */ +#include <common.h> #include <status_led.h> #include <asm/gpio.h> diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c index 10f0173d805..9111bd724cb 100644 --- a/drivers/misc/i2c_eeprom.c +++ b/drivers/misc/i2c_eeprom.c @@ -5,6 +5,8 @@ #define LOG_CATEGORY UCLASS_I2C_EEPROM +#include <common.h> +#include <eeprom.h> #include <linux/delay.h> #include <linux/err.h> #include <linux/kernel.h> diff --git a/drivers/misc/i2c_eeprom_emul.c b/drivers/misc/i2c_eeprom_emul.c index 3ad2e047ee3..6f32087ede5 100644 --- a/drivers/misc/i2c_eeprom_emul.c +++ b/drivers/misc/i2c_eeprom_emul.c @@ -5,6 +5,7 @@ * Copyright (c) 2014 Google, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/misc/ihs_fpga.c b/drivers/misc/ihs_fpga.c index fe196b60819..a0fece985d8 100644 --- a/drivers/misc/ihs_fpga.c +++ b/drivers/misc/ihs_fpga.c @@ -9,6 +9,7 @@ * Dirk Eibach, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <log.h> #include <regmap.h> diff --git a/drivers/misc/imx8/fuse.c b/drivers/misc/imx8/fuse.c index 90d251a4405..b81f73f283f 100644 --- a/drivers/misc/imx8/fuse.c +++ b/drivers/misc/imx8/fuse.c @@ -3,6 +3,7 @@ * Copyright 2019 NXP */ +#include <common.h> #include <console.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index bbd7e24200b..798800aa758 100644 --- a/drivers/misc/imx8/scu.c +++ b/drivers/misc/imx8/scu.c @@ -5,6 +5,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/misc/imx8/scu_api.c b/drivers/misc/imx8/scu_api.c index 591d71b096a..6e2c678e614 100644 --- a/drivers/misc/imx8/scu_api.c +++ b/drivers/misc/imx8/scu_api.c @@ -5,6 +5,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <hang.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/misc/imx_ele/ele_api.c b/drivers/misc/imx_ele/ele_api.c index 3745504637b..e0ec22c7abf 100644 --- a/drivers/misc/imx_ele/ele_api.c +++ b/drivers/misc/imx_ele/ele_api.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <hang.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/misc/imx_ele/ele_mu.c b/drivers/misc/imx_ele/ele_mu.c index 0cf81f33ba5..053cdcf0fe0 100644 --- a/drivers/misc/imx_ele/ele_mu.c +++ b/drivers/misc/imx_ele/ele_mu.c @@ -3,6 +3,7 @@ * Copyright 2020-2022 NXP */ +#include <common.h> #include <asm/io.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/misc/imx_ele/fuse.c b/drivers/misc/imx_ele/fuse.c index d12539c8aac..4e4dcb42cdd 100644 --- a/drivers/misc/imx_ele/fuse.c +++ b/drivers/misc/imx_ele/fuse.c @@ -3,6 +3,7 @@ * Copyright 2020 NXP */ +#include <common.h> #include <console.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/irq-uclass.c b/drivers/misc/irq-uclass.c index 79eb7c200dc..7b79ed2df46 100644 --- a/drivers/misc/irq-uclass.c +++ b/drivers/misc/irq-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_IRQ +#include <common.h> #include <dm.h> #include <dt-structs.h> #include <irq.h> diff --git a/drivers/misc/irq_sandbox.c b/drivers/misc/irq_sandbox.c index 5d176f63b5c..8b5573fcadd 100644 --- a/drivers/misc/irq_sandbox.c +++ b/drivers/misc/irq_sandbox.c @@ -5,6 +5,7 @@ * Copyright 2019 Google LLC */ +#include <common.h> #include <dm.h> #include <irq.h> #include <acpi/acpi_device.h> diff --git a/drivers/misc/irq_sandbox_test.c b/drivers/misc/irq_sandbox_test.c index 3669b863bec..95c45c24edb 100644 --- a/drivers/misc/irq_sandbox_test.c +++ b/drivers/misc/irq_sandbox_test.c @@ -5,6 +5,7 @@ * Copyright 2021 Google LLC */ +#include <common.h> #include <dm.h> #include <irq.h> #include <asm/irq.h> diff --git a/drivers/misc/jz4780_efuse.c b/drivers/misc/jz4780_efuse.c index 5c92de26ec5..1fba3271db6 100644 --- a/drivers/misc/jz4780_efuse.c +++ b/drivers/misc/jz4780_efuse.c @@ -6,6 +6,7 @@ * Author: Alex Smith <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <asm/unaligned.h> #include <errno.h> diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c index 87471cc3b16..0d29eff1ac0 100644 --- a/drivers/misc/k3_avs.c +++ b/drivers/misc/k3_avs.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/misc/k3_esm.c b/drivers/misc/k3_esm.c index fa3d6565622..f6ac18bdc75 100644 --- a/drivers/misc/k3_esm.c +++ b/drivers/misc/k3_esm.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/misc/ls2_sfp.c b/drivers/misc/ls2_sfp.c index 8cb6e999bed..5351c7ed34f 100644 --- a/drivers/misc/ls2_sfp.c +++ b/drivers/misc/ls2_sfp.c @@ -12,6 +12,7 @@ */ #define LOG_CATEGORY UCLASS_MISC +#include <common.h> #include <clk.h> #include <fuse.h> #include <misc.h> diff --git a/drivers/misc/microchip_flexcom.c b/drivers/misc/microchip_flexcom.c index c5ddecac755..e0a6f2d3880 100644 --- a/drivers/misc/microchip_flexcom.c +++ b/drivers/misc/microchip_flexcom.c @@ -4,6 +4,7 @@ * Author: Eugen Hristev <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/misc/misc-uclass.c b/drivers/misc/misc-uclass.c index 1389e146b61..cfe9d562fa0 100644 --- a/drivers/misc/misc-uclass.c +++ b/drivers/misc/misc-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_MISC +#include <common.h> #include <dm.h> #include <errno.h> #include <misc.h> diff --git a/drivers/misc/misc_sandbox.c b/drivers/misc/misc_sandbox.c index 2473419df2a..31cde2dbac0 100644 --- a/drivers/misc/misc_sandbox.c +++ b/drivers/misc/misc_sandbox.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <misc.h> diff --git a/drivers/misc/mpc83xx_serdes.c b/drivers/misc/mpc83xx_serdes.c index cf9aa9b35b3..93c87e998c4 100644 --- a/drivers/misc/mpc83xx_serdes.c +++ b/drivers/misc/mpc83xx_serdes.c @@ -9,6 +9,7 @@ * Copyright (C) 2008 MontaVista Software, Inc. */ +#include <common.h> #include <dm.h> #include <log.h> #include <mapmem.h> diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index d1674caa138..8ee18f29d9b 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -11,6 +11,7 @@ * Copyright (C) 2011 Freescale Semiconductor, Inc. */ +#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/mxs_ocotp.c b/drivers/misc/mxs_ocotp.c index 6432c62dac3..facc720c8ef 100644 --- a/drivers/misc/mxs_ocotp.c +++ b/drivers/misc/mxs_ocotp.c @@ -11,6 +11,7 @@ * etc.) which would make common driver an ifdef nightmare :-( */ +#include <common.h> #include <fuse.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/misc/npcm_host_intf.c b/drivers/misc/npcm_host_intf.c index 58bab888c3c..79f57f57d89 100644 --- a/drivers/misc/npcm_host_intf.c +++ b/drivers/misc/npcm_host_intf.c @@ -4,6 +4,7 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/misc/npcm_otp.c b/drivers/misc/npcm_otp.c index adb6135291d..08029724c04 100644 --- a/drivers/misc/npcm_otp.c +++ b/drivers/misc/npcm_otp.c @@ -4,6 +4,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <fuse.h> diff --git a/drivers/misc/nuvoton_nct6102d.c b/drivers/misc/nuvoton_nct6102d.c index a3ca037d25f..daf5019d017 100644 --- a/drivers/misc/nuvoton_nct6102d.c +++ b/drivers/misc/nuvoton_nct6102d.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ +#include <common.h> #include <nuvoton_nct6102d.h> #include <asm/io.h> #include <asm/pnp_def.h> diff --git a/drivers/misc/nvmem.c b/drivers/misc/nvmem.c index d0cb0a35b81..5a2bd1f9f72 100644 --- a/drivers/misc/nvmem.c +++ b/drivers/misc/nvmem.c @@ -3,6 +3,7 @@ * Copyright (C) 2022 Sean Anderson <[email protected]> */ +#include <common.h> #include <i2c_eeprom.h> #include <linker_lists.h> #include <misc.h> diff --git a/drivers/misc/p2sb-uclass.c b/drivers/misc/p2sb-uclass.c index 016c8073378..f24857a1515 100644 --- a/drivers/misc/p2sb-uclass.c +++ b/drivers/misc/p2sb-uclass.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_P2SB +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/misc/p2sb_emul.c b/drivers/misc/p2sb_emul.c index 3dac6bd82e3..51f87161d5b 100644 --- a/drivers/misc/p2sb_emul.c +++ b/drivers/misc/p2sb_emul.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_MISC +#include <common.h> #include <axi.h> #include <dm.h> #include <log.h> diff --git a/drivers/misc/p2sb_sandbox.c b/drivers/misc/p2sb_sandbox.c index 9f3cd14958b..d80bca22a6b 100644 --- a/drivers/misc/p2sb_sandbox.c +++ b/drivers/misc/p2sb_sandbox.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_P2SB +#include <common.h> #include <dm.h> #include <asm/io.h> #include <p2sb.h> diff --git a/drivers/misc/pca9551_led.c b/drivers/misc/pca9551_led.c index 040d0d5cf48..cdc4390f815 100644 --- a/drivers/misc/pca9551_led.c +++ b/drivers/misc/pca9551_led.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Stefan Roese <[email protected]> */ +#include <common.h> #include <errno.h> #include <i2c.h> #include <status_led.h> diff --git a/drivers/misc/pwrseq-uclass.c b/drivers/misc/pwrseq-uclass.c index bddc3c33685..a0f24e1bf3a 100644 --- a/drivers/misc/pwrseq-uclass.c +++ b/drivers/misc/pwrseq-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_PWRSEQ +#include <common.h> #include <dm.h> #include <pwrseq.h> diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index 0e002ac25f4..db98619fdf5 100644 --- a/drivers/misc/qfw.c +++ b/drivers/misc/qfw.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_QFW +#include <common.h> #include <acpi/acpi_table.h> #include <bootdev.h> #include <bootflow.h> diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index c7430147718..2f96b79ea40 100644 --- a/drivers/misc/rockchip-efuse.c +++ b/drivers/misc/rockchip-efuse.c @@ -6,6 +6,7 @@ * Written by Philipp Tomsich <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <command.h> #include <display_options.h> diff --git a/drivers/misc/rockchip-otp.c b/drivers/misc/rockchip-otp.c index 2123c31038f..4f757083a1b 100644 --- a/drivers/misc/rockchip-otp.c +++ b/drivers/misc/rockchip-otp.c @@ -3,6 +3,7 @@ * Copyright (c) 2019 Fuzhou Rockchip Electronics Co., Ltd */ +#include <common.h> #include <asm/io.h> #include <command.h> #include <display_options.h> diff --git a/drivers/misc/sandbox_adder.c b/drivers/misc/sandbox_adder.c index de1c6357582..3ea33e46e9f 100644 --- a/drivers/misc/sandbox_adder.c +++ b/drivers/misc/sandbox_adder.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_MISC +#include <common.h> #include <axi.h> #include <dm.h> #include <misc.h> diff --git a/drivers/misc/sifive-otp.c b/drivers/misc/sifive-otp.c index 7fbcd3799e5..a624a358802 100644 --- a/drivers/misc/sifive-otp.c +++ b/drivers/misc/sifive-otp.c @@ -17,6 +17,7 @@ * Right now first 1KiB is used to store only serial number. */ +#include <common.h> #include <dm/device.h> #include <dm/read.h> #include <linux/bitops.h> diff --git a/drivers/misc/sl28cpld.c b/drivers/misc/sl28cpld.c index 1c61b005af3..01ef1c6178f 100644 --- a/drivers/misc/sl28cpld.c +++ b/drivers/misc/sl28cpld.c @@ -3,6 +3,7 @@ * Copyright (c) 2021 Michael Walle <[email protected]> */ +#include <common.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/misc/smsc_lpc47m.c b/drivers/misc/smsc_lpc47m.c index 1b15907b093..bda064f1365 100644 --- a/drivers/misc/smsc_lpc47m.c +++ b/drivers/misc/smsc_lpc47m.c @@ -3,6 +3,7 @@ * Copyright (C) 2014, Bin Meng <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <asm/pnp_def.h> diff --git a/drivers/misc/smsc_sio1007.c b/drivers/misc/smsc_sio1007.c index 6d99aa61d91..3b7b1c8bcf2 100644 --- a/drivers/misc/smsc_sio1007.c +++ b/drivers/misc/smsc_sio1007.c @@ -3,6 +3,7 @@ * Copyright (C) 2016, Bin Meng <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <errno.h> #include <smsc_sio1007.h> diff --git a/drivers/misc/spltest_sandbox.c b/drivers/misc/spltest_sandbox.c index 3011a229271..6b9701a06ae 100644 --- a/drivers/misc/spltest_sandbox.c +++ b/drivers/misc/spltest_sandbox.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/misc/status_led.c b/drivers/misc/status_led.c index 3b1baa4f840..a6e9c03a02e 100644 --- a/drivers/misc/status_led.c +++ b/drivers/misc/status_led.c @@ -4,8 +4,8 @@ * Wolfgang Denk, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <status_led.h> -#include <linux/types.h> /* * The purpose of this code is to signal the operational status of a diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c index 0dd827e1dd0..c1e5428a6b8 100644 --- a/drivers/misc/stm32_rcc.c +++ b/drivers/misc/stm32_rcc.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_NOP +#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/misc/stm32mp_fuse.c b/drivers/misc/stm32mp_fuse.c index 34be6c28c19..9fd6c367dc6 100644 --- a/drivers/misc/stm32mp_fuse.c +++ b/drivers/misc/stm32mp_fuse.c @@ -3,6 +3,7 @@ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved */ +#include <common.h> #include <command.h> #include <fuse.h> #include <misc.h> diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c index d4a5620c62c..ee5c12bd0a4 100644 --- a/drivers/misc/swap_case.c +++ b/drivers/misc/swap_case.c @@ -6,6 +6,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/misc/syscon_sandbox.c b/drivers/misc/syscon_sandbox.c index 6adb4154c25..d5cef188d74 100644 --- a/drivers/misc/syscon_sandbox.c +++ b/drivers/misc/syscon_sandbox.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <syscon.h> diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c index a1585b81867..fecac9c4d90 100644 --- a/drivers/misc/tegra186_bpmp.c +++ b/drivers/misc/tegra186_bpmp.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/misc/tegra_car.c b/drivers/misc/tegra_car.c index 497ec18564c..0ddbb3c619b 100644 --- a/drivers/misc/tegra_car.c +++ b/drivers/misc/tegra_car.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/lists.h> diff --git a/drivers/misc/test_drv.c b/drivers/misc/test_drv.c index 9b1e357a139..927618256f0 100644 --- a/drivers/misc/test_drv.c +++ b/drivers/misc/test_drv.c @@ -3,6 +3,7 @@ * Copyright (c) 2014 Google, Inc */ +#include <common.h> #include <dm.h> #include <dm/test.h> #include <asm/global_data.h> diff --git a/drivers/misc/turris_omnia_mcu.c b/drivers/misc/turris_omnia_mcu.c index be77acbd165..6b2f17c0002 100644 --- a/drivers/misc/turris_omnia_mcu.c +++ b/drivers/misc/turris_omnia_mcu.c @@ -4,6 +4,7 @@ * Copyright (C) 2024 Marek BehĂșn <[email protected]> */ +#include <common.h> #include <console.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/misc/usb251xb.c b/drivers/misc/usb251xb.c index daba2c2d683..92e92ba5e62 100644 --- a/drivers/misc/usb251xb.c +++ b/drivers/misc/usb251xb.c @@ -10,6 +10,7 @@ * https://patchwork.kernel.org/patch/9257715/ */ +#include <common.h> #include <asm/gpio.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/misc/vexpress_config.c b/drivers/misc/vexpress_config.c index e7655ceff74..99aad1412ae 100644 --- a/drivers/misc/vexpress_config.c +++ b/drivers/misc/vexpress_config.c @@ -4,6 +4,7 @@ * Author: Liviu Dudau <[email protected]> * */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/read.h> diff --git a/drivers/misc/winbond_w83627.c b/drivers/misc/winbond_w83627.c index 87b9043e65c..3838b3f74f4 100644 --- a/drivers/misc/winbond_w83627.c +++ b/drivers/misc/winbond_w83627.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <asm/pnp_def.h> diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig index d0944793c92..549634891a3 100644 --- a/drivers/mmc/Kconfig +++ b/drivers/mmc/Kconfig @@ -147,16 +147,9 @@ config SPL_MMC_IO_VOLTAGE support. For eMMC this not mandatory, but not enabling this option may prevent the driver of using the faster modes. -config MMC_SUPPORTS_TUNING - bool - -config SPL_MMC_SUPPORTS_TUNING - bool - config MMC_UHS_SUPPORT bool "enable UHS support" depends on MMC_IO_VOLTAGE - select MMC_SUPPORTS_TUNING help The Ultra High Speed (UHS) bus is available on some SDHC and SDXC cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus @@ -165,7 +158,6 @@ config MMC_UHS_SUPPORT config SPL_MMC_UHS_SUPPORT bool "enable UHS support in SPL" depends on SPL_MMC_IO_VOLTAGE - select SPL_MMC_SUPPORTS_TUNING help The Ultra High Speed (UHS) bus is available on some SDHC and SDXC cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus @@ -201,7 +193,6 @@ config SPL_MMC_HS400_SUPPORT config MMC_HS200_SUPPORT bool "enable HS200 support" - select MMC_SUPPORTS_TUNING help The HS200 mode is support by some eMMC. The bus frequency is up to 200MHz. This mode requires tuning the IO. @@ -209,7 +200,6 @@ config MMC_HS200_SUPPORT config SPL_MMC_HS200_SUPPORT bool "enable HS200 support in SPL" depends on SPL_MMC - select SPL_MMC_SUPPORTS_TUNING help The HS200 mode is support by some eMMC. The bus frequency is up to 200MHz. This mode requires tuning the IO. @@ -357,7 +347,6 @@ config MMC_OCTEONTX bool "Marvell Octeon Multimedia Card Interface support" depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2) depends on DM_MMC - select MMC_SUPPORTS_TUNING if ARCH_OCTEONTX2 help This selects the Octeon Multimedia card Interface. If you have an OcteonTX/TX2 or MIPS Octeon board with a diff --git a/drivers/mmc/am654_sdhci.c b/drivers/mmc/am654_sdhci.c index 48fac7a11b4..fadab7d40bb 100644 --- a/drivers/mmc/am654_sdhci.c +++ b/drivers/mmc/am654_sdhci.c @@ -6,6 +6,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <malloc.h> #include <mmc.h> @@ -396,7 +397,7 @@ static void am654_sdhci_write_b(struct sdhci_host *host, u8 val, int reg) writeb(val, host->ioaddr + reg); } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING #define ITAPDLY_LENGTH 32 #define ITAPDLY_LAST_INDEX (ITAPDLY_LENGTH - 1) @@ -499,7 +500,7 @@ static int am654_sdhci_execute_tuning(struct mmc *mmc, u8 opcode) } #endif const struct sdhci_ops am654_sdhci_ops = { -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING .platform_execute_tuning = am654_sdhci_execute_tuning, #endif .deferred_probe = am654_sdhci_deferred_probe, @@ -559,7 +560,7 @@ static int j721e_4bit_sdhci_set_ios_post(struct sdhci_host *host) } const struct sdhci_ops j721e_4bit_sdhci_ops = { -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING .platform_execute_tuning = am654_sdhci_execute_tuning, #endif .deferred_probe = am654_sdhci_deferred_probe, diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index f00b0ff0dc9..cecc7ad783d 100644 --- a/drivers/mmc/arm_pl180_mmci.c +++ b/drivers/mmc/arm_pl180_mmci.c @@ -11,6 +11,7 @@ /* #define DEBUG */ +#include "common.h" #include <clk.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/aspeed_sdhci.c b/drivers/mmc/aspeed_sdhci.c index 87a6f66ebb3..c9626c6beb8 100644 --- a/drivers/mmc/aspeed_sdhci.c +++ b/drivers/mmc/aspeed_sdhci.c @@ -4,6 +4,7 @@ * Eddie James <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/atmel_sdhci.c b/drivers/mmc/atmel_sdhci.c index 0b265196f02..d92bad97b71 100644 --- a/drivers/mmc/atmel_sdhci.c +++ b/drivers/mmc/atmel_sdhci.c @@ -4,6 +4,7 @@ * Wenyou.Yang <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c index 598a51d914a..5e48394fd0f 100644 --- a/drivers/mmc/bcm2835_sdhci.c +++ b/drivers/mmc/bcm2835_sdhci.c @@ -36,6 +36,7 @@ * Inspired by sdhci-pci.c, by Pierre Ossman */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/bcm2835_sdhost.c b/drivers/mmc/bcm2835_sdhost.c index 720127468d3..5c23c03d10d 100644 --- a/drivers/mmc/bcm2835_sdhost.c +++ b/drivers/mmc/bcm2835_sdhost.c @@ -30,6 +30,7 @@ * sdhci.c and sdhci-pci.c by Pierre Ossman */ #include <clk.h> +#include <common.h> #include <dm.h> #include <mmc.h> #include <asm/arch/msg.h> diff --git a/drivers/mmc/bcmstb_sdhci.c b/drivers/mmc/bcmstb_sdhci.c index 7bddbebb162..49846adcf54 100644 --- a/drivers/mmc/bcmstb_sdhci.c +++ b/drivers/mmc/bcmstb_sdhci.c @@ -6,6 +6,7 @@ * Author: Thomas Fitzsimmons <[email protected]> */ +#include <common.h> #include <dm.h> #include <mach/sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/ca_dw_mmc.c b/drivers/mmc/ca_dw_mmc.c index 54a2ba4795e..a17ed8c11cb 100644 --- a/drivers/mmc/ca_dw_mmc.c +++ b/drivers/mmc/ca_dw_mmc.c @@ -4,6 +4,7 @@ * Arthur Li <[email protected]> */ +#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/davinci_mmc.c b/drivers/mmc/davinci_mmc.c index 5107fcd8362..3a3d23aec00 100644 --- a/drivers/mmc/davinci_mmc.c +++ b/drivers/mmc/davinci_mmc.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <mmc.h> diff --git a/drivers/mmc/dw_mmc.c b/drivers/mmc/dw_mmc.c index e6107c770fe..e1036641452 100644 --- a/drivers/mmc/dw_mmc.c +++ b/drivers/mmc/dw_mmc.c @@ -6,6 +6,7 @@ */ #include <bouncebuf.h> +#include <common.h> #include <cpu_func.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/exynos_dw_mmc.c b/drivers/mmc/exynos_dw_mmc.c index a51f762988d..2f849c43b12 100644 --- a/drivers/mmc/exynos_dw_mmc.c +++ b/drivers/mmc/exynos_dw_mmc.c @@ -4,6 +4,7 @@ * Jaehoon Chung <[email protected]> */ +#include <common.h> #include <dwmmc.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/f_sdh30.c b/drivers/mmc/f_sdh30.c index f47cf848521..3d587a464d5 100644 --- a/drivers/mmc/f_sdh30.c +++ b/drivers/mmc/f_sdh30.c @@ -5,6 +5,7 @@ * Copyright 2021 Socionext, Inc. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c index 0c66980b621..595d88bd562 100644 --- a/drivers/mmc/fsl_esdhc.c +++ b/drivers/mmc/fsl_esdhc.c @@ -10,6 +10,7 @@ */ #include <config.h> +#include <common.h> #include <command.h> #include <cpu_func.h> #include <errno.h> @@ -1101,7 +1102,7 @@ static int fsl_esdhc_reinit(struct udevice *dev) return esdhc_init_common(priv, &plat->mmc); } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING static int fsl_esdhc_execute_tuning(struct udevice *dev, uint32_t opcode) { struct fsl_esdhc_plat *plat = dev_get_plat(dev); @@ -1174,7 +1175,7 @@ static const struct dm_mmc_ops fsl_esdhc_ops = { .get_cd = fsl_esdhc_get_cd, .send_cmd = fsl_esdhc_send_cmd, .set_ios = fsl_esdhc_set_ios, -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING .execute_tuning = fsl_esdhc_execute_tuning, #endif .reinit = fsl_esdhc_reinit, diff --git a/drivers/mmc/fsl_esdhc_imx.c b/drivers/mmc/fsl_esdhc_imx.c index a9b8d7dd67f..b74c0140020 100644 --- a/drivers/mmc/fsl_esdhc_imx.c +++ b/drivers/mmc/fsl_esdhc_imx.c @@ -11,6 +11,7 @@ */ #include <config.h> +#include <common.h> #include <command.h> #include <clk.h> #include <cpu_func.h> @@ -634,7 +635,7 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, struct mmc *mmc, uint clock) priv->clock = clock; } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING static int esdhc_change_pinstate(struct udevice *dev) { struct fsl_esdhc_priv *priv = dev_get_priv(dev); @@ -912,7 +913,7 @@ static int esdhc_set_ios_common(struct fsl_esdhc_priv *priv, struct mmc *mmc) int ret __maybe_unused; u32 clock; -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING /* * call esdhc_set_timing() before update the clock rate, * This is because current we support DDR and SDR mode, @@ -950,7 +951,7 @@ static int esdhc_set_ios_common(struct fsl_esdhc_priv *priv, struct mmc *mmc) esdhc_setbits32(®s->sysctl, SYSCTL_PEREN | SYSCTL_CKEN); } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING /* * For HS400/HS400ES mode, make sure set the strobe dll in the * target clock rate. So call esdhc_set_strobe_dll() after the @@ -1617,7 +1618,7 @@ static const struct dm_mmc_ops fsl_esdhc_ops = { .get_cd = fsl_esdhc_get_cd, .send_cmd = fsl_esdhc_send_cmd, .set_ios = fsl_esdhc_set_ios, -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING .execute_tuning = fsl_esdhc_execute_tuning, #endif #if CONFIG_IS_ENABLED(MMC_HS400_ES_SUPPORT) diff --git a/drivers/mmc/fsl_esdhc_spl.c b/drivers/mmc/fsl_esdhc_spl.c index 1a11258be4d..6d7c0cff22a 100644 --- a/drivers/mmc/fsl_esdhc_spl.c +++ b/drivers/mmc/fsl_esdhc_spl.c @@ -3,7 +3,7 @@ * Copyright 2013 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <cpu_func.h> #include <hang.h> #include <mmc.h> diff --git a/drivers/mmc/ftsdc010_mci.c b/drivers/mmc/ftsdc010_mci.c index 11e44264e47..cabb747fbbd 100644 --- a/drivers/mmc/ftsdc010_mci.c +++ b/drivers/mmc/ftsdc010_mci.c @@ -9,6 +9,7 @@ * Author: Rick Chen ([email protected]) */ +#include <common.h> #include <clk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/gen_atmel_mci.c b/drivers/mmc/gen_atmel_mci.c index 6a531fa0961..3ee99558f6f 100644 --- a/drivers/mmc/gen_atmel_mci.c +++ b/drivers/mmc/gen_atmel_mci.c @@ -8,7 +8,7 @@ * Copyright (C) 2004-2006 Atmel Corporation */ -#include <config.h> +#include <common.h> #include <clk.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/mmc/hi6220_dw_mmc.c b/drivers/mmc/hi6220_dw_mmc.c index c68a9157bfc..dc0210402bd 100644 --- a/drivers/mmc/hi6220_dw_mmc.c +++ b/drivers/mmc/hi6220_dw_mmc.c @@ -4,6 +4,7 @@ * peter.griffin <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/iproc_sdhci.c b/drivers/mmc/iproc_sdhci.c index 7ab74ff117a..11d86ad658f 100644 --- a/drivers/mmc/iproc_sdhci.c +++ b/drivers/mmc/iproc_sdhci.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/mmc/jz_mmc.c b/drivers/mmc/jz_mmc.c index fc10bb256a4..61e48ee0f62 100644 --- a/drivers/mmc/jz_mmc.c +++ b/drivers/mmc/jz_mmc.c @@ -6,6 +6,7 @@ * Author: Paul Burton <[email protected]> */ +#include <common.h> #include <malloc.h> #include <mmc.h> #include <asm/global_data.h> diff --git a/drivers/mmc/kona_sdhci.c b/drivers/mmc/kona_sdhci.c index 83f14122632..2bbe673b912 100644 --- a/drivers/mmc/kona_sdhci.c +++ b/drivers/mmc/kona_sdhci.c @@ -3,6 +3,7 @@ * Copyright 2013 Broadcom Corporation. */ +#include <common.h> #include <malloc.h> #include <sdhci.h> #include <linux/delay.h> diff --git a/drivers/mmc/meson_gx_mmc.c b/drivers/mmc/meson_gx_mmc.c index 5852b24c6d2..0825c0a2a83 100644 --- a/drivers/mmc/meson_gx_mmc.c +++ b/drivers/mmc/meson_gx_mmc.c @@ -3,6 +3,7 @@ * (C) Copyright 2016 Carlo Caione <[email protected]> */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/mmc-pwrseq.c b/drivers/mmc/mmc-pwrseq.c index a1c9624a222..2539f61323d 100644 --- a/drivers/mmc/mmc-pwrseq.c +++ b/drivers/mmc/mmc-pwrseq.c @@ -4,6 +4,7 @@ * Jaehoon Chung <[email protected]> */ +#include <common.h> #include <dm.h> #include <mmc.h> #include <pwrseq.h> diff --git a/drivers/mmc/mmc-uclass.c b/drivers/mmc/mmc-uclass.c index da6a39b7d99..24170c59ecc 100644 --- a/drivers/mmc/mmc-uclass.c +++ b/drivers/mmc/mmc-uclass.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_MMC +#include <common.h> #include <bootdev.h> #include <log.h> #include <mmc.h> @@ -111,7 +112,7 @@ int mmc_getcd(struct mmc *mmc) return dm_mmc_get_cd(mmc->dev); } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING static int dm_mmc_execute_tuning(struct udevice *dev, uint opcode) { struct dm_mmc_ops *ops = mmc_get_ops(dev); diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index b18dc331f78..7b068c71ff3 100644 --- a/drivers/mmc/mmc.c +++ b/drivers/mmc/mmc.c @@ -8,6 +8,7 @@ */ #include <config.h> +#include <common.h> #include <blk.h> #include <command.h> #include <dm.h> @@ -16,7 +17,6 @@ #include <errno.h> #include <mmc.h> #include <part.h> -#include <time.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/printk.h> @@ -24,7 +24,6 @@ #include <malloc.h> #include <memalign.h> #include <linux/list.h> -#include <linux/printk.h> #include <div64.h> #include "mmc_private.h" @@ -330,7 +329,7 @@ int mmc_set_blocklen(struct mmc *mmc, int len) MMC_QUIRK_RETRY_SET_BLOCKLEN, 4); } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING static const u8 tuning_blk_pattern_4bit[] = { 0xff, 0x0f, 0xff, 0x00, 0xff, 0xcc, 0xc3, 0xcc, 0xc3, 0x3c, 0xcc, 0xff, 0xfe, 0xff, 0xfe, 0xef, @@ -1622,7 +1621,7 @@ static inline int bus_width(uint cap) } #if !CONFIG_IS_ENABLED(DM_MMC) -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING static int mmc_execute_tuning(struct mmc *mmc, uint opcode) { return -ENOTSUPP; @@ -1703,7 +1702,7 @@ void mmc_dump_capabilities(const char *text, uint caps) struct mode_width_tuning { enum bus_mode mode; uint widths; -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING uint tuning; #endif }; @@ -1744,7 +1743,7 @@ static inline int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage) #if !CONFIG_IS_ENABLED(MMC_TINY) static const struct mode_width_tuning sd_modes_by_pref[] = { #if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT) -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING { .mode = UHS_SDR104, .widths = MMC_MODE_4BIT | MMC_MODE_1BIT, @@ -1847,7 +1846,7 @@ static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps) mmc_set_clock(mmc, mmc->tran_speed, MMC_CLK_ENABLE); -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING /* execute tuning if needed */ if (mwt->tuning && !mmc_host_is_spi(mmc)) { err = mmc_execute_tuning(mmc, @@ -2225,7 +2224,7 @@ static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps) mmc_select_mode(mmc, mwt->mode); mmc_set_clock(mmc, mmc->tran_speed, MMC_CLK_ENABLE); -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING /* execute tuning if needed */ if (mwt->tuning) { diff --git a/drivers/mmc/mmc_boot.c b/drivers/mmc/mmc_boot.c index 367c957b518..0a74b1fb776 100644 --- a/drivers/mmc/mmc_boot.c +++ b/drivers/mmc/mmc_boot.c @@ -4,6 +4,7 @@ * Written by Amar <[email protected]> */ +#include <common.h> #include <log.h> #include <mmc.h> #include "mmc_private.h" diff --git a/drivers/mmc/mmc_bootdev.c b/drivers/mmc/mmc_bootdev.c index 5a1688b75d0..55ecead2ddf 100644 --- a/drivers/mmc/mmc_bootdev.c +++ b/drivers/mmc/mmc_bootdev.c @@ -6,6 +6,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <bootdev.h> #include <dm.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_legacy.c b/drivers/mmc/mmc_legacy.c index a87d2276c1b..a101ee43fde 100644 --- a/drivers/mmc/mmc_legacy.c +++ b/drivers/mmc/mmc_legacy.c @@ -5,6 +5,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/mmc_spi.c b/drivers/mmc/mmc_spi.c index 675e642efd0..bcea800e5f6 100644 --- a/drivers/mmc/mmc_spi.c +++ b/drivers/mmc/mmc_spi.c @@ -6,6 +6,7 @@ * * Licensed under the GPL-2 or later. */ +#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mmc_write.c b/drivers/mmc/mmc_write.c index c023d15e52a..a6f93380dd0 100644 --- a/drivers/mmc/mmc_write.c +++ b/drivers/mmc/mmc_write.c @@ -7,6 +7,7 @@ */ #include <config.h> +#include <common.h> #include <blk.h> #include <dm.h> #include <part.h> diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index 4ce0de6c47d..5e9d66526a8 100644 --- a/drivers/mmc/msm_sdhci.c +++ b/drivers/mmc/msm_sdhci.c @@ -7,6 +7,7 @@ * Based on Linux driver */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mmc/mtk-sd.c b/drivers/mmc/mtk-sd.c index 3a9258255a7..296aaee7331 100644 --- a/drivers/mmc/mtk-sd.c +++ b/drivers/mmc/mtk-sd.c @@ -7,6 +7,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <mmc.h> #include <errno.h> @@ -1010,7 +1011,7 @@ static int msdc_ops_get_wp(struct udevice *dev) #endif } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING static u32 test_delay_bit(u32 delay, u32 bit) { bit %= PAD_DELAY_MAX; @@ -1759,7 +1760,7 @@ static const struct dm_mmc_ops msdc_ops = { .set_ios = msdc_ops_set_ios, .get_cd = msdc_ops_get_cd, .get_wp = msdc_ops_get_wp, -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING .execute_tuning = msdc_execute_tuning, #endif .wait_dat0 = msdc_ops_wait_dat0, diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index 2da5334c21f..dbdd671c88b 100644 --- a/drivers/mmc/mv_sdhci.c +++ b/drivers/mmc/mv_sdhci.c @@ -3,6 +3,7 @@ * Marvell SD Host Controller Interface */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <sdhci.h> diff --git a/drivers/mmc/mvebu_mmc.c b/drivers/mmc/mvebu_mmc.c index 5af1953cd14..fea55c61ed7 100644 --- a/drivers/mmc/mvebu_mmc.c +++ b/drivers/mmc/mvebu_mmc.c @@ -7,6 +7,7 @@ * Written-by: Maen Suleiman, Gerald Kerma */ +#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/mxcmmc.c b/drivers/mmc/mxcmmc.c index 1acea6f820b..0057273a2a7 100644 --- a/drivers/mmc/mxcmmc.c +++ b/drivers/mmc/mxcmmc.c @@ -17,6 +17,7 @@ */ #include <config.h> +#include <common.h> #include <command.h> #include <mmc.h> #include <part.h> diff --git a/drivers/mmc/mxsmmc.c b/drivers/mmc/mxsmmc.c index 95390a5be7e..35a8e21058e 100644 --- a/drivers/mmc/mxsmmc.c +++ b/drivers/mmc/mxsmmc.c @@ -20,6 +20,7 @@ * Kyle Harris, Nexus Technologies, Inc. [email protected] */ +#include <common.h> #include <log.h> #include <malloc.h> #include <mmc.h> diff --git a/drivers/mmc/nexell_dw_mmc.c b/drivers/mmc/nexell_dw_mmc.c index 2e1ce54c7d5..2723e4887cf 100644 --- a/drivers/mmc/nexell_dw_mmc.c +++ b/drivers/mmc/nexell_dw_mmc.c @@ -6,6 +6,7 @@ * (C) Copyright 2019 Stefan Bosch <[email protected]> */ +#include <common.h> #include <dm.h> #include <dt-structs.h> #include <dwmmc.h> diff --git a/drivers/mmc/npcm_sdhci.c b/drivers/mmc/npcm_sdhci.c index dff4732ea06..d63521d6855 100644 --- a/drivers/mmc/npcm_sdhci.c +++ b/drivers/mmc/npcm_sdhci.c @@ -3,6 +3,7 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <sdhci.h> #include <clk.h> diff --git a/drivers/mmc/octeontx_hsmmc.c b/drivers/mmc/octeontx_hsmmc.c index 3b5e1221732..7f9c4f4d36d 100644 --- a/drivers/mmc/octeontx_hsmmc.c +++ b/drivers/mmc/octeontx_hsmmc.c @@ -794,7 +794,7 @@ octeontx_mmc_get_cr_mods(struct mmc *mmc, const struct mmc_cmd *cmd, u8 desired_ctype = 0; if (IS_MMC(mmc)) { -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING if (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) { if (cmd->resp_type == MMC_RSP_R1) cr.rtype_xor = 1; @@ -1631,7 +1631,7 @@ static int octeontx_mmc_dev_send_cmd(struct udevice *dev, struct mmc_cmd *cmd, return octeontx_mmc_send_cmd(dev_to_mmc(dev), cmd, data); } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING static int octeontx_mmc_test_cmd(struct mmc *mmc, u32 opcode, int *statp) { struct mmc_cmd cmd; @@ -2421,12 +2421,12 @@ static int octeontx_mmc_execute_tuning(struct udevice *dev, u32 opcode) return 0; } -#else /* CONFIG_MMC_SUPPORTS_TUNING */ +#else /* MMC_SUPPORTS_TUNING */ static void octeontx_mmc_set_emm_timing(struct mmc *mmc, union mio_emm_timing emm_timing) { } -#endif /* CONFIG_MMC_SUPPORTS_TUNING */ +#endif /* MMC_SUPPORTS_TUNING */ /** * Calculate the clock period with rounding up @@ -2573,7 +2573,7 @@ static int octeontx_mmc_set_ios(struct udevice *dev) err = octeontx_mmc_configure_delay(mmc); -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING if (!err && mmc->selected_mode == MMC_HS_400 && !slot->hs400_tuned) { debug("%s: Tuning HS400 mode\n", __func__); err = octeontx_tune_hs400(mmc); @@ -3776,7 +3776,7 @@ static const struct dm_mmc_ops octeontx_hsmmc_ops = { .set_ios = octeontx_mmc_set_ios, .get_cd = octeontx_mmc_get_cd, .get_wp = octeontx_mmc_get_wp, -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING .execute_tuning = octeontx_mmc_execute_tuning, #endif }; diff --git a/drivers/mmc/omap_hsmmc.c b/drivers/mmc/omap_hsmmc.c index 2b7f9fc9a20..99f21b2c546 100644 --- a/drivers/mmc/omap_hsmmc.c +++ b/drivers/mmc/omap_hsmmc.c @@ -23,6 +23,7 @@ */ #include <config.h> +#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> @@ -576,7 +577,7 @@ static uint32_t omap_hsmmc_set_capabilities(struct mmc *mmc) return val; } -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING static void omap_hsmmc_disable_tuning(struct mmc *mmc) { struct hsmmc *mmc_base; @@ -1517,7 +1518,7 @@ static const struct dm_mmc_ops omap_hsmmc_ops = { .get_cd = omap_hsmmc_getcd, .get_wp = omap_hsmmc_getwp, #endif -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING .execute_tuning = omap_hsmmc_execute_tuning, #endif .wait_dat0 = omap_hsmmc_wait_dat0, diff --git a/drivers/mmc/owl_mmc.c b/drivers/mmc/owl_mmc.c index bd4906f58e7..e84171a661a 100644 --- a/drivers/mmc/owl_mmc.c +++ b/drivers/mmc/owl_mmc.c @@ -11,6 +11,7 @@ * channel, and those special bits used in this driver is picked from vendor * source exclusively for MMC/SD. */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c index d446c55f72b..4d163ccba04 100644 --- a/drivers/mmc/pci_mmc.c +++ b/drivers/mmc/pci_mmc.c @@ -4,6 +4,7 @@ * Copyright (C) 2014, Bin Meng <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/piton_mmc.c b/drivers/mmc/piton_mmc.c index fed1f841608..a330bbf8cbe 100644 --- a/drivers/mmc/piton_mmc.c +++ b/drivers/mmc/piton_mmc.c @@ -11,6 +11,7 @@ #include <asm/gpio.h> #include <asm/io.h> +#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mmc/rockchip_dw_mmc.c b/drivers/mmc/rockchip_dw_mmc.c index 1a10b7057a4..ad4529d6afa 100644 --- a/drivers/mmc/rockchip_dw_mmc.c +++ b/drivers/mmc/rockchip_dw_mmc.c @@ -3,6 +3,7 @@ * Copyright (c) 2013 Google, Inc */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/mmc/rockchip_sdhci.c b/drivers/mmc/rockchip_sdhci.c index 35667b86b50..c889c7bc985 100644 --- a/drivers/mmc/rockchip_sdhci.c +++ b/drivers/mmc/rockchip_sdhci.c @@ -5,6 +5,7 @@ * Rockchip SD Host Controller Interface */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/ofnode.h> diff --git a/drivers/mmc/rpmb.c b/drivers/mmc/rpmb.c index 0658ce22cf1..b68d98573c9 100644 --- a/drivers/mmc/rpmb.c +++ b/drivers/mmc/rpmb.c @@ -8,6 +8,7 @@ */ #include <config.h> +#include <common.h> #include <log.h> #include <memalign.h> #include <mmc.h> diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c index 80dbb38c9b3..3b74feae68c 100644 --- a/drivers/mmc/s5p_sdhci.c +++ b/drivers/mmc/s5p_sdhci.c @@ -4,6 +4,7 @@ * Jaehoon Chung <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mmc/sandbox_mmc.c b/drivers/mmc/sandbox_mmc.c index a24520f2e78..0ba7940a4db 100644 --- a/drivers/mmc/sandbox_mmc.c +++ b/drivers/mmc/sandbox_mmc.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/mmc/sdhci-adma.c b/drivers/mmc/sdhci-adma.c index fdb189d71a6..283ba956deb 100644 --- a/drivers/mmc/sdhci-adma.c +++ b/drivers/mmc/sdhci-adma.c @@ -3,6 +3,7 @@ * SDHCI ADMA2 helper functions. */ +#include <common.h> #include <cpu_func.h> #include <sdhci.h> #include <malloc.h> diff --git a/drivers/mmc/sdhci-cadence.c b/drivers/mmc/sdhci-cadence.c index 07ec35a0463..c0a9f60b149 100644 --- a/drivers/mmc/sdhci-cadence.c +++ b/drivers/mmc/sdhci-cadence.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> @@ -273,7 +274,7 @@ static int sdhci_cdns_probe(struct udevice *dev) host->ops = &sdhci_cdns_ops; host->quirks |= SDHCI_QUIRK_WAIT_SEND_CMD; sdhci_cdns_mmc_ops = sdhci_ops; -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING sdhci_cdns_mmc_ops.execute_tuning = sdhci_cdns_execute_tuning; #endif diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 560b7e889c7..af654ea8d13 100644 --- a/drivers/mmc/sdhci.c +++ b/drivers/mmc/sdhci.c @@ -7,6 +7,7 @@ * [email protected], 27-Jan-01. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> @@ -14,7 +15,6 @@ #include <malloc.h> #include <mmc.h> #include <sdhci.h> -#include <time.h> #include <asm/cache.h> #include <linux/bitops.h> #include <linux/delay.h> @@ -351,7 +351,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd, return -ECOMM; } -#if defined(CONFIG_DM_MMC) && CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#if defined(CONFIG_DM_MMC) && defined(MMC_SUPPORTS_TUNING) static int sdhci_execute_tuning(struct udevice *dev, uint opcode) { int err; @@ -848,7 +848,7 @@ const struct dm_mmc_ops sdhci_ops = { .set_ios = sdhci_set_ios, .get_cd = sdhci_get_cd, .deferred_probe = sdhci_deferred_probe, -#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING) +#ifdef MMC_SUPPORTS_TUNING .execute_tuning = sdhci_execute_tuning, #endif .wait_dat0 = sdhci_wait_dat0, diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c index 06a30d5efb8..76dc1c68b82 100644 --- a/drivers/mmc/sh_mmcif.c +++ b/drivers/mmc/sh_mmcif.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <log.h> #include <watchdog.h> #include <command.h> diff --git a/drivers/mmc/snps_dw_mmc.c b/drivers/mmc/snps_dw_mmc.c index 9bdbe5070b1..0134399e393 100644 --- a/drivers/mmc/snps_dw_mmc.c +++ b/drivers/mmc/snps_dw_mmc.c @@ -7,6 +7,7 @@ * Author: Eugeniy Paltsev <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dwmmc.h> diff --git a/drivers/mmc/socfpga_dw_mmc.c b/drivers/mmc/socfpga_dw_mmc.c index f738019b835..387cb8b6b50 100644 --- a/drivers/mmc/socfpga_dw_mmc.c +++ b/drivers/mmc/socfpga_dw_mmc.c @@ -3,6 +3,7 @@ * (C) Copyright 2013 Altera Corporation <www.altera.com> */ +#include <common.h> #include <log.h> #include <asm/arch/clock_manager.h> #include <asm/arch/secure_reg_helper.h> diff --git a/drivers/mmc/sti_sdhci.c b/drivers/mmc/sti_sdhci.c index 91018b7e21a..23a1dd43c9b 100644 --- a/drivers/mmc/sti_sdhci.c +++ b/drivers/mmc/sti_sdhci.c @@ -4,6 +4,7 @@ * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. */ +#include <common.h> #include <dm.h> #include <log.h> #include <mmc.h> diff --git a/drivers/mmc/stm32_sdmmc2.c b/drivers/mmc/stm32_sdmmc2.c index 9483fb57daf..39ae79ba129 100644 --- a/drivers/mmc/stm32_sdmmc2.c +++ b/drivers/mmc/stm32_sdmmc2.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_MMC +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mmc/sunxi_mmc.c b/drivers/mmc/sunxi_mmc.c index 0b56d1405be..714706d2411 100644 --- a/drivers/mmc/sunxi_mmc.c +++ b/drivers/mmc/sunxi_mmc.c @@ -13,6 +13,7 @@ * proper DM_MMC implementation at the end. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tangier_sdhci.c b/drivers/mmc/tangier_sdhci.c index ae65c310b68..11564273324 100644 --- a/drivers/mmc/tangier_sdhci.c +++ b/drivers/mmc/tangier_sdhci.c @@ -2,6 +2,7 @@ /* * Copyright (c) 2017 Intel Corporation */ +#include <common.h> #include <dm.h> #include <dm/device.h> #include <linux/io.h> diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c index 5ed7f01d3f3..c01fb3d0165 100644 --- a/drivers/mmc/tegra_mmc.c +++ b/drivers/mmc/tegra_mmc.c @@ -7,6 +7,7 @@ */ #include <bouncebuf.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/mmc/tmio-common.c b/drivers/mmc/tmio-common.c index 0b396122b46..719c4830bc3 100644 --- a/drivers/mmc/tmio-common.c +++ b/drivers/mmc/tmio-common.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <fdtdec.h> diff --git a/drivers/mmc/uniphier-sd.c b/drivers/mmc/uniphier-sd.c index 5b3650d52ee..8cde4308aae 100644 --- a/drivers/mmc/uniphier-sd.c +++ b/drivers/mmc/uniphier-sd.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <clk.h> #include <fdtdec.h> #include <malloc.h> diff --git a/drivers/mmc/xenon_sdhci.c b/drivers/mmc/xenon_sdhci.c index 0e4902fab77..27dbe0404e0 100644 --- a/drivers/mmc/xenon_sdhci.c +++ b/drivers/mmc/xenon_sdhci.c @@ -14,6 +14,7 @@ * Stefan Roese <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/mmc/zynq_sdhci.c b/drivers/mmc/zynq_sdhci.c index 898be5a0913..935540d1719 100644 --- a/drivers/mmc/zynq_sdhci.c +++ b/drivers/mmc/zynq_sdhci.c @@ -7,6 +7,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <linux/delay.h> diff --git a/drivers/mtd/altera_qspi.c b/drivers/mtd/altera_qspi.c index c26615821c8..d31391f36a4 100644 --- a/drivers/mtd/altera_qspi.c +++ b/drivers/mtd/altera_qspi.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Thomas Chou <[email protected]> */ +#include <common.h> #include <console.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index a7826e81c17..8ade7949a68 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -16,7 +16,7 @@ /* The DEBUG define must be before common to enable debugging */ /* #define DEBUG */ -#include <config.h> +#include <common.h> #include <console.h> #include <dm.h> #include <env.h> @@ -26,7 +26,6 @@ #include <init.h> #include <irq_func.h> #include <log.h> -#include <time.h> #include <asm/global_data.h> #include <asm/processor.h> #include <asm/io.h> diff --git a/drivers/mtd/cfi_mtd.c b/drivers/mtd/cfi_mtd.c index b14d4773931..bf4473ba9e8 100644 --- a/drivers/mtd/cfi_mtd.c +++ b/drivers/mtd/cfi_mtd.c @@ -5,6 +5,7 @@ * Written by: Piotr Ziecik <[email protected]> */ +#include <common.h> #include <dma.h> #include <flash.h> #include <malloc.h> diff --git a/drivers/mtd/hbmc-am654.c b/drivers/mtd/hbmc-am654.c index 599beda30d5..8161087b50c 100644 --- a/drivers/mtd/hbmc-am654.c +++ b/drivers/mtd/hbmc-am654.c @@ -3,6 +3,7 @@ // Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com/ // Author: Vignesh Raghavendra <[email protected]> +#include <common.h> #include <asm/io.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/mtd/jedec_flash.c b/drivers/mtd/jedec_flash.c index a832f348f22..859c7fd4ec2 100644 --- a/drivers/mtd/jedec_flash.c +++ b/drivers/mtd/jedec_flash.c @@ -11,6 +11,7 @@ /* The DEBUG define must be before common to enable debugging */ /*#define DEBUG*/ +#include <common.h> #include <flash.h> #include <log.h> #include <asm/processor.h> diff --git a/drivers/mtd/mtd-uclass.c b/drivers/mtd/mtd-uclass.c index 720bd824c4d..0743fe7af9f 100644 --- a/drivers/mtd/mtd-uclass.c +++ b/drivers/mtd/mtd-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_MTD +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <errno.h> diff --git a/drivers/mtd/mtd_uboot.c b/drivers/mtd/mtd_uboot.c index 69cb3b51f92..14ce726b10d 100644 --- a/drivers/mtd/mtd_uboot.c +++ b/drivers/mtd/mtd_uboot.c @@ -3,6 +3,7 @@ * (C) Copyright 2014 * Heiko Schocher, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <env.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mtd/mtdpart.c b/drivers/mtd/mtdpart.c index be1d19b4ffa..4886392a1cf 100644 --- a/drivers/mtd/mtdpart.c +++ b/drivers/mtd/mtdpart.c @@ -19,6 +19,7 @@ #include <linux/kmod.h> #endif +#include <common.h> #include <malloc.h> #include <linux/bug.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/bbt.c b/drivers/mtd/nand/bbt.c index 4ff0999f62a..972aec6e266 100644 --- a/drivers/mtd/nand/bbt.c +++ b/drivers/mtd/nand/bbt.c @@ -9,6 +9,7 @@ #define pr_fmt(fmt) "nand-bbt: " fmt +#include <common.h> #include <dm/devres.h> #include <linux/bitops.h> #include <linux/mtd/nand.h> diff --git a/drivers/mtd/nand/core.c b/drivers/mtd/nand/core.c index 472ad0bdefb..f6d9c584f78 100644 --- a/drivers/mtd/nand/core.c +++ b/drivers/mtd/nand/core.c @@ -9,6 +9,7 @@ #define pr_fmt(fmt) "nand: " fmt +#include <common.h> #include <watchdog.h> #ifndef __UBOOT__ #include <linux/compat.h> diff --git a/drivers/mtd/nand/raw/am335x_spl_bch.c b/drivers/mtd/nand/raw/am335x_spl_bch.c index 64d8ce0965a..6831af98b73 100644 --- a/drivers/mtd/nand/raw/am335x_spl_bch.c +++ b/drivers/mtd/nand/raw/am335x_spl_bch.c @@ -9,7 +9,7 @@ * Stefan Roese, DENX Software Engineering, [email protected]. */ -#include <config.h> +#include <common.h> #include <nand.h> #include <system-constants.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/arasan_nfc.c b/drivers/mtd/nand/raw/arasan_nfc.c index 4f013efafb3..ffcd963b3da 100644 --- a/drivers/mtd/nand/raw/arasan_nfc.c +++ b/drivers/mtd/nand/raw/arasan_nfc.c @@ -5,6 +5,7 @@ * Copyright (C) 2014 - 2015 Xilinx, Inc. */ +#include <common.h> #include <malloc.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/raw/atmel_nand.c b/drivers/mtd/nand/raw/atmel_nand.c index 4dbf7b47135..6d94e7af38e 100644 --- a/drivers/mtd/nand/raw/atmel_nand.c +++ b/drivers/mtd/nand/raw/atmel_nand.c @@ -10,7 +10,7 @@ * (C) Copyright 2012 ATMEL, Hong Xu */ -#include <config.h> +#include <common.h> #include <log.h> #include <system-constants.h> #include <asm/gpio.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c index 3f59fbbbb8f..4e6d99fd3ca 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c index d54de0b3ecc..6164989b937 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6368_nand.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c index a101222a28f..feae66ef25a 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6753_nand.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c index 385642d0c09..dbd85af7079 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm68360_nand.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c index 407898ddae6..ef3649688c6 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c index 564c678c9ef..027fdd37da3 100644 --- a/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand.c b/drivers/mtd/nand/raw/brcmnand/brcmnand.c index b7bf7cc0893..efbf9a3120a 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand.c @@ -12,6 +12,7 @@ * GNU General Public License for more details. */ +#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c index b3b3df5c042..a6acf556bcc 100644 --- a/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c +++ b/drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/devres.h> diff --git a/drivers/mtd/nand/raw/brcmnand/iproc_nand.c b/drivers/mtd/nand/raw/brcmnand/iproc_nand.c index 430d6c93853..69711d98ce1 100644 --- a/drivers/mtd/nand/raw/brcmnand/iproc_nand.c +++ b/drivers/mtd/nand/raw/brcmnand/iproc_nand.c @@ -4,6 +4,7 @@ * Copyright (C) 2015 Broadcom Corporation */ +#include <common.h> #include <asm/io.h> #include <memalign.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/cortina_nand.c b/drivers/mtd/nand/raw/cortina_nand.c index 06918a46e93..b7be6602f7c 100644 --- a/drivers/mtd/nand/raw/cortina_nand.c +++ b/drivers/mtd/nand/raw/cortina_nand.c @@ -3,6 +3,7 @@ * Copyright (c) 2020, Cortina Access Inc.. */ +#include <common.h> #include <linux/delay.h> #include <linux/bitops.h> #include <linux/sizes.h> diff --git a/drivers/mtd/nand/raw/davinci_nand.c b/drivers/mtd/nand/raw/davinci_nand.c index d4daf06b8de..71bbb8231bf 100644 --- a/drivers/mtd/nand/raw/davinci_nand.c +++ b/drivers/mtd/nand/raw/davinci_nand.c @@ -28,7 +28,7 @@ - */ -#include <config.h> +#include <common.h> #include <log.h> #include <linux/mtd/rawnand.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/denali.c b/drivers/mtd/nand/raw/denali.c index b2401116689..c827f80281c 100644 --- a/drivers/mtd/nand/raw/denali.c +++ b/drivers/mtd/nand/raw/denali.c @@ -5,6 +5,7 @@ * Copyright (C) 2009-2010, Intel Corporation and its suppliers. */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/denali_spl.c b/drivers/mtd/nand/raw/denali_spl.c index b1e2c9d8161..165a23312cb 100644 --- a/drivers/mtd/nand/raw/denali_spl.c +++ b/drivers/mtd/nand/raw/denali_spl.c @@ -4,7 +4,7 @@ * Copyright (C) 2014-2015 Masahiro Yamada <[email protected]> */ -#include <config.h> +#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/unaligned.h> diff --git a/drivers/mtd/nand/raw/fsl_elbc_nand.c b/drivers/mtd/nand/raw/fsl_elbc_nand.c index 157330cb287..7853c3f74e2 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_nand.c +++ b/drivers/mtd/nand/raw/fsl_elbc_nand.c @@ -7,7 +7,7 @@ * Scott Wood <[email protected]> */ -#include <config.h> +#include <common.h> #include <command.h> #include <malloc.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/fsl_elbc_spl.c b/drivers/mtd/nand/raw/fsl_elbc_spl.c index 17b8ef7ff4b..26aaab08e89 100644 --- a/drivers/mtd/nand/raw/fsl_elbc_spl.c +++ b/drivers/mtd/nand/raw/fsl_elbc_spl.c @@ -9,7 +9,7 @@ * Author: Scott Wood <[email protected]> */ -#include <config.h> +#include <common.h> #include <cpu_func.h> #include <linux/mtd/rawnand.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/fsl_ifc_nand.c b/drivers/mtd/nand/raw/fsl_ifc_nand.c index 857d50ef9b0..1d7c1fddd3f 100644 --- a/drivers/mtd/nand/raw/fsl_ifc_nand.c +++ b/drivers/mtd/nand/raw/fsl_ifc_nand.c @@ -6,7 +6,7 @@ * Authors: Dipen Dudhat <[email protected]> */ -#include <config.h> +#include <common.h> #include <command.h> #include <malloc.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/fsl_ifc_spl.c b/drivers/mtd/nand/raw/fsl_ifc_spl.c index c2ebee94870..69d26f1f79a 100644 --- a/drivers/mtd/nand/raw/fsl_ifc_spl.c +++ b/drivers/mtd/nand/raw/fsl_ifc_spl.c @@ -6,7 +6,7 @@ * Author: Dipen Dudhat <[email protected]> */ -#include <config.h> +#include <common.h> #include <cpu_func.h> #include <asm/io.h> #include <fsl_ifc.h> diff --git a/drivers/mtd/nand/raw/kirkwood_nand.c b/drivers/mtd/nand/raw/kirkwood_nand.c index cd182be268d..621d2d232c8 100644 --- a/drivers/mtd/nand/raw/kirkwood_nand.c +++ b/drivers/mtd/nand/raw/kirkwood_nand.c @@ -5,6 +5,7 @@ * Written-by: Prafulla Wadaskar <[email protected]> */ +#include <common.h> #include <linux/mtd/rawnand.h> #include <asm/io.h> #include <asm/arch/soc.h> diff --git a/drivers/mtd/nand/raw/kmeter1_nand.c b/drivers/mtd/nand/raw/kmeter1_nand.c index e9398eb4093..dfe73d64e46 100644 --- a/drivers/mtd/nand/raw/kmeter1_nand.c +++ b/drivers/mtd/nand/raw/kmeter1_nand.c @@ -4,7 +4,7 @@ * Heiko Schocher, DENX Software Engineering, [email protected] */ -#include <config.h> +#include <common.h> #include <nand.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c index c89661badbf..f8ae216d56c 100644 --- a/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c +++ b/drivers/mtd/nand/raw/lpc32xx_nand_mlc.c @@ -19,7 +19,7 @@ * should not rely on the ECC validity. */ -#include <config.h> +#include <common.h> #include <nand.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c index 4d643bc64bc..b21a0b9d293 100644 --- a/drivers/mtd/nand/raw/lpc32xx_nand_slc.c +++ b/drivers/mtd/nand/raw/lpc32xx_nand_slc.c @@ -10,7 +10,7 @@ * Author: Kevin Wells */ -#include <config.h> +#include <common.h> #include <log.h> #include <nand.h> #include <linux/bug.h> diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c index 0750b38f708..dbdc5b0bca1 100644 --- a/drivers/mtd/nand/raw/mxc_nand.c +++ b/drivers/mtd/nand/raw/mxc_nand.c @@ -5,7 +5,7 @@ * Copyright 2009 Ilya Yanok, <[email protected]> */ -#include <config.h> +#include <common.h> #include <log.h> #include <nand.h> #include <linux/delay.h> diff --git a/drivers/mtd/nand/raw/mxc_nand_spl.c b/drivers/mtd/nand/raw/mxc_nand_spl.c index c5872848954..a855c9987f8 100644 --- a/drivers/mtd/nand/raw/mxc_nand_spl.c +++ b/drivers/mtd/nand/raw/mxc_nand_spl.c @@ -10,7 +10,7 @@ * Stefan Roese, DENX Software Engineering, sr at denx.de. */ -#include <config.h> +#include <common.h> #include <hang.h> #include <nand.h> #include <system-constants.h> diff --git a/drivers/mtd/nand/raw/mxic_nand.c b/drivers/mtd/nand/raw/mxic_nand.c index 0e54b5f6938..6abdc24bd30 100644 --- a/drivers/mtd/nand/raw/mxic_nand.c +++ b/drivers/mtd/nand/raw/mxic_nand.c @@ -6,6 +6,7 @@ * Zhengxun Li <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/mtd/nand/raw/mxs_nand.c b/drivers/mtd/nand/raw/mxs_nand.c index 11b0247b284..fd65772af80 100644 --- a/drivers/mtd/nand/raw/mxs_nand.c +++ b/drivers/mtd/nand/raw/mxs_nand.c @@ -13,6 +13,7 @@ * Copyright 2017-2019 NXP */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.c index c8e064347ad..f7d3f02f85a 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -4,6 +4,7 @@ * Copyright 2019 NXP * Author: Tim Harvey <[email protected]> */ +#include <common.h> #include <log.h> #include <nand.h> #include <malloc.h> diff --git a/drivers/mtd/nand/raw/nand.c b/drivers/mtd/nand/raw/nand.c index 36054492e18..b591170346d 100644 --- a/drivers/mtd/nand/raw/nand.c +++ b/drivers/mtd/nand/raw/nand.c @@ -5,7 +5,7 @@ * Ladislav Michl <[email protected]> */ -#include <config.h> +#include <common.h> #include <nand.h> #include <errno.h> #include <linux/mtd/concat.h> diff --git a/drivers/mtd/nand/raw/nand_base.c b/drivers/mtd/nand/raw/nand_base.c index 18b95caffef..688d17ba3c2 100644 --- a/drivers/mtd/nand/raw/nand_base.c +++ b/drivers/mtd/nand/raw/nand_base.c @@ -28,6 +28,7 @@ */ #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt +#include <common.h> #include <log.h> #include <malloc.h> #include <watchdog.h> diff --git a/drivers/mtd/nand/raw/nand_bbt.c b/drivers/mtd/nand/raw/nand_bbt.c index 1fb8535ab05..cd451870a6f 100644 --- a/drivers/mtd/nand/raw/nand_bbt.c +++ b/drivers/mtd/nand/raw/nand_bbt.c @@ -57,6 +57,7 @@ * */ +#include <common.h> #include <log.h> #include <malloc.h> #include <dm/devres.h> diff --git a/drivers/mtd/nand/raw/nand_bch.c b/drivers/mtd/nand/raw/nand_bch.c index f317cc26c90..bb48ebbb96c 100644 --- a/drivers/mtd/nand/raw/nand_bch.c +++ b/drivers/mtd/nand/raw/nand_bch.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <log.h> #include <dm/devres.h> #include <linux/printk.h> diff --git a/drivers/mtd/nand/raw/nand_ecc.c b/drivers/mtd/nand/raw/nand_ecc.c index 0530ccb0722..2bc329be1a3 100644 --- a/drivers/mtd/nand/raw/nand_ecc.c +++ b/drivers/mtd/nand/raw/nand_ecc.c @@ -22,6 +22,7 @@ * this file might be covered by the GNU General Public License. */ +#include <common.h> #include <linux/errno.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/nand/raw/nand_ids.c b/drivers/mtd/nand/raw/nand_ids.c index 4f46378ffe1..be60d6d9d99 100644 --- a/drivers/mtd/nand/raw/nand_ids.c +++ b/drivers/mtd/nand/raw/nand_ids.c @@ -6,6 +6,7 @@ * published by the Free Software Foundation. * */ +#include <common.h> #include <linux/mtd/rawnand.h> #include <linux/sizes.h> diff --git a/drivers/mtd/nand/raw/nand_spl_load.c b/drivers/mtd/nand/raw/nand_spl_load.c index 87af675c139..7ac9bf4d120 100644 --- a/drivers/mtd/nand/raw/nand_spl_load.c +++ b/drivers/mtd/nand/raw/nand_spl_load.c @@ -4,7 +4,7 @@ * Heiko Schocher, DENX Software Engineering, [email protected]. */ -#include <config.h> +#include <common.h> #include <nand.h> /* diff --git a/drivers/mtd/nand/raw/nand_spl_simple.c b/drivers/mtd/nand/raw/nand_spl_simple.c index c0956ab0e49..80d6e0e1e4e 100644 --- a/drivers/mtd/nand/raw/nand_spl_simple.c +++ b/drivers/mtd/nand/raw/nand_spl_simple.c @@ -4,7 +4,7 @@ * Stefan Roese, DENX Software Engineering, [email protected]. */ -#include <config.h> +#include <common.h> #include <nand.h> #include <system-constants.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/nand_timings.c b/drivers/mtd/nand/raw/nand_timings.c index c1bac1d01cc..e6aa7903913 100644 --- a/drivers/mtd/nand/raw/nand_timings.c +++ b/drivers/mtd/nand/raw/nand_timings.c @@ -8,6 +8,7 @@ * published by the Free Software Foundation. * */ +#include <common.h> #include <linux/err.h> #include <linux/kernel.h> #include <linux/mtd/rawnand.h> diff --git a/drivers/mtd/nand/raw/nand_util.c b/drivers/mtd/nand/raw/nand_util.c index fda4239fa79..72cc24f4037 100644 --- a/drivers/mtd/nand/raw/nand_util.c +++ b/drivers/mtd/nand/raw/nand_util.c @@ -18,6 +18,7 @@ * Copyright 2010 Freescale Semiconductor */ +#include <common.h> #include <command.h> #include <log.h> #include <watchdog.h> diff --git a/drivers/mtd/nand/raw/omap_elm.c b/drivers/mtd/nand/raw/omap_elm.c index 61751b9ae2d..015ec9bc2de 100644 --- a/drivers/mtd/nand/raw/omap_elm.c +++ b/drivers/mtd/nand/raw/omap_elm.c @@ -12,6 +12,7 @@ * sets in uboot */ +#include <common.h> #include <asm/io.h> #include <linux/errno.h> #include <asm/arch/hardware.h> diff --git a/drivers/mtd/nand/raw/omap_gpmc.c b/drivers/mtd/nand/raw/omap_gpmc.c index 92a92ad63a0..2f8fa7d73d2 100644 --- a/drivers/mtd/nand/raw/omap_gpmc.c +++ b/drivers/mtd/nand/raw/omap_gpmc.c @@ -4,7 +4,7 @@ * Rohit Choraria <[email protected]> */ -#include <config.h> +#include <common.h> #include <log.h> #include <system-constants.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/pxa3xx_nand.c b/drivers/mtd/nand/raw/pxa3xx_nand.c index 17c5601bead..1d9a6d107b1 100644 --- a/drivers/mtd/nand/raw/pxa3xx_nand.c +++ b/drivers/mtd/nand/raw/pxa3xx_nand.c @@ -6,6 +6,7 @@ * Copyright © 2006 Marvell International Ltd. */ +#include <common.h> #include <malloc.h> #include <fdtdec.h> #include <nand.h> diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw/rockchip_nfc.c index f730e15d041..088cc7fead2 100644 --- a/drivers/mtd/nand/raw/rockchip_nfc.c +++ b/drivers/mtd/nand/raw/rockchip_nfc.c @@ -5,6 +5,7 @@ * Author: Yifeng Zhao <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/mtd/nand/raw/stm32_fmc2_nand.c b/drivers/mtd/nand/raw/stm32_fmc2_nand.c index 083ea4c5a74..d284b8cbb12 100644 --- a/drivers/mtd/nand/raw/stm32_fmc2_nand.c +++ b/drivers/mtd/nand/raw/stm32_fmc2_nand.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_MTD +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand.c b/drivers/mtd/nand/raw/sunxi_nand.c index 34197bb09a1..0b5b74dc242 100644 --- a/drivers/mtd/nand/raw/sunxi_nand.c +++ b/drivers/mtd/nand/raw/sunxi_nand.c @@ -25,6 +25,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <malloc.h> #include <memalign.h> diff --git a/drivers/mtd/nand/raw/sunxi_nand_spl.c b/drivers/mtd/nand/raw/sunxi_nand_spl.c index 040138e2559..c9b8c78ed75 100644 --- a/drivers/mtd/nand/raw/sunxi_nand_spl.c +++ b/drivers/mtd/nand/raw/sunxi_nand_spl.c @@ -6,6 +6,7 @@ #include <asm/arch/clock.h> #include <asm/io.h> +#include <common.h> #include <config.h> #include <nand.h> #include <linux/bitops.h> diff --git a/drivers/mtd/nand/raw/tegra_nand.c b/drivers/mtd/nand/raw/tegra_nand.c index 8285f87359e..6086ecdfa3d 100644 --- a/drivers/mtd/nand/raw/tegra_nand.c +++ b/drivers/mtd/nand/raw/tegra_nand.c @@ -6,6 +6,7 @@ * (C) Copyright 2006 DENX Software Engineering */ +#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/raw/vf610_nfc.c b/drivers/mtd/nand/raw/vf610_nfc.c index 10265950368..d2363a0662e 100644 --- a/drivers/mtd/nand/raw/vf610_nfc.c +++ b/drivers/mtd/nand/raw/vf610_nfc.c @@ -21,7 +21,7 @@ * - HW ECC: Only 24 and 32-bit error correction implemented. */ -#include <config.h> +#include <common.h> #include <malloc.h> #include <dm/device_compat.h> #include <linux/printk.h> diff --git a/drivers/mtd/nand/raw/zynq_nand.c b/drivers/mtd/nand/raw/zynq_nand.c index 5f90171a6fe..bacaf13c570 100644 --- a/drivers/mtd/nand/raw/zynq_nand.c +++ b/drivers/mtd/nand/raw/zynq_nand.c @@ -6,6 +6,7 @@ * This driver is based on plat_nand.c and mxc_nand.c drivers */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/mtd/nand/spi/core.c b/drivers/mtd/nand/spi/core.c index ef50237f10e..62c28aa422d 100644 --- a/drivers/mtd/nand/spi/core.c +++ b/drivers/mtd/nand/spi/core.c @@ -21,6 +21,7 @@ #include <linux/spi/spi.h> #include <linux/spi/spi-mem.h> #else +#include <common.h> #include <errno.h> #include <watchdog.h> #include <spi.h> diff --git a/drivers/mtd/nvmxip/nvmxip-uclass.c b/drivers/mtd/nvmxip/nvmxip-uclass.c index 95dfa58def1..9a316d1de39 100644 --- a/drivers/mtd/nvmxip/nvmxip-uclass.c +++ b/drivers/mtd/nvmxip/nvmxip-uclass.c @@ -6,6 +6,7 @@ * Abdellatif El Khlifi <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #if CONFIG_IS_ENABLED(SANDBOX64) diff --git a/drivers/mtd/nvmxip/nvmxip.c b/drivers/mtd/nvmxip/nvmxip.c index 229938db380..0bd98d64275 100644 --- a/drivers/mtd/nvmxip/nvmxip.c +++ b/drivers/mtd/nvmxip/nvmxip.c @@ -6,6 +6,7 @@ * Abdellatif El Khlifi <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <mapmem.h> diff --git a/drivers/mtd/nvmxip/nvmxip_qspi.c b/drivers/mtd/nvmxip/nvmxip_qspi.c index 460887c7da3..4d7471118a4 100644 --- a/drivers/mtd/nvmxip/nvmxip_qspi.c +++ b/drivers/mtd/nvmxip/nvmxip_qspi.c @@ -6,6 +6,7 @@ * Abdellatif El Khlifi <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdt_support.h> #include <linux/errno.h> diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c index edecb841338..762b01c1b0f 100644 --- a/drivers/mtd/onenand/onenand_base.c +++ b/drivers/mtd/onenand/onenand_base.c @@ -19,6 +19,7 @@ * published by the Free Software Foundation. */ +#include <common.h> #include <log.h> #include <watchdog.h> #include <dm/devres.h> diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c index 6af1cb2ec19..cc1e449f4a7 100644 --- a/drivers/mtd/onenand/onenand_bbt.c +++ b/drivers/mtd/onenand/onenand_bbt.c @@ -14,6 +14,7 @@ * published by the Free Software Foundation. */ +#include <common.h> #include <log.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/onenand/onenand_spl.c b/drivers/mtd/onenand/onenand_spl.c index a9d54a243ad..2699958a5de 100644 --- a/drivers/mtd/onenand/onenand_spl.c +++ b/drivers/mtd/onenand/onenand_spl.c @@ -7,10 +7,9 @@ * Kyungmin Park <[email protected]> */ -#include <config.h> +#include <common.h> #include <asm/io.h> #include <linux/bitops.h> -#include <linux/string.h> #include <linux/mtd/onenand_regs.h> #include <onenand_uboot.h> diff --git a/drivers/mtd/onenand/onenand_uboot.c b/drivers/mtd/onenand/onenand_uboot.c index db0ac6c1fb8..ecacabefadc 100644 --- a/drivers/mtd/onenand/onenand_uboot.c +++ b/drivers/mtd/onenand/onenand_uboot.c @@ -13,7 +13,7 @@ * OneNAND initialization at U-Boot */ -#include <config.h> +#include <common.h> #include <display_options.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/onenand/samsung.c b/drivers/mtd/onenand/samsung.c index ccfdad4913e..c415e5149a0 100644 --- a/drivers/mtd/onenand/samsung.c +++ b/drivers/mtd/onenand/samsung.c @@ -9,6 +9,7 @@ * Emulate the pseudo BufferRAM */ +#include <common.h> #include <malloc.h> #include <linux/compat.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/renesas_rpc_hf.c b/drivers/mtd/renesas_rpc_hf.c index 8dcffde9aa3..979b64d4a2f 100644 --- a/drivers/mtd/renesas_rpc_hf.c +++ b/drivers/mtd/renesas_rpc_hf.c @@ -7,6 +7,7 @@ * Copyright (C) 2017 Marek Vasut <[email protected]> */ +#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/mtd/spi/fsl_espi_spl.c b/drivers/mtd/spi/fsl_espi_spl.c index 73eea922c33..cdbdbd6ea58 100644 --- a/drivers/mtd/spi/fsl_espi_spl.c +++ b/drivers/mtd/spi/fsl_espi_spl.c @@ -3,7 +3,7 @@ * Copyright 2013 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <cpu_func.h> #include <hang.h> #include <spi_flash.h> diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c index 2d5a16bf6a2..4fe547171a5 100644 --- a/drivers/mtd/spi/sandbox.c +++ b/drivers/mtd/spi/sandbox.c @@ -10,6 +10,7 @@ #define LOG_CATEGORY UCLASS_SPI_FLASH +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/mtd/spi/sf-uclass.c b/drivers/mtd/spi/sf-uclass.c index a4d15bd64aa..2da0cf0dcf9 100644 --- a/drivers/mtd/spi/sf-uclass.c +++ b/drivers/mtd/spi/sf-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SPI_FLASH +#include <common.h> #include <bootdev.h> #include <dm.h> #include <log.h> diff --git a/drivers/mtd/spi/sf_bootdev.c b/drivers/mtd/spi/sf_bootdev.c index 017a74a3016..d6b47b11ce4 100644 --- a/drivers/mtd/spi/sf_bootdev.c +++ b/drivers/mtd/spi/sf_bootdev.c @@ -5,6 +5,7 @@ * Copyright 2022 Google LLC */ +#include <common.h> #include <bootdev.h> #include <bootflow.h> #include <bootmeth.h> diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c index 6db24189c8e..6a0d953a729 100644 --- a/drivers/mtd/spi/sf_dataflash.c +++ b/drivers/mtd/spi/sf_dataflash.c @@ -6,6 +6,7 @@ * Haikun Wang ([email protected]) */ +#include <common.h> #include <display_options.h> #include <dm.h> #include <errno.h> diff --git a/drivers/mtd/spi/sf_mtd.c b/drivers/mtd/spi/sf_mtd.c index 7342f26d88e..071b25ac67f 100644 --- a/drivers/mtd/spi/sf_mtd.c +++ b/drivers/mtd/spi/sf_mtd.c @@ -3,6 +3,7 @@ * Copyright (C) 2012-2014 Daniel Schwierzeck, [email protected] */ +#include <common.h> #include <malloc.h> #include <linux/errno.h> #include <linux/mtd/mtd.h> diff --git a/drivers/mtd/spi/sf_probe.c b/drivers/mtd/spi/sf_probe.c index 7100b64bf22..de6516f1065 100644 --- a/drivers/mtd/spi/sf_probe.c +++ b/drivers/mtd/spi/sf_probe.c @@ -7,6 +7,7 @@ * Copyright (C) 2013 Jagannadha Sutradharudu Teki, Xilinx Inc. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <linux/mtd/spi-nor.h> diff --git a/drivers/mtd/spi/spi-nor-core.c b/drivers/mtd/spi/spi-nor-core.c index 982dd251150..f86003ca8c0 100644 --- a/drivers/mtd/spi/spi-nor-core.c +++ b/drivers/mtd/spi/spi-nor-core.c @@ -9,6 +9,7 @@ * Synced from Linux v4.19 */ +#include <common.h> #include <display_options.h> #include <log.h> #include <watchdog.h> diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index 684206ea07d..4e83b8c94c9 100644 --- a/drivers/mtd/spi/spi-nor-ids.c +++ b/drivers/mtd/spi/spi-nor-ids.c @@ -6,6 +6,7 @@ * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com/ */ +#include <common.h> #include <spi.h> #include <spi_flash.h> diff --git a/drivers/mtd/spi/spi-nor-tiny.c b/drivers/mtd/spi/spi-nor-tiny.c index 5755c5eed29..0719fe845ca 100644 --- a/drivers/mtd/spi/spi-nor-tiny.c +++ b/drivers/mtd/spi/spi-nor-tiny.c @@ -9,6 +9,7 @@ * Synced from Linux v4.19 */ +#include <common.h> #include <log.h> #include <dm/device_compat.h> #include <linux/err.h> diff --git a/drivers/mtd/stm32_flash.c b/drivers/mtd/stm32_flash.c index ec83be6b51f..4523344ba6b 100644 --- a/drivers/mtd/stm32_flash.c +++ b/drivers/mtd/stm32_flash.c @@ -4,7 +4,7 @@ * Kamil Lulko, <[email protected]> */ -#include <config.h> +#include <common.h> #include <flash.h> #include <asm/io.h> #include <asm/arch/stm32.h> diff --git a/drivers/mtd/ubispl/ubispl.c b/drivers/mtd/ubispl/ubispl.c index 90a7c4c6f9e..b58d8e8d565 100644 --- a/drivers/mtd/ubispl/ubispl.c +++ b/drivers/mtd/ubispl/ubispl.c @@ -7,6 +7,7 @@ * Copyright (c) International Business Machines Corp., 2006 */ +#include <common.h> #include <errno.h> #include <linux/bug.h> #include <u-boot/crc.h> diff --git a/drivers/mux/mmio.c b/drivers/mux/mmio.c index e1125458a62..00e0282dcc0 100644 --- a/drivers/mux/mmio.c +++ b/drivers/mux/mmio.c @@ -6,6 +6,7 @@ * Copyright (C) 2017 Pengutronix, Philipp Zabel <[email protected]> * Copyright (C) 2019 Texas Instrument, Jean-jacques Hiblot <[email protected]> */ +#include <common.h> #include <dm.h> #include <mux-internal.h> #include <regmap.h> diff --git a/drivers/mux/mux-uclass.c b/drivers/mux/mux-uclass.c index 8a3e7a84f41..8833888ded3 100644 --- a/drivers/mux/mux-uclass.c +++ b/drivers/mux/mux-uclass.c @@ -13,6 +13,7 @@ #define LOG_CATEGORY UCLASS_MUX +#include <common.h> #include <dm.h> #include <mux-internal.h> #include <dm/device-internal.h> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index b4ff033afa9..b2d7b499766 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -193,24 +193,6 @@ config CALXEDA_XGMAC This driver supports the XGMAC in Calxeda Highbank and Midway machines. -config DWC_ETH_XGMAC - bool "Synopsys DWC Ethernet XGMAC device support" - select PHYLIB - help - This driver supports the Synopsys Designware Ethernet XGMAC (10G - Ethernet MAC) IP block. The IP supports many options for bus type, - clocking/reset structure, and feature list. - -config DWC_ETH_XGMAC_SOCFPGA - bool "Synopsys DWC Ethernet XGMAC device support for SOCFPGA" - select REGMAP - select SYSCON - depends on DWC_ETH_XGMAC - default y if TARGET_SOCFPGA_AGILEX5 - help - The Synopsys Designware Ethernet XGMAC IP block with specific - configuration used in Intel SoC FPGA chip. - config DRIVER_DM9000 bool "Davicom DM9000 controller driver" help diff --git a/drivers/net/Makefile b/drivers/net/Makefile index dce71685c3d..dc3404519d6 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile @@ -22,8 +22,6 @@ obj-$(CONFIG_DWC_ETH_QOS) += dwc_eth_qos.o obj-$(CONFIG_DWC_ETH_QOS_IMX) += dwc_eth_qos_imx.o obj-$(CONFIG_DWC_ETH_QOS_ROCKCHIP) += dwc_eth_qos_rockchip.o obj-$(CONFIG_DWC_ETH_QOS_QCOM) += dwc_eth_qos_qcom.o -obj-$(CONFIG_DWC_ETH_XGMAC) += dwc_eth_xgmac.o -obj-$(CONFIG_DWC_ETH_XGMAC_SOCFPGA) += dwc_eth_xgmac_socfpga.o obj-$(CONFIG_DWC_ETH_QOS_STARFIVE) += dwc_eth_qos_starfive.o obj-$(CONFIG_DWC_ETH_QOS_STM32) += dwc_eth_qos_stm32.o obj-$(CONFIG_E1000) += e1000.o diff --git a/drivers/net/ag7xxx.c b/drivers/net/ag7xxx.c index 059a65d4661..da1f3f45808 100644 --- a/drivers/net/ag7xxx.c +++ b/drivers/net/ag7xxx.c @@ -6,6 +6,7 @@ * Copyright (C) 2019 Rosy Song <[email protected]> */ +#include <common.h> #include <clock_legacy.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index c57aafd0026..e2340936fa6 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c @@ -8,6 +8,7 @@ * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/aspeed_mdio.c b/drivers/net/aspeed_mdio.c index f2e4392aa9a..a99715a7282 100644 --- a/drivers/net/aspeed_mdio.c +++ b/drivers/net/aspeed_mdio.c @@ -7,6 +7,7 @@ * This file is inspired from the Linux kernel driver drivers/net/phy/mdio-aspeed.c */ +#include <common.h> #include <dm.h> #include <log.h> #include <miiphy.h> diff --git a/drivers/net/bcm-sf2-eth-gmac.c b/drivers/net/bcm-sf2-eth-gmac.c index ba244b4a26e..cbe1e85222f 100644 --- a/drivers/net/bcm-sf2-eth-gmac.c +++ b/drivers/net/bcm-sf2-eth-gmac.c @@ -11,6 +11,7 @@ #endif #include <config.h> +#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/bcm-sf2-eth.c b/drivers/net/bcm-sf2-eth.c index c10719c6b51..1524f5c9989 100644 --- a/drivers/net/bcm-sf2-eth.c +++ b/drivers/net/bcm-sf2-eth.c @@ -3,6 +3,7 @@ * Copyright 2014 Broadcom Corporation. */ +#include <common.h> #include <log.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/bcm6348-eth.c b/drivers/net/bcm6348-eth.c index f87db4ab46e..15a94f6ce9a 100644 --- a/drivers/net/bcm6348-eth.c +++ b/drivers/net/bcm6348-eth.c @@ -6,6 +6,7 @@ * Copyright (C) 2008 Maxime Bizon <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dma.h> diff --git a/drivers/net/bcm6368-eth.c b/drivers/net/bcm6368-eth.c index 0601fcc42f5..9679a45b075 100644 --- a/drivers/net/bcm6368-eth.c +++ b/drivers/net/bcm6368-eth.c @@ -6,6 +6,7 @@ * Copyright (C) 2008 Maxime Bizon <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dma.h> diff --git a/drivers/net/bnxt/bnxt.c b/drivers/net/bnxt/bnxt.c index 25fbcd7b116..1c9a9962408 100644 --- a/drivers/net/bnxt/bnxt.c +++ b/drivers/net/bnxt/bnxt.c @@ -3,6 +3,7 @@ * Copyright 2019-2021 Broadcom. */ +#include <common.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/net/calxedaxgmac.c b/drivers/net/calxedaxgmac.c index ebb399457fb..eb1e2a756cd 100644 --- a/drivers/net/calxedaxgmac.c +++ b/drivers/net/calxedaxgmac.c @@ -3,6 +3,7 @@ * Copyright 2010-2011 Calxeda, Inc. */ +#include <common.h> #include <malloc.h> #include <net.h> #include <linux/compiler.h> diff --git a/drivers/net/cortina_ni.c b/drivers/net/cortina_ni.c index 79026882800..ef6ecd88b0c 100644 --- a/drivers/net/cortina_ni.c +++ b/drivers/net/cortina_ni.c @@ -7,6 +7,7 @@ * Ethernet MAC Driver for all supported CAxxxx SoCs */ +#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c index ce028f451f1..4e7af95b41c 100644 --- a/drivers/net/dc2114x.c +++ b/drivers/net/dc2114x.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <asm/io.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/designware.c b/drivers/net/designware.c index 07b0f49ef58..682045cea2c 100644 --- a/drivers/net/designware.c +++ b/drivers/net/designware.c @@ -8,6 +8,7 @@ * Designware ethernet IP driver for U-Boot */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dm9000x.c b/drivers/net/dm9000x.c index 9e17f0b9c28..bec8d67dad0 100644 --- a/drivers/net/dm9000x.c +++ b/drivers/net/dm9000x.c @@ -49,6 +49,7 @@ * TODO: external MII is not functional, only internal at the moment. */ +#include <common.h> #include <command.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 67ac86f82bc..32a5d52165a 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -29,6 +29,7 @@ #define LOG_CATEGORY UCLASS_ETH +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dwc_eth_qos_imx.c b/drivers/net/dwc_eth_qos_imx.c index d6bed278ca7..9c4e3904413 100644 --- a/drivers/net/dwc_eth_qos_imx.c +++ b/drivers/net/dwc_eth_qos_imx.c @@ -3,6 +3,7 @@ * Copyright 2022 NXP */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/dwc_eth_qos_qcom.c b/drivers/net/dwc_eth_qos_qcom.c index 77d626393d5..8178138fc65 100644 --- a/drivers/net/dwc_eth_qos_qcom.c +++ b/drivers/net/dwc_eth_qos_qcom.c @@ -5,6 +5,7 @@ * Qcom DWMAC specific glue layer */ +#include <common.h> #include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/net/dwc_eth_qos_rockchip.c b/drivers/net/dwc_eth_qos_rockchip.c index c4557e57988..fa9e513faea 100644 --- a/drivers/net/dwc_eth_qos_rockchip.c +++ b/drivers/net/dwc_eth_qos_rockchip.c @@ -8,6 +8,7 @@ * part in order to simplify future porting of fixes and support for other SoCs. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/net/dwc_eth_qos_starfive.c b/drivers/net/dwc_eth_qos_starfive.c index 09e714ce76a..5be8ac0f1a5 100644 --- a/drivers/net/dwc_eth_qos_starfive.c +++ b/drivers/net/dwc_eth_qos_starfive.c @@ -4,6 +4,7 @@ * Author: Yanhong Wang<[email protected]> */ +#include <common.h> #include <asm/cache.h> #include <asm/gpio.h> #include <clk.h> diff --git a/drivers/net/dwc_eth_xgmac.c b/drivers/net/dwc_eth_xgmac.c deleted file mode 100644 index d3e5f9255f5..00000000000 --- a/drivers/net/dwc_eth_xgmac.c +++ /dev/null @@ -1,1165 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (c) 2023, Intel Corporation. - * - * Portions based on U-Boot's dwc_eth_qos.c. - */ - -/* - * This driver supports the Synopsys Designware Ethernet XGMAC (10G Ethernet - * MAC) IP block. The IP supports multiple options for bus type, clocking/ - * reset structure, and feature list. - * - * The driver is written such that generic core logic is kept separate from - * configuration-specific logic. Code that interacts with configuration- - * specific resources is split out into separate functions to avoid polluting - * common code. If/when this driver is enhanced to support multiple - * configurations, the core code should be adapted to call all configuration- - * specific functions through function pointers, with the definition of those - * function pointers being supplied by struct udevice_id xgmac_ids[]'s .data - * field. - * - * This configuration uses an AXI master/DMA bus, an AHB slave/register bus, - * contains the DMA, MTL, and MAC sub-blocks, and supports a single RGMII PHY. - * This configuration also has SW control over all clock and reset signals to - * the HW block. - */ - -#define LOG_CATEGORY UCLASS_ETH - -#include <clk.h> -#include <cpu_func.h> -#include <dm.h> -#include <errno.h> -#include <eth_phy.h> -#include <log.h> -#include <malloc.h> -#include <memalign.h> -#include <miiphy.h> -#include <net.h> -#include <netdev.h> -#include <phy.h> -#include <reset.h> -#include <wait_bit.h> -#include <asm/cache.h> -#include <asm/gpio.h> -#include <asm/io.h> -#include <linux/delay.h> -#include "dwc_eth_xgmac.h" - -static void *xgmac_alloc_descs(struct xgmac_priv *xgmac, unsigned int num) -{ - return memalign(ARCH_DMA_MINALIGN, num * xgmac->desc_size); -} - -static void xgmac_free_descs(void *descs) -{ - free(descs); -} - -static struct xgmac_desc *xgmac_get_desc(struct xgmac_priv *xgmac, - unsigned int num, bool rx) -{ - return (rx ? xgmac->rx_descs : xgmac->tx_descs) + - (num * xgmac->desc_size); -} - -void xgmac_inval_desc_generic(void *desc) -{ - unsigned long start; - unsigned long end; - - if (!desc) { - pr_err("%s invalid input buffer\n", __func__); - return; - } - - start = (unsigned long)desc & ~(ARCH_DMA_MINALIGN - 1); - end = ALIGN(start + sizeof(struct xgmac_desc), - ARCH_DMA_MINALIGN); - - invalidate_dcache_range(start, end); -} - -void xgmac_flush_desc_generic(void *desc) -{ - unsigned long start; - unsigned long end; - - if (!desc) { - pr_err("%s invalid input buffer\n", __func__); - return; - } - - start = (unsigned long)desc & ~(ARCH_DMA_MINALIGN - 1); - end = ALIGN(start + sizeof(struct xgmac_desc), - ARCH_DMA_MINALIGN); - - flush_dcache_range(start, end); -} - -void xgmac_inval_buffer_generic(void *buf, size_t size) -{ - unsigned long start; - unsigned long end; - - if (!buf) { - pr_err("%s invalid input buffer\n", __func__); - return; - } - - start = (unsigned long)buf & ~(ARCH_DMA_MINALIGN - 1); - end = ALIGN((unsigned long)buf + size, - ARCH_DMA_MINALIGN); - - invalidate_dcache_range(start, end); -} - -void xgmac_flush_buffer_generic(void *buf, size_t size) -{ - unsigned long start; - unsigned long end; - - if (!buf) { - pr_err("%s invalid input buffer\n", __func__); - return; - } - - start = (unsigned long)buf & ~(ARCH_DMA_MINALIGN - 1); - end = ALIGN((unsigned long)buf + size, - ARCH_DMA_MINALIGN); - - flush_dcache_range(start, end); -} - -static int xgmac_mdio_wait_idle(struct xgmac_priv *xgmac) -{ - return wait_for_bit_le32(&xgmac->mac_regs->mdio_data, - XGMAC_MAC_MDIO_ADDRESS_SBUSY, false, - XGMAC_TIMEOUT_100MS, true); -} - -static int xgmac_mdio_read(struct mii_dev *bus, int mdio_addr, int mdio_devad, - int mdio_reg) -{ - struct xgmac_priv *xgmac = bus->priv; - u32 val; - u32 hw_addr; - int ret; - - debug("%s(dev=%p, addr=0x%x, reg=%d):\n", __func__, xgmac->dev, mdio_addr, - mdio_reg); - - ret = xgmac_mdio_wait_idle(xgmac); - if (ret) { - pr_err("MDIO not idle at entry: %d\n", ret); - return ret; - } - - /* Set clause 22 format */ - val = BIT(mdio_addr); - writel(val, &xgmac->mac_regs->mdio_clause_22_port); - - hw_addr = (mdio_addr << XGMAC_MAC_MDIO_ADDRESS_PA_SHIFT) | - (mdio_reg & XGMAC_MAC_MDIO_REG_ADDR_C22P_MASK); - - val = xgmac->config->config_mac_mdio << - XGMAC_MAC_MDIO_ADDRESS_CR_SHIFT; - - val |= XGMAC_MAC_MDIO_ADDRESS_SADDR | - XGMAC_MDIO_SINGLE_CMD_ADDR_CMD_READ | - XGMAC_MAC_MDIO_ADDRESS_SBUSY; - - ret = xgmac_mdio_wait_idle(xgmac); - if (ret) { - pr_err("MDIO not idle at entry: %d\n", ret); - return ret; - } - - writel(hw_addr, &xgmac->mac_regs->mdio_address); - writel(val, &xgmac->mac_regs->mdio_data); - - ret = xgmac_mdio_wait_idle(xgmac); - if (ret) { - pr_err("MDIO read didn't complete: %d\n", ret); - return ret; - } - - val = readl(&xgmac->mac_regs->mdio_data); - val &= XGMAC_MAC_MDIO_DATA_GD_MASK; - - debug("%s: val=0x%x\n", __func__, val); - - return val; -} - -static int xgmac_mdio_write(struct mii_dev *bus, int mdio_addr, int mdio_devad, - int mdio_reg, u16 mdio_val) -{ - struct xgmac_priv *xgmac = bus->priv; - u32 val; - u32 hw_addr; - int ret; - - debug("%s(dev=%p, addr=0x%x, reg=%d, val=0x%x):\n", __func__, xgmac->dev, - mdio_addr, mdio_reg, mdio_val); - - ret = xgmac_mdio_wait_idle(xgmac); - if (ret) { - pr_err("MDIO not idle at entry: %d\n", ret); - return ret; - } - - /* Set clause 22 format */ - val = BIT(mdio_addr); - writel(val, &xgmac->mac_regs->mdio_clause_22_port); - - hw_addr = (mdio_addr << XGMAC_MAC_MDIO_ADDRESS_PA_SHIFT) | - (mdio_reg & XGMAC_MAC_MDIO_REG_ADDR_C22P_MASK); - - hw_addr |= (mdio_reg >> XGMAC_MAC_MDIO_ADDRESS_PA_SHIFT) << - XGMAC_MAC_MDIO_ADDRESS_DA_SHIFT; - - val = (xgmac->config->config_mac_mdio << - XGMAC_MAC_MDIO_ADDRESS_CR_SHIFT); - - val |= XGMAC_MAC_MDIO_ADDRESS_SADDR | - mdio_val | XGMAC_MDIO_SINGLE_CMD_ADDR_CMD_WRITE | - XGMAC_MAC_MDIO_ADDRESS_SBUSY; - - ret = xgmac_mdio_wait_idle(xgmac); - if (ret) { - pr_err("MDIO not idle at entry: %d\n", ret); - return ret; - } - - writel(hw_addr, &xgmac->mac_regs->mdio_address); - writel(val, &xgmac->mac_regs->mdio_data); - - ret = xgmac_mdio_wait_idle(xgmac); - if (ret) { - pr_err("MDIO write didn't complete: %d\n", ret); - return ret; - } - - return 0; -} - -static int xgmac_set_full_duplex(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - - debug("%s(dev=%p):\n", __func__, dev); - - clrbits_le32(&xgmac->mac_regs->mac_extended_conf, XGMAC_MAC_EXT_CONF_HD); - - return 0; -} - -static int xgmac_set_half_duplex(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - - debug("%s(dev=%p):\n", __func__, dev); - - setbits_le32(&xgmac->mac_regs->mac_extended_conf, XGMAC_MAC_EXT_CONF_HD); - - /* WAR: Flush TX queue when switching to half-duplex */ - setbits_le32(&xgmac->mtl_regs->txq0_operation_mode, - XGMAC_MTL_TXQ0_OPERATION_MODE_FTQ); - - return 0; -} - -static int xgmac_set_gmii_speed(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - u32 val; - - debug("%s(dev=%p):\n", __func__, dev); - - val = XGMAC_MAC_CONF_SS_1G_GMII << XGMAC_MAC_CONF_SS_SHIFT; - writel(val, &xgmac->mac_regs->tx_configuration); - - return 0; -} - -static int xgmac_set_mii_speed_100(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - u32 val; - - debug("%s(dev=%p):\n", __func__, dev); - - val = XGMAC_MAC_CONF_SS_100M_MII << XGMAC_MAC_CONF_SS_SHIFT; - writel(val, &xgmac->mac_regs->tx_configuration); - - return 0; -} - -static int xgmac_set_mii_speed_10(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - u32 val; - - debug("%s(dev=%p):\n", __func__, dev); - - val = XGMAC_MAC_CONF_SS_2_10M_MII << XGMAC_MAC_CONF_SS_SHIFT; - writel(val, &xgmac->mac_regs->tx_configuration); - - return 0; -} - -static int xgmac_adjust_link(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - int ret; - bool en_calibration; - - debug("%s(dev=%p):\n", __func__, dev); - - if (xgmac->phy->duplex) - ret = xgmac_set_full_duplex(dev); - else - ret = xgmac_set_half_duplex(dev); - if (ret < 0) { - pr_err("xgmac_set_*_duplex() failed: %d\n", ret); - return ret; - } - - switch (xgmac->phy->speed) { - case SPEED_1000: - en_calibration = true; - ret = xgmac_set_gmii_speed(dev); - break; - case SPEED_100: - en_calibration = true; - ret = xgmac_set_mii_speed_100(dev); - break; - case SPEED_10: - en_calibration = false; - ret = xgmac_set_mii_speed_10(dev); - break; - default: - pr_err("invalid speed %d\n", xgmac->phy->speed); - return -EINVAL; - } - if (ret < 0) { - pr_err("xgmac_set_*mii_speed*() failed: %d\n", ret); - return ret; - } - - if (en_calibration) { - ret = xgmac->config->ops->xgmac_calibrate_pads(dev); - if (ret < 0) { - pr_err("xgmac_calibrate_pads() failed: %d\n", - ret); - return ret; - } - } else { - ret = xgmac->config->ops->xgmac_disable_calibration(dev); - if (ret < 0) { - pr_err("xgmac_disable_calibration() failed: %d\n", - ret); - return ret; - } - } - - return 0; -} - -static int xgmac_write_hwaddr(struct udevice *dev) -{ - struct eth_pdata *plat = dev_get_plat(dev); - struct xgmac_priv *xgmac = dev_get_priv(dev); - u32 val; - - /* - * This function may be called before start() or after stop(). At that - * time, on at least some configurations of the XGMAC HW, all clocks to - * the XGMAC HW block will be stopped, and a reset signal applied. If - * any register access is attempted in this state, bus timeouts or CPU - * hangs may occur. This check prevents that. - * - * A simple solution to this problem would be to not implement - * write_hwaddr(), since start() always writes the MAC address into HW - * anyway. However, it is desirable to implement write_hwaddr() to - * support the case of SW that runs subsequent to U-Boot which expects - * the MAC address to already be programmed into the XGMAC registers, - * which must happen irrespective of whether the U-Boot user (or - * scripts) actually made use of the XGMAC device, and hence - * irrespective of whether start() was ever called. - * - */ - if (!xgmac->config->reg_access_always_ok && !xgmac->reg_access_ok) - return 0; - - /* Update the MAC address */ - val = (plat->enetaddr[5] << 8) | - (plat->enetaddr[4]); - writel(val, &xgmac->mac_regs->address0_high); - val = (plat->enetaddr[3] << 24) | - (plat->enetaddr[2] << 16) | - (plat->enetaddr[1] << 8) | - (plat->enetaddr[0]); - writel(val, &xgmac->mac_regs->address0_low); - return 0; -} - -static int xgmac_read_rom_hwaddr(struct udevice *dev) -{ - struct eth_pdata *pdata = dev_get_plat(dev); - struct xgmac_priv *xgmac = dev_get_priv(dev); - int ret; - - ret = xgmac->config->ops->xgmac_get_enetaddr(dev); - if (ret < 0) - return ret; - - return !is_valid_ethaddr(pdata->enetaddr); -} - -static int xgmac_get_phy_addr(struct xgmac_priv *priv, struct udevice *dev) -{ - struct ofnode_phandle_args phandle_args; - int reg; - - if (dev_read_phandle_with_args(dev, "phy-handle", NULL, 0, 0, - &phandle_args)) { - debug("Failed to find phy-handle"); - return -ENODEV; - } - - priv->phy_of_node = phandle_args.node; - - reg = ofnode_read_u32_default(phandle_args.node, "reg", 0); - - return reg; -} - -static int xgmac_start(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - int ret, i; - u32 val, tx_fifo_sz, rx_fifo_sz, tqs, rqs, pbl; - ulong last_rx_desc; - ulong desc_pad; - - struct xgmac_desc *tx_desc = NULL; - struct xgmac_desc *rx_desc = NULL; - int addr = -1; - - debug("%s(dev=%p):\n", __func__, dev); - - xgmac->tx_desc_idx = 0; - xgmac->rx_desc_idx = 0; - - ret = xgmac->config->ops->xgmac_start_resets(dev); - if (ret < 0) { - pr_err("xgmac_start_resets() failed: %d\n", ret); - goto err; - } - - xgmac->reg_access_ok = true; - - ret = wait_for_bit_le32(&xgmac->dma_regs->mode, - XGMAC_DMA_MODE_SWR, false, - xgmac->config->swr_wait, false); - if (ret) { - pr_err("XGMAC_DMA_MODE_SWR stuck: %d\n", ret); - goto err_stop_resets; - } - - ret = xgmac->config->ops->xgmac_calibrate_pads(dev); - if (ret < 0) { - pr_err("xgmac_calibrate_pads() failed: %d\n", ret); - goto err_stop_resets; - } - - /* - * if PHY was already connected and configured, - * don't need to reconnect/reconfigure again - */ - if (!xgmac->phy) { - addr = xgmac_get_phy_addr(xgmac, dev); - xgmac->phy = phy_connect(xgmac->mii, addr, dev, - xgmac->config->interface(dev)); - if (!xgmac->phy) { - pr_err("phy_connect() failed\n"); - goto err_stop_resets; - } - - if (xgmac->max_speed) { - ret = phy_set_supported(xgmac->phy, xgmac->max_speed); - if (ret) { - pr_err("phy_set_supported() failed: %d\n", ret); - goto err_shutdown_phy; - } - } - - xgmac->phy->node = xgmac->phy_of_node; - ret = phy_config(xgmac->phy); - if (ret < 0) { - pr_err("phy_config() failed: %d\n", ret); - goto err_shutdown_phy; - } - } - - ret = phy_startup(xgmac->phy); - if (ret < 0) { - pr_err("phy_startup() failed: %d\n", ret); - goto err_shutdown_phy; - } - - if (!xgmac->phy->link) { - pr_err("No link\n"); - goto err_shutdown_phy; - } - - ret = xgmac_adjust_link(dev); - if (ret < 0) { - pr_err("xgmac_adjust_link() failed: %d\n", ret); - goto err_shutdown_phy; - } - - /* Configure MTL */ - - /* Enable Store and Forward mode for TX */ - /* Program Tx operating mode */ - setbits_le32(&xgmac->mtl_regs->txq0_operation_mode, - XGMAC_MTL_TXQ0_OPERATION_MODE_TSF | - (XGMAC_MTL_TXQ0_OPERATION_MODE_TXQEN_ENABLED << - XGMAC_MTL_TXQ0_OPERATION_MODE_TXQEN_SHIFT)); - - /* Transmit Queue weight */ - writel(0x10, &xgmac->mtl_regs->txq0_quantum_weight); - - /* Enable Store and Forward mode for RX, since no jumbo frame */ - setbits_le32(&xgmac->mtl_regs->rxq0_operation_mode, - XGMAC_MTL_RXQ0_OPERATION_MODE_RSF); - - /* Transmit/Receive queue fifo size; use all RAM for 1 queue */ - val = readl(&xgmac->mac_regs->hw_feature1); - tx_fifo_sz = (val >> XGMAC_MAC_HW_FEATURE1_TXFIFOSIZE_SHIFT) & - XGMAC_MAC_HW_FEATURE1_TXFIFOSIZE_MASK; - rx_fifo_sz = (val >> XGMAC_MAC_HW_FEATURE1_RXFIFOSIZE_SHIFT) & - XGMAC_MAC_HW_FEATURE1_RXFIFOSIZE_MASK; - - /* - * r/tx_fifo_sz is encoded as log2(n / 128). Undo that by shifting. - * r/tqs is encoded as (n / 256) - 1. - */ - tqs = (128 << tx_fifo_sz) / 256 - 1; - rqs = (128 << rx_fifo_sz) / 256 - 1; - - clrsetbits_le32(&xgmac->mtl_regs->txq0_operation_mode, - XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_MASK << - XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_SHIFT, - tqs << XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_SHIFT); - clrsetbits_le32(&xgmac->mtl_regs->rxq0_operation_mode, - XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_MASK << - XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_SHIFT, - rqs << XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_SHIFT); - - setbits_le32(&xgmac->mtl_regs->rxq0_operation_mode, - XGMAC_MTL_RXQ0_OPERATION_MODE_EHFC); - - /* Configure MAC */ - clrsetbits_le32(&xgmac->mac_regs->rxq_ctrl0, - XGMAC_MAC_RXQ_CTRL0_RXQ0EN_MASK << - XGMAC_MAC_RXQ_CTRL0_RXQ0EN_SHIFT, - xgmac->config->config_mac << - XGMAC_MAC_RXQ_CTRL0_RXQ0EN_SHIFT); - - /* Multicast and Broadcast Queue Enable */ - setbits_le32(&xgmac->mac_regs->rxq_ctrl1, - XGMAC_MAC_RXQ_CTRL1_MCBCQEN); - - /* enable promise mode and receive all mode */ - setbits_le32(&xgmac->mac_regs->mac_packet_filter, - XGMAC_MAC_PACKET_FILTER_RA | - XGMAC_MAC_PACKET_FILTER_PR); - - /* Set TX flow control parameters */ - /* Set Pause Time */ - setbits_le32(&xgmac->mac_regs->q0_tx_flow_ctrl, - XGMAC_MAC_Q0_TX_FLOW_CTRL_PT_MASK << - XGMAC_MAC_Q0_TX_FLOW_CTRL_PT_SHIFT); - - /* Assign priority for RX flow control */ - clrbits_le32(&xgmac->mac_regs->rxq_ctrl2, - XGMAC_MAC_RXQ_CTRL2_PSRQ0_MASK << - XGMAC_MAC_RXQ_CTRL2_PSRQ0_SHIFT); - - /* Enable flow control */ - setbits_le32(&xgmac->mac_regs->q0_tx_flow_ctrl, - XGMAC_MAC_Q0_TX_FLOW_CTRL_TFE); - setbits_le32(&xgmac->mac_regs->rx_flow_ctrl, - XGMAC_MAC_RX_FLOW_CTRL_RFE); - - clrbits_le32(&xgmac->mac_regs->tx_configuration, - XGMAC_MAC_CONF_JD); - - clrbits_le32(&xgmac->mac_regs->rx_configuration, - XGMAC_MAC_CONF_JE | - XGMAC_MAC_CONF_GPSLCE | - XGMAC_MAC_CONF_WD); - - setbits_le32(&xgmac->mac_regs->rx_configuration, - XGMAC_MAC_CONF_ACS | - XGMAC_MAC_CONF_CST); - - ret = xgmac_write_hwaddr(dev); - if (ret < 0) { - pr_err("xgmac_write_hwaddr() failed: %d\n", ret); - goto err; - } - - /* Configure DMA */ - clrsetbits_le32(&xgmac->dma_regs->sysbus_mode, - XGMAC_DMA_SYSBUS_MODE_AAL, - XGMAC_DMA_SYSBUS_MODE_EAME | - XGMAC_DMA_SYSBUS_MODE_UNDEF); - - /* Enable OSP mode */ - setbits_le32(&xgmac->dma_regs->ch0_tx_control, - XGMAC_DMA_CH0_TX_CONTROL_OSP); - - /* RX buffer size. Must be a multiple of bus width */ - clrsetbits_le32(&xgmac->dma_regs->ch0_rx_control, - XGMAC_DMA_CH0_RX_CONTROL_RBSZ_MASK << - XGMAC_DMA_CH0_RX_CONTROL_RBSZ_SHIFT, - XGMAC_MAX_PACKET_SIZE << - XGMAC_DMA_CH0_RX_CONTROL_RBSZ_SHIFT); - - desc_pad = (xgmac->desc_size - sizeof(struct xgmac_desc)) / - xgmac->config->axi_bus_width; - - setbits_le32(&xgmac->dma_regs->ch0_control, - XGMAC_DMA_CH0_CONTROL_PBLX8 | - (desc_pad << XGMAC_DMA_CH0_CONTROL_DSL_SHIFT)); - - /* - * Burst length must be < 1/2 FIFO size. - * FIFO size in tqs is encoded as (n / 256) - 1. - * Each burst is n * 8 (PBLX8) * 16 (AXI width) == 128 bytes. - * Half of n * 256 is n * 128, so pbl == tqs, modulo the -1. - */ - pbl = tqs + 1; - if (pbl > 32) - pbl = 32; - - clrsetbits_le32(&xgmac->dma_regs->ch0_tx_control, - XGMAC_DMA_CH0_TX_CONTROL_TXPBL_MASK << - XGMAC_DMA_CH0_TX_CONTROL_TXPBL_SHIFT, - pbl << XGMAC_DMA_CH0_TX_CONTROL_TXPBL_SHIFT); - - clrsetbits_le32(&xgmac->dma_regs->ch0_rx_control, - XGMAC_DMA_CH0_RX_CONTROL_RXPBL_MASK << - XGMAC_DMA_CH0_RX_CONTROL_RXPBL_SHIFT, - 8 << XGMAC_DMA_CH0_RX_CONTROL_RXPBL_SHIFT); - - /* DMA performance configuration */ - val = (XGMAC_DMA_SYSBUS_MODE_RD_OSR_LMT_MASK << - XGMAC_DMA_SYSBUS_MODE_RD_OSR_LMT_SHIFT) | - (XGMAC_DMA_SYSBUS_MODE_WR_OSR_LMT_MASK << - XGMAC_DMA_SYSBUS_MODE_WR_OSR_LMT_SHIFT) | - XGMAC_DMA_SYSBUS_MODE_EAME | - XGMAC_DMA_SYSBUS_MODE_BLEN16 | - XGMAC_DMA_SYSBUS_MODE_BLEN8 | - XGMAC_DMA_SYSBUS_MODE_BLEN4 | - XGMAC_DMA_SYSBUS_MODE_BLEN32; - - writel(val, &xgmac->dma_regs->sysbus_mode); - - /* Set up descriptors */ - - memset(xgmac->tx_descs, 0, xgmac->desc_size * XGMAC_DESCRIPTORS_TX); - memset(xgmac->rx_descs, 0, xgmac->desc_size * XGMAC_DESCRIPTORS_RX); - - for (i = 0; i < XGMAC_DESCRIPTORS_TX; i++) { - tx_desc = (struct xgmac_desc *)xgmac_get_desc(xgmac, i, false); - - xgmac->config->ops->xgmac_flush_desc(tx_desc); - } - - for (i = 0; i < XGMAC_DESCRIPTORS_RX; i++) { - rx_desc = (struct xgmac_desc *)xgmac_get_desc(xgmac, i, true); - - rx_desc->des0 = (uintptr_t)(xgmac->rx_dma_buf + - (i * XGMAC_MAX_PACKET_SIZE)); - rx_desc->des3 = XGMAC_DESC3_OWN; - /* Flush the cache to the memory */ - mb(); - xgmac->config->ops->xgmac_flush_desc(rx_desc); - xgmac->config->ops->xgmac_inval_buffer(xgmac->rx_dma_buf + - (i * XGMAC_MAX_PACKET_SIZE), - XGMAC_MAX_PACKET_SIZE); - } - - writel(0, &xgmac->dma_regs->ch0_txdesc_list_haddress); - writel((ulong)xgmac_get_desc(xgmac, 0, false), - &xgmac->dma_regs->ch0_txdesc_list_address); - writel(XGMAC_DESCRIPTORS_TX - 1, - &xgmac->dma_regs->ch0_txdesc_ring_length); - writel(0, &xgmac->dma_regs->ch0_rxdesc_list_haddress); - writel((ulong)xgmac_get_desc(xgmac, 0, true), - &xgmac->dma_regs->ch0_rxdesc_list_address); - writel(XGMAC_DESCRIPTORS_RX - 1, - &xgmac->dma_regs->ch0_rxdesc_ring_length); - - /* Enable everything */ - setbits_le32(&xgmac->dma_regs->ch0_tx_control, - XGMAC_DMA_CH0_TX_CONTROL_ST); - setbits_le32(&xgmac->dma_regs->ch0_rx_control, - XGMAC_DMA_CH0_RX_CONTROL_SR); - setbits_le32(&xgmac->mac_regs->tx_configuration, - XGMAC_MAC_CONF_TE); - setbits_le32(&xgmac->mac_regs->rx_configuration, - XGMAC_MAC_CONF_RE); - - /* TX tail pointer not written until we need to TX a packet */ - /* - * Point RX tail pointer at last descriptor. Ideally, we'd point at the - * first descriptor, implying all descriptors were available. However, - * that's not distinguishable from none of the descriptors being - * available. - */ - last_rx_desc = (ulong)xgmac_get_desc(xgmac, XGMAC_DESCRIPTORS_RX - 1, true); - writel(last_rx_desc, &xgmac->dma_regs->ch0_rxdesc_tail_pointer); - - xgmac->started = true; - - debug("%s: OK\n", __func__); - return 0; - -err_shutdown_phy: - phy_shutdown(xgmac->phy); -err_stop_resets: - xgmac->config->ops->xgmac_stop_resets(dev); -err: - pr_err("FAILED: %d\n", ret); - return ret; -} - -static void xgmac_stop(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - unsigned long start_time; - u32 val; - u32 trcsts; - u32 txqsts; - u32 prxq; - u32 rxqsts; - - debug("%s(dev=%p):\n", __func__, dev); - - if (!xgmac->started) - return; - xgmac->started = false; - xgmac->reg_access_ok = false; - - /* Disable TX DMA */ - clrbits_le32(&xgmac->dma_regs->ch0_tx_control, - XGMAC_DMA_CH0_TX_CONTROL_ST); - - /* Wait for TX all packets to drain out of MTL */ - start_time = get_timer(0); - - while (get_timer(start_time) < XGMAC_TIMEOUT_100MS) { - val = readl(&xgmac->mtl_regs->txq0_debug); - - trcsts = (val >> XGMAC_MTL_TXQ0_DEBUG_TRCSTS_SHIFT) & - XGMAC_MTL_TXQ0_DEBUG_TRCSTS_MASK; - - txqsts = val & XGMAC_MTL_TXQ0_DEBUG_TXQSTS; - - if (trcsts != XGMAC_MTL_TXQ0_DEBUG_TRCSTS_READ_STATE && !txqsts) - break; - } - - /* Turn off MAC TX and RX */ - clrbits_le32(&xgmac->mac_regs->tx_configuration, - XGMAC_MAC_CONF_RE); - clrbits_le32(&xgmac->mac_regs->rx_configuration, - XGMAC_MAC_CONF_RE); - - /* Wait for all RX packets to drain out of MTL */ - start_time = get_timer(0); - - while (get_timer(start_time) < XGMAC_TIMEOUT_100MS) { - val = readl(&xgmac->mtl_regs->rxq0_debug); - - prxq = (val >> XGMAC_MTL_RXQ0_DEBUG_PRXQ_SHIFT) & - XGMAC_MTL_RXQ0_DEBUG_PRXQ_MASK; - - rxqsts = (val >> XGMAC_MTL_RXQ0_DEBUG_RXQSTS_SHIFT) & - XGMAC_MTL_RXQ0_DEBUG_RXQSTS_MASK; - - if (!prxq && !rxqsts) - break; - } - - /* Turn off RX DMA */ - clrbits_le32(&xgmac->dma_regs->ch0_rx_control, - XGMAC_DMA_CH0_RX_CONTROL_SR); - - if (xgmac->phy) - phy_shutdown(xgmac->phy); - - xgmac->config->ops->xgmac_stop_resets(dev); - - debug("%s: OK\n", __func__); -} - -static int xgmac_send(struct udevice *dev, void *packet, int length) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - struct xgmac_desc *tx_desc; - unsigned long start_time; - - debug("%s(dev=%p, packet=%p, length=%d):\n", __func__, dev, packet, - length); - - memcpy(xgmac->tx_dma_buf, packet, length); - xgmac->config->ops->xgmac_flush_buffer(xgmac->tx_dma_buf, length); - - tx_desc = xgmac_get_desc(xgmac, xgmac->tx_desc_idx, false); - xgmac->tx_desc_idx++; - xgmac->tx_desc_idx %= XGMAC_DESCRIPTORS_TX; - - tx_desc->des0 = (ulong)xgmac->tx_dma_buf; - tx_desc->des1 = 0; - tx_desc->des2 = length; - /* - * Make sure that if HW sees the _OWN write below, it will see all the - * writes to the rest of the descriptor too. - */ - mb(); - tx_desc->des3 = XGMAC_DESC3_OWN | XGMAC_DESC3_FD | XGMAC_DESC3_LD | length; - xgmac->config->ops->xgmac_flush_desc(tx_desc); - - writel((ulong)xgmac_get_desc(xgmac, xgmac->tx_desc_idx, false), - &xgmac->dma_regs->ch0_txdesc_tail_pointer); - - start_time = get_timer(0); - - while (get_timer(start_time) < XGMAC_TIMEOUT_100MS) { - xgmac->config->ops->xgmac_inval_desc(tx_desc); - if (!(readl(&tx_desc->des3) & XGMAC_DESC3_OWN)) - return 0; - } - debug("%s: TX timeout\n", __func__); - - return -ETIMEDOUT; -} - -static int xgmac_recv(struct udevice *dev, int flags, uchar **packetp) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - struct xgmac_desc *rx_desc; - int length; - - debug("%s(dev=%p, flags=0x%x):\n", __func__, dev, flags); - - rx_desc = xgmac_get_desc(xgmac, xgmac->rx_desc_idx, true); - xgmac->config->ops->xgmac_inval_desc(rx_desc); - if (rx_desc->des3 & XGMAC_DESC3_OWN) { - debug("%s: RX packet not available\n", __func__); - return -EAGAIN; - } - - *packetp = xgmac->rx_dma_buf + - (xgmac->rx_desc_idx * XGMAC_MAX_PACKET_SIZE); - length = rx_desc->des3 & XGMAC_RDES3_PKT_LENGTH_MASK; - debug("%s: *packetp=%p, length=%d\n", __func__, *packetp, length); - - xgmac->config->ops->xgmac_inval_buffer(*packetp, length); - - return length; -} - -static int xgmac_free_pkt(struct udevice *dev, uchar *packet, int length) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - u32 idx, idx_mask = xgmac->desc_per_cacheline - 1; - uchar *packet_expected; - struct xgmac_desc *rx_desc; - - debug("%s(packet=%p, length=%d)\n", __func__, packet, length); - - packet_expected = xgmac->rx_dma_buf + - (xgmac->rx_desc_idx * XGMAC_MAX_PACKET_SIZE); - if (packet != packet_expected) { - debug("%s: Unexpected packet (expected %p)\n", __func__, - packet_expected); - return -EINVAL; - } - - xgmac->config->ops->xgmac_inval_buffer(packet, length); - - if ((xgmac->rx_desc_idx & idx_mask) == idx_mask) { - for (idx = xgmac->rx_desc_idx - idx_mask; - idx <= xgmac->rx_desc_idx; - idx++) { - rx_desc = xgmac_get_desc(xgmac, idx, true); - rx_desc->des0 = 0; - /* Flush the cache to the memory */ - mb(); - xgmac->config->ops->xgmac_flush_desc(rx_desc); - xgmac->config->ops->xgmac_inval_buffer(packet, length); - rx_desc->des0 = (u32)(ulong)(xgmac->rx_dma_buf + - (idx * XGMAC_MAX_PACKET_SIZE)); - rx_desc->des1 = 0; - rx_desc->des2 = 0; - /* - * Make sure that if HW sees the _OWN write below, - * it will see all the writes to the rest of the - * descriptor too. - */ - mb(); - rx_desc->des3 = XGMAC_DESC3_OWN; - xgmac->config->ops->xgmac_flush_desc(rx_desc); - } - writel((ulong)rx_desc, &xgmac->dma_regs->ch0_rxdesc_tail_pointer); - } - - xgmac->rx_desc_idx++; - xgmac->rx_desc_idx %= XGMAC_DESCRIPTORS_RX; - - return 0; -} - -static int xgmac_probe_resources_core(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - unsigned int desc_step; - int ret; - - debug("%s(dev=%p):\n", __func__, dev); - - /* Maximum distance between neighboring descriptors, in Bytes. */ - desc_step = sizeof(struct xgmac_desc); - - if (desc_step < ARCH_DMA_MINALIGN) { - /* - * The hardware implementation cannot place one descriptor - * per cacheline, it is necessary to place multiple descriptors - * per cacheline in memory and do cache management carefully. - */ - xgmac->desc_size = BIT(fls(desc_step) - 1); - } else { - xgmac->desc_size = ALIGN(sizeof(struct xgmac_desc), - (unsigned int)ARCH_DMA_MINALIGN); - } - xgmac->desc_per_cacheline = ARCH_DMA_MINALIGN / xgmac->desc_size; - - xgmac->tx_descs = xgmac_alloc_descs(xgmac, XGMAC_DESCRIPTORS_TX); - if (!xgmac->tx_descs) { - debug("%s: xgmac_alloc_descs(tx) failed\n", __func__); - ret = -ENOMEM; - goto err; - } - - xgmac->rx_descs = xgmac_alloc_descs(xgmac, XGMAC_DESCRIPTORS_RX); - if (!xgmac->rx_descs) { - debug("%s: xgmac_alloc_descs(rx) failed\n", __func__); - ret = -ENOMEM; - goto err_free_tx_descs; - } - - xgmac->tx_dma_buf = memalign(XGMAC_BUFFER_ALIGN, XGMAC_MAX_PACKET_SIZE); - if (!xgmac->tx_dma_buf) { - debug("%s: memalign(tx_dma_buf) failed\n", __func__); - ret = -ENOMEM; - goto err_free_descs; - } - debug("%s: tx_dma_buf=%p\n", __func__, xgmac->tx_dma_buf); - - xgmac->rx_dma_buf = memalign(XGMAC_BUFFER_ALIGN, XGMAC_RX_BUFFER_SIZE); - if (!xgmac->rx_dma_buf) { - debug("%s: memalign(rx_dma_buf) failed\n", __func__); - ret = -ENOMEM; - goto err_free_tx_dma_buf; - } - debug("%s: rx_dma_buf=%p\n", __func__, xgmac->rx_dma_buf); - - xgmac->rx_pkt = malloc(XGMAC_MAX_PACKET_SIZE); - if (!xgmac->rx_pkt) { - debug("%s: malloc(rx_pkt) failed\n", __func__); - ret = -ENOMEM; - goto err_free_rx_dma_buf; - } - debug("%s: rx_pkt=%p\n", __func__, xgmac->rx_pkt); - - xgmac->config->ops->xgmac_inval_buffer(xgmac->rx_dma_buf, - XGMAC_MAX_PACKET_SIZE * XGMAC_DESCRIPTORS_RX); - - debug("%s: OK\n", __func__); - return 0; - -err_free_rx_dma_buf: - free(xgmac->rx_dma_buf); -err_free_tx_dma_buf: - free(xgmac->tx_dma_buf); -err_free_descs: - xgmac_free_descs(xgmac->rx_descs); -err_free_tx_descs: - xgmac_free_descs(xgmac->tx_descs); -err: - - debug("%s: returns %d\n", __func__, ret); - return ret; -} - -static int xgmac_remove_resources_core(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - - debug("%s(dev=%p):\n", __func__, dev); - - free(xgmac->rx_pkt); - free(xgmac->rx_dma_buf); - free(xgmac->tx_dma_buf); - xgmac_free_descs(xgmac->rx_descs); - xgmac_free_descs(xgmac->tx_descs); - - debug("%s: OK\n", __func__); - return 0; -} - -/* board-specific Ethernet Interface initializations. */ -__weak int board_interface_eth_init(struct udevice *dev, - phy_interface_t interface_type) -{ - return 0; -} - -static int xgmac_probe(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - int ret; - - debug("%s(dev=%p):\n", __func__, dev); - - xgmac->dev = dev; - xgmac->config = (void *)dev_get_driver_data(dev); - - xgmac->regs = dev_read_addr(dev); - if (xgmac->regs == FDT_ADDR_T_NONE) { - pr_err("dev_read_addr() failed\n"); - return -ENODEV; - } - xgmac->mac_regs = (void *)(xgmac->regs + XGMAC_MAC_REGS_BASE); - xgmac->mtl_regs = (void *)(xgmac->regs + XGMAC_MTL_REGS_BASE); - xgmac->dma_regs = (void *)(xgmac->regs + XGMAC_DMA_REGS_BASE); - - xgmac->max_speed = dev_read_u32_default(dev, "max-speed", 0); - - ret = xgmac_probe_resources_core(dev); - if (ret < 0) { - pr_err("xgmac_probe_resources_core() failed: %d\n", ret); - return ret; - } - - ret = xgmac->config->ops->xgmac_probe_resources(dev); - if (ret < 0) { - pr_err("xgmac_probe_resources() failed: %d\n", ret); - goto err_remove_resources_core; - } - - ret = xgmac->config->ops->xgmac_start_clks(dev); - if (ret < 0) { - pr_err("xgmac_start_clks() failed: %d\n", ret); - return ret; - } - - if (IS_ENABLED(CONFIG_DM_ETH_PHY)) - xgmac->mii = eth_phy_get_mdio_bus(dev); - - if (!xgmac->mii) { - xgmac->mii = mdio_alloc(); - if (!xgmac->mii) { - pr_err("mdio_alloc() failed\n"); - ret = -ENOMEM; - goto err_stop_clks; - } - xgmac->mii->read = xgmac_mdio_read; - xgmac->mii->write = xgmac_mdio_write; - xgmac->mii->priv = xgmac; - strcpy(xgmac->mii->name, dev->name); - - ret = mdio_register(xgmac->mii); - if (ret < 0) { - pr_err("mdio_register() failed: %d\n", ret); - goto err_free_mdio; - } - } - - if (IS_ENABLED(CONFIG_DM_ETH_PHY)) - eth_phy_set_mdio_bus(dev, xgmac->mii); - - debug("%s: OK\n", __func__); - return 0; - -err_free_mdio: - mdio_free(xgmac->mii); -err_stop_clks: - xgmac->config->ops->xgmac_stop_clks(dev); -err_remove_resources_core: - xgmac_remove_resources_core(dev); - - debug("%s: returns %d\n", __func__, ret); - return ret; -} - -static int xgmac_remove(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - - debug("%s(dev=%p):\n", __func__, dev); - - mdio_unregister(xgmac->mii); - mdio_free(xgmac->mii); - xgmac->config->ops->xgmac_stop_clks(dev); - xgmac->config->ops->xgmac_remove_resources(dev); - - xgmac_remove_resources_core(dev); - - debug("%s: OK\n", __func__); - return 0; -} - -int xgmac_null_ops(struct udevice *dev) -{ - return 0; -} - -static const struct eth_ops xgmac_ops = { - .start = xgmac_start, - .stop = xgmac_stop, - .send = xgmac_send, - .recv = xgmac_recv, - .free_pkt = xgmac_free_pkt, - .write_hwaddr = xgmac_write_hwaddr, - .read_rom_hwaddr = xgmac_read_rom_hwaddr, -}; - -static const struct udevice_id xgmac_ids[] = { - { - .compatible = "intel,socfpga-dwxgmac", - .data = (ulong)&xgmac_socfpga_config - }, - { } -}; - -U_BOOT_DRIVER(eth_xgmac) = { - .name = "eth_xgmac", - .id = UCLASS_ETH, - .of_match = of_match_ptr(xgmac_ids), - .probe = xgmac_probe, - .remove = xgmac_remove, - .ops = &xgmac_ops, - .priv_auto = sizeof(struct xgmac_priv), - .plat_auto = sizeof(struct eth_pdata), -}; diff --git a/drivers/net/dwc_eth_xgmac.h b/drivers/net/dwc_eth_xgmac.h deleted file mode 100644 index 259f815f3f2..00000000000 --- a/drivers/net/dwc_eth_xgmac.h +++ /dev/null @@ -1,298 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright 2023 Intel Coporation. - */ - -#include <phy_interface.h> -#include <linux/bitops.h> - -/* Core registers */ - -#define XGMAC_MAC_REGS_BASE 0x000 - -struct xgmac_mac_regs { - u32 tx_configuration; /* 0x000 */ - u32 rx_configuration; /* 0x004 */ - u32 mac_packet_filter; /* 0x008 */ - u32 unused_00c[(0x070 - 0x00c) / 4]; /* 0x00c */ - u32 q0_tx_flow_ctrl; /* 0x070 */ - u32 unused_070[(0x090 - 0x074) / 4]; /* 0x074 */ - u32 rx_flow_ctrl; /* 0x090 */ - u32 unused_094[(0x0a0 - 0x094) / 4]; /* 0x094 */ - u32 rxq_ctrl0; /* 0x0a0 */ - u32 rxq_ctrl1; /* 0x0a4 */ - u32 rxq_ctrl2; /* 0x0a8 */ - u32 unused_0ac[(0x0dc - 0x0ac) / 4]; /* 0x0ac */ - u32 us_tic_counter; /* 0x0dc */ - u32 unused_0e0[(0x11c - 0x0e0) / 4]; /* 0x0e0 */ - u32 hw_feature0; /* 0x11c */ - u32 hw_feature1; /* 0x120 */ - u32 hw_feature2; /* 0x124 */ - u32 hw_feature3; /* 0x128 */ - u32 hw_feature4; /* 0x12c */ - u32 unused_130[(0x140 - 0x130) / 4]; /* 0x130 */ - u32 mac_extended_conf; /* 0x140 */ - u32 unused_144[(0x200 - 0x144) / 4]; /* 0x144 */ - u32 mdio_address; /* 0x200 */ - u32 mdio_data; /* 0x204 */ - u32 mdio_cont_write_addr; /* 0x208 */ - u32 mdio_cont_write_data; /* 0x20c */ - u32 mdio_cont_scan_port_enable; /* 0x210 */ - u32 mdio_intr_status; /* 0x214 */ - u32 mdio_intr_enable; /* 0x218 */ - u32 mdio_port_cnct_dsnct_status; /* 0x21c */ - u32 mdio_clause_22_port; /* 0x220 */ - u32 unused_224[(0x300 - 0x224) / 4]; /* 0x224 */ - u32 address0_high; /* 0x300 */ - u32 address0_low; /* 0x304 */ -}; - -#define XGMAC_TIMEOUT_100MS 100000 -#define XGMAC_MAC_CONF_SS_SHIFT 29 -#define XGMAC_MAC_CONF_SS_10G_XGMII 0 -#define XGMAC_MAC_CONF_SS_2_5G_GMII 2 -#define XGMAC_MAC_CONF_SS_1G_GMII 3 -#define XGMAC_MAC_CONF_SS_100M_MII 4 -#define XGMAC_MAC_CONF_SS_5G_XGMII 5 -#define XGMAC_MAC_CONF_SS_2_5G_XGMII 6 -#define XGMAC_MAC_CONF_SS_2_10M_MII 7 - -#define XGMAC_MAC_CONF_JD BIT(16) -#define XGMAC_MAC_CONF_JE BIT(8) -#define XGMAC_MAC_CONF_WD BIT(7) -#define XGMAC_MAC_CONF_GPSLCE BIT(6) -#define XGMAC_MAC_CONF_CST BIT(2) -#define XGMAC_MAC_CONF_ACS BIT(1) -#define XGMAC_MAC_CONF_TE BIT(0) -#define XGMAC_MAC_CONF_RE BIT(0) - -#define XGMAC_MAC_EXT_CONF_HD BIT(24) - -#define XGMAC_MAC_PACKET_FILTER_RA BIT(31) -#define XGMAC_MAC_PACKET_FILTER_PR BIT(0) - -#define XGMAC_MAC_Q0_TX_FLOW_CTRL_PT_SHIFT 16 -#define XGMAC_MAC_Q0_TX_FLOW_CTRL_PT_MASK GENMASK(15, 0) -#define XGMAC_MAC_Q0_TX_FLOW_CTRL_TFE BIT(1) - -#define XGMAC_MAC_RX_FLOW_CTRL_RFE BIT(0) -#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_SHIFT 0 -#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_MASK GENMASK(1, 0) -#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_NOT_ENABLED 0 -#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_DCB 2 -#define XGMAC_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_AV 1 - -#define XGMAC_MAC_RXQ_CTRL1_MCBCQEN BIT(15) - -#define XGMAC_MAC_RXQ_CTRL2_PSRQ0_SHIFT 0 -#define XGMAC_MAC_RXQ_CTRL2_PSRQ0_MASK GENMASK(7, 0) - -#define XGMAC_MAC_HW_FEATURE1_TXFIFOSIZE_SHIFT 6 -#define XGMAC_MAC_HW_FEATURE1_TXFIFOSIZE_MASK GENMASK(4, 0) -#define XGMAC_MAC_HW_FEATURE1_RXFIFOSIZE_SHIFT 0 -#define XGMAC_MAC_HW_FEATURE1_RXFIFOSIZE_MASK GENMASK(4, 0) - -#define XGMAC_MDIO_SINGLE_CMD_SHIFT 16 -#define XGMAC_MDIO_SINGLE_CMD_ADDR_CMD_READ 3 << XGMAC_MDIO_SINGLE_CMD_SHIFT -#define XGMAC_MDIO_SINGLE_CMD_ADDR_CMD_WRITE BIT(16) -#define XGMAC_MAC_MDIO_ADDRESS_PA_SHIFT 16 -#define XGMAC_MAC_MDIO_ADDRESS_PA_MASK GENMASK(15, 0) -#define XGMAC_MAC_MDIO_ADDRESS_DA_SHIFT 21 -#define XGMAC_MAC_MDIO_ADDRESS_CR_SHIFT 19 -#define XGMAC_MAC_MDIO_ADDRESS_CR_100_150 0 -#define XGMAC_MAC_MDIO_ADDRESS_CR_150_250 1 -#define XGMAC_MAC_MDIO_ADDRESS_CR_250_300 2 -#define XGMAC_MAC_MDIO_ADDRESS_CR_300_350 3 -#define XGMAC_MAC_MDIO_ADDRESS_CR_350_400 4 -#define XGMAC_MAC_MDIO_ADDRESS_CR_400_500 5 -#define XGMAC_MAC_MDIO_ADDRESS_SADDR BIT(18) -#define XGMAC_MAC_MDIO_ADDRESS_SBUSY BIT(22) -#define XGMAC_MAC_MDIO_REG_ADDR_C22P_MASK GENMASK(4, 0) -#define XGMAC_MAC_MDIO_DATA_GD_MASK GENMASK(15, 0) - -/* MTL Registers */ - -#define XGMAC_MTL_REGS_BASE 0x1000 - -struct xgmac_mtl_regs { - u32 mtl_operation_mode; /* 0x1000 */ - u32 unused_1004[(0x1030 - 0x1004) / 4]; /* 0x1004 */ - u32 mtl_rxq_dma_map0; /* 0x1030 */ - u32 mtl_rxq_dma_map1; /* 0x1034 */ - u32 mtl_rxq_dma_map2; /* 0x1038 */ - u32 mtl_rxq_dma_map3; /* 0x103c */ - u32 mtl_tc_prty_map0; /* 0x1040 */ - u32 mtl_tc_prty_map1; /* 0x1044 */ - u32 unused_1048[(0x1100 - 0x1048) / 4]; /* 0x1048 */ - u32 txq0_operation_mode; /* 0x1100 */ - u32 unused_1104; /* 0x1104 */ - u32 txq0_debug; /* 0x1108 */ - u32 unused_100c[(0x1118 - 0x110c) / 4]; /* 0x110c */ - u32 txq0_quantum_weight; /* 0x1118 */ - u32 unused_111c[(0x1140 - 0x111c) / 4]; /* 0x111c */ - u32 rxq0_operation_mode; /* 0x1140 */ - u32 unused_1144; /* 0x1144 */ - u32 rxq0_debug; /* 0x1148 */ -}; - -#define XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_SHIFT 16 -#define XGMAC_MTL_TXQ0_OPERATION_MODE_TQS_MASK GENMASK(8, 0) -#define XGMAC_MTL_TXQ0_OPERATION_MODE_TXQEN_SHIFT 2 -#define XGMAC_MTL_TXQ0_OPERATION_MODE_TXQEN_ENABLED 2 -#define XGMAC_MTL_TXQ0_OPERATION_MODE_TSF BIT(1) -#define XGMAC_MTL_TXQ0_OPERATION_MODE_FTQ BIT(0) - -#define XGMAC_MTL_TXQ0_DEBUG_TXQSTS BIT(4) -#define XGMAC_MTL_TXQ0_DEBUG_TRCSTS_SHIFT 1 -#define XGMAC_MTL_TXQ0_DEBUG_TRCSTS_MASK GENMASK(2, 0) -#define XGMAC_MTL_TXQ0_DEBUG_TRCSTS_READ_STATE 0x1 - -#define XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_SHIFT 16 -#define XGMAC_MTL_RXQ0_OPERATION_MODE_RQS_MASK GENMASK(9, 0) -#define XGMAC_MTL_RXQ0_OPERATION_MODE_EHFC BIT(7) -#define XGMAC_MTL_RXQ0_OPERATION_MODE_RSF BIT(5) - -#define XGMAC_MTL_RXQ0_DEBUG_PRXQ_SHIFT 16 -#define XGMAC_MTL_RXQ0_DEBUG_PRXQ_MASK GENMASK(14, 0) -#define XGMAC_MTL_RXQ0_DEBUG_RXQSTS_SHIFT 4 -#define XGMAC_MTL_RXQ0_DEBUG_RXQSTS_MASK GENMASK(1, 0) - -/* DMA Registers */ - -#define XGMAC_DMA_REGS_BASE 0x3000 - -struct xgmac_dma_regs { - u32 mode; /* 0x3000 */ - u32 sysbus_mode; /* 0x3004 */ - u32 unused_3008[(0x3100 - 0x3008) / 4]; /* 0x3008 */ - u32 ch0_control; /* 0x3100 */ - u32 ch0_tx_control; /* 0x3104 */ - u32 ch0_rx_control; /* 0x3108 */ - u32 slot_func_control_status; /* 0x310c */ - u32 ch0_txdesc_list_haddress; /* 0x3110 */ - u32 ch0_txdesc_list_address; /* 0x3114 */ - u32 ch0_rxdesc_list_haddress; /* 0x3118 */ - u32 ch0_rxdesc_list_address; /* 0x311c */ - u32 unused_3120; /* 0x3120 */ - u32 ch0_txdesc_tail_pointer; /* 0x3124 */ - u32 unused_3128; /* 0x3128 */ - u32 ch0_rxdesc_tail_pointer; /* 0x312c */ - u32 ch0_txdesc_ring_length; /* 0x3130 */ - u32 ch0_rxdesc_ring_length; /* 0x3134 */ - u32 unused_3138[(0x3160 - 0x3138) / 4]; /* 0x3138 */ - u32 ch0_status; /* 0x3160 */ -}; - -#define XGMAC_DMA_MODE_SWR BIT(0) -#define XGMAC_DMA_SYSBUS_MODE_WR_OSR_LMT_SHIFT 24 -#define XGMAC_DMA_SYSBUS_MODE_WR_OSR_LMT_MASK GENMASK(4, 0) -#define XGMAC_DMA_SYSBUS_MODE_RD_OSR_LMT_SHIFT 16 -#define XGMAC_DMA_SYSBUS_MODE_RD_OSR_LMT_MASK GENMASK(4, 0) -#define XGMAC_DMA_SYSBUS_MODE_AAL BIT(12) -#define XGMAC_DMA_SYSBUS_MODE_EAME BIT(11) -#define XGMAC_DMA_SYSBUS_MODE_BLEN32 BIT(4) -#define XGMAC_DMA_SYSBUS_MODE_BLEN16 BIT(3) -#define XGMAC_DMA_SYSBUS_MODE_BLEN8 BIT(2) -#define XGMAC_DMA_SYSBUS_MODE_BLEN4 BIT(1) -#define XGMAC_DMA_SYSBUS_MODE_UNDEF BIT(0) - -#define XGMAC_DMA_CH0_CONTROL_DSL_SHIFT 18 -#define XGMAC_DMA_CH0_CONTROL_PBLX8 BIT(16) - -#define XGMAC_DMA_CH0_TX_CONTROL_TXPBL_SHIFT 16 -#define XGMAC_DMA_CH0_TX_CONTROL_TXPBL_MASK GENMASK(5, 0) -#define XGMAC_DMA_CH0_TX_CONTROL_OSP BIT(4) -#define XGMAC_DMA_CH0_TX_CONTROL_ST BIT(0) - -#define XGMAC_DMA_CH0_RX_CONTROL_RXPBL_SHIFT 16 -#define XGMAC_DMA_CH0_RX_CONTROL_RXPBL_MASK GENMASK(5, 0) -#define XGMAC_DMA_CH0_RX_CONTROL_RBSZ_SHIFT 4 -#define XGMAC_DMA_CH0_RX_CONTROL_RBSZ_MASK GENMASK(10, 0) -#define XGMAC_DMA_CH0_RX_CONTROL_SR BIT(0) - -/* Descriptors */ -#define XGMAC_DESCRIPTORS_TX 8 -#define XGMAC_DESCRIPTORS_RX 8 -#define XGMAC_BUFFER_ALIGN ARCH_DMA_MINALIGN -#define XGMAC_MAX_PACKET_SIZE ALIGN(1568, ARCH_DMA_MINALIGN) -#define XGMAC_RX_BUFFER_SIZE (XGMAC_DESCRIPTORS_RX * XGMAC_MAX_PACKET_SIZE) - -#define XGMAC_RDES3_PKT_LENGTH_MASK GENMASK(13, 0) - -struct xgmac_desc { - u32 des0; - u32 des1; - u32 des2; - u32 des3; -}; - -#define XGMAC_DESC3_OWN BIT(31) -#define XGMAC_DESC3_FD BIT(29) -#define XGMAC_DESC3_LD BIT(28) - -#define XGMAC_AXI_WIDTH_32 4 -#define XGMAC_AXI_WIDTH_64 8 -#define XGMAC_AXI_WIDTH_128 16 - -struct xgmac_config { - bool reg_access_always_ok; - int swr_wait; - int config_mac; - int config_mac_mdio; - unsigned int axi_bus_width; - phy_interface_t (*interface)(const struct udevice *dev); - struct xgmac_ops *ops; -}; - -struct xgmac_ops { - void (*xgmac_inval_desc)(void *desc); - void (*xgmac_flush_desc)(void *desc); - void (*xgmac_inval_buffer)(void *buf, size_t size); - void (*xgmac_flush_buffer)(void *buf, size_t size); - int (*xgmac_probe_resources)(struct udevice *dev); - int (*xgmac_remove_resources)(struct udevice *dev); - int (*xgmac_stop_resets)(struct udevice *dev); - int (*xgmac_start_resets)(struct udevice *dev); - int (*xgmac_stop_clks)(struct udevice *dev); - int (*xgmac_start_clks)(struct udevice *dev); - int (*xgmac_calibrate_pads)(struct udevice *dev); - int (*xgmac_disable_calibration)(struct udevice *dev); - int (*xgmac_get_enetaddr)(struct udevice *dev); -}; - -struct xgmac_priv { - struct udevice *dev; - const struct xgmac_config *config; - fdt_addr_t regs; - struct xgmac_mac_regs *mac_regs; - struct xgmac_mtl_regs *mtl_regs; - struct xgmac_dma_regs *dma_regs; - struct reset_ctl reset_ctl; - struct reset_ctl_bulk reset_bulk; - struct clk clk_common; - struct mii_dev *mii; - struct phy_device *phy; - ofnode phy_of_node; - void *syscon_phy; - u32 syscon_phy_regshift; - u32 max_speed; - void *tx_descs; - void *rx_descs; - int tx_desc_idx, rx_desc_idx; - unsigned int desc_size; - unsigned int desc_per_cacheline; - void *tx_dma_buf; - void *rx_dma_buf; - void *rx_pkt; - bool started; - bool reg_access_ok; - bool clk_ck_enabled; -}; - -void xgmac_inval_desc_generic(void *desc); -void xgmac_flush_desc_generic(void *desc); -void xgmac_inval_buffer_generic(void *buf, size_t size); -void xgmac_flush_buffer_generic(void *buf, size_t size); -int xgmac_null_ops(struct udevice *dev); - -extern struct xgmac_config xgmac_socfpga_config; diff --git a/drivers/net/dwc_eth_xgmac_socfpga.c b/drivers/net/dwc_eth_xgmac_socfpga.c deleted file mode 100644 index 270c1b0ca6c..00000000000 --- a/drivers/net/dwc_eth_xgmac_socfpga.c +++ /dev/null @@ -1,226 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -/* - * Copyright (c) 2023, Intel Corporation - */ -#include <clk.h> -#include <cpu_func.h> -#include <dm.h> -#include <errno.h> -#include <eth_phy.h> -#include <log.h> -#include <malloc.h> -#include <memalign.h> -#include <miiphy.h> -#include <net.h> -#include <netdev.h> -#include <phy.h> -#include <reset.h> -#include <wait_bit.h> -#include <asm/arch/secure_reg_helper.h> -#include <asm/arch/system_manager.h> -#include <regmap.h> -#include <syscon.h> -#include <asm/cache.h> -#include <asm/gpio.h> -#include <asm/io.h> -#include <linux/delay.h> -#include <dm/device_compat.h> -#include "dwc_eth_xgmac.h" - -#define SOCFPGA_XGMAC_SYSCON_ARG_COUNT 2 - -static int dwxgmac_socfpga_do_setphy(struct udevice *dev, u32 modereg) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - int ret; - - u32 modemask = SYSMGR_EMACGRP_CTRL_PHYSEL_MASK << - xgmac->syscon_phy_regshift; - - if (!(IS_ENABLED(CONFIG_SPL_BUILD)) && IS_ENABLED(CONFIG_SPL_ATF)) { - u32 index = ((u64)xgmac->syscon_phy - socfpga_get_sysmgr_addr() - - SYSMGR_SOC64_EMAC0) >> 2; - - u32 id = SOCFPGA_SECURE_REG_SYSMGR_SOC64_EMAC0 + index; - - ret = socfpga_secure_reg_update32(id, - modemask, - modereg << - xgmac->syscon_phy_regshift); - if (ret) { - dev_err(dev, "Failed to set PHY register via SMC call\n"); - return ret; - } - - } else { - clrsetbits_le32(xgmac->phy, modemask, modereg); - } - - return 0; -} - -static int xgmac_probe_resources_socfpga(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - struct regmap *reg_map; - struct ofnode_phandle_args args; - void *range; - phy_interface_t interface; - int ret; - u32 modereg; - - interface = xgmac->config->interface(dev); - - switch (interface) { - case PHY_INTERFACE_MODE_MII: - case PHY_INTERFACE_MODE_GMII: - modereg = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_GMII_MII; - break; - case PHY_INTERFACE_MODE_RMII: - modereg = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_RMII; - break; - case PHY_INTERFACE_MODE_RGMII: - modereg = SYSMGR_EMACGRP_CTRL_PHYSEL_ENUM_RGMII; - break; - default: - dev_err(dev, "Unsupported PHY mode\n"); - return -EINVAL; - } - - /* Get PHY syscon */ - ret = dev_read_phandle_with_args(dev, "altr,sysmgr-syscon", NULL, - SOCFPGA_XGMAC_SYSCON_ARG_COUNT, - 0, &args); - - if (ret) { - dev_err(dev, "Failed to get syscon: %d\n", ret); - return ret; - } - - if (args.args_count != SOCFPGA_XGMAC_SYSCON_ARG_COUNT) { - dev_err(dev, "Invalid number of syscon args\n"); - return -EINVAL; - } - - reg_map = syscon_node_to_regmap(args.node); - if (IS_ERR(reg_map)) { - ret = PTR_ERR(reg_map); - dev_err(dev, "Failed to get reg_map: %d\n", ret); - return ret; - } - - range = regmap_get_range(reg_map, 0); - if (!range) { - dev_err(dev, "Failed to get reg_map: %d\n", ret); - return -ENOMEM; - } - - xgmac->syscon_phy = range + args.args[0]; - xgmac->syscon_phy_regshift = args.args[1]; - - /* Get Reset Bulk */ - ret = reset_get_bulk(dev, &xgmac->reset_bulk); - if (ret) { - dev_err(dev, "Failed to get reset: %d\n", ret); - return ret; - } - - ret = reset_assert_bulk(&xgmac->reset_bulk); - if (ret) { - dev_err(dev, "XGMAC failed to assert reset: %d\n", ret); - return ret; - } - - ret = dwxgmac_socfpga_do_setphy(dev, modereg); - if (ret) - return ret; - - ret = reset_deassert_bulk(&xgmac->reset_bulk); - if (ret) { - dev_err(dev, "XGMAC failed to de-assert reset: %d\n", ret); - return ret; - } - - ret = clk_get_by_name(dev, "stmmaceth", &xgmac->clk_common); - if (ret) { - pr_err("clk_get_by_name(stmmaceth) failed: %d", ret); - goto err_probe; - } - return 0; - -err_probe: - debug("%s: returns %d\n", __func__, ret); - return ret; -} - -static int xgmac_get_enetaddr_socfpga(struct udevice *dev) -{ - struct eth_pdata *pdata = dev_get_plat(dev); - struct xgmac_priv *xgmac = dev_get_priv(dev); - u32 hi_addr, lo_addr; - - debug("%s(dev=%p):\n", __func__, dev); - - /* Read the MAC Address from the hardawre */ - hi_addr = readl(&xgmac->mac_regs->address0_high); - lo_addr = readl(&xgmac->mac_regs->address0_low); - - pdata->enetaddr[0] = lo_addr & 0xff; - pdata->enetaddr[1] = (lo_addr >> 8) & 0xff; - pdata->enetaddr[2] = (lo_addr >> 16) & 0xff; - pdata->enetaddr[3] = (lo_addr >> 24) & 0xff; - pdata->enetaddr[4] = hi_addr & 0xff; - pdata->enetaddr[5] = (hi_addr >> 8) & 0xff; - - return !is_valid_ethaddr(pdata->enetaddr); -} - -static int xgmac_start_resets_socfpga(struct udevice *dev) -{ - struct xgmac_priv *xgmac = dev_get_priv(dev); - int ret; - - debug("%s(dev=%p):\n", __func__, dev); - - ret = reset_assert_bulk(&xgmac->reset_bulk); - if (ret < 0) { - pr_err("xgmac reset assert failed: %d", ret); - return ret; - } - - udelay(2); - - ret = reset_deassert_bulk(&xgmac->reset_bulk); - if (ret < 0) { - pr_err("xgmac reset de-assert failed: %d", ret); - return ret; - } - - return 0; -} - -static struct xgmac_ops xgmac_socfpga_ops = { - .xgmac_inval_desc = xgmac_inval_desc_generic, - .xgmac_flush_desc = xgmac_flush_desc_generic, - .xgmac_inval_buffer = xgmac_inval_buffer_generic, - .xgmac_flush_buffer = xgmac_flush_buffer_generic, - .xgmac_probe_resources = xgmac_probe_resources_socfpga, - .xgmac_remove_resources = xgmac_null_ops, - .xgmac_stop_resets = xgmac_null_ops, - .xgmac_start_resets = xgmac_start_resets_socfpga, - .xgmac_stop_clks = xgmac_null_ops, - .xgmac_start_clks = xgmac_null_ops, - .xgmac_calibrate_pads = xgmac_null_ops, - .xgmac_disable_calibration = xgmac_null_ops, - .xgmac_get_enetaddr = xgmac_get_enetaddr_socfpga, -}; - -struct xgmac_config __maybe_unused xgmac_socfpga_config = { - .reg_access_always_ok = false, - .swr_wait = 50, - .config_mac = XGMAC_MAC_RXQ_CTRL0_RXQ0EN_ENABLED_DCB, - .config_mac_mdio = XGMAC_MAC_MDIO_ADDRESS_CR_350_400, - .axi_bus_width = XGMAC_AXI_WIDTH_64, - .interface = dev_read_phy_mode, - .ops = &xgmac_socfpga_ops -}; diff --git a/drivers/net/dwmac_meson8b.c b/drivers/net/dwmac_meson8b.c index fde4aabbace..871171e1be5 100644 --- a/drivers/net/dwmac_meson8b.c +++ b/drivers/net/dwmac_meson8b.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 BayLibre, SAS */ +#include <common.h> #include <asm/io.h> #include <dm.h> #include <phy.h> diff --git a/drivers/net/dwmac_s700.c b/drivers/net/dwmac_s700.c index 969d247b4f3..744b58bdd1a 100644 --- a/drivers/net/dwmac_s700.c +++ b/drivers/net/dwmac_s700.c @@ -5,6 +5,7 @@ * Actions DWMAC specific glue layer */ +#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/net/dwmac_socfpga.c b/drivers/net/dwmac_socfpga.c index bba3fc4d34b..82fdff51dac 100644 --- a/drivers/net/dwmac_socfpga.c +++ b/drivers/net/dwmac_socfpga.c @@ -5,6 +5,7 @@ * Altera SoCFPGA EMAC extras */ +#include <common.h> #include <asm/arch/secure_reg_helper.h> #include <asm/arch/system_manager.h> #include <asm/io.h> diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c index 663d900eb09..4e7ba666770 100644 --- a/drivers/net/e1000.c +++ b/drivers/net/e1000.c @@ -29,6 +29,7 @@ tested on both gig copper and gig fiber boards * Copyright 2011 Freescale Semiconductor, Inc. */ +#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/e1000_spi.c b/drivers/net/e1000_spi.c index 1e830b99f1d..69adf282c73 100644 --- a/drivers/net/e1000_spi.c +++ b/drivers/net/e1000_spi.c @@ -1,9 +1,9 @@ +#include <common.h> #include <command.h> #include <console.h> #include <linux/delay.h> #include "e1000.h" #include <malloc.h> -#include <vsprintf.h> #include <linux/compiler.h> /*----------------------------------------------------------------------- diff --git a/drivers/net/eepro100.c b/drivers/net/eepro100.c index d18a8d577ca..38d96ab72b6 100644 --- a/drivers/net/eepro100.c +++ b/drivers/net/eepro100.c @@ -4,7 +4,7 @@ * Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <config.h> +#include <common.h> #include <asm/io.h> #include <cpu_func.h> #include <malloc.h> diff --git a/drivers/net/eth-phy-uclass.c b/drivers/net/eth-phy-uclass.c index 1dae26878e6..9d1e8d38ffa 100644 --- a/drivers/net/eth-phy-uclass.c +++ b/drivers/net/eth-phy-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_ETH_PHY +#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index dc7e6f1929f..13fad8119bb 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c @@ -9,6 +9,7 @@ * Copyright (C) 2016 Cadence Design Systems Inc. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 0a0d92bc2cd..90af18f80a8 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -7,6 +7,7 @@ * (C) Copyright 2007 Pengutronix, Juergen Beisert <[email protected]> */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <env.h> diff --git a/drivers/net/fm/b4860.c b/drivers/net/fm/b4860.c index 46a0d38b101..1c5543e3c87 100644 --- a/drivers/net/fm/b4860.c +++ b/drivers/net/fm/b4860.c @@ -3,7 +3,7 @@ * Copyright 2012 Freescale Semiconductor, Inc. * Roy Zang <[email protected]> */ -#include <config.h> +#include <common.h> #include <env.h> #include <phy.h> #include <fm_eth.h> diff --git a/drivers/net/fm/dtsec.c b/drivers/net/fm/dtsec.c index 371d9f07a46..c51a65cb94f 100644 --- a/drivers/net/fm/dtsec.c +++ b/drivers/net/fm/dtsec.c @@ -3,6 +3,7 @@ * Copyright 2009-2011 Freescale Semiconductor, Inc. */ +#include <common.h> #include <asm/types.h> #include <asm/io.h> #include <fsl_dtsec.h> diff --git a/drivers/net/fm/eth.c b/drivers/net/fm/eth.c index 19f3f0fef07..9fd26de0d72 100644 --- a/drivers/net/fm/eth.c +++ b/drivers/net/fm/eth.c @@ -4,7 +4,7 @@ * Copyright 2020 NXP * Dave Liu <[email protected]> */ -#include <config.h> +#include <common.h> #include <log.h> #include <part.h> #include <asm/io.h> diff --git a/drivers/net/fm/ls1043.c b/drivers/net/fm/ls1043.c index 41b75761fdd..3db5c907a2a 100644 --- a/drivers/net/fm/ls1043.c +++ b/drivers/net/fm/ls1043.c @@ -2,7 +2,7 @@ /* * Copyright 2015 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/ls1046.c b/drivers/net/fm/ls1046.c index 56c5c6846a4..3b0ee98ddd3 100644 --- a/drivers/net/fm/ls1046.c +++ b/drivers/net/fm/ls1046.c @@ -2,7 +2,7 @@ /* * Copyright 2016 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/memac.c b/drivers/net/fm/memac.c index 37b54626af0..eeb67a39a77 100644 --- a/drivers/net/fm/memac.c +++ b/drivers/net/fm/memac.c @@ -7,6 +7,7 @@ /* MAXFRM - maximum frame length */ #define MAXFRM_MASK 0x0000ffff +#include <common.h> #include <log.h> #include <phy.h> #include <asm/types.h> diff --git a/drivers/net/fm/memac_phy.c b/drivers/net/fm/memac_phy.c index 26425d94ae5..e0b62b94490 100644 --- a/drivers/net/fm/memac_phy.c +++ b/drivers/net/fm/memac_phy.c @@ -5,6 +5,7 @@ * Roy Zang <[email protected]> * Some part is taken from tsec.c */ +#include <common.h> #include <miiphy.h> #include <phy.h> #include <asm/io.h> diff --git a/drivers/net/fm/p1023.c b/drivers/net/fm/p1023.c index 362bc9f30a1..9013b276bc9 100644 --- a/drivers/net/fm/p1023.c +++ b/drivers/net/fm/p1023.c @@ -2,7 +2,7 @@ /* * Copyright 2011 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p4080.c b/drivers/net/fm/p4080.c index 6e63e338e5d..7ad993221f7 100644 --- a/drivers/net/fm/p4080.c +++ b/drivers/net/fm/p4080.c @@ -2,7 +2,7 @@ /* * Copyright 2011 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p5020.c b/drivers/net/fm/p5020.c index 4fc1f723a3d..f931491b112 100644 --- a/drivers/net/fm/p5020.c +++ b/drivers/net/fm/p5020.c @@ -2,7 +2,7 @@ /* * Copyright 2011 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/p5040.c b/drivers/net/fm/p5040.c index f6ae947ef99..ef9f4bcce4d 100644 --- a/drivers/net/fm/p5040.c +++ b/drivers/net/fm/p5040.c @@ -2,7 +2,7 @@ /* * Copyright 2011 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/t1024.c b/drivers/net/fm/t1024.c index 18d71e7b60e..70ab4610cdf 100644 --- a/drivers/net/fm/t1024.c +++ b/drivers/net/fm/t1024.c @@ -4,7 +4,7 @@ * Shengzhou Liu <[email protected]> */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/immap_85xx.h> diff --git a/drivers/net/fm/t1040.c b/drivers/net/fm/t1040.c index dafa6d638e3..5c260bed7fd 100644 --- a/drivers/net/fm/t1040.c +++ b/drivers/net/fm/t1040.c @@ -2,7 +2,7 @@ /* * Copyright 2013 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/t2080.c b/drivers/net/fm/t2080.c index 390ca0aee70..6174934d2b8 100644 --- a/drivers/net/fm/t2080.c +++ b/drivers/net/fm/t2080.c @@ -5,7 +5,7 @@ * Shengzhou Liu <[email protected]> */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/immap_85xx.h> diff --git a/drivers/net/fm/t4240.c b/drivers/net/fm/t4240.c index df76073eecd..f0a02bfe457 100644 --- a/drivers/net/fm/t4240.c +++ b/drivers/net/fm/t4240.c @@ -3,7 +3,7 @@ * Copyright 2012 Freescale Semiconductor, Inc. * Roy Zang <[email protected]> */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fm_eth.h> #include <asm/io.h> diff --git a/drivers/net/fm/tgec.c b/drivers/net/fm/tgec.c index f7b51ce0bba..9cc9f3fde3a 100644 --- a/drivers/net/fm/tgec.c +++ b/drivers/net/fm/tgec.c @@ -7,6 +7,7 @@ /* MAXFRM - maximum frame length */ #define MAXFRM_MASK 0x0000ffff +#include <common.h> #include <phy.h> #include <asm/types.h> #include <asm/io.h> diff --git a/drivers/net/fm/tgec_phy.c b/drivers/net/fm/tgec_phy.c index f6c8f80c835..22225c2f82f 100644 --- a/drivers/net/fm/tgec_phy.c +++ b/drivers/net/fm/tgec_phy.c @@ -4,6 +4,7 @@ * Andy Fleming <[email protected]> * Some part is taken from tsec.c */ +#include <common.h> #include <miiphy.h> #include <phy.h> #include <asm/io.h> diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c index c2869ce4010..f5c5057bec1 100644 --- a/drivers/net/fsl-mc/mc.c +++ b/drivers/net/fsl-mc/mc.c @@ -3,7 +3,7 @@ * Copyright 2014 Freescale Semiconductor, Inc. * Copyright 2017-2018, 2020-2021 NXP */ -#include <config.h> +#include <common.h> #include <command.h> #include <cpu_func.h> #include <env.h> diff --git a/drivers/net/fsl-mc/mc_sys.c b/drivers/net/fsl-mc/mc_sys.c index 482fb0463d5..4d32516b005 100644 --- a/drivers/net/fsl-mc/mc_sys.c +++ b/drivers/net/fsl-mc/mc_sys.c @@ -8,6 +8,7 @@ #include <fsl-mc/fsl_mc_sys.h> #include <fsl-mc/fsl_mc_cmd.h> +#include <common.h> #include <errno.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c index a6b0bafc8c6..1fd5089cc4b 100644 --- a/drivers/net/fsl_enetc.c +++ b/drivers/net/fsl_enetc.c @@ -4,6 +4,7 @@ * Copyright 2017-2021 NXP */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdt_support.h> diff --git a/drivers/net/fsl_enetc_mdio.c b/drivers/net/fsl_enetc_mdio.c index 2d5fcbb6dbd..50ad76dfeb5 100644 --- a/drivers/net/fsl_enetc_mdio.c +++ b/drivers/net/fsl_enetc_mdio.c @@ -4,6 +4,7 @@ * Copyright 2019 NXP */ +#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/net/fsl_ls_mdio.c b/drivers/net/fsl_ls_mdio.c index e3c37d9045f..fce73937502 100644 --- a/drivers/net/fsl_ls_mdio.c +++ b/drivers/net/fsl_ls_mdio.c @@ -3,6 +3,7 @@ * Copyright 2020 NXP */ +#include <common.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/fsl_mdio.c b/drivers/net/fsl_mdio.c index a0f1c59e058..5fd11db05f5 100644 --- a/drivers/net/fsl_mdio.c +++ b/drivers/net/fsl_mdio.c @@ -5,6 +5,7 @@ * Mingkai Hu <[email protected]> */ +#include <common.h> #include <miiphy.h> #include <phy.h> #include <fsl_mdio.h> diff --git a/drivers/net/ftgmac100.c b/drivers/net/ftgmac100.c index 8781e50a48d..9b536fd5ab8 100644 --- a/drivers/net/ftgmac100.c +++ b/drivers/net/ftgmac100.c @@ -11,6 +11,7 @@ * Copyright (C) 2018, IBM Corporation. */ +#include <common.h> #include <clk.h> #include <reset.h> #include <cpu_func.h> diff --git a/drivers/net/ftmac100.c b/drivers/net/ftmac100.c index 199a0723b84..fae3adc3de3 100644 --- a/drivers/net/ftmac100.c +++ b/drivers/net/ftmac100.c @@ -7,6 +7,7 @@ */ #include <config.h> +#include <common.h> #include <cpu_func.h> #include <env.h> #include <malloc.h> diff --git a/drivers/net/gmac_rockchip.c b/drivers/net/gmac_rockchip.c index d63e2dbfaeb..51f835adabc 100644 --- a/drivers/net/gmac_rockchip.c +++ b/drivers/net/gmac_rockchip.c @@ -5,6 +5,7 @@ * Rockchip GMAC ethernet IP driver for U-Boot */ +#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/net/higmacv300.c b/drivers/net/higmacv300.c index 6b88f6fbf59..1862235d0cd 100644 --- a/drivers/net/higmacv300.c +++ b/drivers/net/higmacv300.c @@ -8,6 +8,7 @@ #include <malloc.h> #include <asm/cache.h> #include <asm/io.h> +#include <common.h> #include <console.h> #include <linux/bitops.h> #include <linux/bug.h> diff --git a/drivers/net/ks8851_mll.c b/drivers/net/ks8851_mll.c index cc2e826257a..518548e3bbc 100644 --- a/drivers/net/ks8851_mll.c +++ b/drivers/net/ks8851_mll.c @@ -6,6 +6,7 @@ #include <log.h> #include <asm/io.h> +#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/ldpaa_eth/ldpaa_eth.c b/drivers/net/ldpaa_eth/ldpaa_eth.c index b72198ca530..87fbada06ba 100644 --- a/drivers/net/ldpaa_eth/ldpaa_eth.c +++ b/drivers/net/ldpaa_eth/ldpaa_eth.c @@ -4,6 +4,7 @@ * Copyright 2017, 2023 NXP */ +#include <common.h> #include <cpu_func.h> #include <dm/device_compat.h> #include <fsl-mc/fsl_dpmac.h> diff --git a/drivers/net/ldpaa_eth/ldpaa_wriop.c b/drivers/net/ldpaa_eth/ldpaa_wriop.c index a803b8fa797..adecb813576 100644 --- a/drivers/net/ldpaa_eth/ldpaa_wriop.c +++ b/drivers/net/ldpaa_eth/ldpaa_wriop.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Freescale Semiconductor */ +#include <common.h> #include <asm/io.h> #include <asm/types.h> #include <malloc.h> diff --git a/drivers/net/ldpaa_eth/ls1088a.c b/drivers/net/ldpaa_eth/ls1088a.c index 2727fb01179..32bcb51725a 100644 --- a/drivers/net/ldpaa_eth/ls1088a.c +++ b/drivers/net/ldpaa_eth/ls1088a.c @@ -2,7 +2,7 @@ /* * Copyright 2017 NXP */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/ldpaa_eth/ls2080a.c b/drivers/net/ldpaa_eth/ls2080a.c index 05017552b3f..845a36bce87 100644 --- a/drivers/net/ldpaa_eth/ls2080a.c +++ b/drivers/net/ldpaa_eth/ls2080a.c @@ -2,7 +2,7 @@ /* * Copyright 2015 Freescale Semiconductor, Inc. */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/ldpaa_eth/lx2160a.c b/drivers/net/ldpaa_eth/lx2160a.c index 25ae684063b..c2641a92d7e 100644 --- a/drivers/net/ldpaa_eth/lx2160a.c +++ b/drivers/net/ldpaa_eth/lx2160a.c @@ -2,7 +2,7 @@ /* * Copyright 2018, 2020 NXP */ -#include <config.h> +#include <common.h> #include <phy.h> #include <fsl-mc/ldpaa_wriop.h> #include <asm/io.h> diff --git a/drivers/net/macb.c b/drivers/net/macb.c index cbf5f605518..bca014c3cbb 100644 --- a/drivers/net/macb.c +++ b/drivers/net/macb.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2005-2006 Atmel Corporation */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/mcffec.c b/drivers/net/mcffec.c index 04b711e4f65..ec1fae9688b 100644 --- a/drivers/net/mcffec.c +++ b/drivers/net/mcffec.c @@ -10,7 +10,7 @@ * (C) 2019 Angelo Dureghello <[email protected]> */ -#include <config.h> +#include <common.h> #include <env.h> #include <hang.h> #include <malloc.h> diff --git a/drivers/net/mcfmii.c b/drivers/net/mcfmii.c index 9bf887035d7..eae20654513 100644 --- a/drivers/net/mcfmii.c +++ b/drivers/net/mcfmii.c @@ -4,6 +4,7 @@ * TsiChung Liew ([email protected]) */ +#include <common.h> #include <config.h> #include <net.h> #include <netdev.h> diff --git a/drivers/net/mdio-ipq4019.c b/drivers/net/mdio-ipq4019.c index c824c3da3dd..50134b4d9b6 100644 --- a/drivers/net/mdio-ipq4019.c +++ b/drivers/net/mdio-ipq4019.c @@ -11,6 +11,7 @@ */ #include <asm/io.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <linux/bitops.h> diff --git a/drivers/net/mpc8xx_fec.c b/drivers/net/mpc8xx_fec.c index c44fa6acdd7..78337731e1f 100644 --- a/drivers/net/mpc8xx_fec.c +++ b/drivers/net/mpc8xx_fec.c @@ -4,6 +4,7 @@ * Wolfgang Denk, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <command.h> #include <hang.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/jr2_switch.c b/drivers/net/mscc_eswitch/jr2_switch.c index 925888e0765..7157428a685 100644 --- a/drivers/net/mscc_eswitch/jr2_switch.c +++ b/drivers/net/mscc_eswitch/jr2_switch.c @@ -3,6 +3,7 @@ * Copyright (c) 2018 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/luton_switch.c b/drivers/net/mscc_eswitch/luton_switch.c index 2f3d0911fdf..5e4f00c4f4d 100644 --- a/drivers/net/mscc_eswitch/luton_switch.c +++ b/drivers/net/mscc_eswitch/luton_switch.c @@ -3,6 +3,7 @@ * Copyright (c) 2019 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mscc_eswitch/ocelot_switch.c b/drivers/net/mscc_eswitch/ocelot_switch.c index 30bb4b5bad8..7ea1f551a11 100644 --- a/drivers/net/mscc_eswitch/ocelot_switch.c +++ b/drivers/net/mscc_eswitch/ocelot_switch.c @@ -3,6 +3,7 @@ * Copyright (c) 2018 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mscc_eswitch/serval_switch.c b/drivers/net/mscc_eswitch/serval_switch.c index 8eab41df99a..be06e483373 100644 --- a/drivers/net/mscc_eswitch/serval_switch.c +++ b/drivers/net/mscc_eswitch/serval_switch.c @@ -3,6 +3,7 @@ * Copyright (c) 2019 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mscc_eswitch/servalt_switch.c b/drivers/net/mscc_eswitch/servalt_switch.c index 61547d7933e..2d2329c204a 100644 --- a/drivers/net/mscc_eswitch/servalt_switch.c +++ b/drivers/net/mscc_eswitch/servalt_switch.c @@ -3,6 +3,7 @@ * Copyright (c) 2019 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/net/mt7628-eth.c b/drivers/net/mt7628-eth.c index fc8a6bb331b..b95de474fb0 100644 --- a/drivers/net/mt7628-eth.c +++ b/drivers/net/mt7628-eth.c @@ -13,6 +13,7 @@ * copyrights here, so I can't add them here. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 94f17a97fe0..75e7bcf83b7 100644 --- a/drivers/net/mtk_eth.c +++ b/drivers/net/mtk_eth.c @@ -6,6 +6,7 @@ * Author: Mark Lee <[email protected]> */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mv88e6xxx.c b/drivers/net/mv88e6xxx.c index 557b6b2c8f6..8fbbc1cacca 100644 --- a/drivers/net/mv88e6xxx.c +++ b/drivers/net/mv88e6xxx.c @@ -23,6 +23,7 @@ * on the mv88e6176 via an SGMII interface. */ +#include <common.h> #include <dm/device.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/net/mvgbe.c b/drivers/net/mvgbe.c index 17b62bbc205..3587ca2124e 100644 --- a/drivers/net/mvgbe.c +++ b/drivers/net/mvgbe.c @@ -11,6 +11,7 @@ * Copyright (C) 2002 [email protected] */ +#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/mvmdio.c b/drivers/net/mvmdio.c index 3315e06f591..5ebcfe14b7f 100644 --- a/drivers/net/mvmdio.c +++ b/drivers/net/mvmdio.c @@ -4,6 +4,7 @@ * Author: Ken Ma<[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/net/mvneta.c b/drivers/net/mvneta.c index f014d39b175..24933473fa0 100644 --- a/drivers/net/mvneta.c +++ b/drivers/net/mvneta.c @@ -12,6 +12,7 @@ * Thomas Petazzoni <[email protected]> */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/mvpp2.c b/drivers/net/mvpp2.c index d19a79d1600..1cd54307650 100644 --- a/drivers/net/mvpp2.c +++ b/drivers/net/mvpp2.c @@ -13,6 +13,7 @@ * warranty of any kind, whether express or implied. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <asm/cache.h> diff --git a/drivers/net/netconsole.c b/drivers/net/netconsole.c index 1943de8ba73..151bc55e076 100644 --- a/drivers/net/netconsole.c +++ b/drivers/net/netconsole.c @@ -4,12 +4,12 @@ * Wolfgang Denk, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <command.h> #include <env.h> #include <log.h> #include <stdio_dev.h> #include <net.h> -#include <vsprintf.h> #ifndef CFG_NETCONSOLE_BUFFER_SIZE #define CFG_NETCONSOLE_BUFFER_SIZE 512 diff --git a/drivers/net/npcm750_eth.c b/drivers/net/npcm750_eth.c index f0ec6c556cc..2028f4ae286 100644 --- a/drivers/net/npcm750_eth.c +++ b/drivers/net/npcm750_eth.c @@ -3,6 +3,7 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/pch_gbe.c b/drivers/net/pch_gbe.c index adeca3d040d..ecf8c28fe41 100644 --- a/drivers/net/pch_gbe.c +++ b/drivers/net/pch_gbe.c @@ -5,6 +5,7 @@ * Intel Platform Controller Hub EG20T (codename Topcliff) GMAC Driver */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/pcnet.c b/drivers/net/pcnet.c index 180a96af16b..a1f3c2bd290 100644 --- a/drivers/net/pcnet.c +++ b/drivers/net/pcnet.c @@ -6,6 +6,7 @@ * Linux driver pcnet32.c written 1996-1999 by Thomas Bogendoerfer. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/pfe_eth/pfe_cmd.c b/drivers/net/pfe_eth/pfe_cmd.c index 99c2a8d4e92..2fe0db0fe71 100644 --- a/drivers/net/pfe_eth/pfe_cmd.c +++ b/drivers/net/pfe_eth/pfe_cmd.c @@ -9,6 +9,7 @@ * @brief PFE utility commands */ +#include <common.h> #include <command.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/net/pfe_eth/pfe_eth.c b/drivers/net/pfe_eth/pfe_eth.c index e24a6f93d91..ab532c5a420 100644 --- a/drivers/net/pfe_eth/pfe_eth.c +++ b/drivers/net/pfe_eth/pfe_eth.c @@ -4,7 +4,7 @@ * Copyright 2017 NXP */ -#include <config.h> +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/pfe_eth/pfe_mdio.c b/drivers/net/pfe_eth/pfe_mdio.c index ce2f76eabc8..ff48726dbf5 100644 --- a/drivers/net/pfe_eth/pfe_mdio.c +++ b/drivers/net/pfe_eth/pfe_mdio.c @@ -3,7 +3,7 @@ * Copyright 2015-2016 Freescale Semiconductor, Inc. * Copyright 2017 NXP */ -#include <config.h> +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/phy/adin.c b/drivers/net/phy/adin.c index ce448810ff6..0970449d0f9 100644 --- a/drivers/net/phy/adin.c +++ b/drivers/net/phy/adin.c @@ -6,6 +6,7 @@ * Copyright 2022 Variscite Ltd. * Copyright 2022 Josua Mayer <[email protected]> */ +#include <common.h> #include <phy.h> #include <linux/bitops.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c index 4517a6b13ba..a958e88d44f 100644 --- a/drivers/net/phy/aquantia.c +++ b/drivers/net/phy/aquantia.c @@ -6,6 +6,7 @@ * Copyright 2018, 2021 NXP */ #include <config.h> +#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/net/phy/atheros.c b/drivers/net/phy/atheros.c index 61525f68c35..abb7bdf537c 100644 --- a/drivers/net/phy/atheros.c +++ b/drivers/net/phy/atheros.c @@ -6,6 +6,7 @@ * author Andy Fleming * Copyright (c) 2019 Michael Walle <[email protected]> */ +#include <common.h> #include <phy.h> #include <dm/device_compat.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/b53.c b/drivers/net/phy/b53.c index e95363067fe..26e8e2fe64f 100644 --- a/drivers/net/phy/b53.c +++ b/drivers/net/phy/b53.c @@ -22,6 +22,7 @@ * cover other switches would be trivial. */ +#include <common.h> #include <command.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/net/phy/broadcom.c b/drivers/net/phy/broadcom.c index 0a49015eb89..ecccb7c3b54 100644 --- a/drivers/net/phy/broadcom.c +++ b/drivers/net/phy/broadcom.c @@ -5,6 +5,7 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ +#include <common.h> #include <phy.h> #include <linux/delay.h> diff --git a/drivers/net/phy/ca_phy.c b/drivers/net/phy/ca_phy.c index 5b2c67d2fda..edef21867b0 100644 --- a/drivers/net/phy/ca_phy.c +++ b/drivers/net/phy/ca_phy.c @@ -8,6 +8,7 @@ */ #include <config.h> +#include <common.h> #include <log.h> #include <malloc.h> #include <linux/ctype.h> diff --git a/drivers/net/phy/cortina.c b/drivers/net/phy/cortina.c index d043e859bad..1cf8b28f582 100644 --- a/drivers/net/phy/cortina.c +++ b/drivers/net/phy/cortina.c @@ -8,6 +8,7 @@ */ #include <config.h> +#include <common.h> #include <log.h> #include <malloc.h> #include <linux/ctype.h> diff --git a/drivers/net/phy/davicom.c b/drivers/net/phy/davicom.c index 72d66812985..31ffa1ac7a9 100644 --- a/drivers/net/phy/davicom.c +++ b/drivers/net/phy/davicom.c @@ -5,6 +5,7 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ +#include <common.h> #include <phy.h> #define MIIM_DM9161_SCR 0x10 diff --git a/drivers/net/phy/dp83867.c b/drivers/net/phy/dp83867.c index 772cde1c520..b6726031ebb 100644 --- a/drivers/net/phy/dp83867.c +++ b/drivers/net/phy/dp83867.c @@ -3,6 +3,7 @@ * TI PHY drivers * */ +#include <common.h> #include <log.h> #include <phy.h> #include <dm/devres.h> diff --git a/drivers/net/phy/dp83869.c b/drivers/net/phy/dp83869.c index b6fb5adae1f..f9d4782580e 100644 --- a/drivers/net/phy/dp83869.c +++ b/drivers/net/phy/dp83869.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <phy.h> #include <linux/compat.h> #include <malloc.h> diff --git a/drivers/net/phy/ethernet_id.c b/drivers/net/phy/ethernet_id.c index 2f8454ca27d..4dfdee60dcc 100644 --- a/drivers/net/phy/ethernet_id.c +++ b/drivers/net/phy/ethernet_id.c @@ -5,6 +5,7 @@ * Copyright (C) 2022 Xilinx, Inc. */ +#include <common.h> #include <dm/device_compat.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/net/phy/fixed.c b/drivers/net/phy/fixed.c index 11d36164976..2f0823b8365 100644 --- a/drivers/net/phy/fixed.c +++ b/drivers/net/phy/fixed.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <malloc.h> #include <phy.h> #include <dm.h> diff --git a/drivers/net/phy/generic_10g.c b/drivers/net/phy/generic_10g.c index 38dc9a88563..34ac51ea070 100644 --- a/drivers/net/phy/generic_10g.c +++ b/drivers/net/phy/generic_10g.c @@ -7,6 +7,7 @@ * * Based loosely off of Linux's PHY Lib */ +#include <common.h> #include <miiphy.h> #include <phy.h> diff --git a/drivers/net/phy/intel_xway.c b/drivers/net/phy/intel_xway.c index fe50eec011a..9d1b97d349f 100644 --- a/drivers/net/phy/intel_xway.c +++ b/drivers/net/phy/intel_xway.c @@ -1,4 +1,5 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <phy.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/lxt.c b/drivers/net/phy/lxt.c index a817c58b128..20940033a38 100644 --- a/drivers/net/phy/lxt.c +++ b/drivers/net/phy/lxt.c @@ -5,6 +5,7 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ +#include <common.h> #include <phy.h> /* LXT971 Status 2 registers */ diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index b0a0b7fcb38..0a90f710dfe 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -5,6 +5,7 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ +#include <common.h> #include <errno.h> #include <marvell_phy.h> #include <phy.h> diff --git a/drivers/net/phy/marvell10g.c b/drivers/net/phy/marvell10g.c index 8c95bcbb9ad..9e64672f5ca 100644 --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -22,6 +22,7 @@ * If both the fiber and copper ports are connected, the first to gain * link takes priority and the other port is completely locked out. */ +#include <common.h> #include <console.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/net/phy/meson-gxl.c b/drivers/net/phy/meson-gxl.c index d43b476b3c8..b49c9b5f495 100644 --- a/drivers/net/phy/meson-gxl.c +++ b/drivers/net/phy/meson-gxl.c @@ -7,6 +7,7 @@ * Author: Neil Armstrong <[email protected]> */ #include <config.h> +#include <common.h> #include <linux/bitops.h> #include <dm.h> #include <phy.h> diff --git a/drivers/net/phy/micrel_ksz8xxx.c b/drivers/net/phy/micrel_ksz8xxx.c index a9a64466ac2..b0f3abcb037 100644 --- a/drivers/net/phy/micrel_ksz8xxx.c +++ b/drivers/net/phy/micrel_ksz8xxx.c @@ -6,6 +6,7 @@ * author Andy Fleming * (C) 2012 NetModule AG, David Andrey, added KSZ9031 */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/net/phy/micrel_ksz90x1.c b/drivers/net/phy/micrel_ksz90x1.c index 556d75e31ed..ffc3c987eaa 100644 --- a/drivers/net/phy/micrel_ksz90x1.c +++ b/drivers/net/phy/micrel_ksz90x1.c @@ -8,6 +8,7 @@ * (C) Copyright 2017 Adaptrum, Inc. * Written by Alexandru Gagniuc <[email protected]> for Adaptrum, Inc. */ +#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/net/phy/miiphybb.c b/drivers/net/phy/miiphybb.c index 083d9d3996d..cf71f7d4e7e 100644 --- a/drivers/net/phy/miiphybb.c +++ b/drivers/net/phy/miiphybb.c @@ -12,6 +12,7 @@ * channel. */ +#include <common.h> #include <ioports.h> #include <ppc_asm.tmpl> #include <miiphy.h> diff --git a/drivers/net/phy/motorcomm.c b/drivers/net/phy/motorcomm.c index a96430cec43..a2c763c8791 100644 --- a/drivers/net/phy/motorcomm.c +++ b/drivers/net/phy/motorcomm.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <malloc.h> #include <phy.h> #include <linux/bitfield.h> diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c index ecc10f788af..85778106edd 100644 --- a/drivers/net/phy/mv88e61xx.c +++ b/drivers/net/phy/mv88e61xx.c @@ -29,6 +29,7 @@ * changes may be required. */ +#include <common.h> #include <log.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/net/phy/mv88e6352.c b/drivers/net/phy/mv88e6352.c index 6284298ebc1..56060762d85 100644 --- a/drivers/net/phy/mv88e6352.c +++ b/drivers/net/phy/mv88e6352.c @@ -4,6 +4,7 @@ * Valentin Lontgchamp, Keymile AG, [email protected] */ +#include <common.h> #include <command.h> #include <log.h> #include <miiphy.h> diff --git a/drivers/net/phy/natsemi.c b/drivers/net/phy/natsemi.c index f7e514ef203..6b9e99ea115 100644 --- a/drivers/net/phy/natsemi.c +++ b/drivers/net/phy/natsemi.c @@ -5,6 +5,7 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ +#include <common.h> #include <phy.h> /* NatSemi DP83630 */ diff --git a/drivers/net/phy/ncsi.c b/drivers/net/phy/ncsi.c index a1de438ffff..2bca116a9d8 100644 --- a/drivers/net/phy/ncsi.c +++ b/drivers/net/phy/ncsi.c @@ -5,6 +5,7 @@ * Copyright (C) 2019, IBM Corporation. */ +#include <common.h> #include <log.h> #include <malloc.h> #include <phy.h> diff --git a/drivers/net/phy/nxp-c45-tja11xx.c b/drivers/net/phy/nxp-c45-tja11xx.c index a1e4c3d053b..f24fc5b2de6 100644 --- a/drivers/net/phy/nxp-c45-tja11xx.c +++ b/drivers/net/phy/nxp-c45-tja11xx.c @@ -5,6 +5,7 @@ * Copyright 2021 NXP * Author: Radu Pirea <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/devres.h> #include <linux/delay.h> diff --git a/drivers/net/phy/nxp-tja11xx.c b/drivers/net/phy/nxp-tja11xx.c index a61471f4277..471b0e322b5 100644 --- a/drivers/net/phy/nxp-tja11xx.c +++ b/drivers/net/phy/nxp-tja11xx.c @@ -6,6 +6,7 @@ * Copyright (C) 2018 Marek Vasut <[email protected]> */ +#include <common.h> #include <linux/bitops.h> #include <linux/delay.h> #include <linux/iopoll.h> diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index fbf85d90f54..270176cfe62 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -7,6 +7,7 @@ * * Based loosely off of Linux's PHY Lib */ +#include <common.h> #include <console.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 30f35cced9d..7e1036b2271 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -6,6 +6,7 @@ * author Andy Fleming * Copyright 2016 Karsten Merker <[email protected]> */ +#include <common.h> #include <linux/bitops.h> #include <phy.h> #include <linux/delay.h> diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c index 0d823f5f2b1..056b607e0b8 100644 --- a/drivers/net/phy/smsc.c +++ b/drivers/net/phy/smsc.c @@ -9,6 +9,7 @@ * Some code copied from linux kernel * Copyright (c) 2006 Herbert Valerio Riedel <[email protected]> */ +#include <common.h> #include <miiphy.h> /* This code does not check the partner abilities. */ diff --git a/drivers/net/phy/teranetics.c b/drivers/net/phy/teranetics.c index b39311976d6..15f2c12ed83 100644 --- a/drivers/net/phy/teranetics.c +++ b/drivers/net/phy/teranetics.c @@ -5,6 +5,7 @@ * Copyright 2010-2011 Freescale Semiconductor, Inc. * author Andy Fleming */ +#include <common.h> #include <phy.h> #include <linux/delay.h> diff --git a/drivers/net/phy/vitesse.c b/drivers/net/phy/vitesse.c index 4867d1931b4..c5cf0d7dfbd 100644 --- a/drivers/net/phy/vitesse.c +++ b/drivers/net/phy/vitesse.c @@ -6,6 +6,7 @@ * Original Author: Andy Fleming * Add vsc8662 phy support - Priyanka Jain */ +#include <common.h> #include <miiphy.h> /* Cicada Auxiliary Control/Status Register */ diff --git a/drivers/net/phy/xilinx_gmii2rgmii.c b/drivers/net/phy/xilinx_gmii2rgmii.c index e44b7b75bd5..e2969bc4842 100644 --- a/drivers/net/phy/xilinx_gmii2rgmii.c +++ b/drivers/net/phy/xilinx_gmii2rgmii.c @@ -5,6 +5,7 @@ * Copyright (C) 2018 Xilinx, Inc. */ +#include <common.h> #include <dm.h> #include <log.h> #include <phy.h> diff --git a/drivers/net/phy/xilinx_phy.c b/drivers/net/phy/xilinx_phy.c index a59e17d11e5..c07c780193f 100644 --- a/drivers/net/phy/xilinx_phy.c +++ b/drivers/net/phy/xilinx_phy.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <log.h> #include <phy.h> #include <dm.h> diff --git a/drivers/net/pic32_eth.c b/drivers/net/pic32_eth.c index eea3c48aeff..1333a3aa7e4 100644 --- a/drivers/net/pic32_eth.c +++ b/drivers/net/pic32_eth.c @@ -3,6 +3,7 @@ * (c) 2015 Purna Chandra Mandal <[email protected]> * */ +#include <common.h> #include <cpu_func.h> #include <errno.h> #include <dm.h> diff --git a/drivers/net/pic32_mdio.c b/drivers/net/pic32_mdio.c index 8610f9a1aa5..d4049cfea52 100644 --- a/drivers/net/pic32_mdio.c +++ b/drivers/net/pic32_mdio.c @@ -5,6 +5,7 @@ * Copyright 2015 Microchip Inc. * Purna Chandra Mandal <[email protected]> */ +#include <common.h> #include <phy.h> #include <miiphy.h> #include <errno.h> diff --git a/drivers/net/qe/dm_qe_uec.c b/drivers/net/qe/dm_qe_uec.c index ac3aedd8b49..6d1509d90cf 100644 --- a/drivers/net/qe/dm_qe_uec.c +++ b/drivers/net/qe/dm_qe_uec.c @@ -7,6 +7,7 @@ * Copyright (C) 2020 Heiko Schocher <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <memalign.h> diff --git a/drivers/net/qe/dm_qe_uec_phy.c b/drivers/net/qe/dm_qe_uec_phy.c index 8c0168be859..a0bcc8d3e55 100644 --- a/drivers/net/qe/dm_qe_uec_phy.c +++ b/drivers/net/qe/dm_qe_uec_phy.c @@ -8,6 +8,7 @@ * Copyright (C) 2020 Heiko Schocher <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <miiphy.h> diff --git a/drivers/net/qe/uccf.c b/drivers/net/qe/uccf.c index badf4e5db3e..00848a1a37d 100644 --- a/drivers/net/qe/uccf.c +++ b/drivers/net/qe/uccf.c @@ -7,7 +7,6 @@ */ #include <malloc.h> -#include <stdio.h> #include <linux/errno.h> #include <asm/io.h> #include <linux/immap_qe.h> diff --git a/drivers/net/qe/uccf.h b/drivers/net/qe/uccf.h index e60bbe241cd..99f8458edf6 100644 --- a/drivers/net/qe/uccf.h +++ b/drivers/net/qe/uccf.h @@ -9,8 +9,8 @@ #ifndef __UCCF_H__ #define __UCCF_H__ -#include <linux/types.h> -#include <linux/immap_qe.h> +#include "common.h" +#include "linux/immap_qe.h" #include <fsl_qe.h> /* Fast or Giga ethernet */ diff --git a/drivers/net/ravb.c b/drivers/net/ravb.c index f1401d2f6ed..4764bca7082 100644 --- a/drivers/net/ravb.c +++ b/drivers/net/ravb.c @@ -8,6 +8,7 @@ * Based on the SuperH Ethernet driver. */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/net/rswitch.c b/drivers/net/rswitch.c index 8e1b6e2f6f6..5a69ca1a0f9 100644 --- a/drivers/net/rswitch.c +++ b/drivers/net/rswitch.c @@ -9,6 +9,7 @@ #include <asm/io.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/net/rtl8139.c b/drivers/net/rtl8139.c index 2e0afad089f..d8f24ec81a2 100644 --- a/drivers/net/rtl8139.c +++ b/drivers/net/rtl8139.c @@ -68,6 +68,7 @@ * */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c index e80aebc0bcf..93e83661cec 100644 --- a/drivers/net/rtl8169.c +++ b/drivers/net/rtl8169.c @@ -39,6 +39,7 @@ * 26 August 2006 Mihai Georgian <[email protected]> * Modified to use le32_to_cpu and cpu_to_le32 properly */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/sandbox-raw-bus.c b/drivers/net/sandbox-raw-bus.c index 15670d6d24a..fb1ba5a8c83 100644 --- a/drivers/net/sandbox-raw-bus.c +++ b/drivers/net/sandbox-raw-bus.c @@ -4,6 +4,7 @@ * Copyright (c) 2018 Joe Hershberger <[email protected]> */ +#include <common.h> #include <asm/eth-raw-os.h> #include <dm.h> #include <errno.h> diff --git a/drivers/net/sandbox-raw.c b/drivers/net/sandbox-raw.c index 1d716716778..99eb7a3bbff 100644 --- a/drivers/net/sandbox-raw.c +++ b/drivers/net/sandbox-raw.c @@ -8,6 +8,7 @@ #include <log.h> #include <asm/eth-raw-os.h> +#include <common.h> #include <dm.h> #include <env.h> #include <malloc.h> diff --git a/drivers/net/sandbox.c b/drivers/net/sandbox.c index fe3627db6e3..13022addb6a 100644 --- a/drivers/net/sandbox.c +++ b/drivers/net/sandbox.c @@ -6,6 +6,7 @@ * Joe Hershberger <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index f1ce994cfd5..7b1f59dc498 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -9,6 +9,7 @@ */ #include <config.h> +#include <common.h> #include <cpu_func.h> #include <env.h> #include <log.h> diff --git a/drivers/net/sja1105.c b/drivers/net/sja1105.c index 0ba84a4496f..48f044c6472 100644 --- a/drivers/net/sja1105.c +++ b/drivers/net/sja1105.c @@ -8,6 +8,7 @@ * Ported from Linux (drivers/net/dsa/sja1105/). */ +#include <common.h> #include <dm/device_compat.h> #include <linux/bitops.h> #include <linux/bitrev.h> diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c index f39ba40944f..616b7ce174f 100644 --- a/drivers/net/smc911x.c +++ b/drivers/net/smc911x.c @@ -5,6 +5,7 @@ * (c) 2007 Pengutronix, Sascha Hauer <[email protected]> */ +#include <common.h> #include <command.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c index f4b97798d2d..8bff4fe9a9e 100644 --- a/drivers/net/sun8i_emac.c +++ b/drivers/net/sun8i_emac.c @@ -16,6 +16,7 @@ #include <asm/global_data.h> #include <asm/gpio.h> #include <asm/io.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <fdt_support.h> diff --git a/drivers/net/sunxi_emac.c b/drivers/net/sunxi_emac.c index 3dee849c97e..f546ad1fe8d 100644 --- a/drivers/net/sunxi_emac.c +++ b/drivers/net/sunxi_emac.c @@ -5,6 +5,7 @@ * (C) Copyright 2012, Stefan Roese <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/ti/am65-cpsw-nuss.c b/drivers/net/ti/am65-cpsw-nuss.c index c70b42f6bcc..65ade1afd05 100644 --- a/drivers/net/ti/am65-cpsw-nuss.c +++ b/drivers/net/ti/am65-cpsw-nuss.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <malloc.h> #include <asm/cache.h> #include <asm/gpio.h> diff --git a/drivers/net/ti/cpsw-common.c b/drivers/net/ti/cpsw-common.c index 3e66d7c7bdf..d5428274d19 100644 --- a/drivers/net/ti/cpsw-common.c +++ b/drivers/net/ti/cpsw-common.c @@ -5,6 +5,7 @@ * Copyright (C) 2016, Texas Instruments, Incorporated */ +#include <common.h> #include <dm.h> #include <fdt_support.h> #include <asm/global_data.h> diff --git a/drivers/net/ti/cpsw.c b/drivers/net/ti/cpsw.c index d7746f454ba..9a5e9642df1 100644 --- a/drivers/net/ti/cpsw.c +++ b/drivers/net/ti/cpsw.c @@ -5,6 +5,7 @@ * Copyright (C) 2010-2018 Texas Instruments Incorporated - https://www.ti.com/ */ +#include <common.h> #include <command.h> #include <cpu_func.h> #include <log.h> diff --git a/drivers/net/ti/cpsw_mdio.c b/drivers/net/ti/cpsw_mdio.c index 9e0083ca789..f1b1eba75d0 100644 --- a/drivers/net/ti/cpsw_mdio.c +++ b/drivers/net/ti/cpsw_mdio.c @@ -6,6 +6,7 @@ */ #include <clk.h> +#include <common.h> #include <dm/device_compat.h> #include <log.h> #include <malloc.h> diff --git a/drivers/net/ti/davinci_emac.c b/drivers/net/ti/davinci_emac.c index 03a1a7a1159..034877a7690 100644 --- a/drivers/net/ti/davinci_emac.c +++ b/drivers/net/ti/davinci_emac.c @@ -21,7 +21,7 @@ * ver. 1.0: Sep 2005, Anant Gole - Created EMAC version for uBoot. * ver 1.1: Nov 2005, Anant Gole - Extended the RX logic for multiple descriptors */ -#include <config.h> +#include <common.h> #include <command.h> #include <cpu_func.h> #include <log.h> diff --git a/drivers/net/ti/keystone_net.c b/drivers/net/ti/keystone_net.c index c6e5bf21cf0..43dbf3f1067 100644 --- a/drivers/net/ti/keystone_net.c +++ b/drivers/net/ti/keystone_net.c @@ -5,6 +5,7 @@ * (C) Copyright 2012-2014 * Texas Instruments Incorporated, <www.ti.com> */ +#include <common.h> #include <command.h> #include <console.h> #include <asm/global_data.h> diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c index 6481ee24a60..8833e3098d5 100644 --- a/drivers/net/tsec.c +++ b/drivers/net/tsec.c @@ -8,6 +8,7 @@ */ #include <config.h> +#include <common.h> #include <dm.h> #include <malloc.h> #include <net.h> diff --git a/drivers/net/vsc7385.c b/drivers/net/vsc7385.c index bd1869dfc83..09883f06be2 100644 --- a/drivers/net/vsc7385.c +++ b/drivers/net/vsc7385.c @@ -13,6 +13,7 @@ */ #include <config.h> +#include <common.h> #include <console.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index a1a39f61488..ef151ee51b4 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -7,6 +7,7 @@ */ #include <config.h> +#include <common.h> #include <cpu_func.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/net/xilinx_axi_mrmac.c b/drivers/net/xilinx_axi_mrmac.c index 555651937f8..410fb25ddef 100644 --- a/drivers/net/xilinx_axi_mrmac.c +++ b/drivers/net/xilinx_axi_mrmac.c @@ -9,6 +9,7 @@ */ #include <config.h> +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/net/xilinx_emaclite.c b/drivers/net/xilinx_emaclite.c index c25ac2e6600..16ba915fbaa 100644 --- a/drivers/net/xilinx_emaclite.c +++ b/drivers/net/xilinx_emaclite.c @@ -6,6 +6,7 @@ * Michal SIMEK <[email protected]> */ +#include <common.h> #include <log.h> #include <net.h> #include <config.h> diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index b41ee95892e..7c57d32614f 100644 --- a/drivers/net/zynq_gem.c +++ b/drivers/net/zynq_gem.c @@ -9,6 +9,7 @@ */ #include <clk.h> +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/nvme/nvme-uclass.c b/drivers/nvme/nvme-uclass.c index 44c88ad27f3..f3af6a27b63 100644 --- a/drivers/nvme/nvme-uclass.c +++ b/drivers/nvme/nvme-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_NVME +#include <common.h> #include <bootdev.h> #include <dm.h> #include <init.h> diff --git a/drivers/nvme/nvme.c b/drivers/nvme/nvme.c index 7c58ceb78f5..59a139baa0b 100644 --- a/drivers/nvme/nvme.c +++ b/drivers/nvme/nvme.c @@ -4,6 +4,7 @@ * Copyright (C) 2017 Bin Meng <[email protected]> */ +#include <common.h> #include <blk.h> #include <bootdev.h> #include <cpu_func.h> diff --git a/drivers/nvme/nvme_apple.c b/drivers/nvme/nvme_apple.c index 7e7538553e3..819b748dc02 100644 --- a/drivers/nvme/nvme_apple.c +++ b/drivers/nvme/nvme_apple.c @@ -3,6 +3,7 @@ * (C) Copyright 2021 Mark Kettenis <[email protected]> */ +#include <common.h> #include <dm.h> #include <mailbox.h> #include <mapmem.h> diff --git a/drivers/nvme/nvme_pci.c b/drivers/nvme/nvme_pci.c index c24f8cf1eb1..5bb43d299fc 100644 --- a/drivers/nvme/nvme_pci.c +++ b/drivers/nvme/nvme_pci.c @@ -4,6 +4,7 @@ * Copyright (C) 2017 Bin Meng <[email protected]> */ +#include <common.h> #include <dm.h> #include <init.h> #include <pci.h> diff --git a/drivers/nvme/nvme_show.c b/drivers/nvme/nvme_show.c index 158102363e9..72cbac82bcc 100644 --- a/drivers/nvme/nvme_show.c +++ b/drivers/nvme/nvme_show.c @@ -4,6 +4,7 @@ * Copyright (C) 2017 Bin Meng <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <memalign.h> diff --git a/drivers/pch/pch-uclass.c b/drivers/pch/pch-uclass.c index 9af24758004..af028f9ceca 100644 --- a/drivers/pch/pch-uclass.c +++ b/drivers/pch/pch-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PCH +#include <common.h> #include <dm.h> #include <pch.h> diff --git a/drivers/pch/pch7.c b/drivers/pch/pch7.c index 4ef82a77e27..5fb35a19eff 100644 --- a/drivers/pch/pch7.c +++ b/drivers/pch/pch7.c @@ -3,6 +3,7 @@ * Copyright (C) 2014 Google, Inc */ +#include <common.h> #include <dm.h> #include <log.h> #include <pch.h> diff --git a/drivers/pch/pch9.c b/drivers/pch/pch9.c index 24b0465efde..3137eb2c28f 100644 --- a/drivers/pch/pch9.c +++ b/drivers/pch/pch9.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_PCH +#include <common.h> #include <dm.h> #include <log.h> #include <pch.h> diff --git a/drivers/pch/sandbox_pch.c b/drivers/pch/sandbox_pch.c index aa82dca560f..37c368954b4 100644 --- a/drivers/pch/sandbox_pch.c +++ b/drivers/pch/sandbox_pch.c @@ -3,6 +3,7 @@ * Copyright 2018 Google LLC */ +#include <common.h> #include <dm.h> #include <pch.h> diff --git a/drivers/pci/pci-aardvark.c b/drivers/pci/pci-aardvark.c index f5db4bdb760..af0e55cd2f2 100644 --- a/drivers/pci/pci-aardvark.c +++ b/drivers/pci/pci-aardvark.c @@ -25,6 +25,7 @@ * */ +#include <common.h> #include <dm.h> #include <pci.h> #include <asm/io.h> diff --git a/drivers/pci/pci-emul-uclass.c b/drivers/pci/pci-emul-uclass.c index 166ee9fcd43..a0b8afb87a0 100644 --- a/drivers/pci/pci-emul-uclass.c +++ b/drivers/pci/pci-emul-uclass.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/pci/pci-rcar-gen2.c b/drivers/pci/pci-rcar-gen2.c index 12c31e74087..b81eb353689 100644 --- a/drivers/pci/pci-rcar-gen2.c +++ b/drivers/pci/pci-rcar-gen2.c @@ -5,7 +5,7 @@ * Copyright (C) 2018 Marek Vasut <[email protected]> */ -#include <config.h> +#include <common.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/pci/pci-rcar-gen3.c b/drivers/pci/pci-rcar-gen3.c index 76878246f1e..1252ef74c58 100644 --- a/drivers/pci/pci-rcar-gen3.c +++ b/drivers/pci/pci-rcar-gen3.c @@ -15,6 +15,7 @@ * Author: Phil Edworthy <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <clk.h> #include <dm.h> diff --git a/drivers/pci/pci-uclass.c b/drivers/pci/pci-uclass.c index 6571e653049..1a48256de03 100644 --- a/drivers/pci/pci-uclass.c +++ b/drivers/pci/pci-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PCI +#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/pci/pci_auto.c b/drivers/pci/pci_auto.c index 90f81886445..01230360bad 100644 --- a/drivers/pci/pci_auto.c +++ b/drivers/pci/pci_auto.c @@ -8,7 +8,7 @@ * Copyright (c) 2021 Maciej W. Rozycki <[email protected]> */ -#include <config.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_auto_common.c b/drivers/pci/pci_auto_common.c index cfa818ed821..2f4aff01049 100644 --- a/drivers/pci/pci_auto_common.c +++ b/drivers/pci/pci_auto_common.c @@ -11,6 +11,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c index a57cf11cc53..a18251297fd 100644 --- a/drivers/pci/pci_common.c +++ b/drivers/pci/pci_common.c @@ -9,6 +9,7 @@ * Wolfgang Denk, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <dm.h> #include <env.h> #include <errno.h> diff --git a/drivers/pci/pci_compat.c b/drivers/pci/pci_compat.c index 8233925e525..9dddca8efe0 100644 --- a/drivers/pci/pci_compat.c +++ b/drivers/pci/pci_compat.c @@ -4,6 +4,7 @@ * * Copyright (C) 2014 Google, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pci/pci_ftpci100.c b/drivers/pci/pci_ftpci100.c index 43275b3d6a2..a1775445005 100644 --- a/drivers/pci/pci_ftpci100.c +++ b/drivers/pci/pci_ftpci100.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-or-later +#include <common.h> #include <pci.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c index c07feba7976..249cfe66466 100644 --- a/drivers/pci/pci_mpc85xx.c +++ b/drivers/pci/pci_mpc85xx.c @@ -4,6 +4,7 @@ * Heiko Schocher, DENX Software Engineering, [email protected]. * */ +#include <common.h> #include <asm/bitops.h> #include <pci.h> #include <dm.h> diff --git a/drivers/pci/pci_mvebu.c b/drivers/pci/pci_mvebu.c index 77815513b76..83559550e6f 100644 --- a/drivers/pci/pci_mvebu.c +++ b/drivers/pci/pci_mvebu.c @@ -10,6 +10,7 @@ * Pali RohĂĄr <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pci/pci_rom.c b/drivers/pci/pci_rom.c index 78e5de937cd..438583aa017 100644 --- a/drivers/pci/pci_rom.c +++ b/drivers/pci/pci_rom.c @@ -24,6 +24,7 @@ #define LOG_CATEGORY UCLASS_PCI +#include <common.h> #include <bios_emul.h> #include <bloblist.h> #include <bootstage.h> @@ -35,7 +36,6 @@ #include <pci.h> #include <pci_rom.h> #include <spl.h> -#include <time.h> #include <vesa.h> #include <video.h> #include <acpi/acpi_s3.h> diff --git a/drivers/pci/pci_sandbox.c b/drivers/pci/pci_sandbox.c index fed0850458d..ca44d002371 100644 --- a/drivers/pci/pci_sandbox.c +++ b/drivers/pci/pci_sandbox.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/pci/pci_sh7751.c b/drivers/pci/pci_sh7751.c index 3cd01e9b94a..c1be56ce7a0 100644 --- a/drivers/pci/pci_sh7751.c +++ b/drivers/pci/pci_sh7751.c @@ -5,7 +5,7 @@ * (C) 2007,2008 Nobuhiro Iwamatsu <[email protected]> */ -#include <config.h> +#include <common.h> #include <dm.h> #include <pci.h> #include <asm/processor.h> diff --git a/drivers/pci/pci_tegra.c b/drivers/pci/pci_tegra.c index bb8832c6ab9..d6374a58e33 100644 --- a/drivers/pci/pci_tegra.c +++ b/drivers/pci/pci_tegra.c @@ -11,6 +11,7 @@ #define pr_fmt(fmt) "tegra-pcie: " fmt +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pci/pci_x86.c b/drivers/pci/pci_x86.c index ab76166451c..8d036930e73 100644 --- a/drivers/pci/pci_x86.c +++ b/drivers/pci/pci_x86.c @@ -3,6 +3,7 @@ * Copyright (c) 2015 Google, Inc */ +#include <common.h> #include <dm.h> #include <pci.h> #include <asm/pci.h> diff --git a/drivers/pci/pcie_apple.c b/drivers/pci/pcie_apple.c index 6a8e715d4b6..21bafba3b0e 100644 --- a/drivers/pci/pcie_apple.c +++ b/drivers/pci/pcie_apple.c @@ -16,6 +16,7 @@ * Author: Marc Zyngier <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/pci/pcie_brcmstb.c b/drivers/pci/pcie_brcmstb.c index f978c64365c..cd45f0bee9b 100644 --- a/drivers/pci/pcie_brcmstb.c +++ b/drivers/pci/pcie_brcmstb.c @@ -12,6 +12,7 @@ * Copyright (C) 2020 Nicolas Saenz Julienne <[email protected]> */ +#include <common.h> #include <errno.h> #include <dm.h> #include <dm/ofnode.h> diff --git a/drivers/pci/pcie_dw_common.c b/drivers/pci/pcie_dw_common.c index 0673e516c6f..74fb6df412c 100644 --- a/drivers/pci/pcie_dw_common.c +++ b/drivers/pci/pcie_dw_common.c @@ -8,6 +8,7 @@ * Copyright (C) 2018 Texas Instruments, Inc */ +#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_dw_meson.c b/drivers/pci/pcie_dw_meson.c index bb78e7874b1..f953797908b 100644 --- a/drivers/pci/pcie_dw_meson.c +++ b/drivers/pci/pcie_dw_meson.c @@ -9,6 +9,7 @@ * Copyright (c) 2021 Rockchip, Inc. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_mvebu.c b/drivers/pci/pcie_dw_mvebu.c index 43b919175c9..c41f3f15304 100644 --- a/drivers/pci/pcie_dw_mvebu.c +++ b/drivers/pci/pcie_dw_mvebu.c @@ -10,11 +10,10 @@ * - drivers/pci/pcie_xilinx.c */ -#include <config.h> +#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> -#include <time.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm-generic/gpio.h> diff --git a/drivers/pci/pcie_dw_rockchip.c b/drivers/pci/pcie_dw_rockchip.c index 1bad51fb3eb..bc4635f6713 100644 --- a/drivers/pci/pcie_dw_rockchip.c +++ b/drivers/pci/pcie_dw_rockchip.c @@ -5,6 +5,7 @@ * Copyright (c) 2021 Rockchip, Inc. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_sifive.c b/drivers/pci/pcie_dw_sifive.c index 6285edf4b03..fac3f182372 100644 --- a/drivers/pci/pcie_dw_sifive.c +++ b/drivers/pci/pcie_dw_sifive.c @@ -14,6 +14,7 @@ #include <asm/io.h> #include <asm-generic/gpio.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_dw_ti.c b/drivers/pci/pcie_dw_ti.c index 78a5d035865..4195a02de39 100644 --- a/drivers/pci/pcie_dw_ti.c +++ b/drivers/pci/pcie_dw_ti.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Texas Instruments, Inc */ +#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_ecam_generic.c b/drivers/pci/pcie_ecam_generic.c index 3cb2bbbccb4..f5bc6e3d92d 100644 --- a/drivers/pci/pcie_ecam_generic.c +++ b/drivers/pci/pcie_ecam_generic.c @@ -7,6 +7,7 @@ * Copyright (C) 2016 Imagination Technologies */ +#include <common.h> #include <dm.h> #include <pci.h> #include <linux/ioport.h> diff --git a/drivers/pci/pcie_ecam_synquacer.c b/drivers/pci/pcie_ecam_synquacer.c index fc855dfca4e..e3e22891088 100644 --- a/drivers/pci/pcie_ecam_synquacer.c +++ b/drivers/pci/pcie_ecam_synquacer.c @@ -8,6 +8,7 @@ * Copyright (C) 2021 Linaro Ltd. */ +#include <common.h> #include <dm.h> #include <pci.h> #include <log.h> diff --git a/drivers/pci/pcie_fsl.c b/drivers/pci/pcie_fsl.c index 18af23c9504..ec917ee7d5b 100644 --- a/drivers/pci/pcie_fsl.c +++ b/drivers/pci/pcie_fsl.c @@ -6,7 +6,7 @@ * Author: Hou Zhiqiang <[email protected]> */ -#include <config.h> +#include <common.h> #include <dm.h> #include <malloc.h> #include <mapmem.h> diff --git a/drivers/pci/pcie_fsl_fixup.c b/drivers/pci/pcie_fsl_fixup.c index 9187e7af746..f4e227895d1 100644 --- a/drivers/pci/pcie_fsl_fixup.c +++ b/drivers/pci/pcie_fsl_fixup.c @@ -6,6 +6,7 @@ * Author: Hou Zhiqiang <[email protected]> */ +#include <common.h> #ifdef CONFIG_OF_BOARD_SETUP #include <dm.h> #include <fdt_support.h> diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c index 11c4ccbfc55..78f2c7d6bcd 100644 --- a/drivers/pci/pcie_imx.c +++ b/drivers/pci/pcie_imx.c @@ -17,6 +17,7 @@ * those too in order to have a single modern PCIe iMX driver. */ +#include <common.h> #include <init.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pci/pcie_intel_fpga.c b/drivers/pci/pcie_intel_fpga.c index 959fd369086..60195cfe1b6 100644 --- a/drivers/pci/pcie_intel_fpga.c +++ b/drivers/pci/pcie_intel_fpga.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <dm.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_iproc.c b/drivers/pci/pcie_iproc.c index 360ef1b011f..d6d3a9e2025 100644 --- a/drivers/pci/pcie_iproc.c +++ b/drivers/pci/pcie_iproc.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_layerscape.c b/drivers/pci/pcie_layerscape.c index 1be33095b9c..3c7c4ca18e8 100644 --- a/drivers/pci/pcie_layerscape.c +++ b/drivers/pci/pcie_layerscape.c @@ -5,6 +5,7 @@ * Layerscape PCIe driver */ +#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/pci/pcie_layerscape_ep.c b/drivers/pci/pcie_layerscape_ep.c index 3520488b345..83f7eebd627 100644 --- a/drivers/pci/pcie_layerscape_ep.c +++ b/drivers/pci/pcie_layerscape_ep.c @@ -4,7 +4,7 @@ * Layerscape PCIe EP driver */ -#include <config.h> +#include <common.h> #include <asm/arch/fsl_serdes.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_layerscape_fixup.c b/drivers/pci/pcie_layerscape_fixup.c index ec4a7e7b657..c5198353957 100644 --- a/drivers/pci/pcie_layerscape_fixup.c +++ b/drivers/pci/pcie_layerscape_fixup.c @@ -5,6 +5,7 @@ * Layerscape PCIe driver */ +#include <common.h> #include <dm.h> #include <init.h> #include <log.h> diff --git a/drivers/pci/pcie_layerscape_fixup_common.c b/drivers/pci/pcie_layerscape_fixup_common.c index f37e37f6b15..095874a9276 100644 --- a/drivers/pci/pcie_layerscape_fixup_common.c +++ b/drivers/pci/pcie_layerscape_fixup_common.c @@ -7,10 +7,10 @@ * */ +#include <common.h> #include <init.h> #include <asm/arch/clock.h> #include <asm/arch/soc.h> -#include <linux/errno.h> #include <linux/libfdt.h> #include <fdt_support.h> #include "pcie_layerscape_fixup_common.h" diff --git a/drivers/pci/pcie_layerscape_gen4.c b/drivers/pci/pcie_layerscape_gen4.c index 57dc91f2fae..021c975869f 100644 --- a/drivers/pci/pcie_layerscape_gen4.c +++ b/drivers/pci/pcie_layerscape_gen4.c @@ -6,7 +6,7 @@ * Author: Hou Zhiqiang <[email protected]> */ -#include <config.h> +#include <common.h> #include <log.h> #include <asm/arch/fsl_serdes.h> #include <pci.h> diff --git a/drivers/pci/pcie_layerscape_gen4_fixup.c b/drivers/pci/pcie_layerscape_gen4_fixup.c index 60c4338bcdb..b2a45bf105c 100644 --- a/drivers/pci/pcie_layerscape_gen4_fixup.c +++ b/drivers/pci/pcie_layerscape_gen4_fixup.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/pci/pcie_layerscape_rc.c b/drivers/pci/pcie_layerscape_rc.c index e7913d43a8b..6a5bf88da23 100644 --- a/drivers/pci/pcie_layerscape_rc.c +++ b/drivers/pci/pcie_layerscape_rc.c @@ -4,6 +4,7 @@ * Layerscape PCIe driver */ +#include <common.h> #include <asm/arch/fsl_serdes.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_mediatek.c b/drivers/pci/pcie_mediatek.c index 04d8cc29afd..f0f34b5d119 100644 --- a/drivers/pci/pcie_mediatek.c +++ b/drivers/pci/pcie_mediatek.c @@ -7,6 +7,7 @@ * Honghui Zhang <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_phytium.c b/drivers/pci/pcie_phytium.c index 94de89bcad7..3bd1f5cd6d9 100644 --- a/drivers/pci/pcie_phytium.c +++ b/drivers/pci/pcie_phytium.c @@ -7,6 +7,7 @@ * Copyright (C) 2019 */ +#include <common.h> #include <dm.h> #include <pci.h> #include <asm/global_data.h> diff --git a/drivers/pci/pcie_plda_common.c b/drivers/pci/pcie_plda_common.c index 622a5cee109..cd74bb47116 100644 --- a/drivers/pci/pcie_plda_common.c +++ b/drivers/pci/pcie_plda_common.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <clk.h> #include <dm.h> #include <pci.h> diff --git a/drivers/pci/pcie_rockchip.c b/drivers/pci/pcie_rockchip.c index 19f9e58a640..624841e9d8b 100644 --- a/drivers/pci/pcie_rockchip.c +++ b/drivers/pci/pcie_rockchip.c @@ -11,6 +11,7 @@ * Bits taken from Linux Rockchip PCIe host controller. */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_starfive_jh7110.c b/drivers/pci/pcie_starfive_jh7110.c index 569fbfd35c8..903a544d37f 100644 --- a/drivers/pci/pcie_starfive_jh7110.c +++ b/drivers/pci/pcie_starfive_jh7110.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <clk.h> #include <dm.h> #include <pci.h> diff --git a/drivers/pci/pcie_uniphier.c b/drivers/pci/pcie_uniphier.c index d1170b576bc..f2edea9899a 100644 --- a/drivers/pci/pcie_uniphier.c +++ b/drivers/pci/pcie_uniphier.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <generic-phy.h> diff --git a/drivers/pci/pcie_xilinx.c b/drivers/pci/pcie_xilinx.c index a674ab04bee..3db460b5f93 100644 --- a/drivers/pci/pcie_xilinx.c +++ b/drivers/pci/pcie_xilinx.c @@ -5,6 +5,7 @@ * Copyright (C) 2016 Imagination Technologies */ +#include <common.h> #include <dm.h> #include <pci.h> #include <linux/bitops.h> diff --git a/drivers/pci_endpoint/pci_ep-uclass.c b/drivers/pci_endpoint/pci_ep-uclass.c index 902d1a51eaa..6ee4cfbdb4a 100644 --- a/drivers/pci_endpoint/pci_ep-uclass.c +++ b/drivers/pci_endpoint/pci_ep-uclass.c @@ -11,6 +11,7 @@ #define LOG_CATEGORY UCLASS_PCI_EP +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pci_endpoint/pcie-cadence-ep.c b/drivers/pci_endpoint/pcie-cadence-ep.c index e02ea14e4e4..d58c64982b2 100644 --- a/drivers/pci_endpoint/pcie-cadence-ep.c +++ b/drivers/pci_endpoint/pcie-cadence-ep.c @@ -4,6 +4,7 @@ * Written by Ramon Fried <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <pci_ep.h> diff --git a/drivers/pci_endpoint/sandbox-pci_ep.c b/drivers/pci_endpoint/sandbox-pci_ep.c index aa623fa357d..de148cddb91 100644 --- a/drivers/pci_endpoint/sandbox-pci_ep.c +++ b/drivers/pci_endpoint/sandbox-pci_ep.c @@ -3,6 +3,7 @@ * Copyright (c) 2019 Ramon Fried <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/phy/allwinner/phy-sun4i-usb.c b/drivers/phy/allwinner/phy-sun4i-usb.c index b9306c9a827..6624e9134f4 100644 --- a/drivers/phy/allwinner/phy-sun4i-usb.c +++ b/drivers/phy/allwinner/phy-sun4i-usb.c @@ -10,6 +10,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/phy/bcm6318-usbh-phy.c b/drivers/phy/bcm6318-usbh-phy.c index d715541bd4c..a2fa446cb1c 100644 --- a/drivers/phy/bcm6318-usbh-phy.c +++ b/drivers/phy/bcm6318-usbh-phy.c @@ -7,6 +7,7 @@ * Copyright 2013 Florian Fainelli <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/bcm6348-usbh-phy.c b/drivers/phy/bcm6348-usbh-phy.c index ffb37b634a3..857fb575ef1 100644 --- a/drivers/phy/bcm6348-usbh-phy.c +++ b/drivers/phy/bcm6348-usbh-phy.c @@ -7,6 +7,7 @@ * Copyright 2013 Florian Fainelli <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/bcm6358-usbh-phy.c b/drivers/phy/bcm6358-usbh-phy.c index a8d24609bfc..bfdcfb0d245 100644 --- a/drivers/phy/bcm6358-usbh-phy.c +++ b/drivers/phy/bcm6358-usbh-phy.c @@ -7,6 +7,7 @@ * Copyright 2013 Florian Fainelli <[email protected]> */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/bcm6368-usbh-phy.c b/drivers/phy/bcm6368-usbh-phy.c index 5bee130425d..1a2870d5149 100644 --- a/drivers/phy/bcm6368-usbh-phy.c +++ b/drivers/phy/bcm6368-usbh-phy.c @@ -7,6 +7,7 @@ * Copyright 2013 Florian Fainelli <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/cadence/phy-cadence-sierra.c b/drivers/phy/cadence/phy-cadence-sierra.c index f5e23f36c56..4bb8a0ca7f3 100644 --- a/drivers/phy/cadence/phy-cadence-sierra.c +++ b/drivers/phy/cadence/phy-cadence-sierra.c @@ -11,6 +11,7 @@ * Jean-Jacques Hiblot <[email protected]> * */ +#include <common.h> #include <clk.h> #include <linux/delay.h> #include <linux/clk-provider.h> diff --git a/drivers/phy/cadence/phy-cadence-torrent.c b/drivers/phy/cadence/phy-cadence-torrent.c index d4e8ece4935..ef924e7af50 100644 --- a/drivers/phy/cadence/phy-cadence-torrent.c +++ b/drivers/phy/cadence/phy-cadence-torrent.c @@ -10,6 +10,7 @@ * */ +#include <common.h> #include <clk.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/keystone-usb-phy.c b/drivers/phy/keystone-usb-phy.c index cfc15203d63..3bb9c0814c1 100644 --- a/drivers/phy/keystone-usb-phy.c +++ b/drivers/phy/keystone-usb-phy.c @@ -4,6 +4,7 @@ * Written by Jean-Jacques Hiblot <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/device.h> diff --git a/drivers/phy/marvell/comphy_a3700.c b/drivers/phy/marvell/comphy_a3700.c index bca325d1996..c490dc69c69 100644 --- a/drivers/phy/marvell/comphy_a3700.c +++ b/drivers/phy/marvell/comphy_a3700.c @@ -3,6 +3,7 @@ * Copyright (C) 2015-2016 Marvell International Ltd. */ +#include <common.h> #include <fdt_support.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/phy/marvell/comphy_core.c b/drivers/phy/marvell/comphy_core.c index a666a4e794e..7272dfb9fe8 100644 --- a/drivers/phy/marvell/comphy_core.c +++ b/drivers/phy/marvell/comphy_core.c @@ -5,6 +5,7 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <asm/global_data.h> diff --git a/drivers/phy/marvell/comphy_cp110.c b/drivers/phy/marvell/comphy_cp110.c index b8cdedf6edf..bb15fbaf347 100644 --- a/drivers/phy/marvell/comphy_cp110.c +++ b/drivers/phy/marvell/comphy_cp110.c @@ -3,6 +3,7 @@ * Copyright (C) 2015-2016 Marvell International Ltd. */ +#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/global_data.h> @@ -11,7 +12,6 @@ #include <asm/arch/cpu.h> #include <asm/arch/soc.h> #include <linux/delay.h> -#include <linux/errno.h> #include <linux/printk.h> #include "comphy_core.h" diff --git a/drivers/phy/marvell/comphy_mux.c b/drivers/phy/marvell/comphy_mux.c index a8aa37fc46f..10981d25ec9 100644 --- a/drivers/phy/marvell/comphy_mux.c +++ b/drivers/phy/marvell/comphy_mux.c @@ -3,6 +3,7 @@ * Copyright (C) 2015-2016 Marvell International Ltd. */ +#include <common.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/phy/meson-axg-mipi-dphy.c b/drivers/phy/meson-axg-mipi-dphy.c index 3f89de19970..faa1d9d6d37 100644 --- a/drivers/phy/meson-axg-mipi-dphy.c +++ b/drivers/phy/meson-axg-mipi-dphy.c @@ -7,6 +7,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-axg-mipi-pcie-analog.c b/drivers/phy/meson-axg-mipi-pcie-analog.c index 731917cef43..236ea1ce5ca 100644 --- a/drivers/phy/meson-axg-mipi-pcie-analog.c +++ b/drivers/phy/meson-axg-mipi-pcie-analog.c @@ -7,6 +7,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-g12a-usb2.c b/drivers/phy/meson-g12a-usb2.c index 8cded12438b..3958d2404b8 100644 --- a/drivers/phy/meson-g12a-usb2.c +++ b/drivers/phy/meson-g12a-usb2.c @@ -7,6 +7,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <asm/io.h> diff --git a/drivers/phy/meson-g12a-usb3-pcie.c b/drivers/phy/meson-g12a-usb3-pcie.c index 4d183867c3a..1eaff410efa 100644 --- a/drivers/phy/meson-g12a-usb3-pcie.c +++ b/drivers/phy/meson-g12a-usb3-pcie.c @@ -7,6 +7,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/phy/meson-gxbb-usb2.c b/drivers/phy/meson-gxbb-usb2.c index 4c88ccf3927..725b056a71a 100644 --- a/drivers/phy/meson-gxbb-usb2.c +++ b/drivers/phy/meson-gxbb-usb2.c @@ -8,6 +8,7 @@ * Author: Beniamino Galvani <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/meson-gxl-usb2.c b/drivers/phy/meson-gxl-usb2.c index 92c285103c4..d633effa404 100644 --- a/drivers/phy/meson-gxl-usb2.c +++ b/drivers/phy/meson-gxl-usb2.c @@ -7,6 +7,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <malloc.h> #include <asm/io.h> #include <bitfield.h> diff --git a/drivers/phy/mt76x8-usb-phy.c b/drivers/phy/mt76x8-usb-phy.c index 99f8a221f5a..4069208b679 100644 --- a/drivers/phy/mt76x8-usb-phy.c +++ b/drivers/phy/mt76x8-usb-phy.c @@ -7,6 +7,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/nop-phy.c b/drivers/phy/nop-phy.c index 286171cba76..c53e3216d0f 100644 --- a/drivers/phy/nop-phy.c +++ b/drivers/phy/nop-phy.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device.h> #include <dm/device_compat.h> diff --git a/drivers/phy/omap-usb2-phy.c b/drivers/phy/omap-usb2-phy.c index 2be0178882a..d3d38062ecf 100644 --- a/drivers/phy/omap-usb2-phy.c +++ b/drivers/phy/omap-usb2-phy.c @@ -6,6 +6,7 @@ * Written by Jean-Jacques Hiblot <[email protected]> */ +#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/phy/phy-ab8500-usb.c b/drivers/phy/phy-ab8500-usb.c index 5de7b6f86cc..3d3d48c9733 100644 --- a/drivers/phy/phy-ab8500-usb.c +++ b/drivers/phy/phy-ab8500-usb.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/phy-apple-atc.c b/drivers/phy/phy-apple-atc.c index 78eedf676b0..15c5b8a1c2d 100644 --- a/drivers/phy/phy-apple-atc.c +++ b/drivers/phy/phy-apple-atc.c @@ -3,6 +3,7 @@ * Copyright (C) 2022 Mark Kettenis <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <generic-phy.h> diff --git a/drivers/phy/phy-bcm-sr-pcie.c b/drivers/phy/phy-bcm-sr-pcie.c index 97859a0cb87..cf33bab3707 100644 --- a/drivers/phy/phy-bcm-sr-pcie.c +++ b/drivers/phy/phy-bcm-sr-pcie.c @@ -3,6 +3,7 @@ * Copyright (C) 2019 Broadcom */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <asm/io.h> diff --git a/drivers/phy/phy-core-mipi-dphy.c b/drivers/phy/phy-core-mipi-dphy.c index 8fb985a1e68..bb61816add2 100644 --- a/drivers/phy/phy-core-mipi-dphy.c +++ b/drivers/phy/phy-core-mipi-dphy.c @@ -4,8 +4,8 @@ * Copyright (C) 2018 Cadence Design Systems Inc. */ +#include <common.h> #include <div64.h> -#include <linux/kernel.h> #include <linux/time.h> #include <phy-mipi-dphy.h> diff --git a/drivers/phy/phy-da8xx-usb.c b/drivers/phy/phy-da8xx-usb.c index cf26aaaa3d8..d025188eae9 100644 --- a/drivers/phy/phy-da8xx-usb.c +++ b/drivers/phy/phy-da8xx-usb.c @@ -6,9 +6,9 @@ * DT support added by: Adam Ford <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> -#include <time.h> #include <dm/device-internal.h> #include <dm/lists.h> #include <asm/arch/hardware.h> diff --git a/drivers/phy/phy-imx8mq-usb.c b/drivers/phy/phy-imx8mq-usb.c index 75763046adc..e5e96e77a68 100644 --- a/drivers/phy/phy-imx8mq-usb.c +++ b/drivers/phy/phy-imx8mq-usb.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <asm/io.h> #include <dm.h> #include <errno.h> diff --git a/drivers/phy/phy-mtk-tphy.c b/drivers/phy/phy-mtk-tphy.c index 6f9ac1528e8..ea9edf212c6 100644 --- a/drivers/phy/phy-mtk-tphy.c +++ b/drivers/phy/phy-mtk-tphy.c @@ -5,6 +5,7 @@ * Ryder Lee <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/phy-npcm-usb.c b/drivers/phy/phy-npcm-usb.c index 2cca0f4a054..09fb14e26f0 100644 --- a/drivers/phy/phy-npcm-usb.c +++ b/drivers/phy/phy-npcm-usb.c @@ -3,6 +3,7 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <regmap.h> diff --git a/drivers/phy/phy-rcar-gen2.c b/drivers/phy/phy-rcar-gen2.c index f9428c7ad12..e528c4ec579 100644 --- a/drivers/phy/phy-rcar-gen2.c +++ b/drivers/phy/phy-rcar-gen2.c @@ -5,6 +5,7 @@ * Copyright (C) 2018 Marek Vasut <[email protected]> */ +#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/phy/phy-rcar-gen3.c b/drivers/phy/phy-rcar-gen3.c index 7c292cae0e2..03c747b373b 100644 --- a/drivers/phy/phy-rcar-gen3.c +++ b/drivers/phy/phy-rcar-gen3.c @@ -5,6 +5,7 @@ * Copyright (C) 2018 Marek Vasut <[email protected]> */ +#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/phy/phy-stm32-usbphyc.c b/drivers/phy/phy-stm32-usbphyc.c index 8d643b762f9..000e495dbd4 100644 --- a/drivers/phy/phy-stm32-usbphyc.c +++ b/drivers/phy/phy-stm32-usbphyc.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_PHY +#include <common.h> #include <clk.h> #include <clk-uclass.h> #include <div64.h> diff --git a/drivers/phy/phy-ti-am654.c b/drivers/phy/phy-ti-am654.c index c3d9972397a..70a746d2c92 100644 --- a/drivers/phy/phy-ti-am654.c +++ b/drivers/phy/phy-ti-am654.c @@ -6,6 +6,7 @@ * Author: Kishon Vijay Abraham I <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <log.h> diff --git a/drivers/phy/phy-uclass.c b/drivers/phy/phy-uclass.c index acdcda15b5b..0dcfe258bc4 100644 --- a/drivers/phy/phy-uclass.c +++ b/drivers/phy/phy-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PHY +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/phy/phy-zynqmp.c b/drivers/phy/phy-zynqmp.c index 7049e740d56..d1288bb17f3 100644 --- a/drivers/phy/phy-zynqmp.c +++ b/drivers/phy/phy-zynqmp.c @@ -9,6 +9,7 @@ * Author: Laurent Pinchart <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/qcom/msm8916-usbh-phy.c b/drivers/phy/qcom/msm8916-usbh-phy.c index 4b435aa2a6e..f52046f7cb0 100644 --- a/drivers/phy/qcom/msm8916-usbh-phy.c +++ b/drivers/phy/qcom/msm8916-usbh-phy.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Ramon Fried <[email protected]> */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/qcom/phy-qcom-ipq4019-usb.c b/drivers/phy/qcom/phy-qcom-ipq4019-usb.c index 3b647324e02..5808489249f 100644 --- a/drivers/phy/qcom/phy-qcom-ipq4019-usb.c +++ b/drivers/phy/qcom/phy-qcom-ipq4019-usb.c @@ -8,6 +8,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c b/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c index c344809a608..05a9a2cf1d7 100644 --- a/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c +++ b/drivers/phy/qcom/phy-qcom-usb-hs-28nm.c @@ -5,6 +5,7 @@ * Based on Linux driver */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/phy/qcom/phy-qcom-usb-ss.c b/drivers/phy/qcom/phy-qcom-usb-ss.c index 270d09d883c..1b03a3c43dc 100644 --- a/drivers/phy/qcom/phy-qcom-usb-ss.c +++ b/drivers/phy/qcom/phy-qcom-usb-ss.c @@ -5,6 +5,7 @@ * Based on Linux driver */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/renesas/r8a779f0-ether-serdes.c b/drivers/phy/renesas/r8a779f0-ether-serdes.c index 40284ef2fd3..bd1fdd3a667 100644 --- a/drivers/phy/renesas/r8a779f0-ether-serdes.c +++ b/drivers/phy/renesas/r8a779f0-ether-serdes.c @@ -7,6 +7,7 @@ #include <asm/io.h> #include <clk-uclass.h> #include <clk.h> +#include <common.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c index 3ad339bccc1..9ca66bf8db9 100644 --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c @@ -5,6 +5,7 @@ * Copyright (C) 2021 Rockchip Electronics Co., Ltd. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/lists.h> diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c index 660037034ec..44ca4bc7919 100644 --- a/drivers/phy/rockchip/phy-rockchip-pcie.c +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c @@ -7,6 +7,7 @@ * Copyright (C) 2016 ROCKCHIP, Inc. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c index 2737bd81dd9..a4392daf4c9 100644 --- a/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c +++ b/drivers/phy/rockchip/phy-rockchip-snps-pcie3.c @@ -5,6 +5,7 @@ * Copyright (C) 2021 Rockchip Electronics Co., Ltd. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/rockchip/phy-rockchip-typec.c b/drivers/phy/rockchip/phy-rockchip-typec.c index c7459dbc5fc..47c69dd6c45 100644 --- a/drivers/phy/rockchip/phy-rockchip-typec.c +++ b/drivers/phy/rockchip/phy-rockchip-typec.c @@ -8,6 +8,7 @@ * Kever Yang <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index 5bcc76613d1..18e76402799 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -5,6 +5,7 @@ * Copyright (C) 2021 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> @@ -20,7 +21,7 @@ #include <reset.h> #include <syscon.h> #include <asm/arch-rockchip/clock.h> - +#include <dt-bindings/phy/phy.h> #include <linux/usb/phy-rockchip-usbdp.h> #define BIT_WRITEABLE_SHIFT 16 @@ -73,6 +74,8 @@ struct udphy_grf_cfg { struct rockchip_udphy; struct rockchip_udphy_cfg { + unsigned int num_phys; + unsigned int phy_ids[2]; /* resets to be requested */ const char * const *rst_list; int num_rsts; @@ -582,10 +585,21 @@ static int udphy_power_off(struct rockchip_udphy *udphy, u8 mode) return 0; } +static int rockchip_u3phy_of_xlate(struct phy *phy, + struct ofnode_phandle_args *args) +{ + if (args->args_count == 0) + return -EINVAL; + + if (args->args[0] != PHY_TYPE_USB3) + return -EINVAL; + + return 0; +} + static int rockchip_u3phy_init(struct phy *phy) { - struct udevice *parent = phy->dev->parent; - struct rockchip_udphy *udphy = dev_get_priv(parent); + struct rockchip_udphy *udphy = dev_get_priv(phy->dev); /* DP only or high-speed, disable U3 port */ if (!(udphy->mode & UDPHY_MODE_USB) || udphy->hs) { @@ -598,8 +612,7 @@ static int rockchip_u3phy_init(struct phy *phy) static int rockchip_u3phy_exit(struct phy *phy) { - struct udevice *parent = phy->dev->parent; - struct rockchip_udphy *udphy = dev_get_priv(parent); + struct rockchip_udphy *udphy = dev_get_priv(phy->dev); /* DP only or high-speed */ if (!(udphy->mode & UDPHY_MODE_USB) || udphy->hs) @@ -609,47 +622,32 @@ static int rockchip_u3phy_exit(struct phy *phy) } static const struct phy_ops rockchip_u3phy_ops = { + .of_xlate = rockchip_u3phy_of_xlate, .init = rockchip_u3phy_init, .exit = rockchip_u3phy_exit, }; -int rockchip_u3phy_uboot_init(void) -{ - struct udevice *udev; - struct rockchip_udphy *udphy; - int ret; - - ret = uclass_get_device_by_driver(UCLASS_PHY, - DM_DRIVER_GET(rockchip_udphy_u3_port), - &udev); - if (ret) { - pr_err("%s: get u3-port failed: %d\n", __func__, ret); - return ret; - } - - /* DP only or high-speed, disable U3 port */ - udphy = dev_get_priv(udev->parent); - if (!(udphy->mode & UDPHY_MODE_USB) || udphy->hs) { - udphy_u3_port_disable(udphy, true); - return 0; - } - - return udphy_power_on(udphy, UDPHY_MODE_USB); -} - static int rockchip_udphy_probe(struct udevice *dev) { - const struct device_node *np = ofnode_to_np(dev_ofnode(dev)); struct rockchip_udphy *udphy = dev_get_priv(dev); const struct rockchip_udphy_cfg *phy_cfgs; + unsigned int reg; int id, ret; udphy->dev = dev; - id = of_alias_get_id(np, "usbdp"); - if (id < 0) - id = 0; - udphy->id = id; + ret = ofnode_read_u32_index(dev_ofnode(dev), "reg", 0, ®); + if (ret) { + dev_err(dev, "failed to read reg[0] property\n"); + return ret; + } + if (reg == 0 && dev_read_addr_cells(dev) == 2) { + ret = ofnode_read_u32_index(dev_ofnode(dev), "reg", 1, ®); + if (ret) { + dev_err(dev, "failed to read reg[1] property\n"); + return ret; + } + } phy_cfgs = (const struct rockchip_udphy_cfg *)dev_get_driver_data(dev); if (!phy_cfgs) { @@ -658,6 +656,20 @@ static int rockchip_udphy_probe(struct udevice *dev) } udphy->cfgs = phy_cfgs; + /* find the phy-id from the io address */ + udphy->id = -ENODEV; + for (id = 0; id < udphy->cfgs->num_phys; id++) { + if (reg == udphy->cfgs->phy_ids[id]) { + udphy->id = id; + break; + } + } + + if (udphy->id < 0) { + dev_err(dev, "no matching device found\n"); + return -ENODEV; + } + ret = regmap_init_mem(dev_ofnode(dev), &udphy->pma_regmap); if (ret) return ret; @@ -670,40 +682,6 @@ static int rockchip_udphy_probe(struct udevice *dev) return 0; } -static int rockchip_udphy_bind(struct udevice *parent) -{ - struct udevice *child; - ofnode subnode; - const char *node_name; - int ret; - - dev_for_each_subnode(subnode, parent) { - if (!ofnode_valid(subnode)) { - printf("%s: no subnode for %s", __func__, parent->name); - return -ENXIO; - } - - node_name = ofnode_get_name(subnode); - debug("%s: subnode %s\n", __func__, node_name); - - /* if there is no match, continue */ - if (strcasecmp(node_name, "usb3-port")) - continue; - - /* node name is usb3-port */ - ret = device_bind_driver_to_node(parent, - "rockchip_udphy_u3_port", - node_name, subnode, &child); - if (ret) { - printf("%s: '%s' cannot bind its driver\n", - __func__, node_name); - return ret; - } - } - - return 0; -} - static int rk3588_udphy_refclk_set(struct rockchip_udphy *udphy) { /* configure phy reference clock */ @@ -837,6 +815,11 @@ static const char * const rk3588_udphy_rst_l[] = { }; static const struct rockchip_udphy_cfg rk3588_udphy_cfgs = { + .num_phys = 2, + .phy_ids = { + 0xfed80000, + 0xfed90000, + }, .num_rsts = ARRAY_SIZE(rk3588_udphy_rst_l), .rst_list = rk3588_udphy_rst_l, .grfcfg = { @@ -863,17 +846,11 @@ static const struct udevice_id rockchip_udphy_dt_match[] = { { /* sentinel */ } }; -U_BOOT_DRIVER(rockchip_udphy_u3_port) = { - .name = "rockchip_udphy_u3_port", - .id = UCLASS_PHY, - .ops = &rockchip_u3phy_ops, -}; - U_BOOT_DRIVER(rockchip_udphy) = { .name = "rockchip_udphy", .id = UCLASS_PHY, .of_match = rockchip_udphy_dt_match, .probe = rockchip_udphy_probe, - .bind = rockchip_udphy_bind, + .ops = &rockchip_u3phy_ops, .priv_auto = sizeof(struct rockchip_udphy), }; diff --git a/drivers/phy/sandbox-phy.c b/drivers/phy/sandbox-phy.c index b159147a765..7e123da25fb 100644 --- a/drivers/phy/sandbox-phy.c +++ b/drivers/phy/sandbox-phy.c @@ -4,6 +4,7 @@ * Written by Jean-Jacques Hiblot <[email protected]> */ +#include <common.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/socionext/phy-uniphier-pcie.c b/drivers/phy/socionext/phy-uniphier-pcie.c index 91208dfe120..d352c4ca3a9 100644 --- a/drivers/phy/socionext/phy-uniphier-pcie.c +++ b/drivers/phy/socionext/phy-uniphier-pcie.c @@ -4,6 +4,7 @@ * Copyright 2019-2021 Socionext, Inc. */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <linux/bitops.h> diff --git a/drivers/phy/socionext/phy-uniphier-usb3.c b/drivers/phy/socionext/phy-uniphier-usb3.c index 1d65c1f7da5..1d65b0b08f7 100644 --- a/drivers/phy/socionext/phy-uniphier-usb3.c +++ b/drivers/phy/socionext/phy-uniphier-usb3.c @@ -4,6 +4,7 @@ * Copyright 2019-2023 Socionext, Inc. */ +#include <common.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/phy/sti_usb_phy.c b/drivers/phy/sti_usb_phy.c index 2447e89f50d..9e5ac9bfde6 100644 --- a/drivers/phy/sti_usb_phy.c +++ b/drivers/phy/sti_usb_phy.c @@ -4,6 +4,7 @@ * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. */ +#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/phy/ti-pipe3-phy.c b/drivers/phy/ti-pipe3-phy.c index 62f6cc2bfbf..29a35ae5ffb 100644 --- a/drivers/phy/ti-pipe3-phy.c +++ b/drivers/phy/ti-pipe3-phy.c @@ -4,6 +4,7 @@ * Written by Jean-Jacques Hiblot <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device.h> #include <generic-phy.h> diff --git a/drivers/phy/ti/phy-j721e-wiz.c b/drivers/phy/ti/phy-j721e-wiz.c index c69a342e2b4..daf62f5deda 100644 --- a/drivers/phy/ti/phy-j721e-wiz.c +++ b/drivers/phy/ti/phy-j721e-wiz.c @@ -4,6 +4,7 @@ * Jean-Jacques Hiblot <[email protected]> */ +#include <common.h> #include <clk-uclass.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c index 9e7c347caf8..93920a6389b 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c @@ -3,6 +3,7 @@ * Copyright 2017 Google, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2600.c b/drivers/pinctrl/aspeed/pinctrl_ast2600.c index bc12590e583..8a4f9705ca9 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2600.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2600.c @@ -3,6 +3,7 @@ * Copyright (C) ASPEED Technology Inc. */ +#include <common.h> #include <errno.h> #include <asm/arch/pinctrl.h> #include <asm/arch/scu_ast2600.h> diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c index 61e37a2e559..eb673a9f69c 100644 --- a/drivers/pinctrl/ath79/pinctrl_ar933x.c +++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c @@ -3,6 +3,7 @@ * Copyright (C) 2015-2016 Wills Wang <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/ath79/pinctrl_qca953x.c b/drivers/pinctrl/ath79/pinctrl_qca953x.c index e4f695fc4d4..0d534268e96 100644 --- a/drivers/pinctrl/ath79/pinctrl_qca953x.c +++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c @@ -3,6 +3,7 @@ * Copyright (C) 2015-2016 Wills Wang <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c index cf9350c151e..e949cb70900 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c @@ -10,6 +10,7 @@ * https://spdx.org/licenses */ +#include <common.h> #include <config.h> #include <errno.h> #include <dm.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c index 7d0c09a130c..58f28a13709 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm6838.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm6838.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 +#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos.c b/drivers/pinctrl/exynos/pinctrl-exynos.c index b393127c642..8a045cdf7aa 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos.c @@ -6,6 +6,7 @@ */ #include <log.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos7420.c b/drivers/pinctrl/exynos/pinctrl-exynos7420.c index 8fdf60715a5..77d510d8f60 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos7420.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos7420.c @@ -5,6 +5,7 @@ * Thomas Abraham <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c index 61b98443daf..1b696fdfd28 100644 --- a/drivers/pinctrl/exynos/pinctrl-exynos78x0.c +++ b/drivers/pinctrl/exynos/pinctrl-exynos78x0.c @@ -9,6 +9,7 @@ * Thomas Abraham <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c index 6cfe83a593a..1607000dedc 100644 --- a/drivers/pinctrl/intel/pinctrl.c +++ b/drivers/pinctrl/intel/pinctrl.c @@ -16,6 +16,7 @@ #define LOG_CATEGORY UCLASS_GPIO +#include <common.h> #include <dm.h> #include <irq.h> #include <log.h> diff --git a/drivers/pinctrl/intel/pinctrl_apl.c b/drivers/pinctrl/intel/pinctrl_apl.c index e554d285435..181a6ff2702 100644 --- a/drivers/pinctrl/intel/pinctrl_apl.c +++ b/drivers/pinctrl/intel/pinctrl_apl.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_GPIO +#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 37fc28bb779..0baef57c1c2 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -4,6 +4,7 @@ * Author: Ryder Lee <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-a1.c b/drivers/pinctrl/meson/pinctrl-meson-a1.c index 7e9ac6390b1..30cf3bc0be4 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-a1.c +++ b/drivers/pinctrl/meson/pinctrl-meson-a1.c @@ -6,6 +6,7 @@ * Author: Igor Prusov <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-a1-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c index 52c726cf038..cfe94cf9e17 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c @@ -6,6 +6,7 @@ #include <log.h> #include <asm/gpio.h> +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/io.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg.c b/drivers/pinctrl/meson/pinctrl-meson-axg.c index 94e09cd3f8a..820a6c9bb1a 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg.c @@ -7,6 +7,7 @@ * Author: Xingyu Chen <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-axg-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-g12a.c b/drivers/pinctrl/meson/pinctrl-meson-g12a.c index 24f47f82558..90a4f8056cd 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-g12a.c +++ b/drivers/pinctrl/meson/pinctrl-meson-g12a.c @@ -8,6 +8,7 @@ * Author: Yixun Lan <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-g12a-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c index 396b3a0e842..99502d89c6c 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c @@ -5,6 +5,7 @@ #include <log.h> #include <asm/gpio.h> +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c index 03ae1f9f8a5..93a895c9fa7 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxbb.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxbb.c @@ -6,6 +6,7 @@ * Copyright (C) 2016 Endless Mobile, Inc. */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxbb-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gxl.c b/drivers/pinctrl/meson/pinctrl-meson-gxl.c index 16517f95ddb..a44145e2d4e 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gxl.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gxl.c @@ -6,6 +6,7 @@ * Copyright (C) 2016 Endless Mobile, Inc. */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/gpio/meson-gxl-gpio.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index babf1bccc96..ee362d8464f 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -3,6 +3,7 @@ * (C) Copyright 2016 - Beniamino Galvani <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/pinctrl/mscc/mscc-common.c b/drivers/pinctrl/mscc/mscc-common.c index 2af5587ec47..307ed1db875 100644 --- a/drivers/pinctrl/mscc/mscc-common.c +++ b/drivers/pinctrl/mscc/mscc-common.c @@ -10,6 +10,7 @@ #include <asm/gpio.h> #include <asm/system.h> +#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-jr2.c b/drivers/pinctrl/mscc/pinctrl-jr2.c index 4ef4040cd70..cb340581cc0 100644 --- a/drivers/pinctrl/mscc/pinctrl-jr2.c +++ b/drivers/pinctrl/mscc/pinctrl-jr2.c @@ -6,6 +6,7 @@ * Copyright (c) 2018 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-luton.c b/drivers/pinctrl/mscc/pinctrl-luton.c index 7707350aace..325c9a9705b 100644 --- a/drivers/pinctrl/mscc/pinctrl-luton.c +++ b/drivers/pinctrl/mscc/pinctrl-luton.c @@ -7,6 +7,7 @@ * Copyright (c) 2018 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-ocelot.c b/drivers/pinctrl/mscc/pinctrl-ocelot.c index 826388c2f74..57e2ef0d7c1 100644 --- a/drivers/pinctrl/mscc/pinctrl-ocelot.c +++ b/drivers/pinctrl/mscc/pinctrl-ocelot.c @@ -10,6 +10,7 @@ #include <asm/gpio.h> #include <asm/system.h> +#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-serval.c b/drivers/pinctrl/mscc/pinctrl-serval.c index 2081cd6750c..a6b9796df81 100644 --- a/drivers/pinctrl/mscc/pinctrl-serval.c +++ b/drivers/pinctrl/mscc/pinctrl-serval.c @@ -6,6 +6,7 @@ * Copyright (c) 2019 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mscc/pinctrl-servalt.c b/drivers/pinctrl/mscc/pinctrl-servalt.c index efa4e26d9f7..8e8678580db 100644 --- a/drivers/pinctrl/mscc/pinctrl-servalt.c +++ b/drivers/pinctrl/mscc/pinctrl-servalt.c @@ -6,6 +6,7 @@ * Copyright (c) 2019 Microsemi Corporation */ +#include <common.h> #include <config.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mt7628.c b/drivers/pinctrl/mtmips/pinctrl-mt7628.c index dc7acec4a77..79c63c7caec 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mt7628.c +++ b/drivers/pinctrl/mtmips/pinctrl-mt7628.c @@ -5,6 +5,7 @@ * Author: Weijie Gao <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c index bab34e97b61..869b7810685 100644 --- a/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c +++ b/drivers/pinctrl/mtmips/pinctrl-mtmips-common.c @@ -5,6 +5,7 @@ * Author: Weijie Gao <[email protected]> */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index 64036296e24..e834dddfd13 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -16,6 +16,7 @@ * https://spdx.org/licenses */ +#include <common.h> #include <config.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c index 78184d2860a..252151f3e5d 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-38x.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-38x.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later // (C) 2022 Pali RohĂĄr <[email protected]> +#include <common.h> #include <config.h> #include <dm.h> #include <dm/devres.h> diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index 0d5fa4ceb9c..fd49a97b5b0 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -4,6 +4,7 @@ * https://spdx.org/licenses */ +#include <common.h> #include <config.h> #include <fdtdec.h> #include <errno.h> diff --git a/drivers/pinctrl/nexell/pinctrl-nexell.c b/drivers/pinctrl/nexell/pinctrl-nexell.c index d5be7baf50d..20497a746d2 100644 --- a/drivers/pinctrl/nexell/pinctrl-nexell.c +++ b/drivers/pinctrl/nexell/pinctrl-nexell.c @@ -5,6 +5,7 @@ * Bongyu, KOO <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c index e7d0994f29e..863eb1455d2 100644 --- a/drivers/pinctrl/nexell/pinctrl-s5pxx18.c +++ b/drivers/pinctrl/nexell/pinctrl-s5pxx18.c @@ -7,6 +7,7 @@ * (C) Copyright 2019 Stefan Bosch <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index ff466c49104..1596dcc4747 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Peng Fan <[email protected]> */ +#include <common.h> #include <malloc.h> #include <mapmem.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx5.c b/drivers/pinctrl/nxp/pinctrl-imx5.c index 6b690fdce8f..b32b748cfc6 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx5.c +++ b/drivers/pinctrl/nxp/pinctrl-imx5.c @@ -4,6 +4,7 @@ * Copyright (C) 2016 Peng Fan <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx6.c b/drivers/pinctrl/nxp/pinctrl-imx6.c index 322eec87ff5..6994dbb61a3 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx6.c +++ b/drivers/pinctrl/nxp/pinctrl-imx6.c @@ -4,6 +4,7 @@ * Copyright (C) 2016 Peng Fan <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx7.c b/drivers/pinctrl/nxp/pinctrl-imx7.c index a8275e26456..77ddb8e0b9d 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Peng Fan <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c index 7ea2dbe7d36..6da9ff7c5bc 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx7ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx7ulp.c @@ -5,6 +5,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c b/drivers/pinctrl/nxp/pinctrl-imx8.c index 4e9a9ea6808..46af44ecb1f 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8.c @@ -3,6 +3,7 @@ * Copyright 2018 NXP */ +#include <common.h> #include <asm/global_data.h> #include <dm/device.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c index 73d3c009d5b..4e8fa08bc6e 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8ulp.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8ulp.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-imxrt.c b/drivers/pinctrl/nxp/pinctrl-imxrt.c index 23f07f8d1e0..53b70da869e 100644 --- a/drivers/pinctrl/nxp/pinctrl-imxrt.c +++ b/drivers/pinctrl/nxp/pinctrl-imxrt.c @@ -4,6 +4,7 @@ * Author(s): Giulio Benetti <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/nxp/pinctrl-mxs.c b/drivers/pinctrl/nxp/pinctrl-mxs.c index 85ab5fdf640..eb90e28d4b2 100644 --- a/drivers/pinctrl/nxp/pinctrl-mxs.c +++ b/drivers/pinctrl/nxp/pinctrl-mxs.c @@ -4,6 +4,7 @@ * Lukasz Majewski, DENX Software Engineering, [email protected] */ +#include <common.h> #include <log.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/nxp/pinctrl-scu.c b/drivers/pinctrl/nxp/pinctrl-scu.c index 42d5c96468c..4959834c0fc 100644 --- a/drivers/pinctrl/nxp/pinctrl-scu.c +++ b/drivers/pinctrl/nxp/pinctrl-scu.c @@ -3,6 +3,7 @@ * Copyright 2018-2019 NXP */ +#include <common.h> #include <errno.h> #include <linux/bitops.h> #include <asm/io.h> diff --git a/drivers/pinctrl/nxp/pinctrl-vf610.c b/drivers/pinctrl/nxp/pinctrl-vf610.c index adf3073f1be..14e2e9d3ee6 100644 --- a/drivers/pinctrl/nxp/pinctrl-vf610.c +++ b/drivers/pinctrl/nxp/pinctrl-vf610.c @@ -4,6 +4,7 @@ * Lukasz Majewski, DENX Software Engineering, [email protected] */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-apple.c b/drivers/pinctrl/pinctrl-apple.c index f373afde58e..62476358c34 100644 --- a/drivers/pinctrl/pinctrl-apple.c +++ b/drivers/pinctrl/pinctrl-apple.c @@ -3,6 +3,7 @@ * (C) Copyright 2021 Mark Kettenis <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index c697a4c3456..84b398619c4 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -6,6 +6,7 @@ * Wenyou.Yang <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 5038cb535e3..b7aab12f11c 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -6,6 +6,7 @@ * Wenyou.Yang <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/pinctrl/pinctrl-generic.c b/drivers/pinctrl/pinctrl-generic.c index 2464acf0b85..8909b57810a 100644 --- a/drivers/pinctrl/pinctrl-generic.c +++ b/drivers/pinctrl/pinctrl-generic.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/compat.h> diff --git a/drivers/pinctrl/pinctrl-k210.c b/drivers/pinctrl/pinctrl-k210.c index dad036610c9..ee35dfe1420 100644 --- a/drivers/pinctrl/pinctrl-k210.c +++ b/drivers/pinctrl/pinctrl-k210.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Sean Anderson <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/pinctrl-qe-io.c b/drivers/pinctrl/pinctrl-qe-io.c index 61db9274cc3..dc0be7ce3bd 100644 --- a/drivers/pinctrl/pinctrl-qe-io.c +++ b/drivers/pinctrl/pinctrl-qe-io.c @@ -6,6 +6,7 @@ * based on source code of Shlomi Gridish */ +#include <common.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/immap_83xx.h> diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index a5d056643a0..77659774509 100644 --- a/drivers/pinctrl/pinctrl-sandbox.c +++ b/drivers/pinctrl/pinctrl-sandbox.c @@ -4,6 +4,7 @@ * Copyright (C) 2015 Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <dt-bindings/pinctrl/sandbox-pinmux.h> diff --git a/drivers/pinctrl/pinctrl-single.c b/drivers/pinctrl/pinctrl-single.c index a3802d22d4f..d1db377c137 100644 --- a/drivers/pinctrl/pinctrl-single.c +++ b/drivers/pinctrl/pinctrl-single.c @@ -4,6 +4,7 @@ * Copyright (C) 2021 Dario Binacchi <[email protected]> */ +#include <common.h> #include <mapmem.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c index 4996b69d9af..1ff7ea00555 100644 --- a/drivers/pinctrl/pinctrl-sti.c +++ b/drivers/pinctrl/pinctrl-sti.c @@ -6,6 +6,7 @@ * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. */ +#include <common.h> #include <bitfield.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index 61f335c4eb1..509e2a80e9a 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_PINCTRL +#include <common.h> #include <dm.h> #include <log.h> #include <i2c.h> diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index d9c76898a96..b277ad5c48f 100644 --- a/drivers/pinctrl/pinctrl-uclass.c +++ b/drivers/pinctrl/pinctrl-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_PINCTRL +#include <common.h> #include <malloc.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/pinctrl/pinctrl-zynqmp.c b/drivers/pinctrl/pinctrl-zynqmp.c index 6fa203a3b86..eb17a4290b7 100644 --- a/drivers/pinctrl/pinctrl-zynqmp.c +++ b/drivers/pinctrl/pinctrl-zynqmp.c @@ -8,6 +8,7 @@ * Copyright (C) 2021 Xilinx, Inc. All rights reserved. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c index 9f38b56e9c0..54d97ac0ae3 100644 --- a/drivers/pinctrl/pinctrl_pic32.c +++ b/drivers/pinctrl/pinctrl_pic32.c @@ -4,6 +4,7 @@ * Copyright (c) 2015 Microchip Technology Inc. * Written by Purna Chandra Mandal <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index eada1001240..7120b8edba0 100644 --- a/drivers/pinctrl/pinctrl_stm32.c +++ b/drivers/pinctrl/pinctrl_stm32.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_PINCTRL +#include <common.h> #include <dm.h> #include <hwspinlock.h> #include <log.h> diff --git a/drivers/pinctrl/qcom/pinctrl-apq8016.c b/drivers/pinctrl/qcom/pinctrl-apq8016.c index 0c7437822ff..b14a8921af4 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8016.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8016.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <dm.h> #include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-apq8096.c b/drivers/pinctrl/qcom/pinctrl-apq8096.c index 132ece868bf..9697cb5beb7 100644 --- a/drivers/pinctrl/qcom/pinctrl-apq8096.c +++ b/drivers/pinctrl/qcom/pinctrl-apq8096.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <dm.h> #include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-ipq4019.c b/drivers/pinctrl/qcom/pinctrl-ipq4019.c index 3215c677b26..26ab487857f 100644 --- a/drivers/pinctrl/qcom/pinctrl-ipq4019.c +++ b/drivers/pinctrl/qcom/pinctrl-ipq4019.c @@ -7,6 +7,7 @@ * Author: Robert Marko <[email protected]> */ +#include <common.h> #include <dm.h> #include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-qcom.c b/drivers/pinctrl/qcom/pinctrl-qcom.c index 3c3336e7635..e68971b37ff 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcom.c +++ b/drivers/pinctrl/qcom/pinctrl-qcom.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <asm/io.h> diff --git a/drivers/pinctrl/qcom/pinctrl-qcs404.c b/drivers/pinctrl/qcom/pinctrl-qcs404.c index fb6defaeddf..4b7c670c90b 100644 --- a/drivers/pinctrl/qcom/pinctrl-qcs404.c +++ b/drivers/pinctrl/qcom/pinctrl-qcs404.c @@ -5,6 +5,7 @@ * (C) Copyright 2022 Sumit Garg <[email protected]> */ +#include <common.h> #include <dm.h> #include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/qcom/pinctrl-sdm845.c b/drivers/pinctrl/qcom/pinctrl-sdm845.c index f1a23f51099..c1e5cc01fde 100644 --- a/drivers/pinctrl/qcom/pinctrl-sdm845.c +++ b/drivers/pinctrl/qcom/pinctrl-sdm845.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include "pinctrl-qcom.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c index cc7885bae40..2c35491b24d 100644 --- a/drivers/pinctrl/rockchip/pinctrl-px30.c +++ b/drivers/pinctrl/rockchip/pinctrl-px30.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c index b14386ccd93..afcd34396e2 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3066.c b/drivers/pinctrl/rockchip/pinctrl-rk3066.c index 60e088a9a6f..598b63223e3 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3066.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3066.c @@ -3,6 +3,7 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c index d00fc3da8b2..355c45eb7f8 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c index 83db51f66ae..9a982cbfad9 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c index b804597c048..351406da2d4 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c index 3870c1b7a34..a976b7aeeb2 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c index 2cd91b10a3b..f9ac6347eaf 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c index 47c2e923a1b..65a75007677 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3368.c b/drivers/pinctrl/rockchip/pinctrl-rk3368.c index 9ae06ed19e9..ba867a89174 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3368.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3368.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c index b7a5092c032..ae785573baf 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3568.c b/drivers/pinctrl/rockchip/pinctrl-rk3568.c index 5deedc648a4..1d439198260 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3568.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3568.c @@ -3,6 +3,7 @@ * (C) Copyright 2020 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3588.c b/drivers/pinctrl/rockchip/pinctrl-rk3588.c index 98ababc7c90..548cf09bcca 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3588.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3588.c @@ -3,6 +3,7 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> #include <regmap.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index 3e74e2f1489..8ef089994f4 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c index 3eff5f59598..5b70b503d2b 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c @@ -3,6 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1126.c b/drivers/pinctrl/rockchip/pinctrl-rv1126.c index efa2408b204..eefb8b17768 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1126.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1126.c @@ -3,6 +3,7 @@ * (C) Copyright 2020 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/starfive/pinctrl-starfive.c b/drivers/pinctrl/starfive/pinctrl-starfive.c index 95b1a752de2..9b09cc21cfa 100644 --- a/drivers/pinctrl/starfive/pinctrl-starfive.c +++ b/drivers/pinctrl/starfive/pinctrl-starfive.c @@ -7,6 +7,7 @@ * Author: Jianlong Huang <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra114.c b/drivers/pinctrl/tegra/funcmux-tegra114.c index 23e9e238367..23a27c86888 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra114.c +++ b/drivers/pinctrl/tegra/funcmux-tegra114.c @@ -5,6 +5,7 @@ /* Tegra114 high-level function multiplexing */ +#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra124.c b/drivers/pinctrl/tegra/funcmux-tegra124.c index b041cead344..e7ad85fde2d 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra124.c +++ b/drivers/pinctrl/tegra/funcmux-tegra124.c @@ -6,6 +6,7 @@ /* Tegra124 high-level function multiplexing */ +#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra20.c b/drivers/pinctrl/tegra/funcmux-tegra20.c index b8c91323785..90fe0cba8ea 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra20.c +++ b/drivers/pinctrl/tegra/funcmux-tegra20.c @@ -4,6 +4,7 @@ */ /* Tegra20 high-level function multiplexing */ +#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra210.c b/drivers/pinctrl/tegra/funcmux-tegra210.c index d52b6150e59..30d994a17ff 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra210.c +++ b/drivers/pinctrl/tegra/funcmux-tegra210.c @@ -6,6 +6,7 @@ /* Tegra210 high-level function multiplexing */ +#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/funcmux-tegra30.c b/drivers/pinctrl/tegra/funcmux-tegra30.c index e31b859beb8..c3ee787f33b 100644 --- a/drivers/pinctrl/tegra/funcmux-tegra30.c +++ b/drivers/pinctrl/tegra/funcmux-tegra30.c @@ -5,6 +5,7 @@ /* Tegra30 high-level function multiplexing */ +#include <common.h> #include <log.h> #include <asm/arch/clock.h> #include <asm/arch/funcmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-common.c b/drivers/pinctrl/tegra/pinmux-common.c index 5266c8db487..16b03bfe7b0 100644 --- a/drivers/pinctrl/tegra/pinmux-common.c +++ b/drivers/pinctrl/tegra/pinmux-common.c @@ -4,6 +4,7 @@ * Copyright (c) 2011 The Chromium OS Authors. */ +#include <common.h> #include <log.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-tegra114.c b/drivers/pinctrl/tegra/pinmux-tegra114.c index 15c6b653aed..11796602c54 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra114.c +++ b/drivers/pinctrl/tegra/pinmux-tegra114.c @@ -3,6 +3,7 @@ * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. */ +#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-tegra124.c b/drivers/pinctrl/tegra/pinmux-tegra124.c index 6d5b720aa0e..261ce64b205 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra124.c +++ b/drivers/pinctrl/tegra/pinmux-tegra124.c @@ -3,6 +3,7 @@ * Copyright (c) 2013-2014, NVIDIA CORPORATION. All rights reserved. */ +#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-tegra20.c b/drivers/pinctrl/tegra/pinmux-tegra20.c index c1f86476b9e..0af39e74c53 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra20.c +++ b/drivers/pinctrl/tegra/pinmux-tegra20.c @@ -5,6 +5,7 @@ /* Tegra20 pin multiplexing functions */ +#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/tegra/pinmux-tegra30.c b/drivers/pinctrl/tegra/pinmux-tegra30.c index 59ce9cea4a9..d11b2aa572d 100644 --- a/drivers/pinctrl/tegra/pinmux-tegra30.c +++ b/drivers/pinctrl/tegra/pinmux-tegra30.c @@ -3,6 +3,7 @@ * Copyright (c) 2010-2014, NVIDIA CORPORATION. All rights reserved. */ +#include <common.h> #include <asm/io.h> #include <asm/arch/pinmux.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c index eafb65496a3..bdca3f2f715 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c index 778a9899483..a1a3cd73859 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c index 3ef10151dab..7a92a46c17f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c index 9302e309e20..d33e4d7dd25 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c index f7c5bf3bcae..0e3eb131ecf 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c index 2704a50749e..7ba2266092f 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c index 655ec6e6057..9ce2e2c270e 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c index 226272c2b82..e8c2018097c 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c index 8df13ca209c..8a8f1269bb5 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c @@ -5,6 +5,7 @@ * Author: Dai Okamura <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c index c045ae99ac5..04c06fb280e 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c @@ -4,6 +4,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/pinctrl.h> diff --git a/drivers/power/acpi_pmc/acpi-pmc-uclass.c b/drivers/power/acpi_pmc/acpi-pmc-uclass.c index c289cede15b..34446a34e60 100644 --- a/drivers/power/acpi_pmc/acpi-pmc-uclass.c +++ b/drivers/power/acpi_pmc/acpi-pmc-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_ACPI_PMC +#include <common.h> #include <dm.h> #include <log.h> #include <spl.h> diff --git a/drivers/power/acpi_pmc/pmc_emul.c b/drivers/power/acpi_pmc/pmc_emul.c index 8eff3d9fa7a..8015031da85 100644 --- a/drivers/power/acpi_pmc/pmc_emul.c +++ b/drivers/power/acpi_pmc/pmc_emul.c @@ -6,6 +6,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/power/acpi_pmc/sandbox.c b/drivers/power/acpi_pmc/sandbox.c index ed1bb198093..8cf03f737c0 100644 --- a/drivers/power/acpi_pmc/sandbox.c +++ b/drivers/power/acpi_pmc/sandbox.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_ACPI_PMC +#include <common.h> #include <dm.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/power/axp152.c b/drivers/power/axp152.c index 5a62382ab86..a93987c1538 100644 --- a/drivers/power/axp152.c +++ b/drivers/power/axp152.c @@ -3,8 +3,8 @@ * (C) Copyright 2012 * Henrik Nordstrom <[email protected]> */ +#include <common.h> #include <command.h> -#include <linux/errno.h> #include <asm/arch/pmic_bus.h> #include <axp_pmic.h> diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c index 6ae416982eb..3447b9f0113 100644 --- a/drivers/power/axp209.c +++ b/drivers/power/axp209.c @@ -4,11 +4,11 @@ * Henrik Nordstrom <[email protected]> */ +#include <common.h> #include <command.h> #include <asm/arch/pmic_bus.h> #include <axp_pmic.h> #include <linux/delay.h> -#include <linux/errno.h> #ifdef CONFIG_AXP_ALDO3_VOLT_SLOPE_08 # define AXP209_VRC_SLOPE AXP209_VRC_LDO3_800uV_uS diff --git a/drivers/power/axp221.c b/drivers/power/axp221.c index c22ca03f469..d251c314b98 100644 --- a/drivers/power/axp221.c +++ b/drivers/power/axp221.c @@ -9,6 +9,7 @@ * (C) Copyright 2013 Oliver Schinagl <[email protected]> */ +#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp305.c b/drivers/power/axp305.c index 0312ad9af76..049ef07f746 100644 --- a/drivers/power/axp305.c +++ b/drivers/power/axp305.c @@ -9,6 +9,7 @@ * (C) Copyright 2013 Oliver Schinagl <[email protected]> */ +#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp313.c b/drivers/power/axp313.c index 09ecb5b1ec2..bbc9e911115 100644 --- a/drivers/power/axp313.c +++ b/drivers/power/axp313.c @@ -10,6 +10,7 @@ * (C) Copyright 2013 Oliver Schinagl <[email protected]> */ +#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp809.c b/drivers/power/axp809.c index 9e38e1a7450..d327a584ded 100644 --- a/drivers/power/axp809.c +++ b/drivers/power/axp809.c @@ -10,6 +10,7 @@ * (C) Copyright 2013 Oliver Schinagl <[email protected]> */ +#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/axp818.c b/drivers/power/axp818.c index 83ae6ecc138..08286ea3b55 100644 --- a/drivers/power/axp818.c +++ b/drivers/power/axp818.c @@ -10,6 +10,7 @@ * (C) Copyright 2013 Oliver Schinagl <[email protected]> */ +#include <common.h> #include <command.h> #include <errno.h> #include <asm/arch/pmic_bus.h> diff --git a/drivers/power/domain/apple-pmgr.c b/drivers/power/domain/apple-pmgr.c index bf9940621ee..402c5b1fd18 100644 --- a/drivers/power/domain/apple-pmgr.c +++ b/drivers/power/domain/apple-pmgr.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Mark Kettenis <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/power/domain/bcm6328-power-domain.c b/drivers/power/domain/bcm6328-power-domain.c index 36b5a933748..80144dd9772 100644 --- a/drivers/power/domain/bcm6328-power-domain.c +++ b/drivers/power/domain/bcm6328-power-domain.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Ălvaro FernĂĄndez Rojas <[email protected]> */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/imx8-power-domain-legacy.c b/drivers/power/domain/imx8-power-domain-legacy.c index 713a51d7807..c8ca2665752 100644 --- a/drivers/power/domain/imx8-power-domain-legacy.c +++ b/drivers/power/domain/imx8-power-domain-legacy.c @@ -3,6 +3,7 @@ * Copyright 2017 NXP */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8-power-domain.c b/drivers/power/domain/imx8-power-domain.c index e8dcc057fee..b45e468756b 100644 --- a/drivers/power/domain/imx8-power-domain.c +++ b/drivers/power/domain/imx8-power-domain.c @@ -4,6 +4,7 @@ */ #define DEBUG +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8m-power-domain.c b/drivers/power/domain/imx8m-power-domain.c index 8b6870c8646..df5d7d69562 100644 --- a/drivers/power/domain/imx8m-power-domain.c +++ b/drivers/power/domain/imx8m-power-domain.c @@ -3,6 +3,7 @@ * Copyright 2017 NXP */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/power/domain/imx8mp-hsiomix.c b/drivers/power/domain/imx8mp-hsiomix.c index 455ad53ef52..6188a04c45e 100644 --- a/drivers/power/domain/imx8mp-hsiomix.c +++ b/drivers/power/domain/imx8mp-hsiomix.c @@ -3,6 +3,7 @@ * Copyright (C) 2022 Marek Vasut <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <clk.h> #include <clk-uclass.h> diff --git a/drivers/power/domain/meson-ee-pwrc.c b/drivers/power/domain/meson-ee-pwrc.c index 20e9f32b381..676fded8080 100644 --- a/drivers/power/domain/meson-ee-pwrc.c +++ b/drivers/power/domain/meson-ee-pwrc.c @@ -4,6 +4,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/meson-gx-pwrc-vpu.c b/drivers/power/domain/meson-gx-pwrc-vpu.c index 1c56e8508c3..612660ce89f 100644 --- a/drivers/power/domain/meson-gx-pwrc-vpu.c +++ b/drivers/power/domain/meson-gx-pwrc-vpu.c @@ -6,6 +6,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/mtk-power-domain.c b/drivers/power/domain/mtk-power-domain.c index 2d1ba1855a5..3b84147d481 100644 --- a/drivers/power/domain/mtk-power-domain.c +++ b/drivers/power/domain/mtk-power-domain.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/power-domain-uclass.c b/drivers/power/domain/power-domain-uclass.c index 938bd8cbc9f..f6286c70c1d 100644 --- a/drivers/power/domain/power-domain-uclass.c +++ b/drivers/power/domain/power-domain-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_POWER_DOMAIN +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/sandbox-power-domain-test.c b/drivers/power/domain/sandbox-power-domain-test.c index 08c15ef342b..1bf52f1d861 100644 --- a/drivers/power/domain/sandbox-power-domain-test.c +++ b/drivers/power/domain/sandbox-power-domain-test.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <power-domain.h> diff --git a/drivers/power/domain/sandbox-power-domain.c b/drivers/power/domain/sandbox-power-domain.c index 9dd490b14a3..04a071044f3 100644 --- a/drivers/power/domain/sandbox-power-domain.c +++ b/drivers/power/domain/sandbox-power-domain.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/tegra186-power-domain.c b/drivers/power/domain/tegra186-power-domain.c index 334c460c805..46da541b75a 100644 --- a/drivers/power/domain/tegra186-power-domain.c +++ b/drivers/power/domain/tegra186-power-domain.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/domain/ti-power-domain.c b/drivers/power/domain/ti-power-domain.c index b059dd37376..8996c40ddc0 100644 --- a/drivers/power/domain/ti-power-domain.c +++ b/drivers/power/domain/ti-power-domain.c @@ -7,6 +7,7 @@ */ #include <asm/io.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <power-domain-uclass.h> diff --git a/drivers/power/domain/ti-sci-power-domain.c b/drivers/power/domain/ti-sci-power-domain.c index 0a9f498b97b..8d6abe13dbc 100644 --- a/drivers/power/domain/ti-sci-power-domain.c +++ b/drivers/power/domain/ti-sci-power-domain.c @@ -8,6 +8,7 @@ * Loosely based on Linux kernel ti_sci_pm_domains.c... */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/domain/zynqmp-power-domain.c b/drivers/power/domain/zynqmp-power-domain.c index ac93934eb42..5ee9e020fb3 100644 --- a/drivers/power/domain/zynqmp-power-domain.c +++ b/drivers/power/domain/zynqmp-power-domain.c @@ -3,6 +3,7 @@ * Copyright (c) 2021, Xilinx. Inc. */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/power/exynos-tmu.c b/drivers/power/exynos-tmu.c index 21c2fabce1b..6d62f6cae40 100644 --- a/drivers/power/exynos-tmu.c +++ b/drivers/power/exynos-tmu.c @@ -17,12 +17,11 @@ * MA 02111-1307 USA */ +#include <common.h> #include <errno.h> #include <fdtdec.h> #include <log.h> -#include <time.h> #include <tmu.h> -#include <asm/io.h> #include <asm/arch/tmu.h> #include <asm/arch/power.h> diff --git a/drivers/power/mt6323.c b/drivers/power/mt6323.c index dd6cbcf1820..354817a0378 100644 --- a/drivers/power/mt6323.c +++ b/drivers/power/mt6323.c @@ -3,6 +3,7 @@ * Copyright (C) 2019 Frank Wunderlich <[email protected]> */ +#include <common.h> #include <command.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/power/pmic/ab8500.c b/drivers/power/pmic/ab8500.c index 9ba096711e1..1f64f217c34 100644 --- a/drivers/power/pmic/ab8500.c +++ b/drivers/power/pmic/ab8500.c @@ -7,6 +7,7 @@ * Copyright (C) ST-Ericsson SA 2010 */ +#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/power/pmic/act8846.c b/drivers/power/pmic/act8846.c index 3058ef0f893..8f0f5a6d96e 100644 --- a/drivers/power/pmic/act8846.c +++ b/drivers/power/pmic/act8846.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/as3722.c b/drivers/power/pmic/as3722.c index 9b0f4fb9736..c7dd9705d18 100644 --- a/drivers/power/pmic/as3722.c +++ b/drivers/power/pmic/as3722.c @@ -5,6 +5,7 @@ #define pr_fmt(fmt) "as3722: " fmt +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/as3722_gpio.c b/drivers/power/pmic/as3722_gpio.c index 52d8bd00b1f..987fbdf9bc0 100644 --- a/drivers/power/pmic/as3722_gpio.c +++ b/drivers/power/pmic/as3722_gpio.c @@ -3,6 +3,7 @@ * Copyright (C) 2014 NVIDIA Corporation */ +#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <linux/printk.h> diff --git a/drivers/power/pmic/bd71837.c b/drivers/power/pmic/bd71837.c index a5df2570fc3..ee6ae78e5c4 100644 --- a/drivers/power/pmic/bd71837.c +++ b/drivers/power/pmic/bd71837.c @@ -3,6 +3,7 @@ * Copyright 2018 NXP */ +#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/da9063.c b/drivers/power/pmic/da9063.c index 7bd3df39142..ca95b82e6d0 100644 --- a/drivers/power/pmic/da9063.c +++ b/drivers/power/pmic/da9063.c @@ -4,6 +4,7 @@ * Martin Fuzzey <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/fan53555.c b/drivers/power/pmic/fan53555.c index 95bf600cbc3..d556b9a5878 100644 --- a/drivers/power/pmic/fan53555.c +++ b/drivers/power/pmic/fan53555.c @@ -3,6 +3,7 @@ * (C) 2018 Theobroma Systems Design und Consulting GmbH */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/power/pmic/i2c_pmic_emul.c b/drivers/power/pmic/i2c_pmic_emul.c index 6e81b9c3427..f0a03742f87 100644 --- a/drivers/power/pmic/i2c_pmic_emul.c +++ b/drivers/power/pmic/i2c_pmic_emul.c @@ -4,6 +4,7 @@ * Przemyslaw Marczak <[email protected]> */ +#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/lp873x.c b/drivers/power/pmic/lp873x.c index 2c8fa4ea312..fda5bc15164 100644 --- a/drivers/power/pmic/lp873x.c +++ b/drivers/power/pmic/lp873x.c @@ -4,6 +4,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/lp87565.c b/drivers/power/pmic/lp87565.c index c2ff75bbcdc..904e02c4d81 100644 --- a/drivers/power/pmic/lp87565.c +++ b/drivers/power/pmic/lp87565.c @@ -4,6 +4,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/max77686.c b/drivers/power/pmic/max77686.c index bfe57b386d3..7e6f7d1966f 100644 --- a/drivers/power/pmic/max77686.c +++ b/drivers/power/pmic/max77686.c @@ -4,6 +4,7 @@ * Przemyslaw Marczak <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/max8997.c b/drivers/power/pmic/max8997.c index 4afa6c84ef8..504a63bf743 100644 --- a/drivers/power/pmic/max8997.c +++ b/drivers/power/pmic/max8997.c @@ -4,6 +4,7 @@ * Jaehoon Chung <[email protected]> */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <linux/printk.h> diff --git a/drivers/power/pmic/max8998.c b/drivers/power/pmic/max8998.c index 05669023753..d155474447f 100644 --- a/drivers/power/pmic/max8998.c +++ b/drivers/power/pmic/max8998.c @@ -4,6 +4,7 @@ * Jaehoon Chung <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/power/pmic/mc34708.c b/drivers/power/pmic/mc34708.c index 43badb5767a..40d732224b6 100644 --- a/drivers/power/pmic/mc34708.c +++ b/drivers/power/pmic/mc34708.c @@ -5,6 +5,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fsl_pmic.h> diff --git a/drivers/power/pmic/mp5416.c b/drivers/power/pmic/mp5416.c index 9d44f0ae655..6180adf77e2 100644 --- a/drivers/power/pmic/mp5416.c +++ b/drivers/power/pmic/mp5416.c @@ -2,6 +2,7 @@ /* * Copyright 2020 Gateworks Corporation */ +#include <common.h> #include <errno.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/power/pmic/palmas.c b/drivers/power/pmic/palmas.c index f676bf64169..e340a32279f 100644 --- a/drivers/power/pmic/palmas.c +++ b/drivers/power/pmic/palmas.c @@ -4,6 +4,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pca9450.c b/drivers/power/pmic/pca9450.c index 07af6273d8a..0bbe98cd8a2 100644 --- a/drivers/power/pmic/pca9450.c +++ b/drivers/power/pmic/pca9450.c @@ -3,6 +3,7 @@ * Copyright 2019 NXP */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pfuze100.c b/drivers/power/pmic/pfuze100.c index 9e09805d251..15420acb472 100644 --- a/drivers/power/pmic/pfuze100.c +++ b/drivers/power/pmic/pfuze100.c @@ -4,6 +4,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pmic-uclass.c b/drivers/power/pmic/pmic-uclass.c index bb459816d14..0e2f5e1f411 100644 --- a/drivers/power/pmic/pmic-uclass.c +++ b/drivers/power/pmic/pmic-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PMIC +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/pmic_hi6553.c b/drivers/power/pmic/pmic_hi6553.c index 05305013882..80b9078cf8f 100644 --- a/drivers/power/pmic/pmic_hi6553.c +++ b/drivers/power/pmic/pmic_hi6553.c @@ -4,6 +4,7 @@ * Peter Griffin <[email protected]> */ #include <asm/io.h> +#include <common.h> #include <linux/delay.h> #include <power/pmic.h> #include <power/max8997_muic.h> diff --git a/drivers/power/pmic/pmic_ltc3676.c b/drivers/power/pmic/pmic_ltc3676.c index 145a631b6b2..af94f37b0f1 100644 --- a/drivers/power/pmic/pmic_ltc3676.c +++ b/drivers/power/pmic/pmic_ltc3676.c @@ -4,6 +4,7 @@ * Tim Harvey <[email protected]> */ +#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_mc34vr500.c b/drivers/power/pmic/pmic_mc34vr500.c index 0dfdfbdf3dc..9dd1c46ea22 100644 --- a/drivers/power/pmic/pmic_mc34vr500.c +++ b/drivers/power/pmic/pmic_mc34vr500.c @@ -4,6 +4,7 @@ * Hou Zhiqiang <[email protected]> */ +#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pca9450.c b/drivers/power/pmic/pmic_pca9450.c index 12500ba9990..8c4d0a92306 100644 --- a/drivers/power/pmic/pmic_pca9450.c +++ b/drivers/power/pmic/pmic_pca9450.c @@ -3,6 +3,7 @@ * Copyright 2019 NXP */ +#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pfuze100.c b/drivers/power/pmic/pmic_pfuze100.c index a266709d8d0..5115b55e49d 100644 --- a/drivers/power/pmic/pmic_pfuze100.c +++ b/drivers/power/pmic/pmic_pfuze100.c @@ -4,6 +4,7 @@ * Tim Harvey <[email protected]> */ +#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_pfuze3000.c b/drivers/power/pmic/pmic_pfuze3000.c index 602c4744aa6..a6d97252bc9 100644 --- a/drivers/power/pmic/pmic_pfuze3000.c +++ b/drivers/power/pmic/pmic_pfuze3000.c @@ -4,6 +4,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <errno.h> #include <i2c.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_qcom.c b/drivers/power/pmic/pmic_qcom.c index 92d0a95859b..f2ac6494811 100644 --- a/drivers/power/pmic/pmic_qcom.c +++ b/drivers/power/pmic/pmic_qcom.c @@ -4,6 +4,7 @@ * * (C) Copyright 2015 Mateusz Kulikowski <[email protected]> */ +#include <common.h> #include <dm.h> #include <power/pmic.h> #include <spmi/spmi.h> diff --git a/drivers/power/pmic/pmic_tps62362.c b/drivers/power/pmic/pmic_tps62362.c index 4f0e406d560..6426d1488a5 100644 --- a/drivers/power/pmic/pmic_tps62362.c +++ b/drivers/power/pmic/pmic_tps62362.c @@ -4,6 +4,7 @@ * Author: Felipe Balbi <[email protected]> */ +#include <common.h> #include <i2c.h> #include <linux/errno.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_tps65217.c b/drivers/power/pmic/pmic_tps65217.c index bd44e0d9ae0..ccbf2235933 100644 --- a/drivers/power/pmic/pmic_tps65217.c +++ b/drivers/power/pmic/pmic_tps65217.c @@ -4,6 +4,7 @@ * Texas Instruments, <www.ti.com> */ +#include <common.h> #include <i2c.h> #include <dm.h> #include <errno.h> diff --git a/drivers/power/pmic/pmic_tps65218.c b/drivers/power/pmic/pmic_tps65218.c index 49d07e95cd7..67174901804 100644 --- a/drivers/power/pmic/pmic_tps65218.c +++ b/drivers/power/pmic/pmic_tps65218.c @@ -4,6 +4,7 @@ * Texas Instruments, <www.ti.com> */ +#include <common.h> #include <i2c.h> #include <linux/errno.h> #include <power/pmic.h> diff --git a/drivers/power/pmic/pmic_tps65910.c b/drivers/power/pmic/pmic_tps65910.c index df9bb66a7f9..e3de7308215 100644 --- a/drivers/power/pmic/pmic_tps65910.c +++ b/drivers/power/pmic/pmic_tps65910.c @@ -4,6 +4,7 @@ * Texas Instruments, <www.ti.com> */ +#include <common.h> #include <i2c.h> #include <power/tps65910.h> diff --git a/drivers/power/pmic/pmic_tps65910_dm.c b/drivers/power/pmic/pmic_tps65910_dm.c index de8d805566a..ecf836eb0e6 100644 --- a/drivers/power/pmic/pmic_tps65910_dm.c +++ b/drivers/power/pmic/pmic_tps65910_dm.c @@ -3,6 +3,7 @@ * Copyright (C) EETS GmbH, 2017, Felix Brack <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/lists.h> #include <i2c.h> diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c index 12ff26a0855..3a8261d1749 100644 --- a/drivers/power/pmic/rk8xx.c +++ b/drivers/power/pmic/rk8xx.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/lists.h> #include <errno.h> diff --git a/drivers/power/pmic/rn5t567.c b/drivers/power/pmic/rn5t567.c index 0124d84a729..9d103dd8405 100644 --- a/drivers/power/pmic/rn5t567.c +++ b/drivers/power/pmic/rn5t567.c @@ -4,6 +4,7 @@ * Stefan Agner <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/s2mps11.c b/drivers/power/pmic/s2mps11.c index 17780017035..5ff4f205211 100644 --- a/drivers/power/pmic/s2mps11.c +++ b/drivers/power/pmic/s2mps11.c @@ -4,6 +4,7 @@ * Przemyslaw Marczak <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/s5m8767.c b/drivers/power/pmic/s5m8767.c index 799d0012540..eea072ae824 100644 --- a/drivers/power/pmic/s5m8767.c +++ b/drivers/power/pmic/s5m8767.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Google, Inc */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/sandbox.c b/drivers/power/pmic/sandbox.c index ddc11d6df86..14b82455f5f 100644 --- a/drivers/power/pmic/sandbox.c +++ b/drivers/power/pmic/sandbox.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PMIC +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/stpmic1.c b/drivers/power/pmic/stpmic1.c index c99a0c27b33..8701d4f971c 100644 --- a/drivers/power/pmic/stpmic1.c +++ b/drivers/power/pmic/stpmic1.c @@ -3,6 +3,7 @@ * Copyright (C) 2018, STMicroelectronics - All Rights Reserved */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/power/pmic/tps65090.c b/drivers/power/pmic/tps65090.c index ad2ab34719e..2a04d5948a5 100644 --- a/drivers/power/pmic/tps65090.c +++ b/drivers/power/pmic/tps65090.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/power/pmic/tps65219.c b/drivers/power/pmic/tps65219.c index 0716af027a3..9462afee77f 100644 --- a/drivers/power/pmic/tps65219.c +++ b/drivers/power/pmic/tps65219.c @@ -4,6 +4,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/pmic/tps65941.c b/drivers/power/pmic/tps65941.c index c3490db2a08..943d845086c 100644 --- a/drivers/power/pmic/tps65941.c +++ b/drivers/power/pmic/tps65941.c @@ -4,6 +4,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c index 1caf9f09346..4f7ba099cd9 100644 --- a/drivers/power/power_core.c +++ b/drivers/power/power_core.c @@ -9,6 +9,7 @@ * (C) Copyright 2008-2009 Freescale Semiconductor, Inc. */ +#include <common.h> #include <command.h> #include <log.h> #include <malloc.h> diff --git a/drivers/power/power_dialog.c b/drivers/power/power_dialog.c index a5c7ea34c4a..ad7aaf35a9a 100644 --- a/drivers/power/power_dialog.c +++ b/drivers/power/power_dialog.c @@ -4,7 +4,7 @@ * Lukasz Majewski <[email protected]> */ -#include <config.h> +#include <common.h> #include <log.h> #include <power/pmic.h> #include <dialog_pmic.h> diff --git a/drivers/power/power_fsl.c b/drivers/power/power_fsl.c index a10a14a7961..9dc930fb305 100644 --- a/drivers/power/power_fsl.c +++ b/drivers/power/power_fsl.c @@ -4,7 +4,7 @@ * Lukasz Majewski <[email protected]> */ -#include <config.h> +#include <common.h> #include <spi.h> #include <power/pmic.h> #include <fsl_pmic.h> diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c index a871fc41987..b67ac2f027b 100644 --- a/drivers/power/power_i2c.c +++ b/drivers/power/power_i2c.c @@ -10,6 +10,7 @@ * (C) Copyright 2019 NXP */ +#include <common.h> #include <log.h> #include <linux/types.h> #include <power/pmic.h> diff --git a/drivers/power/power_spi.c b/drivers/power/power_spi.c index 54427316ce4..1eaf9773ef8 100644 --- a/drivers/power/power_spi.c +++ b/drivers/power/power_spi.c @@ -9,6 +9,7 @@ * (C) Copyright 2008-2009 Freescale Semiconductor, Inc. */ +#include <common.h> #include <linux/types.h> #include <power/pmic.h> #include <spi.h> diff --git a/drivers/power/regulator/act8846.c b/drivers/power/regulator/act8846.c index d3e72da0d35..bdce97365dd 100644 --- a/drivers/power/regulator/act8846.c +++ b/drivers/power/regulator/act8846.c @@ -8,6 +8,7 @@ * zyw <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <power/act8846_pmic.h> diff --git a/drivers/power/regulator/anatop_regulator.c b/drivers/power/regulator/anatop_regulator.c index 824a753db16..096a1565d5a 100644 --- a/drivers/power/regulator/anatop_regulator.c +++ b/drivers/power/regulator/anatop_regulator.c @@ -4,6 +4,7 @@ * Copyright (C) 2021 Linaro */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/as3722_regulator.c b/drivers/power/regulator/as3722_regulator.c index 8d60965fe9a..ec0776b440b 100644 --- a/drivers/power/regulator/as3722_regulator.c +++ b/drivers/power/regulator/as3722_regulator.c @@ -6,6 +6,7 @@ * Placeholder regulator driver for as3722. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/bd71837.c b/drivers/power/regulator/bd71837.c index 59aec1a7313..913ed88d45f 100644 --- a/drivers/power/regulator/bd71837.c +++ b/drivers/power/regulator/bd71837.c @@ -5,6 +5,7 @@ * ROHM BD71837 regulator driver */ +#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/power/regulator/da9063.c b/drivers/power/regulator/da9063.c index 5d566b06a52..8df1abcf788 100644 --- a/drivers/power/regulator/da9063.c +++ b/drivers/power/regulator/da9063.c @@ -4,6 +4,7 @@ * Martin Fuzzey <[email protected]> */ +#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <power/da9063_pmic.h> diff --git a/drivers/power/regulator/fan53555.c b/drivers/power/regulator/fan53555.c index 5cba58f91ca..fa8d88f2e0d 100644 --- a/drivers/power/regulator/fan53555.c +++ b/drivers/power/regulator/fan53555.c @@ -3,6 +3,7 @@ * (C) 2018 Theobroma Systems Design und Consulting GmbH */ +#include <common.h> #include <bitfield.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/fixed.c b/drivers/power/regulator/fixed.c index 98c89bf2aff..590c288d657 100644 --- a/drivers/power/regulator/fixed.c +++ b/drivers/power/regulator/fixed.c @@ -5,6 +5,7 @@ * Przemyslaw Marczak <[email protected]> */ +#include <common.h> #include <clk.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/gpio-regulator.c b/drivers/power/regulator/gpio-regulator.c index 38b22535c3d..74137b7b876 100644 --- a/drivers/power/regulator/gpio-regulator.c +++ b/drivers/power/regulator/gpio-regulator.c @@ -4,6 +4,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/lp873x_regulator.c b/drivers/power/regulator/lp873x_regulator.c index c59d77118ad..c326f8efa47 100644 --- a/drivers/power/regulator/lp873x_regulator.c +++ b/drivers/power/regulator/lp873x_regulator.c @@ -6,6 +6,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/lp87565_regulator.c b/drivers/power/regulator/lp87565_regulator.c index d622d956815..6bbc831d2c8 100644 --- a/drivers/power/regulator/lp87565_regulator.c +++ b/drivers/power/regulator/lp87565_regulator.c @@ -6,6 +6,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/max77686.c b/drivers/power/regulator/max77686.c index 4e0ba12a0ef..3a208039934 100644 --- a/drivers/power/regulator/max77686.c +++ b/drivers/power/regulator/max77686.c @@ -6,6 +6,7 @@ * Przemyslaw Marczak <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/npcm8xx_regulator.c b/drivers/power/regulator/npcm8xx_regulator.c index 30d1b8945cb..fcd1058cdf5 100644 --- a/drivers/power/regulator/npcm8xx_regulator.c +++ b/drivers/power/regulator/npcm8xx_regulator.c @@ -3,6 +3,7 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <asm/io.h> #include <dm/device_compat.h> diff --git a/drivers/power/regulator/palmas_regulator.c b/drivers/power/regulator/palmas_regulator.c index 2286eac93fb..d615e947340 100644 --- a/drivers/power/regulator/palmas_regulator.c +++ b/drivers/power/regulator/palmas_regulator.c @@ -6,6 +6,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/pbias_regulator.c b/drivers/power/regulator/pbias_regulator.c index 8f599cab689..cf4e2858443 100644 --- a/drivers/power/regulator/pbias_regulator.c +++ b/drivers/power/regulator/pbias_regulator.c @@ -4,6 +4,7 @@ * Jean-Jacques Hiblot <[email protected]> */ +#include <common.h> #include <errno.h> #include <dm.h> #include <log.h> diff --git a/drivers/power/regulator/pca9450.c b/drivers/power/regulator/pca9450.c index 9faf1eab5f9..7ca20d1f7f8 100644 --- a/drivers/power/regulator/pca9450.c +++ b/drivers/power/regulator/pca9450.c @@ -7,6 +7,7 @@ * ROHM BD71837 regulator driver */ +#include <common.h> #include <dm.h> #include <log.h> #include <linux/bitops.h> diff --git a/drivers/power/regulator/pfuze100.c b/drivers/power/regulator/pfuze100.c index bf3a7019411..1d926689b3b 100644 --- a/drivers/power/regulator/pfuze100.c +++ b/drivers/power/regulator/pfuze100.c @@ -5,6 +5,7 @@ * Peng Fan <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/pwm_regulator.c b/drivers/power/regulator/pwm_regulator.c index ff738faadc5..ca59f3ae3e1 100644 --- a/drivers/power/regulator/pwm_regulator.c +++ b/drivers/power/regulator/pwm_regulator.c @@ -7,6 +7,7 @@ * Author: Lee Jones <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/regulator-uclass.c b/drivers/power/regulator/regulator-uclass.c index 66fd531da04..77d101f262e 100644 --- a/drivers/power/regulator/regulator-uclass.c +++ b/drivers/power/regulator/regulator-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_REGULATOR +#include <common.h> #include <errno.h> #include <dm.h> #include <log.h> diff --git a/drivers/power/regulator/regulator_common.c b/drivers/power/regulator/regulator_common.c index e3565d32a01..0116fa01bbf 100644 --- a/drivers/power/regulator/regulator_common.c +++ b/drivers/power/regulator/regulator_common.c @@ -4,6 +4,7 @@ * Sven Schwermer <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <asm/gpio.h> diff --git a/drivers/power/regulator/rk8xx.c b/drivers/power/regulator/rk8xx.c index bf3af781527..1bd4605d43a 100644 --- a/drivers/power/regulator/rk8xx.c +++ b/drivers/power/regulator/rk8xx.c @@ -8,6 +8,7 @@ * zyw <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/power/regulator/s2mps11_regulator.c b/drivers/power/regulator/s2mps11_regulator.c index 96de55065fe..987a1f9d863 100644 --- a/drivers/power/regulator/s2mps11_regulator.c +++ b/drivers/power/regulator/s2mps11_regulator.c @@ -4,6 +4,7 @@ * Jaehoon Chung <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/s5m8767.c b/drivers/power/regulator/s5m8767.c index 0dcf0990802..23575831f38 100644 --- a/drivers/power/regulator/s5m8767.c +++ b/drivers/power/regulator/s5m8767.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Google, Inc */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/sandbox.c b/drivers/power/regulator/sandbox.c index 80a68f5a30d..71ef0c5441a 100644 --- a/drivers/power/regulator/sandbox.c +++ b/drivers/power/regulator/sandbox.c @@ -4,6 +4,7 @@ * Przemyslaw Marczak <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/scmi_regulator.c b/drivers/power/regulator/scmi_regulator.c index 99f6506f162..9c72c35d039 100644 --- a/drivers/power/regulator/scmi_regulator.c +++ b/drivers/power/regulator/scmi_regulator.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_REGULATOR +#include <common.h> #include <dm.h> #include <errno.h> #include <scmi_agent.h> diff --git a/drivers/power/regulator/stm32-vrefbuf.c b/drivers/power/regulator/stm32-vrefbuf.c index dd8a33f15be..c37998a4bac 100644 --- a/drivers/power/regulator/stm32-vrefbuf.c +++ b/drivers/power/regulator/stm32-vrefbuf.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_REGULATOR +#include <common.h> #include <clk.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/power/regulator/stpmic1.c b/drivers/power/regulator/stpmic1.c index b5ffa1cd589..4839d834316 100644 --- a/drivers/power/regulator/stpmic1.c +++ b/drivers/power/regulator/stpmic1.c @@ -4,6 +4,7 @@ * Author: Christophe Kerello <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/power/regulator/tps62360_regulator.c b/drivers/power/regulator/tps62360_regulator.c index 9acc6b90549..7014b1982d0 100644 --- a/drivers/power/regulator/tps62360_regulator.c +++ b/drivers/power/regulator/tps62360_regulator.c @@ -4,6 +4,7 @@ * Tero Kristo <[email protected]> */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <dm/device_compat.h> diff --git a/drivers/power/regulator/tps65090_regulator.c b/drivers/power/regulator/tps65090_regulator.c index 2d414de1490..fa15e61a10e 100644 --- a/drivers/power/regulator/tps65090_regulator.c +++ b/drivers/power/regulator/tps65090_regulator.c @@ -3,10 +3,10 @@ * Copyright (c) 2015 Google, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> -#include <time.h> #include <linux/delay.h> #include <power/pmic.h> #include <power/regulator.h> diff --git a/drivers/power/regulator/tps65219_regulator.c b/drivers/power/regulator/tps65219_regulator.c index b7124fed024..f87d07e61fb 100644 --- a/drivers/power/regulator/tps65219_regulator.c +++ b/drivers/power/regulator/tps65219_regulator.c @@ -5,6 +5,7 @@ * */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/regulator/tps65910_regulator.c b/drivers/power/regulator/tps65910_regulator.c index 562fd7db190..a4b9d449274 100644 --- a/drivers/power/regulator/tps65910_regulator.c +++ b/drivers/power/regulator/tps65910_regulator.c @@ -3,6 +3,7 @@ * Copyright (C) EETS GmbH, 2017, Felix Brack <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <linux/printk.h> diff --git a/drivers/power/regulator/tps65941_regulator.c b/drivers/power/regulator/tps65941_regulator.c index bc4d153fd84..5809a53fa21 100644 --- a/drivers/power/regulator/tps65941_regulator.c +++ b/drivers/power/regulator/tps65941_regulator.c @@ -6,6 +6,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <errno.h> #include <dm.h> diff --git a/drivers/power/sy8106a.c b/drivers/power/sy8106a.c index fb6028de71a..45f47939869 100644 --- a/drivers/power/sy8106a.c +++ b/drivers/power/sy8106a.c @@ -3,6 +3,7 @@ * (C) Copyright 2016 * Jelle van der Waa <[email protected]> */ +#include <common.h> #include <i2c.h> #include <sy8106a.h> diff --git a/drivers/power/tps6586x.c b/drivers/power/tps6586x.c index 4034a9b49dd..37f1c459a63 100644 --- a/drivers/power/tps6586x.c +++ b/drivers/power/tps6586x.c @@ -4,12 +4,12 @@ * (C) Copyright 2010,2011 NVIDIA Corporation <www.nvidia.com> */ +#include <common.h> #include <log.h> #include <tps6586x.h> #include <asm/io.h> #include <i2c.h> #include <linux/delay.h> -#include <linux/errno.h> static struct udevice *tps6586x_dev; diff --git a/drivers/pwm/cros_ec_pwm.c b/drivers/pwm/cros_ec_pwm.c index b89f00f151b..4a39c319aa2 100644 --- a/drivers/pwm/cros_ec_pwm.c +++ b/drivers/pwm/cros_ec_pwm.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <cros_ec.h> #include <dm.h> #include <errno.h> diff --git a/drivers/pwm/exynos_pwm.c b/drivers/pwm/exynos_pwm.c index 5ded60978f4..609025d680d 100644 --- a/drivers/pwm/exynos_pwm.c +++ b/drivers/pwm/exynos_pwm.c @@ -3,6 +3,7 @@ * Copyright 2016 Google Inc. */ +#include <common.h> #include <dm.h> #include <log.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-aspeed.c b/drivers/pwm/pwm-aspeed.c index ebc9d9a8975..b03472d2345 100644 --- a/drivers/pwm/pwm-aspeed.c +++ b/drivers/pwm/pwm-aspeed.c @@ -38,6 +38,7 @@ * This improvement can disable/enable through PWM_ASPEED_CTRL_DUTY_SYNC_DISABLE. */ +#include <common.h> #include <div64.h> #include <dm.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-at91.c b/drivers/pwm/pwm-at91.c index ffc37180eb4..3ff1fb6d5c3 100644 --- a/drivers/pwm/pwm-at91.c +++ b/drivers/pwm/pwm-at91.c @@ -9,6 +9,7 @@ * Based on drivers/pwm/pwm-atmel.c from Linux. */ #include <clk.h> +#include <common.h> #include <div64.h> #include <dm.h> #include <linux/bitops.h> diff --git a/drivers/pwm/pwm-cadence-ttc.c b/drivers/pwm/pwm-cadence-ttc.c index 767628833bc..d9f6736a7ae 100644 --- a/drivers/pwm/pwm-cadence-ttc.c +++ b/drivers/pwm/pwm-cadence-ttc.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PWM #include <clk.h> +#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/pwm-imx.c b/drivers/pwm/pwm-imx.c index 320ea7c4239..8fbb40cc276 100644 --- a/drivers/pwm/pwm-imx.c +++ b/drivers/pwm/pwm-imx.c @@ -6,6 +6,7 @@ * Basic support for the pwm module on imx6. */ +#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c index c2597d8b669..60959720dac 100644 --- a/drivers/pwm/pwm-meson.c +++ b/drivers/pwm/pwm-meson.c @@ -16,6 +16,7 @@ * current period to complete first). */ +#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-mtk.c b/drivers/pwm/pwm-mtk.c index 9776a41ff48..ad845ed9662 100644 --- a/drivers/pwm/pwm-mtk.c +++ b/drivers/pwm/pwm-mtk.c @@ -5,6 +5,7 @@ * Author: Sam Shih <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <pwm.h> diff --git a/drivers/pwm/pwm-sifive.c b/drivers/pwm/pwm-sifive.c index e9777c71f5e..b9813a3b6bb 100644 --- a/drivers/pwm/pwm-sifive.c +++ b/drivers/pwm/pwm-sifive.c @@ -12,6 +12,7 @@ * - The hardware generates only inverted output. */ +#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-ti-ehrpwm.c b/drivers/pwm/pwm-ti-ehrpwm.c index 563109ef0f8..fefa3c65ec4 100644 --- a/drivers/pwm/pwm-ti-ehrpwm.c +++ b/drivers/pwm/pwm-ti-ehrpwm.c @@ -7,6 +7,7 @@ * Based on Linux kernel drivers/pwm/pwm-tiehrpwm.c */ +#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/pwm-uclass.c b/drivers/pwm/pwm-uclass.c index 6543db1d623..648d0757ba6 100644 --- a/drivers/pwm/pwm-uclass.c +++ b/drivers/pwm/pwm-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PWM +#include <common.h> #include <dm.h> #include <pwm.h> diff --git a/drivers/pwm/rk_pwm.c b/drivers/pwm/rk_pwm.c index 0a64eb01dc2..1858d597338 100644 --- a/drivers/pwm/rk_pwm.c +++ b/drivers/pwm/rk_pwm.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/pwm/sandbox_pwm.c b/drivers/pwm/sandbox_pwm.c index 0d798609dda..4df15f0a2e8 100644 --- a/drivers/pwm/sandbox_pwm.c +++ b/drivers/pwm/sandbox_pwm.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <pwm.h> diff --git a/drivers/pwm/sunxi_pwm.c b/drivers/pwm/sunxi_pwm.c index 2140a05b679..bb1bec05ec3 100644 --- a/drivers/pwm/sunxi_pwm.c +++ b/drivers/pwm/sunxi_pwm.c @@ -3,6 +3,7 @@ * Copyright (c) 2017-2018 Vasily Khoruzhick <[email protected]> */ +#include <common.h> #include <div64.h> #include <dm.h> #include <log.h> diff --git a/drivers/pwm/tegra_pwm.c b/drivers/pwm/tegra_pwm.c index e3f1417f2ad..87034706060 100644 --- a/drivers/pwm/tegra_pwm.c +++ b/drivers/pwm/tegra_pwm.c @@ -3,6 +3,7 @@ * Copyright 2016 Google Inc. */ +#include <common.h> #include <dm.h> #include <log.h> #include <pwm.h> diff --git a/drivers/ram/aspeed/sdram_ast2500.c b/drivers/ram/aspeed/sdram_ast2500.c index 0d6ab79f96f..dc466a88e71 100644 --- a/drivers/ram/aspeed/sdram_ast2500.c +++ b/drivers/ram/aspeed/sdram_ast2500.c @@ -5,7 +5,7 @@ * Copyright 2016 Google, Inc */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/aspeed/sdram_ast2600.c b/drivers/ram/aspeed/sdram_ast2600.c index 55e80fba3dc..d463933363e 100644 --- a/drivers/ram/aspeed/sdram_ast2600.c +++ b/drivers/ram/aspeed/sdram_ast2600.c @@ -2,7 +2,7 @@ /* * Copyright (C) ASPEED Technology Inc. */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/bmips_ram.c b/drivers/ram/bmips_ram.c index 760bebdbba0..98045248ecf 100644 --- a/drivers/ram/bmips_ram.c +++ b/drivers/ram/bmips_ram.c @@ -7,6 +7,7 @@ * Copyright (C) 2009 Florian Fainelli <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/ram/cadence/ddr_ctrl.c b/drivers/ram/cadence/ddr_ctrl.c index 0fa60e766a7..3e5959a84a3 100644 --- a/drivers/ram/cadence/ddr_ctrl.c +++ b/drivers/ram/cadence/ddr_ctrl.c @@ -24,6 +24,7 @@ * bandwidth allocated to each AXI slave can be set. */ +#include <common.h> #include <linux/delay.h> #include <linux/sizes.h> #include <asm/io.h> diff --git a/drivers/ram/imxrt_sdram.c b/drivers/ram/imxrt_sdram.c index 3df106c9b79..6a15242c20c 100644 --- a/drivers/ram/imxrt_sdram.c +++ b/drivers/ram/imxrt_sdram.c @@ -4,6 +4,7 @@ * Author(s): Giulio Benetti <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/ram/k3-am654-ddrss.c b/drivers/ram/k3-am654-ddrss.c index 21ff9d761e1..cff8ffc8929 100644 --- a/drivers/ram/k3-am654-ddrss.c +++ b/drivers/ram/k3-am654-ddrss.c @@ -6,6 +6,7 @@ * Lokesh Vutla <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/ram/k3-ddrss/k3-ddrss.c b/drivers/ram/k3-ddrss/k3-ddrss.c index 525b6d5b79f..a5c9b82cf1d 100644 --- a/drivers/ram/k3-ddrss/k3-ddrss.c +++ b/drivers/ram/k3-ddrss/k3-ddrss.c @@ -5,6 +5,7 @@ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ */ +#include <common.h> #include <config.h> #include <clk.h> #include <div64.h> diff --git a/drivers/ram/mediatek/ddr3-mt7629.c b/drivers/ram/mediatek/ddr3-mt7629.c index c27c4593b9d..f65fcf179cf 100644 --- a/drivers/ram/mediatek/ddr3-mt7629.c +++ b/drivers/ram/mediatek/ddr3-mt7629.c @@ -8,7 +8,7 @@ */ #include <clk.h> -#include <config.h> +#include <common.h> #include <dm.h> #include <ram.h> #include <asm/io.h> diff --git a/drivers/ram/mpc83xx_sdram.c b/drivers/ram/mpc83xx_sdram.c index 28a663289a2..11676d4fae7 100644 --- a/drivers/ram/mpc83xx_sdram.c +++ b/drivers/ram/mpc83xx_sdram.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <init.h> #include <log.h> diff --git a/drivers/ram/ram-uclass.c b/drivers/ram/ram-uclass.c index a33d583cc44..4e21240fd4c 100644 --- a/drivers/ram/ram-uclass.c +++ b/drivers/ram/ram-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_RAM +#include <common.h> #include <ram.h> #include <dm.h> #include <errno.h> diff --git a/drivers/ram/renesas/rzn1/ddr_async.c b/drivers/ram/renesas/rzn1/ddr_async.c index 4d470aae191..7a81497bc92 100644 --- a/drivers/ram/renesas/rzn1/ddr_async.c +++ b/drivers/ram/renesas/rzn1/ddr_async.c @@ -7,6 +7,7 @@ * * Copyright (C) 2015 Renesas Electronics Europe Ltd */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/ram/rockchip/dmc-rk3368.c b/drivers/ram/rockchip/dmc-rk3368.c index 42114a5aa91..5279bf0a154 100644 --- a/drivers/ram/rockchip/dmc-rk3368.c +++ b/drivers/ram/rockchip/dmc-rk3368.c @@ -3,7 +3,7 @@ * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <hang.h> diff --git a/drivers/ram/rockchip/sdram_common.c b/drivers/ram/rockchip/sdram_common.c index b7a8fce607c..60fc90d0a5c 100644 --- a/drivers/ram/rockchip/sdram_common.c +++ b/drivers/ram/rockchip/sdram_common.c @@ -3,7 +3,7 @@ * (C) Copyright 2018 Rockchip Electronics Co., Ltd. */ -#include <config.h> +#include <common.h> #include <debug_uart.h> #include <ram.h> #include <asm/io.h> diff --git a/drivers/ram/rockchip/sdram_pctl_px30.c b/drivers/ram/rockchip/sdram_pctl_px30.c index 3ec98af536e..e5c80fb83b3 100644 --- a/drivers/ram/rockchip/sdram_pctl_px30.c +++ b/drivers/ram/rockchip/sdram_pctl_px30.c @@ -3,6 +3,7 @@ * (C) Copyright 2018 Rockchip Electronics Co., Ltd. */ +#include <common.h> #include <ram.h> #include <asm/io.h> #include <asm/arch-rockchip/sdram.h> diff --git a/drivers/ram/rockchip/sdram_phy_px30.c b/drivers/ram/rockchip/sdram_phy_px30.c index 5416eef3878..f7f6de1ba98 100644 --- a/drivers/ram/rockchip/sdram_phy_px30.c +++ b/drivers/ram/rockchip/sdram_phy_px30.c @@ -3,6 +3,7 @@ * (C) Copyright 2018 Rockchip Electronics Co., Ltd. */ +#include <common.h> #include <ram.h> #include <asm/io.h> #include <asm/arch-rockchip/sdram.h> diff --git a/drivers/ram/rockchip/sdram_px30.c b/drivers/ram/rockchip/sdram_px30.c index 37e62120504..21498e89570 100644 --- a/drivers/ram/rockchip/sdram_px30.c +++ b/drivers/ram/rockchip/sdram_px30.c @@ -3,7 +3,7 @@ * (C) Copyright 2018 Rockchip Electronics Co., Ltd. */ -#include <config.h> +#include <common.h> #include <debug_uart.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/rockchip/sdram_rk3066.c b/drivers/ram/rockchip/sdram_rk3066.c index a280e2d9fa1..562cf544c90 100644 --- a/drivers/ram/rockchip/sdram_rk3066.c +++ b/drivers/ram/rockchip/sdram_rk3066.c @@ -6,7 +6,7 @@ * Adapted from the very similar rk3188 ddr init. */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3128.c b/drivers/ram/rockchip/sdram_rk3128.c index 66611f80b2d..ded65393806 100644 --- a/drivers/ram/rockchip/sdram_rk3128.c +++ b/drivers/ram/rockchip/sdram_rk3128.c @@ -3,7 +3,7 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd. */ -#include <config.h> +#include <common.h> #include <dm.h> #include <log.h> #include <ram.h> diff --git a/drivers/ram/rockchip/sdram_rk3188.c b/drivers/ram/rockchip/sdram_rk3188.c index 618bce5c9f4..e1b28c6e593 100644 --- a/drivers/ram/rockchip/sdram_rk3188.c +++ b/drivers/ram/rockchip/sdram_rk3188.c @@ -6,7 +6,7 @@ * Adapted from the very similar rk3288 ddr init. */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk322x.c b/drivers/ram/rockchip/sdram_rk322x.c index a48a5091184..5fc23c11193 100644 --- a/drivers/ram/rockchip/sdram_rk322x.c +++ b/drivers/ram/rockchip/sdram_rk322x.c @@ -2,7 +2,7 @@ /* * (C) Copyright 2017 Rockchip Electronics Co., Ltd */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3288.c b/drivers/ram/rockchip/sdram_rk3288.c index c9f61e933e9..242d564a7d2 100644 --- a/drivers/ram/rockchip/sdram_rk3288.c +++ b/drivers/ram/rockchip/sdram_rk3288.c @@ -6,7 +6,7 @@ * Adapted from coreboot. */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3308.c b/drivers/ram/rockchip/sdram_rk3308.c index 8071997f8d8..264366291cf 100644 --- a/drivers/ram/rockchip/sdram_rk3308.c +++ b/drivers/ram/rockchip/sdram_rk3308.c @@ -3,7 +3,7 @@ * (C) Copyright 2019 Rockchip Electronics Co., Ltd. */ -#include <config.h> +#include <common.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rk3328.c b/drivers/ram/rockchip/sdram_rk3328.c index 99690d67a50..b5ca8ca436f 100644 --- a/drivers/ram/rockchip/sdram_rk3328.c +++ b/drivers/ram/rockchip/sdram_rk3328.c @@ -2,7 +2,7 @@ /* * (C) Copyright 2017 Rockchip Electronics Co., Ltd. */ -#include <config.h> +#include <common.h> #include <clk.h> #include <debug_uart.h> #include <dm.h> diff --git a/drivers/ram/rockchip/sdram_rk3399.c b/drivers/ram/rockchip/sdram_rk3399.c index ef9a1824b2b..02cc4a38cf0 100644 --- a/drivers/ram/rockchip/sdram_rk3399.c +++ b/drivers/ram/rockchip/sdram_rk3399.c @@ -5,7 +5,7 @@ * Adapted from coreboot. */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/ram/rockchip/sdram_rk3568.c b/drivers/ram/rockchip/sdram_rk3568.c index a252d5c7010..f661615c1b9 100644 --- a/drivers/ram/rockchip/sdram_rk3568.c +++ b/drivers/ram/rockchip/sdram_rk3568.c @@ -3,7 +3,7 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd. */ -#include <config.h> +#include <common.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rk3588.c b/drivers/ram/rockchip/sdram_rk3588.c index a144b432d76..cf56e2a9412 100644 --- a/drivers/ram/rockchip/sdram_rk3588.c +++ b/drivers/ram/rockchip/sdram_rk3588.c @@ -3,7 +3,7 @@ * (C) Copyright 2021 Rockchip Electronics Co., Ltd. */ -#include <config.h> +#include <common.h> #include <dm.h> #include <ram.h> #include <syscon.h> diff --git a/drivers/ram/rockchip/sdram_rv1126.c b/drivers/ram/rockchip/sdram_rv1126.c index 4fbb088a8d9..849e15a9193 100644 --- a/drivers/ram/rockchip/sdram_rv1126.c +++ b/drivers/ram/rockchip/sdram_rv1126.c @@ -4,7 +4,7 @@ * Copyright (c) 2022 Edgeble AI Technologies Pvt. Ltd. */ -#include <config.h> +#include <common.h> #include <debug_uart.h> #include <dm.h> #include <ram.h> diff --git a/drivers/ram/sandbox_ram.c b/drivers/ram/sandbox_ram.c index 2097da56532..910dce623e9 100644 --- a/drivers/ram/sandbox_ram.c +++ b/drivers/ram/sandbox_ram.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <ram.h> diff --git a/drivers/ram/sifive/sifive_ddr.c b/drivers/ram/sifive/sifive_ddr.c index bd2f438d727..4bd69a62be2 100644 --- a/drivers/ram/sifive/sifive_ddr.c +++ b/drivers/ram/sifive/sifive_ddr.c @@ -6,6 +6,7 @@ * Pragnesh Patel <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <init.h> diff --git a/drivers/ram/starfive/ddrcsr_boot.c b/drivers/ram/starfive/ddrcsr_boot.c index 6764b3ed5cc..f2dd55f74a0 100644 --- a/drivers/ram/starfive/ddrcsr_boot.c +++ b/drivers/ram/starfive/ddrcsr_boot.c @@ -4,6 +4,7 @@ * Author: Yanhong Wang<[email protected]> */ +#include <common.h> #include <asm/io.h> #include <asm/arch/regs.h> #include <linux/delay.h> diff --git a/drivers/ram/starfive/ddrphy_start.c b/drivers/ram/starfive/ddrphy_start.c index efe3f8a181a..479b6ef1041 100644 --- a/drivers/ram/starfive/ddrphy_start.c +++ b/drivers/ram/starfive/ddrphy_start.c @@ -4,6 +4,7 @@ * Author: Yanhong Wang<[email protected]> */ +#include <common.h> #include <asm/io.h> #include "starfive_ddr.h" diff --git a/drivers/ram/starfive/ddrphy_train.c b/drivers/ram/starfive/ddrphy_train.c index 0aff1e8727e..0740f49be5b 100644 --- a/drivers/ram/starfive/ddrphy_train.c +++ b/drivers/ram/starfive/ddrphy_train.c @@ -4,7 +4,7 @@ * Author: Yanhong Wang<[email protected]> */ -#include <linux/kernel.h> +#include <common.h> #include <asm/io.h> static const u32 ddr_train_data[] = { diff --git a/drivers/ram/starfive/ddrphy_utils.c b/drivers/ram/starfive/ddrphy_utils.c index d6dd6ee7a85..1c9fe0a7846 100644 --- a/drivers/ram/starfive/ddrphy_utils.c +++ b/drivers/ram/starfive/ddrphy_utils.c @@ -4,7 +4,7 @@ * Author: Yanhong Wang<[email protected]> */ -#include <linux/kernel.h> +#include <common.h> #include <asm/io.h> static const u32 ddr_phy_data[] = { diff --git a/drivers/ram/starfive/starfive_ddr.c b/drivers/ram/starfive/starfive_ddr.c index b31ed3bcf61..a0a3d6b33dc 100644 --- a/drivers/ram/starfive/starfive_ddr.c +++ b/drivers/ram/starfive/starfive_ddr.c @@ -4,6 +4,7 @@ * Author: Yanhong Wang<[email protected]> */ +#include <common.h> #include <asm/arch/regs.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/ram/starfive/starfive_ddr.h b/drivers/ram/starfive/starfive_ddr.h index c29d26b510c..d0ec1c1da80 100644 --- a/drivers/ram/starfive/starfive_ddr.h +++ b/drivers/ram/starfive/starfive_ddr.h @@ -7,8 +7,6 @@ #ifndef __STARFIVE_DDR_H__ #define __STARFIVE_DDR_H__ -#include <linux/kernel.h> - #define SEC_CTRL_ADDR 0x1000 #define PHY_BASE_ADDR 0x800 #define PHY_AC_BASE_ADDR 0x1000 diff --git a/drivers/ram/stm32_sdram.c b/drivers/ram/stm32_sdram.c index 10dc05dd640..891f4137813 100644 --- a/drivers/ram/stm32_sdram.c +++ b/drivers/ram/stm32_sdram.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_RAM +#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_ddr.c b/drivers/ram/stm32mp1/stm32mp1_ddr.c index d7834b32299..8ee4e24f39d 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ddr.c +++ b/drivers/ram/stm32mp1/stm32mp1_ddr.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RAM +#include <common.h> #include <clk.h> #include <log.h> #include <ram.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_interactive.c b/drivers/ram/stm32mp1/stm32mp1_interactive.c index 6340afbb870..2c19847c663 100644 --- a/drivers/ram/stm32mp1/stm32mp1_interactive.c +++ b/drivers/ram/stm32mp1/stm32mp1_interactive.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RAM +#include <common.h> #include <command.h> #include <console.h> #include <cli.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c index debc458c0e2..a82b1db7592 100644 --- a/drivers/ram/stm32mp1/stm32mp1_ram.c +++ b/drivers/ram/stm32mp1/stm32mp1_ram.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RAM +#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/ram/stm32mp1/stm32mp1_tests.c b/drivers/ram/stm32mp1/stm32mp1_tests.c index 6108faa7073..c5f33544144 100644 --- a/drivers/ram/stm32mp1/stm32mp1_tests.c +++ b/drivers/ram/stm32mp1/stm32mp1_tests.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RAM +#include <common.h> #include <console.h> #include <init.h> #include <log.h> diff --git a/drivers/ram/sunxi/dram_sun20i_d1.c b/drivers/ram/sunxi/dram_sun20i_d1.c index a1794032f3b..38379281d73 100644 --- a/drivers/ram/sunxi/dram_sun20i_d1.c +++ b/drivers/ram/sunxi/dram_sun20i_d1.c @@ -13,7 +13,7 @@ */ #include <asm/io.h> -#include <config.h> +#include <common.h> #ifdef CONFIG_RAM #include <dm.h> #include <ram.h> diff --git a/drivers/reboot-mode/reboot-mode-gpio.c b/drivers/reboot-mode/reboot-mode-gpio.c index 22ee40c3433..305174736ed 100644 --- a/drivers/reboot-mode/reboot-mode-gpio.c +++ b/drivers/reboot-mode/reboot-mode-gpio.c @@ -3,6 +3,7 @@ * Copyright (c), Vaisala Oyj */ +#include <common.h> #include <asm/gpio.h> #include <dm.h> #include <dm/devres.h> diff --git a/drivers/reboot-mode/reboot-mode-nvmem.c b/drivers/reboot-mode/reboot-mode-nvmem.c index b9af242520a..da41ca41d9a 100644 --- a/drivers/reboot-mode/reboot-mode-nvmem.c +++ b/drivers/reboot-mode/reboot-mode-nvmem.c @@ -3,6 +3,7 @@ * Copyright (C) 2022 Sean Anderson <[email protected]> */ +#include <common.h> #include <dm.h> #include <nvmem.h> #include <reboot-mode/reboot-mode.h> diff --git a/drivers/reboot-mode/reboot-mode-rtc.c b/drivers/reboot-mode/reboot-mode-rtc.c index 4f4ad63febc..972d0cdbcb5 100644 --- a/drivers/reboot-mode/reboot-mode-rtc.c +++ b/drivers/reboot-mode/reboot-mode-rtc.c @@ -3,6 +3,7 @@ * Copyright (c), Vaisala Oyj */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <reboot-mode/reboot-mode-rtc.h> diff --git a/drivers/reboot-mode/reboot-mode-uclass.c b/drivers/reboot-mode/reboot-mode-uclass.c index 7cbe02eb4ed..2b38aa26b85 100644 --- a/drivers/reboot-mode/reboot-mode-uclass.c +++ b/drivers/reboot-mode/reboot-mode-uclass.c @@ -3,6 +3,7 @@ * Copyright (c), Vaisala Oyj */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/remoteproc/ipu_rproc.c b/drivers/remoteproc/ipu_rproc.c index 2ca78b550a7..996e658e871 100644 --- a/drivers/remoteproc/ipu_rproc.c +++ b/drivers/remoteproc/ipu_rproc.c @@ -8,6 +8,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <hang.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/remoteproc/k3_system_controller.c b/drivers/remoteproc/k3_system_controller.c index 71238a6058a..071de40fbd6 100644 --- a/drivers/remoteproc/k3_system_controller.c +++ b/drivers/remoteproc/k3_system_controller.c @@ -6,6 +6,7 @@ * Lokesh Vutla <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <remoteproc.h> diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c index 9aec138637b..6ec55e27d9d 100644 --- a/drivers/remoteproc/pru_rproc.c +++ b/drivers/remoteproc/pru_rproc.c @@ -6,6 +6,7 @@ * Keerthy <[email protected]> */ +#include <common.h> #include <dm.h> #include <elf.h> #include <dm/of_access.h> @@ -398,12 +399,10 @@ static void pru_set_id(struct pru_privdata *priv, struct udevice *dev) { u32 mask2 = 0x38000; - if (device_is_compatible(dev, "ti,am654-rtu") || - device_is_compatible(dev, "ti,am642-rtu")) + if (device_is_compatible(dev, "ti,am654-rtu")) mask2 = 0x6000; - if (device_is_compatible(dev, "ti,am654-tx-pru") || - device_is_compatible(dev, "ti,am642-tx-pru")) + if (device_is_compatible(dev, "ti,am654-tx-pru")) mask2 = 0xc000; if ((priv->pru_iram & mask2) == mask2) @@ -449,9 +448,6 @@ static const struct udevice_id pru_ids[] = { { .compatible = "ti,am654-pru"}, { .compatible = "ti,am654-rtu"}, { .compatible = "ti,am654-tx-pru" }, - { .compatible = "ti,am642-pru"}, - { .compatible = "ti,am642-rtu"}, - { .compatible = "ti,am642-tx-pru" }, {} }; diff --git a/drivers/remoteproc/rproc-elf-loader.c b/drivers/remoteproc/rproc-elf-loader.c index ab1836b3f07..5e070e5076e 100644 --- a/drivers/remoteproc/rproc-elf-loader.c +++ b/drivers/remoteproc/rproc-elf-loader.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2019, STMicroelectronics - All Rights Reserved */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <elf.h> diff --git a/drivers/remoteproc/rproc-uclass.c b/drivers/remoteproc/rproc-uclass.c index 3ba2b40dca3..aa7f7586a81 100644 --- a/drivers/remoteproc/rproc-uclass.c +++ b/drivers/remoteproc/rproc-uclass.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_REMOTEPROC #define pr_fmt(fmt) "%s: " fmt, __func__ +#include <common.h> #include <elf.h> #include <errno.h> #include <log.h> diff --git a/drivers/remoteproc/sandbox_testproc.c b/drivers/remoteproc/sandbox_testproc.c index ad575a7c10f..f76f68ebeb4 100644 --- a/drivers/remoteproc/sandbox_testproc.c +++ b/drivers/remoteproc/sandbox_testproc.c @@ -4,6 +4,7 @@ * Texas Instruments Incorporated - https://www.ti.com/ */ #define pr_fmt(fmt) "%s: " fmt, __func__ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/remoteproc/stm32_copro.c b/drivers/remoteproc/stm32_copro.c index f45da9a68ac..3e322c4d719 100644 --- a/drivers/remoteproc/stm32_copro.c +++ b/drivers/remoteproc/stm32_copro.c @@ -4,6 +4,7 @@ */ #define LOG_CATEGORY UCLASS_REMOTEPROC +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/remoteproc/ti_k3_arm64_rproc.c b/drivers/remoteproc/ti_k3_arm64_rproc.c index d3eb957b2e4..767493c1383 100644 --- a/drivers/remoteproc/ti_k3_arm64_rproc.c +++ b/drivers/remoteproc/ti_k3_arm64_rproc.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include <remoteproc.h> #include <errno.h> diff --git a/drivers/remoteproc/ti_k3_dsp_rproc.c b/drivers/remoteproc/ti_k3_dsp_rproc.c index 076b6f2acdb..ed13729c33a 100644 --- a/drivers/remoteproc/ti_k3_dsp_rproc.c +++ b/drivers/remoteproc/ti_k3_dsp_rproc.c @@ -7,6 +7,7 @@ * Suman Anna <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/remoteproc/ti_k3_r5f_rproc.c b/drivers/remoteproc/ti_k3_r5f_rproc.c index 74bf0433e12..35835b2d61c 100644 --- a/drivers/remoteproc/ti_k3_r5f_rproc.c +++ b/drivers/remoteproc/ti_k3_r5f_rproc.c @@ -7,6 +7,7 @@ * Suman Anna <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/remoteproc/ti_power_proc.c b/drivers/remoteproc/ti_power_proc.c index cf150af4ef9..f55df4a9119 100644 --- a/drivers/remoteproc/ti_power_proc.c +++ b/drivers/remoteproc/ti_power_proc.c @@ -4,6 +4,7 @@ * Texas Instruments Incorporated - https://www.ti.com/ */ #define pr_fmt(fmt) "%s: " fmt, __func__ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/reset/reset-ast2500.c b/drivers/reset/reset-ast2500.c index 0ed5396b3e9..d9cecf3a72e 100644 --- a/drivers/reset/reset-ast2500.c +++ b/drivers/reset/reset-ast2500.c @@ -4,6 +4,7 @@ * Copyright 2020 ASPEED Technology Inc. */ +#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/reset/reset-ast2600.c b/drivers/reset/reset-ast2600.c index ec7b9b6625d..1732a450efc 100644 --- a/drivers/reset/reset-ast2600.c +++ b/drivers/reset/reset-ast2600.c @@ -3,6 +3,7 @@ * Copyright 2020 ASPEED Technology Inc. */ +#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/reset/reset-bcm6345.c b/drivers/reset/reset-bcm6345.c index 6f140574216..5383f59ca37 100644 --- a/drivers/reset/reset-bcm6345.c +++ b/drivers/reset/reset-bcm6345.c @@ -6,6 +6,7 @@ * Copyright (C) 2012 Jonas Gorski <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-dra7.c b/drivers/reset/reset-dra7.c index 2f0ec4c042f..05101a94f9b 100644 --- a/drivers/reset/reset-dra7.c +++ b/drivers/reset/reset-dra7.c @@ -7,6 +7,7 @@ */ #include <asm/io.h> +#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <dm/device_compat.h> diff --git a/drivers/reset/reset-hisilicon.c b/drivers/reset/reset-hisilicon.c index aca54cd6701..85e02b296b0 100644 --- a/drivers/reset/reset-hisilicon.c +++ b/drivers/reset/reset-hisilicon.c @@ -6,6 +6,7 @@ #include <log.h> #include <malloc.h> #include <asm/io.h> +#include <common.h> #include <dm.h> #include <dt-bindings/reset/ti-syscon.h> #include <reset-uclass.h> diff --git a/drivers/reset/reset-hsdk.c b/drivers/reset/reset-hsdk.c index 747e73b17fc..74b1173e887 100644 --- a/drivers/reset/reset-hsdk.c +++ b/drivers/reset/reset-hsdk.c @@ -8,6 +8,7 @@ #include <log.h> #include <asm/io.h> +#include <common.h> #include <dm.h> #include <linux/bitops.h> #include <linux/iopoll.h> diff --git a/drivers/reset/reset-imx7.c b/drivers/reset/reset-imx7.c index 65a352b71fd..a3b3132f2fa 100644 --- a/drivers/reset/reset-imx7.c +++ b/drivers/reset/reset-imx7.c @@ -6,6 +6,7 @@ #include <log.h> #include <malloc.h> #include <asm/io.h> +#include <common.h> #include <dm.h> #include <dt-bindings/reset/imx7-reset.h> #include <dt-bindings/reset/imx8mp-reset.h> diff --git a/drivers/reset/reset-jh7110.c b/drivers/reset/reset-jh7110.c index adf722d5871..d6bdf6bb00c 100644 --- a/drivers/reset/reset-jh7110.c +++ b/drivers/reset/reset-jh7110.c @@ -5,6 +5,7 @@ * */ +#include <common.h> #include <dm.h> #include <dm/ofnode.h> #include <dt-bindings/reset/starfive,jh7110-crg.h> diff --git a/drivers/reset/reset-mediatek.c b/drivers/reset/reset-mediatek.c index 4b3afab92ea..97ed221f739 100644 --- a/drivers/reset/reset-mediatek.c +++ b/drivers/reset/reset-mediatek.c @@ -6,6 +6,7 @@ * Weijie Gao <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-meson.c b/drivers/reset/reset-meson.c index 6337cdaaffa..9d0c8b354f4 100644 --- a/drivers/reset/reset-meson.c +++ b/drivers/reset/reset-meson.c @@ -6,6 +6,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-mtmips.c b/drivers/reset/reset-mtmips.c index 2db6766280f..7bb8469823c 100644 --- a/drivers/reset/reset-mtmips.c +++ b/drivers/reset/reset-mtmips.c @@ -5,6 +5,7 @@ * Author: Weijie Gao <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-raspberrypi.c b/drivers/reset/reset-raspberrypi.c index 1792f0813f7..804e32b8dd1 100644 --- a/drivers/reset/reset-raspberrypi.c +++ b/drivers/reset/reset-raspberrypi.c @@ -4,6 +4,7 @@ * * Copyright (C) 2020 Nicolas Saenz Julienne <[email protected]> */ +#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <asm/arch/msg.h> diff --git a/drivers/reset/reset-rockchip.c b/drivers/reset/reset-rockchip.c index 876eb7dddaa..6cabaa10a35 100644 --- a/drivers/reset/reset-rockchip.c +++ b/drivers/reset/reset-rockchip.c @@ -3,6 +3,7 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-scmi.c b/drivers/reset/reset-scmi.c index 6dc1fcb3365..b76711f0a8f 100644 --- a/drivers/reset/reset-scmi.c +++ b/drivers/reset/reset-scmi.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RESET +#include <common.h> #include <dm.h> #include <errno.h> #include <reset-uclass.h> diff --git a/drivers/reset/reset-sifive.c b/drivers/reset/reset-sifive.c index 65f857149b9..23513b2f541 100644 --- a/drivers/reset/reset-sifive.c +++ b/drivers/reset/reset-sifive.c @@ -4,6 +4,7 @@ * Author: Sagar Kadam <[email protected]> */ +#include <common.h> #include <dm.h> #include <reset-uclass.h> #include <asm/io.h> diff --git a/drivers/reset/reset-socfpga.c b/drivers/reset/reset-socfpga.c index 866437fd24f..6e3f03e2484 100644 --- a/drivers/reset/reset-socfpga.c +++ b/drivers/reset/reset-socfpga.c @@ -12,6 +12,7 @@ * Maxime Ripard <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-sunxi.c b/drivers/reset/reset-sunxi.c index fd47e1f9e37..e484d1fff44 100644 --- a/drivers/reset/reset-sunxi.c +++ b/drivers/reset/reset-sunxi.c @@ -4,6 +4,7 @@ * Author: Jagan Teki <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-syscon.c b/drivers/reset/reset-syscon.c index 5be8c9492af..ff387ab6b22 100644 --- a/drivers/reset/reset-syscon.c +++ b/drivers/reset/reset-syscon.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Sean Anderson */ +#include <common.h> #include <dm.h> #include <regmap.h> #include <reset.h> diff --git a/drivers/reset/reset-ti-sci.c b/drivers/reset/reset-ti-sci.c index e69bcd41cbe..fd654a08f13 100644 --- a/drivers/reset/reset-ti-sci.c +++ b/drivers/reset/reset-ti-sci.c @@ -8,6 +8,7 @@ * Loosely based on Linux kernel reset-ti-sci.c... */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/reset-uclass.c b/drivers/reset/reset-uclass.c index fe4cebf54f1..b972faf0132 100644 --- a/drivers/reset/reset-uclass.c +++ b/drivers/reset/reset-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RESET +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/reset/reset-uniphier.c b/drivers/reset/reset-uniphier.c index 49b001f0594..35e3ccebd72 100644 --- a/drivers/reset/reset-uniphier.c +++ b/drivers/reset/reset-uniphier.c @@ -5,6 +5,7 @@ * Author: Kunihiko Hayashi <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/reset-zynqmp.c b/drivers/reset/reset-zynqmp.c index b9c4f09fdfd..87b4df5bf81 100644 --- a/drivers/reset/reset-zynqmp.c +++ b/drivers/reset/reset-zynqmp.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RESET +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <reset-uclass.h> diff --git a/drivers/reset/rst-rk3588.c b/drivers/reset/rst-rk3588.c index eae2eb10de2..2c524e4c403 100644 --- a/drivers/reset/rst-rk3588.c +++ b/drivers/reset/rst-rk3588.c @@ -5,6 +5,7 @@ * Author: Sebastian Reichel <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/arch-rockchip/clock.h> #include <dt-bindings/reset/rockchip,rk3588-cru.h> diff --git a/drivers/reset/sandbox-reset-test.c b/drivers/reset/sandbox-reset-test.c index dfacb764bc7..51b79810c89 100644 --- a/drivers/reset/sandbox-reset-test.c +++ b/drivers/reset/sandbox-reset-test.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/sandbox-reset.c b/drivers/reset/sandbox-reset.c index adf9eedcba6..97b1b92e4a6 100644 --- a/drivers/reset/sandbox-reset.c +++ b/drivers/reset/sandbox-reset.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/sti-reset.c b/drivers/reset/sti-reset.c index 412a0c5b452..5305270fbf2 100644 --- a/drivers/reset/sti-reset.c +++ b/drivers/reset/sti-reset.c @@ -4,6 +4,7 @@ * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. */ +#include <common.h> #include <errno.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/stm32-reset.c b/drivers/reset/stm32-reset.c index 9d4f361b251..0bbde29810b 100644 --- a/drivers/reset/stm32-reset.c +++ b/drivers/reset/stm32-reset.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_RESET +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/reset/tegra-car-reset.c b/drivers/reset/tegra-car-reset.c index e3ecc8d3735..501e9cab8f7 100644 --- a/drivers/reset/tegra-car-reset.c +++ b/drivers/reset/tegra-car-reset.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/reset/tegra186-reset.c b/drivers/reset/tegra186-reset.c index 89624227c29..d43da454114 100644 --- a/drivers/reset/tegra186-reset.c +++ b/drivers/reset/tegra186-reset.c @@ -3,6 +3,7 @@ * Copyright (c) 2016, NVIDIA CORPORATION. */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/rtc/abx80x.c b/drivers/rtc/abx80x.c index 1235b840ab0..823aff03f5f 100644 --- a/drivers/rtc/abx80x.c +++ b/drivers/rtc/abx80x.c @@ -12,6 +12,7 @@ * */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <rtc.h> diff --git a/drivers/rtc/davinci.c b/drivers/rtc/davinci.c index a20b73e1990..c7ce41bbf5c 100644 --- a/drivers/rtc/davinci.c +++ b/drivers/rtc/davinci.c @@ -4,6 +4,7 @@ * Heiko Schocher <[email protected]> * Copyright (C) 2021 Dario Binacchi <[email protected]> */ +#include <common.h> #include <command.h> #include <dm.h> #include <clk.h> diff --git a/drivers/rtc/ds1307.c b/drivers/rtc/ds1307.c index ba06ff9f0be..0e9d3d24dd8 100644 --- a/drivers/rtc/ds1307.c +++ b/drivers/rtc/ds1307.c @@ -13,7 +13,7 @@ * based on ds1337.c */ -#include <config.h> +#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/ds1337.c b/drivers/rtc/ds1337.c index 7eccf1cb8c5..2c780ab8edf 100644 --- a/drivers/rtc/ds1337.c +++ b/drivers/rtc/ds1337.c @@ -11,7 +11,7 @@ * DS1337 Real Time Clock (RTC). */ -#include <config.h> +#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/ds1374.c b/drivers/rtc/ds1374.c index 895dbbaf1c7..89442f9386b 100644 --- a/drivers/rtc/ds1374.c +++ b/drivers/rtc/ds1374.c @@ -13,7 +13,7 @@ * based on ds1337.c */ -#include <config.h> +#include <common.h> #include <command.h> #include <rtc.h> #include <i2c.h> diff --git a/drivers/rtc/ds3231.c b/drivers/rtc/ds3231.c index d6267d660d0..bd32ed2dbf9 100644 --- a/drivers/rtc/ds3231.c +++ b/drivers/rtc/ds3231.c @@ -14,7 +14,7 @@ * copied from ds1337.c */ -#include <config.h> +#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/ds3232.c b/drivers/rtc/ds3232.c index 7314ba219da..16501cfe5d3 100644 --- a/drivers/rtc/ds3232.c +++ b/drivers/rtc/ds3232.c @@ -3,6 +3,7 @@ * (C) Copyright 2019, Vaisala Oyj */ +#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/rtc/emul_rtc.c b/drivers/rtc/emul_rtc.c index 97a8d9bb7df..6f47d82522b 100644 --- a/drivers/rtc/emul_rtc.c +++ b/drivers/rtc/emul_rtc.c @@ -5,11 +5,11 @@ * This driver emulates a real time clock based on timer ticks. */ +#include <common.h> #include <div64.h> #include <dm.h> #include <env.h> #include <rtc.h> -#include <time.h> #include <timestamp.h> /** diff --git a/drivers/rtc/ht1380.c b/drivers/rtc/ht1380.c index c202261e999..85fcee3e71e 100644 --- a/drivers/rtc/ht1380.c +++ b/drivers/rtc/ht1380.c @@ -15,6 +15,7 @@ * */ +#include <common.h> #include <dm.h> #include <rtc.h> #include <bcd.h> diff --git a/drivers/rtc/i2c_rtc_emul.c b/drivers/rtc/i2c_rtc_emul.c index ea11c72c964..c307d6036dd 100644 --- a/drivers/rtc/i2c_rtc_emul.c +++ b/drivers/rtc/i2c_rtc_emul.c @@ -13,6 +13,7 @@ * time-keeping. It does not change the system time. */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/rtc/isl1208.c b/drivers/rtc/isl1208.c index 83db505afe9..59a60b75b30 100644 --- a/drivers/rtc/isl1208.c +++ b/drivers/rtc/isl1208.c @@ -11,6 +11,7 @@ * ISL1208 Real Time Clock (RTC). */ +#include <common.h> #include <command.h> #include <dm.h> #include <rtc.h> diff --git a/drivers/rtc/m41t62.c b/drivers/rtc/m41t62.c index 7bfea9e0b31..891fe09d311 100644 --- a/drivers/rtc/m41t62.c +++ b/drivers/rtc/m41t62.c @@ -16,7 +16,7 @@ /* #define DEBUG */ -#include <config.h> +#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/mc13xxx-rtc.c b/drivers/rtc/mc13xxx-rtc.c index 9e396bcdae9..6c2aef89758 100644 --- a/drivers/rtc/mc13xxx-rtc.c +++ b/drivers/rtc/mc13xxx-rtc.c @@ -3,6 +3,7 @@ * Copyright (C) 2008, Guennadi Liakhovetski <[email protected]> */ +#include <common.h> #include <rtc.h> #include <spi.h> #include <power/pmic.h> diff --git a/drivers/rtc/mc146818.c b/drivers/rtc/mc146818.c index c0d86c6d063..03ce081d576 100644 --- a/drivers/rtc/mc146818.c +++ b/drivers/rtc/mc146818.c @@ -8,6 +8,7 @@ * Date & Time support for the MC146818 (PIXX4) RTC */ +#include <common.h> #include <command.h> #include <dm.h> #include <rtc.h> diff --git a/drivers/rtc/mcfrtc.c b/drivers/rtc/mcfrtc.c index b5cc6b96881..d2ac889c309 100644 --- a/drivers/rtc/mcfrtc.c +++ b/drivers/rtc/mcfrtc.c @@ -4,6 +4,7 @@ * TsiChung Liew ([email protected]) */ +#include <common.h> #include <command.h> #include <rtc.h> diff --git a/drivers/rtc/mvrtc.c b/drivers/rtc/mvrtc.c index f070c681b94..50240d57fa9 100644 --- a/drivers/rtc/mvrtc.c +++ b/drivers/rtc/mvrtc.c @@ -8,6 +8,7 @@ * Date & Time support for Marvell Integrated RTC */ +#include <common.h> #include <command.h> #include <dm.h> #include <rtc.h> diff --git a/drivers/rtc/mxsrtc.c b/drivers/rtc/mxsrtc.c index 69d22a4bdcb..be899a92540 100644 --- a/drivers/rtc/mxsrtc.c +++ b/drivers/rtc/mxsrtc.c @@ -6,6 +6,7 @@ * on behalf of DENX Software Engineering GmbH */ +#include <common.h> #include <rtc.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/rtc/pcf2127.c b/drivers/rtc/pcf2127.c index 27a340f07d6..2f3fafb4968 100644 --- a/drivers/rtc/pcf2127.c +++ b/drivers/rtc/pcf2127.c @@ -5,6 +5,7 @@ /* #define DEBUG */ +#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/rtc/pcf8563.c b/drivers/rtc/pcf8563.c index 03bef68051b..91a412440b8 100644 --- a/drivers/rtc/pcf8563.c +++ b/drivers/rtc/pcf8563.c @@ -10,7 +10,7 @@ /* #define DEBUG */ -#include <config.h> +#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/pl031.c b/drivers/rtc/pl031.c index 855ee913416..a1d376611d6 100644 --- a/drivers/rtc/pl031.c +++ b/drivers/rtc/pl031.c @@ -6,6 +6,7 @@ * reference linux-2.6.20.6/drivers/rtc/rtc-pl031.c */ +#include <common.h> #include <command.h> #include <dm.h> #include <errno.h> diff --git a/drivers/rtc/pt7c4338.c b/drivers/rtc/pt7c4338.c index 79df07814a6..e0a7bd3662f 100644 --- a/drivers/rtc/pt7c4338.c +++ b/drivers/rtc/pt7c4338.c @@ -18,7 +18,7 @@ * It has 56 bytes of nonvolatile RAM. */ -#include <config.h> +#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/rtc-uclass.c b/drivers/rtc/rtc-uclass.c index 8f6c0c6a0a7..e5ae6ea4d5f 100644 --- a/drivers/rtc/rtc-uclass.c +++ b/drivers/rtc/rtc-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_RTC +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/rtc/rv3029.c b/drivers/rtc/rv3029.c index a82acec6f7e..3afe5b2fdd6 100644 --- a/drivers/rtc/rv3029.c +++ b/drivers/rtc/rv3029.c @@ -7,8 +7,10 @@ * Michael Buesch <[email protected]> */ +#include <common.h> #include <command.h> #include <dm.h> +#include <eeprom.h> #include <i2c.h> #include <log.h> #include <rtc.h> diff --git a/drivers/rtc/rv8803.c b/drivers/rtc/rv8803.c index 82b43722ff5..06a4ae89fa9 100644 --- a/drivers/rtc/rv8803.c +++ b/drivers/rtc/rv8803.c @@ -10,6 +10,7 @@ * */ +#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/rtc/rx8010sj.c b/drivers/rtc/rx8010sj.c index 0d778f4c328..bf93b557748 100644 --- a/drivers/rtc/rx8010sj.c +++ b/drivers/rtc/rx8010sj.c @@ -17,7 +17,7 @@ */ #include <command.h> -#include <config.h> +#include <common.h> #include <dm.h> #include <i2c.h> #include <rtc.h> diff --git a/drivers/rtc/rx8025.c b/drivers/rtc/rx8025.c index c7895244283..1394c2306a4 100644 --- a/drivers/rtc/rx8025.c +++ b/drivers/rtc/rx8025.c @@ -8,6 +8,7 @@ * Epson RX8025 RTC driver. */ +#include <common.h> #include <command.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/rtc/s35392a.c b/drivers/rtc/s35392a.c index 03fb9a0be91..80f55c86233 100644 --- a/drivers/rtc/s35392a.c +++ b/drivers/rtc/s35392a.c @@ -18,6 +18,7 @@ */ #include <command.h> +#include <common.h> #include <dm.h> #include <i2c.h> #include <linux/bitrev.h> diff --git a/drivers/rtc/sandbox_rtc.c b/drivers/rtc/sandbox_rtc.c index 4404501c2f6..657e5c7be2c 100644 --- a/drivers/rtc/sandbox_rtc.c +++ b/drivers/rtc/sandbox_rtc.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <rtc.h> diff --git a/drivers/rtc/stm32_rtc.c b/drivers/rtc/stm32_rtc.c index ee70c11c8bc..ec7584c3d70 100644 --- a/drivers/rtc/stm32_rtc.c +++ b/drivers/rtc/stm32_rtc.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RTC +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/rtc/zynqmp_rtc.c b/drivers/rtc/zynqmp_rtc.c index 15122a04838..ab9b93ca979 100644 --- a/drivers/rtc/zynqmp_rtc.c +++ b/drivers/rtc/zynqmp_rtc.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_RTC +#include <common.h> #include <dm.h> #include <rtc.h> #include <asm/io.h> diff --git a/drivers/scsi/sandbox_scsi.c b/drivers/scsi/sandbox_scsi.c index 544a0247083..a7ac33cb1c4 100644 --- a/drivers/scsi/sandbox_scsi.c +++ b/drivers/scsi/sandbox_scsi.c @@ -9,6 +9,7 @@ #define LOG_CATEGORY UCLASS_SCSI +#include <common.h> #include <dm.h> #include <os.h> #include <malloc.h> diff --git a/drivers/scsi/scsi-uclass.c b/drivers/scsi/scsi-uclass.c index 1ee8236c05c..a7c1eaf0cf5 100644 --- a/drivers/scsi/scsi-uclass.c +++ b/drivers/scsi/scsi-uclass.c @@ -10,6 +10,7 @@ #define LOG_CATEGORY UCLASS_SCSI +#include <common.h> #include <dm.h> #include <scsi.h> diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index 73cb83548eb..79ee400d12f 100644 --- a/drivers/scsi/scsi.c +++ b/drivers/scsi/scsi.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SCSI +#include <common.h> #include <blk.h> #include <bootdev.h> #include <bootstage.h> diff --git a/drivers/scsi/scsi_bootdev.c b/drivers/scsi/scsi_bootdev.c index 28e4612f337..218221fa306 100644 --- a/drivers/scsi/scsi_bootdev.c +++ b/drivers/scsi/scsi_bootdev.c @@ -6,6 +6,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <bootdev.h> #include <dm.h> #include <init.h> diff --git a/drivers/scsi/scsi_emul.c b/drivers/scsi/scsi_emul.c index d1bb926b713..6b8468f7994 100644 --- a/drivers/scsi/scsi_emul.c +++ b/drivers/scsi/scsi_emul.c @@ -11,6 +11,7 @@ #define LOG_CATEGORY UCLASS_SCSI +#include <common.h> #include <dm.h> #include <log.h> #include <scsi.h> diff --git a/drivers/serial/Makefile b/drivers/serial/Makefile index dbe598b7406..403ab1ded68 100644 --- a/drivers/serial/Makefile +++ b/drivers/serial/Makefile @@ -65,4 +65,3 @@ obj-$(CONFIG_S5P4418_PL011_SERIAL) += serial_s5p4418_pl011.o ifndef CONFIG_SPL_BUILD obj-$(CONFIG_USB_TTY) += usbtty.o endif -obj-$(CONFIG_UART4_SERIAL) += serial_adi_uart4.o diff --git a/drivers/serial/altera_jtag_uart.c b/drivers/serial/altera_jtag_uart.c index 3f706e1839f..9e39da7dd24 100644 --- a/drivers/serial/altera_jtag_uart.c +++ b/drivers/serial/altera_jtag_uart.c @@ -4,6 +4,7 @@ * Scott McNutt <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <serial.h> diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c index 3c13ef25bb4..35920480841 100644 --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c @@ -4,6 +4,7 @@ * Scott McNutt <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <serial.h> diff --git a/drivers/serial/arm_dcc.c b/drivers/serial/arm_dcc.c index 66af136695d..a402a123b6d 100644 --- a/drivers/serial/arm_dcc.c +++ b/drivers/serial/arm_dcc.c @@ -15,6 +15,7 @@ * this file might be covered by the GNU General Public License. */ +#include <common.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/atmel_usart.c b/drivers/serial/atmel_usart.c index 7e45a80969e..9827c006fa8 100644 --- a/drivers/serial/atmel_usart.c +++ b/drivers/serial/atmel_usart.c @@ -5,6 +5,7 @@ * Modified to support C structur SoC access by * Andreas BieĂmann <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 4963385dc1c..6deb1d8ddc5 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -5,7 +5,7 @@ */ #include <clock_legacy.h> -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c index ec0068e33d3..f6ac3d22852 100644 --- a/drivers/serial/sandbox.c +++ b/drivers/serial/sandbox.c @@ -9,6 +9,7 @@ * U-Boot. */ +#include <common.h> #include <console.h> #include <dm.h> #include <os.h> diff --git a/drivers/serial/serial-uclass.c b/drivers/serial/serial-uclass.c index 84f02f7ac76..e4fa3933bc8 100644 --- a/drivers/serial/serial-uclass.c +++ b/drivers/serial/serial-uclass.c @@ -5,7 +5,7 @@ #define LOG_CATEGORY UCLASS_SERIAL -#include <config.h> +#include <common.h> #include <dm.h> #include <env_internal.h> #include <errno.h> diff --git a/drivers/serial/serial.c b/drivers/serial/serial.c index dc4bb06fa99..787edd53602 100644 --- a/drivers/serial/serial.c +++ b/drivers/serial/serial.c @@ -4,7 +4,7 @@ * Wolfgang Denk, DENX Software Engineering, [email protected]. */ -#include <config.h> +#include <common.h> #include <env_internal.h> #include <hang.h> #include <serial.h> diff --git a/drivers/serial/serial_adi_uart4.c b/drivers/serial/serial_adi_uart4.c deleted file mode 100644 index 45f8315d0a0..00000000000 --- a/drivers/serial/serial_adi_uart4.c +++ /dev/null @@ -1,225 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Converted to driver model by Nathan Barrett-Morrison - * - * Contact: Nathan Barrett-Morrison <[email protected]> - * Contact: Greg Malysa <[email protected]> - * - */ - -#include <clk.h> -#include <dm.h> -#include <serial.h> -#include <asm/io.h> -#include <dm/device_compat.h> -#include <linux/bitops.h> - -/* - * UART4 Masks - */ - -/* UART_CONTROL */ -#define UEN BIT(0) -#define LOOP_ENA BIT(1) -#define UMOD (3 << 4) -#define UMOD_UART (0 << 4) -#define UMOD_MDB BIT(4) -#define UMOD_IRDA BIT(4) -#define WLS (3 << 8) -#define WLS_5 (0 << 8) -#define WLS_6 BIT(8) -#define WLS_7 (2 << 8) -#define WLS_8 (3 << 8) -#define STB BIT(12) -#define STBH BIT(13) -#define PEN BIT(14) -#define EPS BIT(15) -#define STP BIT(16) -#define FPE BIT(17) -#define FFE BIT(18) -#define SB BIT(19) -#define FCPOL BIT(22) -#define RPOLC BIT(23) -#define TPOLC BIT(24) -#define MRTS BIT(25) -#define XOFF BIT(26) -#define ARTS BIT(27) -#define ACTS BIT(28) -#define RFIT BIT(29) -#define RFRT BIT(30) - -/* UART_STATUS */ -#define DR BIT(0) -#define OE BIT(1) -#define PE BIT(2) -#define FE BIT(3) -#define BI BIT(4) -#define THRE BIT(5) -#define TEMT BIT(7) -#define TFI BIT(8) -#define ASTKY BIT(9) -#define ADDR BIT(10) -#define RO BIT(11) -#define SCTS BIT(12) -#define CTS BIT(16) -#define RFCS BIT(17) - -/* UART_EMASK */ -#define ERBFI BIT(0) -#define ETBEI BIT(1) -#define ELSI BIT(2) -#define EDSSI BIT(3) -#define EDTPTI BIT(4) -#define ETFI BIT(5) -#define ERFCI BIT(6) -#define EAWI BIT(7) -#define ERXS BIT(8) -#define ETXS BIT(9) - -DECLARE_GLOBAL_DATA_PTR; - -struct uart4_reg { - u32 revid; - u32 control; - u32 status; - u32 scr; - u32 clock; - u32 emask; - u32 emaskst; - u32 emaskcl; - u32 rbr; - u32 thr; - u32 taip; - u32 tsr; - u32 rsr; - u32 txdiv_cnt; - u32 rxdiv_cnt; -}; - -struct adi_uart4_platdata { - // Hardware registers - struct uart4_reg *regs; - - // Enable divide-by-one baud rate setting - bool edbo; -}; - -static int adi_uart4_set_brg(struct udevice *dev, int baudrate) -{ - struct adi_uart4_platdata *plat = dev_get_plat(dev); - struct uart4_reg *regs = plat->regs; - u32 divisor, uart_base_clk_rate; - struct clk uart_base_clk; - - if (clk_get_by_index(dev, 0, &uart_base_clk)) { - dev_err(dev, "Could not get UART base clock\n"); - return -1; - } - - uart_base_clk_rate = clk_get_rate(&uart_base_clk); - - if (plat->edbo) { - u16 divisor16 = (uart_base_clk_rate + (baudrate / 2)) / baudrate; - - divisor = divisor16 | BIT(31); - } else { - // Divisor is only 16 bits - divisor = 0x0000ffff & ((uart_base_clk_rate + (baudrate * 8)) / (baudrate * 16)); - } - - writel(divisor, ®s->clock); - return 0; -} - -static int adi_uart4_pending(struct udevice *dev, bool input) -{ - struct adi_uart4_platdata *plat = dev_get_plat(dev); - struct uart4_reg *regs = plat->regs; - - if (input) - return (readl(®s->status) & DR) ? 1 : 0; - else - return (readl(®s->status) & THRE) ? 0 : 1; -} - -static int adi_uart4_getc(struct udevice *dev) -{ - struct adi_uart4_platdata *plat = dev_get_plat(dev); - struct uart4_reg *regs = plat->regs; - int uart_rbr_val; - - if (!adi_uart4_pending(dev, true)) - return -EAGAIN; - - uart_rbr_val = readl(®s->rbr); - writel(-1, ®s->status); - - return uart_rbr_val; -} - -static int adi_uart4_putc(struct udevice *dev, const char ch) -{ - struct adi_uart4_platdata *plat = dev_get_plat(dev); - struct uart4_reg *regs = plat->regs; - - if (adi_uart4_pending(dev, false)) - return -EAGAIN; - - writel(ch, ®s->thr); - return 0; -} - -static const struct dm_serial_ops adi_uart4_serial_ops = { - .setbrg = adi_uart4_set_brg, - .getc = adi_uart4_getc, - .putc = adi_uart4_putc, - .pending = adi_uart4_pending, -}; - -static int adi_uart4_of_to_plat(struct udevice *dev) -{ - struct adi_uart4_platdata *plat = dev_get_plat(dev); - fdt_addr_t addr; - - addr = dev_read_addr(dev); - if (addr == FDT_ADDR_T_NONE) - return -EINVAL; - - plat->regs = (struct uart4_reg *)addr; - plat->edbo = dev_read_bool(dev, "adi,enable-edbo"); - - return 0; -} - -static int adi_uart4_probe(struct udevice *dev) -{ - struct adi_uart4_platdata *plat = dev_get_plat(dev); - struct uart4_reg *regs = plat->regs; - - /* always enable UART to 8-bit mode */ - writel(UEN | UMOD_UART | WLS_8, ®s->control); - - writel(-1, ®s->status); - - return 0; -} - -static const struct udevice_id adi_uart4_serial_ids[] = { - { .compatible = "adi,uart4" }, - { } -}; - -U_BOOT_DRIVER(serial_adi_uart4) = { - .name = "serial_adi_uart4", - .id = UCLASS_SERIAL, - .of_match = adi_uart4_serial_ids, - .of_to_plat = adi_uart4_of_to_plat, - .plat_auto = sizeof(struct adi_uart4_platdata), - .probe = adi_uart4_probe, - .ops = &adi_uart4_serial_ops, - .flags = DM_FLAG_PRE_RELOC, -}; diff --git a/drivers/serial/serial_ar933x.c b/drivers/serial/serial_ar933x.c index 4d92752690f..4f916349762 100644 --- a/drivers/serial/serial_ar933x.c +++ b/drivers/serial/serial_ar933x.c @@ -3,6 +3,7 @@ * Copyright (C) 2015-2016 Wills Wang <[email protected]> */ +#include <common.h> #include <clock_legacy.h> #include <dm.h> #include <div64.h> diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c index c0930cf7334..c2fc8a901e2 100644 --- a/drivers/serial/serial_arc.c +++ b/drivers/serial/serial_arc.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include <serial.h> #include <asm/global_data.h> diff --git a/drivers/serial/serial_bcm283x_mu.c b/drivers/serial/serial_bcm283x_mu.c index 7fa26244b1c..7585f790d22 100644 --- a/drivers/serial/serial_bcm283x_mu.c +++ b/drivers/serial/serial_bcm283x_mu.c @@ -14,6 +14,7 @@ /* Simple U-Boot driver for the BCM283x mini UART */ +#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_bcm283x_pl011.c b/drivers/serial/serial_bcm283x_pl011.c index 2abc1c4658f..09a9868a38f 100644 --- a/drivers/serial/serial_bcm283x_pl011.c +++ b/drivers/serial/serial_bcm283x_pl011.c @@ -3,6 +3,7 @@ * Copyright (c) 2018 Alexander Graf <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/gpio.h> #include <dm/pinctrl.h> diff --git a/drivers/serial/serial_coreboot.c b/drivers/serial/serial_coreboot.c index b1f69f6998c..23066e4d054 100644 --- a/drivers/serial/serial_coreboot.c +++ b/drivers/serial/serial_coreboot.c @@ -7,6 +7,7 @@ #define LOG_CATGEGORY UCLASS_SERIAL +#include <common.h> #include <dm.h> #include <log.h> #include <ns16550.h> diff --git a/drivers/serial/serial_cortina.c b/drivers/serial/serial_cortina.c index 3ae8fb46584..6dc81a775d3 100644 --- a/drivers/serial/serial_cortina.c +++ b/drivers/serial/serial_cortina.c @@ -5,6 +5,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_efi.c b/drivers/serial/serial_efi.c index 5733eaaf9d4..0067576389d 100644 --- a/drivers/serial/serial_efi.c +++ b/drivers/serial/serial_efi.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <debug_uart.h> #include <dm.h> #include <efi.h> diff --git a/drivers/serial/serial_htif.c b/drivers/serial/serial_htif.c index 2a93bbbcc9f..5d2bf0aaeba 100644 --- a/drivers/serial/serial_htif.c +++ b/drivers/serial/serial_htif.c @@ -3,6 +3,7 @@ * Copyright (C) 2022 Ventana Micro Systems Inc. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/serial/serial_intel_mid.c b/drivers/serial/serial_intel_mid.c index 4b528e45292..bbf19057c4d 100644 --- a/drivers/serial/serial_intel_mid.c +++ b/drivers/serial/serial_intel_mid.c @@ -3,6 +3,7 @@ * Copyright (c) 2017 Intel Corporation */ +#include <common.h> #include <dm.h> #include <ns16550.h> #include <serial.h> diff --git a/drivers/serial/serial_linflexuart.c b/drivers/serial/serial_linflexuart.c index ff66e69b9d7..b449e55a650 100644 --- a/drivers/serial/serial_linflexuart.c +++ b/drivers/serial/serial_linflexuart.c @@ -3,6 +3,7 @@ * (C) Copyright 2013-2016 Freescale Semiconductor, Inc. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_lpuart.c b/drivers/serial/serial_lpuart.c index a06e6dc2505..3f2be72b830 100644 --- a/drivers/serial/serial_lpuart.c +++ b/drivers/serial/serial_lpuart.c @@ -4,6 +4,7 @@ * Copyright 2013 Freescale Semiconductor, Inc. */ +#include <common.h> #include <clock_legacy.h> #include <clk.h> #include <dm.h> diff --git a/drivers/serial/serial_mcf.c b/drivers/serial/serial_mcf.c index 76143575fa9..bb2afd0d8cd 100644 --- a/drivers/serial/serial_mcf.c +++ b/drivers/serial/serial_mcf.c @@ -15,6 +15,7 @@ * as serial console interface. */ +#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/platform_data/serial_coldfire.h> diff --git a/drivers/serial/serial_meson.c b/drivers/serial/serial_meson.c index bb79b972957..be5f380f850 100644 --- a/drivers/serial/serial_meson.c +++ b/drivers/serial/serial_meson.c @@ -3,6 +3,7 @@ * (C) Copyright 2016 Beniamino Galvani <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/serial/serial_mpc8xx.c b/drivers/serial/serial_mpc8xx.c index 9ce3fc3d9ec..d82760c7f10 100644 --- a/drivers/serial/serial_mpc8xx.c +++ b/drivers/serial/serial_mpc8xx.c @@ -4,6 +4,7 @@ * Wolfgang Denk, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <command.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index 757e5eaf974..a472e0b3683 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -8,6 +8,7 @@ * Based on Linux driver. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c index cb6c09fdd09..5260474fb9a 100644 --- a/drivers/serial/serial_msm_geni.c +++ b/drivers/serial/serial_msm_geni.c @@ -9,6 +9,7 @@ #include <asm/io.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/serial/serial_mtk.c b/drivers/serial/serial_mtk.c index 3f569c68f22..f146f2b006e 100644 --- a/drivers/serial/serial_mtk.c +++ b/drivers/serial/serial_mtk.c @@ -7,7 +7,7 @@ */ #include <clk.h> -#include <config.h> +#include <common.h> #include <div64.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/serial/serial_mvebu_a3700.c b/drivers/serial/serial_mvebu_a3700.c index 1a0b85e170a..b2017c64556 100644 --- a/drivers/serial/serial_mvebu_a3700.c +++ b/drivers/serial/serial_mvebu_a3700.c @@ -4,6 +4,7 @@ * Copyright (C) 2021 Pali RohĂĄr <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index c5fd740be4d..cc85a502726 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -3,6 +3,7 @@ * (c) 2007 Sascha Hauer <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <watchdog.h> diff --git a/drivers/serial/serial_mxs.c b/drivers/serial/serial_mxs.c index 071bd09fef6..3659948b872 100644 --- a/drivers/serial/serial_mxs.c +++ b/drivers/serial/serial_mxs.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2023 Marek Vasut <[email protected]> */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <serial.h> diff --git a/drivers/serial/serial_npcm.c b/drivers/serial/serial_npcm.c index 661daf1aefa..6bf3a943a2f 100644 --- a/drivers/serial/serial_npcm.c +++ b/drivers/serial/serial_npcm.c @@ -3,6 +3,7 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c index 577864bc219..4014f682040 100644 --- a/drivers/serial/serial_ns16550.c +++ b/drivers/serial/serial_ns16550.c @@ -4,7 +4,7 @@ * Rob Taylor, Flying Pig Systems. [email protected]. */ -#include <config.h> +#include <common.h> #include <clock_legacy.h> #include <ns16550.h> #include <serial.h> diff --git a/drivers/serial/serial_nulldev.c b/drivers/serial/serial_nulldev.c index 78a9e0b195f..f3ca7f52559 100644 --- a/drivers/serial/serial_nulldev.c +++ b/drivers/serial/serial_nulldev.c @@ -3,6 +3,7 @@ * Copyright (c) 2015 National Instruments */ +#include <common.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_omap.c b/drivers/serial/serial_omap.c index 94672655c28..49ced8f9fae 100644 --- a/drivers/serial/serial_omap.c +++ b/drivers/serial/serial_omap.c @@ -6,7 +6,7 @@ * Lokesh Vutla <[email protected]> */ -#include <config.h> +#include <common.h> #include <dm.h> #include <dt-structs.h> #include <log.h> diff --git a/drivers/serial/serial_owl.c b/drivers/serial/serial_owl.c index 8ce8aa32a21..3b795785f78 100644 --- a/drivers/serial/serial_owl.c +++ b/drivers/serial/serial_owl.c @@ -6,6 +6,7 @@ * Copyright (C) 2018 Manivannan Sadhasivam <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/serial_pic32.c b/drivers/serial/serial_pic32.c index a49c4139b5a..0a03a9a2549 100644 --- a/drivers/serial/serial_pic32.c +++ b/drivers/serial/serial_pic32.c @@ -3,6 +3,7 @@ * (c) 2015 Paul Thacker <[email protected]> * */ +#include <common.h> #include <clk.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 80c35963b8f..f04c21e0826 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -10,6 +10,7 @@ /* Simple U-Boot driver for the PrimeCell PL010/PL011 UARTs */ +#include <common.h> #include <asm/global_data.h> /* For get_bus_freq() */ #include <clock_legacy.h> diff --git a/drivers/serial/serial_rockchip.c b/drivers/serial/serial_rockchip.c index 8a15173f238..f4e9422ed91 100644 --- a/drivers/serial/serial_rockchip.c +++ b/drivers/serial/serial_rockchip.c @@ -3,6 +3,7 @@ * Copyright (c) 2015 Google, Inc */ +#include <common.h> #include <debug_uart.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/serial/serial_s5p4418_pl011.c b/drivers/serial/serial_s5p4418_pl011.c index 1fb954e80c2..e4492e662e9 100644 --- a/drivers/serial/serial_s5p4418_pl011.c +++ b/drivers/serial/serial_s5p4418_pl011.c @@ -3,6 +3,7 @@ * Copyright (C) 2022 Stefan Bosch <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/arch/clk.h> #include <asm/arch/reset.h> diff --git a/drivers/serial/serial_semihosting.c b/drivers/serial/serial_semihosting.c index 56a5ec72428..cfa1ec3148c 100644 --- a/drivers/serial/serial_semihosting.c +++ b/drivers/serial/serial_semihosting.c @@ -3,6 +3,7 @@ * Copyright (C) 2022 Sean Anderson <[email protected]> */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <serial.h> diff --git a/drivers/serial/serial_sifive.c b/drivers/serial/serial_sifive.c index e47828e4d6a..c449f3fd02d 100644 --- a/drivers/serial/serial_sifive.c +++ b/drivers/serial/serial_sifive.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Anup Patel <[email protected]> */ +#include <common.h> #include <clk.h> #include <debug_uart.h> #include <dm.h> diff --git a/drivers/serial/serial_sti_asc.c b/drivers/serial/serial_sti_asc.c index ef68e585dd6..40381b57b08 100644 --- a/drivers/serial/serial_sti_asc.c +++ b/drivers/serial/serial_sti_asc.c @@ -6,6 +6,7 @@ * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. */ +#include <common.h> #include <dm.h> #include <log.h> #include <serial.h> diff --git a/drivers/serial/serial_stm32.c b/drivers/serial/serial_stm32.c index 1ee58142b3f..fb039546a41 100644 --- a/drivers/serial/serial_stm32.c +++ b/drivers/serial/serial_stm32.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SERIAL +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/serial/serial_uniphier.c b/drivers/serial/serial_uniphier.c index a566ba7a47d..27e4b92c399 100644 --- a/drivers/serial/serial_uniphier.c +++ b/drivers/serial/serial_uniphier.c @@ -5,6 +5,7 @@ * Author: Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <linux/bitfield.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_xen.c b/drivers/serial/serial_xen.c index e05805f6372..ab318b06462 100644 --- a/drivers/serial/serial_xen.c +++ b/drivers/serial/serial_xen.c @@ -3,6 +3,7 @@ * (C) 2018 NXP * (C) 2020 EPAM Systems Inc. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <serial.h> diff --git a/drivers/serial/serial_xuartlite.c b/drivers/serial/serial_xuartlite.c index eb234108746..35df413321f 100644 --- a/drivers/serial/serial_xuartlite.c +++ b/drivers/serial/serial_xuartlite.c @@ -8,6 +8,7 @@ */ #include <config.h> +#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 55f13c00ddf..1847d1f6ecd 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <debug_uart.h> #include <dm.h> #include <errno.h> diff --git a/drivers/serial/usbtty.c b/drivers/serial/usbtty.c index ae3ac8070d3..ecb6ba853df 100644 --- a/drivers/serial/usbtty.c +++ b/drivers/serial/usbtty.c @@ -7,6 +7,7 @@ * Bryan O'Donoghue, [email protected] */ +#include <common.h> #include <config.h> #include <circbuf.h> #include <env.h> diff --git a/drivers/sm/meson-sm.c b/drivers/sm/meson-sm.c index 87eba1486db..15b3b0e2672 100644 --- a/drivers/sm/meson-sm.c +++ b/drivers/sm/meson-sm.c @@ -5,6 +5,7 @@ * Author: Alexey Romanov <[email protected]> */ +#include <common.h> #include <dm.h> #include <regmap.h> #include <sm.h> diff --git a/drivers/sm/sandbox-sm.c b/drivers/sm/sandbox-sm.c index a95e685494c..109ddb2af55 100644 --- a/drivers/sm/sandbox-sm.c +++ b/drivers/sm/sandbox-sm.c @@ -5,6 +5,7 @@ * Author: Alexey Romanov <[email protected]> */ +#include <common.h> #include <sm.h> #include <sm-uclass.h> #include <sandbox-sm.h> diff --git a/drivers/sm/sm-uclass.c b/drivers/sm/sm-uclass.c index abca0052e29..6a8b7026293 100644 --- a/drivers/sm/sm-uclass.c +++ b/drivers/sm/sm-uclass.c @@ -5,6 +5,7 @@ * Author: Alexey Romanov <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <sm-uclass.h> diff --git a/drivers/smem/msm_smem.c b/drivers/smem/msm_smem.c index ccd145f9afb..17ee6c837c6 100644 --- a/drivers/smem/msm_smem.c +++ b/drivers/smem/msm_smem.c @@ -5,6 +5,7 @@ * Copyright (c) 2018, Ramon Fried <[email protected]> */ +#include <common.h> #include <errno.h> #include <dm.h> #include <asm/global_data.h> diff --git a/drivers/smem/sandbox_smem.c b/drivers/smem/sandbox_smem.c index fec98e5611d..7397e4407ad 100644 --- a/drivers/smem/sandbox_smem.c +++ b/drivers/smem/sandbox_smem.c @@ -3,6 +3,7 @@ * Copyright (c) 2018 Ramon Fried <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <smem.h> diff --git a/drivers/smem/smem-uclass.c b/drivers/smem/smem-uclass.c index 4dea5cc4bf1..8469076915e 100644 --- a/drivers/smem/smem-uclass.c +++ b/drivers/smem/smem-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SMEM +#include <common.h> #include <dm.h> #include <smem.h> diff --git a/drivers/soc/soc-uclass.c b/drivers/soc/soc-uclass.c index 744cdda2e18..8b3044fed8d 100644 --- a/drivers/soc/soc-uclass.c +++ b/drivers/soc/soc-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SOC +#include <common.h> #include <soc.h> #include <dm.h> #include <errno.h> diff --git a/drivers/soc/soc_sandbox.c b/drivers/soc/soc_sandbox.c index 8d621e88f56..15fdd9930cb 100644 --- a/drivers/soc/soc_sandbox.c +++ b/drivers/soc/soc_sandbox.c @@ -6,6 +6,7 @@ * Dave Gerlach <[email protected]> */ +#include <common.h> #include <dm.h> #include <soc.h> diff --git a/drivers/soc/soc_ti_k3.c b/drivers/soc/soc_ti_k3.c index b585e47d46f..3a4e58bba67 100644 --- a/drivers/soc/soc_ti_k3.c +++ b/drivers/soc/soc_ti_k3.c @@ -4,6 +4,7 @@ * Dave Gerlach <[email protected]> */ +#include <common.h> #include <dm.h> #include <soc.h> diff --git a/drivers/soc/soc_xilinx_versal.c b/drivers/soc/soc_xilinx_versal.c index 7427f8432c8..3d8c25c19bb 100644 --- a/drivers/soc/soc_xilinx_versal.c +++ b/drivers/soc/soc_xilinx_versal.c @@ -5,6 +5,7 @@ * Copyright (C) 2021 Xilinx, Inc. */ +#include <common.h> #include <dm.h> #include <soc.h> #include <zynqmp_firmware.h> diff --git a/drivers/soc/soc_xilinx_versal_net.c b/drivers/soc/soc_xilinx_versal_net.c index d64fc366a6d..146d068bb4a 100644 --- a/drivers/soc/soc_xilinx_versal_net.c +++ b/drivers/soc/soc_xilinx_versal_net.c @@ -5,6 +5,7 @@ * Copyright (C) 2022, Advanced Micro Devices, Inc. */ +#include <common.h> #include <dm.h> #include <soc.h> #include <zynqmp_firmware.h> diff --git a/drivers/soc/soc_xilinx_zynqmp.c b/drivers/soc/soc_xilinx_zynqmp.c index a2d5b82fd34..d8b4f172a39 100644 --- a/drivers/soc/soc_xilinx_zynqmp.c +++ b/drivers/soc/soc_xilinx_zynqmp.c @@ -9,6 +9,7 @@ * Stefan Herbrechtsmeier <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <asm/cache.h> diff --git a/drivers/soc/ti/k3-navss-ringacc.c b/drivers/soc/ti/k3-navss-ringacc.c index d3f3d4761c2..ed39ff2fa4c 100644 --- a/drivers/soc/ti/k3-navss-ringacc.c +++ b/drivers/soc/ti/k3-navss-ringacc.c @@ -5,6 +5,7 @@ * Copyright (C) 2018 Texas Instruments Incorporated - https://www.ti.com */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/cache.h> diff --git a/drivers/soc/ti/keystone_serdes.c b/drivers/soc/ti/keystone_serdes.c index b19617997e1..0e1bf8ff39d 100644 --- a/drivers/soc/ti/keystone_serdes.c +++ b/drivers/soc/ti/keystone_serdes.c @@ -7,6 +7,7 @@ */ #include <errno.h> +#include <common.h> #include <asm/io.h> #include <asm/ti-common/keystone_serdes.h> #include <linux/bitops.h> diff --git a/drivers/soc/ti/pruss.c b/drivers/soc/ti/pruss.c index e3bb2ede554..461390925d2 100644 --- a/drivers/soc/ti/pruss.c +++ b/drivers/soc/ti/pruss.c @@ -5,6 +5,7 @@ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ */ +#include <common.h> #include <dm.h> #include <dm/of_access.h> #include <errno.h> @@ -204,7 +205,6 @@ static int pruss_probe(struct udevice *dev) static const struct udevice_id pruss_ids[] = { { .compatible = "ti,am654-icssg"}, - { .compatible = "ti,am642-icssg"}, {} }; diff --git a/drivers/sound/broadwell_i2s.c b/drivers/sound/broadwell_i2s.c index bc44b5ec7e1..7f754e65676 100644 --- a/drivers/sound/broadwell_i2s.c +++ b/drivers/sound/broadwell_i2s.c @@ -9,6 +9,7 @@ #define LOG_CATEGORY UCLASS_I2S +#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/broadwell_sound.c b/drivers/sound/broadwell_sound.c index 473f8d8f977..6e083fe1f69 100644 --- a/drivers/sound/broadwell_sound.c +++ b/drivers/sound/broadwell_sound.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_SOUND +#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/codec-uclass.c b/drivers/sound/codec-uclass.c index 1c1560619ea..2cb233bd306 100644 --- a/drivers/sound/codec-uclass.c +++ b/drivers/sound/codec-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_AUDIO_CODEC +#include <common.h> #include <dm.h> #include <audio_codec.h> diff --git a/drivers/sound/da7219.c b/drivers/sound/da7219.c index 5b9b3f65263..c1edef44360 100644 --- a/drivers/sound/da7219.c +++ b/drivers/sound/da7219.c @@ -6,6 +6,7 @@ * Parts taken from coreboot */ +#include <common.h> #include <dm.h> #include <i2c.h> #include <irq.h> diff --git a/drivers/sound/hda_codec.c b/drivers/sound/hda_codec.c index da8bde67de6..af6148ef724 100644 --- a/drivers/sound/hda_codec.c +++ b/drivers/sound/hda_codec.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_SOUND +#include <common.h> #include <dm.h> #include <hda_codec.h> #include <log.h> diff --git a/drivers/sound/i2s-uclass.c b/drivers/sound/i2s-uclass.c index 6263c4d7071..fc4f686b516 100644 --- a/drivers/sound/i2s-uclass.c +++ b/drivers/sound/i2s-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_I2S +#include <common.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/i8254_beep.c b/drivers/sound/i8254_beep.c index 7234ad4a07e..5572dc4d265 100644 --- a/drivers/sound/i8254_beep.c +++ b/drivers/sound/i8254_beep.c @@ -3,6 +3,7 @@ * Copyright 2018 Google LLC */ +#include <common.h> #include <dm.h> #include <sound.h> #include <asm/i8254.h> diff --git a/drivers/sound/ivybridge_sound.c b/drivers/sound/ivybridge_sound.c index aeeba1d267e..d982219e06d 100644 --- a/drivers/sound/ivybridge_sound.c +++ b/drivers/sound/ivybridge_sound.c @@ -12,6 +12,7 @@ #define LOG_CATEGORY UCLASS_SOUND +#include <common.h> #include <dm.h> #include <hda_codec.h> #include <log.h> diff --git a/drivers/sound/max98088.c b/drivers/sound/max98088.c index d9037641ca4..c0463b8e8a6 100644 --- a/drivers/sound/max98088.c +++ b/drivers/sound/max98088.c @@ -8,6 +8,7 @@ * following the changes made in max98095.c */ +#include <common.h> #include <audio_codec.h> #include <div64.h> #include <dm.h> diff --git a/drivers/sound/max98090.c b/drivers/sound/max98090.c index 18a3ffa85c8..a798762f1ee 100644 --- a/drivers/sound/max98090.c +++ b/drivers/sound/max98090.c @@ -5,6 +5,7 @@ * Copyright 2011 Maxim Integrated Products */ +#include <common.h> #include <audio_codec.h> #include <div64.h> #include <dm.h> diff --git a/drivers/sound/max98095.c b/drivers/sound/max98095.c index 96e772cff21..d0f701aaf10 100644 --- a/drivers/sound/max98095.c +++ b/drivers/sound/max98095.c @@ -7,6 +7,7 @@ * Modified for U-Boot by R. Chandrasekar ([email protected]) */ +#include <common.h> #include <audio_codec.h> #include <dm.h> #include <div64.h> diff --git a/drivers/sound/max98357a.c b/drivers/sound/max98357a.c index da56ffdd6bb..bdf6dc236ec 100644 --- a/drivers/sound/max98357a.c +++ b/drivers/sound/max98357a.c @@ -6,6 +6,7 @@ * Parts taken from coreboot */ +#include <common.h> #include <audio_codec.h> #include <dm.h> #include <log.h> diff --git a/drivers/sound/maxim_codec.c b/drivers/sound/maxim_codec.c index 98f094c0e9a..6553d959047 100644 --- a/drivers/sound/maxim_codec.c +++ b/drivers/sound/maxim_codec.c @@ -5,6 +5,7 @@ * Copyright 2011 Maxim Integrated Products */ +#include <common.h> #include <div64.h> #include <i2c.h> #include <i2s.h> diff --git a/drivers/sound/rockchip_i2s.c b/drivers/sound/rockchip_i2s.c index 5078dfbed07..4e9e68aaac8 100644 --- a/drivers/sound/rockchip_i2s.c +++ b/drivers/sound/rockchip_i2s.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_I2S +#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/rockchip_sound.c b/drivers/sound/rockchip_sound.c index 418d2efd452..94058e603d7 100644 --- a/drivers/sound/rockchip_sound.c +++ b/drivers/sound/rockchip_sound.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SOUND +#include <common.h> #include <audio_codec.h> #include <clk.h> #include <dm.h> diff --git a/drivers/sound/rt5677.c b/drivers/sound/rt5677.c index b5c997c6dd5..b655bb40b64 100644 --- a/drivers/sound/rt5677.c +++ b/drivers/sound/rt5677.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SOUND +#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2c.h> diff --git a/drivers/sound/samsung-i2s.c b/drivers/sound/samsung-i2s.c index 42175fd7d28..dc5a2789aee 100644 --- a/drivers/sound/samsung-i2s.c +++ b/drivers/sound/samsung-i2s.c @@ -4,11 +4,11 @@ * R. Chandrasekar <[email protected]> */ +#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> #include <sound.h> -#include <time.h> #include <asm/arch/clk.h> #include <asm/arch/pinmux.h> #include <asm/arch/i2s-regs.h> diff --git a/drivers/sound/samsung_sound.c b/drivers/sound/samsung_sound.c index 9150ad4a63b..473cedf7e97 100644 --- a/drivers/sound/samsung_sound.c +++ b/drivers/sound/samsung_sound.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/sandbox.c b/drivers/sound/sandbox.c index 31ae153530e..c6cbd81fdbc 100644 --- a/drivers/sound/sandbox.c +++ b/drivers/sound/sandbox.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SOUND +#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/sound-uclass.c b/drivers/sound/sound-uclass.c index b8a3dab447d..2ffc4fc7c1d 100644 --- a/drivers/sound/sound-uclass.c +++ b/drivers/sound/sound-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SOUND +#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/sound.c b/drivers/sound/sound.c index 4fde2989e04..c0fc50c99da 100644 --- a/drivers/sound/sound.c +++ b/drivers/sound/sound.c @@ -4,9 +4,9 @@ * R. Chandrasekar <[email protected]> */ +#include <common.h> #include <log.h> #include <sound.h> -#include <linux/string.h> void sound_create_square_wave(uint sample_rate, unsigned short *data, int size, uint freq, uint channels) diff --git a/drivers/sound/tegra_ahub.c b/drivers/sound/tegra_ahub.c index 8f1b0c009a8..495a29c5137 100644 --- a/drivers/sound/tegra_ahub.c +++ b/drivers/sound/tegra_ahub.c @@ -7,11 +7,11 @@ #define LOG_CATEGORY UCLASS_MISC +#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> #include <misc.h> -#include <time.h> #include <asm/io.h> #include <asm/arch-tegra/tegra_ahub.h> #include <asm/arch-tegra/tegra_i2s.h> diff --git a/drivers/sound/tegra_i2s.c b/drivers/sound/tegra_i2s.c index 357aac36cea..932f737900e 100644 --- a/drivers/sound/tegra_i2s.c +++ b/drivers/sound/tegra_i2s.c @@ -5,6 +5,7 @@ */ #define LOG_CATEGORY UCLASS_I2S +#include <common.h> #include <dm.h> #include <i2s.h> #include <log.h> diff --git a/drivers/sound/tegra_sound.c b/drivers/sound/tegra_sound.c index 152c929146f..aef6a2eb147 100644 --- a/drivers/sound/tegra_sound.c +++ b/drivers/sound/tegra_sound.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_I2S +#include <common.h> #include <audio_codec.h> #include <dm.h> #include <i2s.h> diff --git a/drivers/sound/wm8994.c b/drivers/sound/wm8994.c index 6b3091aa5de..fd646479b31 100644 --- a/drivers/sound/wm8994.c +++ b/drivers/sound/wm8994.c @@ -3,6 +3,7 @@ * Copyright (C) 2012 Samsung Electronics * R. Chandrasekar <[email protected]> */ +#include <common.h> #include <audio_codec.h> #include <dm.h> #include <div64.h> diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index 8e227d187b0..989679e881b 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -6,6 +6,7 @@ * Copyright (c) 2005-2008 Analog Devices Inc. * Copyright (C) 2010 Thomas Chou <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/apple_spi.c b/drivers/spi/apple_spi.c index 5f94e9f7a74..f35f5af1f6f 100644 --- a/drivers/spi/apple_spi.c +++ b/drivers/spi/apple_spi.c @@ -4,6 +4,7 @@ * Copyright The Asahi Linux Contributors */ +#include <common.h> #include <dm.h> #include <clk.h> #include <spi.h> diff --git a/drivers/spi/atcspi200_spi.c b/drivers/spi/atcspi200_spi.c index 929bf90458c..70cb242cd31 100644 --- a/drivers/spi/atcspi200_spi.c +++ b/drivers/spi/atcspi200_spi.c @@ -6,6 +6,7 @@ * Author: Rick Chen ([email protected]) */ +#include <common.h> #include <clk.h> #include <log.h> #include <malloc.h> diff --git a/drivers/spi/ath79_spi.c b/drivers/spi/ath79_spi.c index faefac71260..205567ef54d 100644 --- a/drivers/spi/ath79_spi.c +++ b/drivers/spi/ath79_spi.c @@ -3,6 +3,7 @@ * Copyright (C) 2015-2016 Wills Wang <[email protected]> */ +#include <common.h> #include <clock_legacy.h> #include <spi.h> #include <dm.h> diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 3efb661803b..bd73e4fddf1 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -12,6 +12,7 @@ #include <malloc.h> #include <asm/io.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index 79f01001318..d4f0c4c4483 100644 --- a/drivers/spi/atmel_spi.c +++ b/drivers/spi/atmel_spi.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2007 Atmel Corporation */ +#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/spi/bcm63xx_hsspi.c b/drivers/spi/bcm63xx_hsspi.c index 1aa43fd3a23..23ac5bb76c0 100644 --- a/drivers/spi/bcm63xx_hsspi.c +++ b/drivers/spi/bcm63xx_hsspi.c @@ -7,6 +7,7 @@ * Copyright (C) 2012-2013 Jonas Gorski <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/bcm63xx_spi.c b/drivers/spi/bcm63xx_spi.c index 595b41c8ab8..889ac1f966e 100644 --- a/drivers/spi/bcm63xx_spi.c +++ b/drivers/spi/bcm63xx_spi.c @@ -7,6 +7,7 @@ * Copyright (C) 2010 Tanguy Bouzeloc <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/bcmbca_hsspi.c b/drivers/spi/bcmbca_hsspi.c index eff9e1117d3..af45882db0a 100644 --- a/drivers/spi/bcmbca_hsspi.c +++ b/drivers/spi/bcmbca_hsspi.c @@ -8,6 +8,7 @@ * Copyright (C) 2021 Broadcom Ltd */ +#include <common.h> #include <asm/io.h> #include <clk.h> #include <spi.h> diff --git a/drivers/spi/ca_sflash.c b/drivers/spi/ca_sflash.c index a99a8a4485a..38bddd38619 100644 --- a/drivers/spi/ca_sflash.c +++ b/drivers/spi/ca_sflash.c @@ -7,6 +7,7 @@ * Author: PengPeng Chen <[email protected]> */ +#include <common.h> #include <malloc.h> #include <clk.h> #include <dm.h> diff --git a/drivers/spi/cadence_ospi_versal.c b/drivers/spi/cadence_ospi_versal.c index 222f828f54e..c2be307f1d8 100644 --- a/drivers/spi/cadence_ospi_versal.c +++ b/drivers/spi/cadence_ospi_versal.c @@ -6,6 +6,7 @@ */ #include <clk.h> +#include <common.h> #include <memalign.h> #include <wait_bit.h> #include <asm/io.h> diff --git a/drivers/spi/cadence_qspi.c b/drivers/spi/cadence_qspi.c index 75e52232010..f4593c47b8c 100644 --- a/drivers/spi/cadence_qspi.c +++ b/drivers/spi/cadence_qspi.c @@ -4,6 +4,7 @@ * Altera Corporation <www.altera.com> */ +#include <common.h> #include <clk.h> #include <log.h> #include <dm.h> diff --git a/drivers/spi/cadence_qspi_apb.c b/drivers/spi/cadence_qspi_apb.c index 93ab2b5635f..fb905322178 100644 --- a/drivers/spi/cadence_qspi_apb.c +++ b/drivers/spi/cadence_qspi_apb.c @@ -25,6 +25,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include <common.h> #include <log.h> #include <asm/io.h> #include <dma.h> diff --git a/drivers/spi/cf_spi.c b/drivers/spi/cf_spi.c index 8234468b1d4..1a841b5dcef 100644 --- a/drivers/spi/cf_spi.c +++ b/drivers/spi/cf_spi.c @@ -13,6 +13,7 @@ * TODO: fsl_dspi.c should work as a driver for the DSPI module. */ +#include <common.h> #include <dm.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 04c134be9ed..25f5e9fdebd 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -8,7 +8,7 @@ * Copyright (C) 2007 Atmel Corporation */ -#include <config.h> +#include <common.h> #include <log.h> #include <spi.h> #include <malloc.h> diff --git a/drivers/spi/designware_spi.c b/drivers/spi/designware_spi.c index 6bd48b1b373..22a79da2333 100644 --- a/drivers/spi/designware_spi.c +++ b/drivers/spi/designware_spi.c @@ -11,6 +11,7 @@ */ #define LOG_CATEGORY UCLASS_SPI +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/spi/exynos_spi.c b/drivers/spi/exynos_spi.c index 1b9bf004b7c..1bcc3ad318d 100644 --- a/drivers/spi/exynos_spi.c +++ b/drivers/spi/exynos_spi.c @@ -4,6 +4,7 @@ * Padmavathi Venna <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/fsl_dspi.c b/drivers/spi/fsl_dspi.c index 1d4d90ce5aa..9b3d5a94817 100644 --- a/drivers/spi/fsl_dspi.c +++ b/drivers/spi/fsl_dspi.c @@ -11,6 +11,7 @@ #include <asm/global_data.h> #include <linux/math64.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/fsl_espi.c b/drivers/spi/fsl_espi.c index 2638ed25200..b1d964d79d0 100644 --- a/drivers/spi/fsl_espi.c +++ b/drivers/spi/fsl_espi.c @@ -8,7 +8,7 @@ * Chuanhua Han ([email protected]) */ -#include <config.h> +#include <common.h> #include <log.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/spi/fsl_qspi.c b/drivers/spi/fsl_qspi.c index 8a0a53cb372..3f97730bad0 100644 --- a/drivers/spi/fsl_qspi.c +++ b/drivers/spi/fsl_qspi.c @@ -23,6 +23,7 @@ * Transition to spi-mem in spi-fsl-qspi.c */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/spi/ich.c b/drivers/spi/ich.c index e48ca65fe72..9142ffd2387 100644 --- a/drivers/spi/ich.c +++ b/drivers/spi/ich.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_SPI +#include <common.h> #include <bootstage.h> #include <div64.h> #include <dm.h> diff --git a/drivers/spi/iproc_qspi.c b/drivers/spi/iproc_qspi.c index 09f30c22702..b5c274314b5 100644 --- a/drivers/spi/iproc_qspi.c +++ b/drivers/spi/iproc_qspi.c @@ -3,6 +3,7 @@ * Copyright 2020-2021 Broadcom */ +#include <common.h> #include <dm.h> #include <spi.h> #include <spi-mem.h> diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c index 095cbea0fca..2bb7390bbfb 100644 --- a/drivers/spi/kirkwood_spi.c +++ b/drivers/spi/kirkwood_spi.c @@ -7,7 +7,7 @@ * Derived from drivers/spi/mpc8xxx_spi.c */ -#include <config.h> +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/spi/meson_spifc.c b/drivers/spi/meson_spifc.c index d7ebb6bf1ac..d99a151406e 100644 --- a/drivers/spi/meson_spifc.c +++ b/drivers/spi/meson_spifc.c @@ -7,6 +7,7 @@ * Amlogic Meson SPI Flash Controller driver */ +#include <common.h> #include <log.h> #include <spi.h> #include <clk.h> diff --git a/drivers/spi/microchip_coreqspi.c b/drivers/spi/microchip_coreqspi.c index 234b1688272..5fe0c8e1237 100644 --- a/drivers/spi/microchip_coreqspi.c +++ b/drivers/spi/microchip_coreqspi.c @@ -5,6 +5,7 @@ * Naga Sureshkumar Relli <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/mpc8xx_spi.c b/drivers/spi/mpc8xx_spi.c index 7e72fb9e23d..e1448cc6196 100644 --- a/drivers/spi/mpc8xx_spi.c +++ b/drivers/spi/mpc8xx_spi.c @@ -16,6 +16,7 @@ * */ +#include <common.h> #include <dm.h> #include <malloc.h> #include <mpc8xx.h> diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index cd624f4d6f0..7d15390c56b 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -4,6 +4,7 @@ * With help from the common/soft_spi and arch/powerpc/cpu/mpc8260 drivers */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/mscc_bb_spi.c b/drivers/spi/mscc_bb_spi.c index ad4daeba3cd..95bea0da1b3 100644 --- a/drivers/spi/mscc_bb_spi.c +++ b/drivers/spi/mscc_bb_spi.c @@ -5,6 +5,7 @@ * Copyright (c) 2018 Microsemi Corporation */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/mt7621_spi.c b/drivers/spi/mt7621_spi.c index e46942de2e3..3d008099862 100644 --- a/drivers/spi/mt7621_spi.c +++ b/drivers/spi/mt7621_spi.c @@ -8,6 +8,7 @@ * Copyright (C) 2014-2015 Felix Fietkau <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/mtk_snfi_spi.c b/drivers/spi/mtk_snfi_spi.c index 830424b31d6..3decb3744de 100644 --- a/drivers/spi/mtk_snfi_spi.c +++ b/drivers/spi/mtk_snfi_spi.c @@ -5,6 +5,7 @@ * Author: Weijie Gao <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/mtk_snor.c b/drivers/spi/mtk_snor.c index f202b2f49f5..4b7d4a6e074 100644 --- a/drivers/spi/mtk_snor.c +++ b/drivers/spi/mtk_snor.c @@ -7,6 +7,7 @@ // Some parts are based on drivers/spi/spi-mtk-nor.c of linux version #include <clk.h> +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device.h> diff --git a/drivers/spi/mvebu_a3700_spi.c b/drivers/spi/mvebu_a3700_spi.c index fde9b142fb8..bba2383a111 100644 --- a/drivers/spi/mvebu_a3700_spi.c +++ b/drivers/spi/mvebu_a3700_spi.c @@ -5,6 +5,7 @@ * Copyright (C) 2016 Stefan Roese <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/spi/mxc_spi.c b/drivers/spi/mxc_spi.c index ff61a14f095..e291092c481 100644 --- a/drivers/spi/mxc_spi.c +++ b/drivers/spi/mxc_spi.c @@ -3,7 +3,7 @@ * Copyright (C) 2008, Guennadi Liakhovetski <[email protected]> */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c index ad9e490faa9..773e26bbed7 100644 --- a/drivers/spi/mxs_spi.c +++ b/drivers/spi/mxs_spi.c @@ -12,6 +12,7 @@ * GPIO driven chipselects are not supported. */ +#include <common.h> #include <dm.h> #include <dt-structs.h> #include <cpu_func.h> diff --git a/drivers/spi/npcm_pspi.c b/drivers/spi/npcm_pspi.c index 7708a96971c..c9441304f5a 100644 --- a/drivers/spi/npcm_pspi.c +++ b/drivers/spi/npcm_pspi.c @@ -3,6 +3,7 @@ * Copyright (c) 2021 Nuvoton Technology. */ +#include <common.h> #include <dm.h> #include <spi.h> #include <clk.h> diff --git a/drivers/spi/nxp_fspi.c b/drivers/spi/nxp_fspi.c index fefdaaa9e90..5db27f9ae2c 100644 --- a/drivers/spi/nxp_fspi.c +++ b/drivers/spi/nxp_fspi.c @@ -33,6 +33,7 @@ * Frieder Schrempf <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index 3d82fc74ff5..5cce6baa621 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -16,9 +16,9 @@ * Modified by Ruslan Araslanov <[email protected]> */ +#include <common.h> #include <dm.h> #include <spi.h> -#include <time.h> #include <malloc.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/spi/pic32_spi.c b/drivers/spi/pic32_spi.c index e11ae7fc7a4..45f07f083da 100644 --- a/drivers/spi/pic32_spi.c +++ b/drivers/spi/pic32_spi.c @@ -6,6 +6,7 @@ * Purna Chandra Mandal <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/pl022_spi.c b/drivers/spi/pl022_spi.c index 1e20701d0d3..e2b49ebd149 100644 --- a/drivers/spi/pl022_spi.c +++ b/drivers/spi/pl022_spi.c @@ -10,6 +10,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <fdtdec.h> diff --git a/drivers/spi/renesas_rpc_spi.c b/drivers/spi/renesas_rpc_spi.c index e6b602cf7b4..8aff2238645 100644 --- a/drivers/spi/renesas_rpc_spi.c +++ b/drivers/spi/renesas_rpc_spi.c @@ -5,6 +5,7 @@ * Copyright (C) 2018 Marek Vasut <[email protected]> */ +#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/spi/rk_spi.c b/drivers/spi/rk_spi.c index 4571dc9f9b6..c8694fdff95 100644 --- a/drivers/spi/rk_spi.c +++ b/drivers/spi/rk_spi.c @@ -10,6 +10,7 @@ * Peter, Software Engineering, <[email protected]>. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dt-structs.h> diff --git a/drivers/spi/sandbox_spi.c b/drivers/spi/sandbox_spi.c index 4cc016138b1..f844597d04c 100644 --- a/drivers/spi/sandbox_spi.c +++ b/drivers/spi/sandbox_spi.c @@ -10,6 +10,7 @@ #define LOG_CATEGORY UCLASS_SPI +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/spi/sh_qspi.c b/drivers/spi/sh_qspi.c index b7364a61929..72594993853 100644 --- a/drivers/spi/sh_qspi.c +++ b/drivers/spi/sh_qspi.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_SPI +#include <common.h> #include <console.h> #include <malloc.h> #include <spi.h> diff --git a/drivers/spi/soft_spi.c b/drivers/spi/soft_spi.c index 9bdb4a5bff9..0fa14339bdc 100644 --- a/drivers/spi/soft_spi.c +++ b/drivers/spi/soft_spi.c @@ -9,6 +9,7 @@ * Wolfgang Denk, DENX Software Engineering, [email protected]. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/spi/spi-aspeed-smc.c b/drivers/spi/spi-aspeed-smc.c index d91d58da459..7d5f101a766 100644 --- a/drivers/spi/spi-aspeed-smc.c +++ b/drivers/spi/spi-aspeed-smc.c @@ -12,6 +12,7 @@ #include <asm/io.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/spi/spi-emul-uclass.c b/drivers/spi/spi-emul-uclass.c index d92f36bd20e..64bc19c0011 100644 --- a/drivers/spi/spi-emul-uclass.c +++ b/drivers/spi/spi-emul-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SPI_EMUL +#include <common.h> #include <dm.h> #include <spi.h> #include <spi_flash.h> diff --git a/drivers/spi/spi-mem.c b/drivers/spi/spi-mem.c index 3579b7d7db5..b7eca583595 100644 --- a/drivers/spi/spi-mem.c +++ b/drivers/spi/spi-mem.c @@ -13,6 +13,7 @@ #include <linux/pm_runtime.h> #include "internals.h" #else +#include <common.h> #include <dm.h> #include <errno.h> #include <malloc.h> diff --git a/drivers/spi/spi-mxic.c b/drivers/spi/spi-mxic.c index b98bcd9b6ba..f663b9dcbb1 100644 --- a/drivers/spi/spi-mxic.c +++ b/drivers/spi/spi-mxic.c @@ -6,6 +6,7 @@ * zhengxunli <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 836c550b0bb..572cef1694c 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -15,6 +15,7 @@ #include <asm/gpio.h> #include <asm/io.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <linux/delay.h> diff --git a/drivers/spi/spi-sifive.c b/drivers/spi/spi-sifive.c index 0c8666c05f9..ea372a05f83 100644 --- a/drivers/spi/spi-sifive.c +++ b/drivers/spi/spi-sifive.c @@ -6,6 +6,7 @@ * SiFive SPI controller driver (master mode only) */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <malloc.h> diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c index fc82791006e..e3633a52608 100644 --- a/drivers/spi/spi-sn-f-ospi.c +++ b/drivers/spi/spi-sn-f-ospi.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitfield.h> diff --git a/drivers/spi/spi-sunxi.c b/drivers/spi/spi-sunxi.c index 13725ee7a2d..9ec6b359e22 100644 --- a/drivers/spi/spi-sunxi.c +++ b/drivers/spi/spi-sunxi.c @@ -18,6 +18,7 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/spi-synquacer.c b/drivers/spi/spi-synquacer.c index eb522fd7b3d..553f9687e3b 100644 --- a/drivers/spi/spi-synquacer.c +++ b/drivers/spi/spi-synquacer.c @@ -6,6 +6,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c index 6e281725239..f4795e68672 100644 --- a/drivers/spi/spi-uclass.c +++ b/drivers/spi/spi-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_SPI +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 50a076a98be..22910de0dd9 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -3,6 +3,7 @@ * Copyright (c) 2011 The Chromium OS Authors. */ +#include <common.h> #include <fdtdec.h> #include <malloc.h> #include <spi.h> diff --git a/drivers/spi/stm32_qspi.c b/drivers/spi/stm32_qspi.c index 2812a4da411..2ffa201a66e 100644 --- a/drivers/spi/stm32_qspi.c +++ b/drivers/spi/stm32_qspi.c @@ -9,6 +9,7 @@ #define LOG_CATEGORY UCLASS_SPI +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c index 97b83b17167..ddb410a94c0 100644 --- a/drivers/spi/stm32_spi.c +++ b/drivers/spi/stm32_spi.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_SPI +#include <common.h> #include <clk.h> #include <dm.h> #include <errno.h> diff --git a/drivers/spi/tegra114_spi.c b/drivers/spi/tegra114_spi.c index 57f1a8fc703..f0256d8e664 100644 --- a/drivers/spi/tegra114_spi.c +++ b/drivers/spi/tegra114_spi.c @@ -5,6 +5,7 @@ * Copyright (c) 2010-2013 NVIDIA Corporation */ +#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/tegra20_sflash.c b/drivers/spi/tegra20_sflash.c index 19114808e9d..10e38cf839d 100644 --- a/drivers/spi/tegra20_sflash.c +++ b/drivers/spi/tegra20_sflash.c @@ -5,6 +5,7 @@ * With more help from omap3_spi SPI driver */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/tegra20_slink.c b/drivers/spi/tegra20_slink.c index d54a5049205..d0e788539e0 100644 --- a/drivers/spi/tegra20_slink.c +++ b/drivers/spi/tegra20_slink.c @@ -5,6 +5,7 @@ * Copyright (c) 2010-2013 NVIDIA Corporation */ +#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/tegra210_qspi.c b/drivers/spi/tegra210_qspi.c index b969a7993d4..5c8c1859cc9 100644 --- a/drivers/spi/tegra210_qspi.c +++ b/drivers/spi/tegra210_qspi.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index a16412ec6fb..99acb108823 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -5,6 +5,7 @@ * Copyright (C) 2013, Texas Instruments, Incorporated */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/cache.h> diff --git a/drivers/spi/uniphier_spi.c b/drivers/spi/uniphier_spi.c index 8f2c0fb4b8e..6402acbf14a 100644 --- a/drivers/spi/uniphier_spi.c +++ b/drivers/spi/uniphier_spi.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <log.h> #include <time.h> diff --git a/drivers/spi/xilinx_spi.c b/drivers/spi/xilinx_spi.c index 0e7fa3a4525..94ddf4967ea 100644 --- a/drivers/spi/xilinx_spi.c +++ b/drivers/spi/xilinx_spi.c @@ -13,6 +13,7 @@ */ #include <config.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/spi/zynq_qspi.c b/drivers/spi/zynq_qspi.c index b71b9a6fd6c..cb52c0f3072 100644 --- a/drivers/spi/zynq_qspi.c +++ b/drivers/spi/zynq_qspi.c @@ -7,6 +7,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/spi/zynq_spi.c b/drivers/spi/zynq_spi.c index ebcb5b6cc88..b3e0858eb94 100644 --- a/drivers/spi/zynq_spi.c +++ b/drivers/spi/zynq_spi.c @@ -6,6 +6,7 @@ * Xilinx Zynq PS SPI controller driver (master mode only) */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <log.h> diff --git a/drivers/spi/zynqmp_gqspi.c b/drivers/spi/zynqmp_gqspi.c index 61349a4da53..a323994fb2d 100644 --- a/drivers/spi/zynqmp_gqspi.c +++ b/drivers/spi/zynqmp_gqspi.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_SPI +#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/arch/sys_proto.h> diff --git a/drivers/spmi/spmi-msm.c b/drivers/spmi/spmi-msm.c index b0d6226041e..244de69b359 100644 --- a/drivers/spmi/spmi-msm.c +++ b/drivers/spmi/spmi-msm.c @@ -7,6 +7,7 @@ * Loosely based on Little Kernel driver */ +#include <common.h> #include <dm.h> #include <errno.h> #include <fdtdec.h> diff --git a/drivers/spmi/spmi-sandbox.c b/drivers/spmi/spmi-sandbox.c index 992b08dd612..f6772946bca 100644 --- a/drivers/spmi/spmi-sandbox.c +++ b/drivers/spmi/spmi-sandbox.c @@ -7,6 +7,7 @@ * (C) Copyright 2015 Mateusz Kulikowski <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <spmi/spmi.h> diff --git a/drivers/spmi/spmi-uclass.c b/drivers/spmi/spmi-uclass.c index 34fe8f6644c..9d9f46a37d8 100644 --- a/drivers/spmi/spmi-uclass.c +++ b/drivers/spmi/spmi-uclass.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_SPMI +#include <common.h> #include <dm.h> #include <errno.h> #include <spmi/spmi.h> diff --git a/drivers/sysinfo/gazerbeam.c b/drivers/sysinfo/gazerbeam.c index a3c9d5354dd..c1fae6ccf2a 100644 --- a/drivers/sysinfo/gazerbeam.c +++ b/drivers/sysinfo/gazerbeam.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <sysinfo.h> #include <i2c.h> diff --git a/drivers/sysinfo/gpio.c b/drivers/sysinfo/gpio.c index aaca318419b..82f90303bb7 100644 --- a/drivers/sysinfo/gpio.c +++ b/drivers/sysinfo/gpio.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Sean Anderson <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <sysinfo.h> diff --git a/drivers/sysinfo/rcar3.c b/drivers/sysinfo/rcar3.c index 37e2cccd9af..7b127986da7 100644 --- a/drivers/sysinfo/rcar3.c +++ b/drivers/sysinfo/rcar3.c @@ -3,6 +3,7 @@ * Copyright (C) 2021 Marek Vasut <[email protected]> */ +#include <common.h> #include <dm.h> #include <i2c_eeprom.h> #include <log.h> diff --git a/drivers/sysinfo/sandbox.c b/drivers/sysinfo/sandbox.c index d39720958f0..d270a26aa43 100644 --- a/drivers/sysinfo/sandbox.c +++ b/drivers/sysinfo/sandbox.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <sysinfo.h> diff --git a/drivers/sysinfo/smbios.c b/drivers/sysinfo/smbios.c index a7ac8e3f072..80ebd1921d8 100644 --- a/drivers/sysinfo/smbios.c +++ b/drivers/sysinfo/smbios.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <sysinfo.h> diff --git a/drivers/sysinfo/sysinfo-uclass.c b/drivers/sysinfo/sysinfo-uclass.c index d77d1e3ee44..10194d0e14c 100644 --- a/drivers/sysinfo/sysinfo-uclass.c +++ b/drivers/sysinfo/sysinfo-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SYSINFO +#include <common.h> #include <dm.h> #include <sysinfo.h> diff --git a/drivers/sysreset/poweroff_gpio.c b/drivers/sysreset/poweroff_gpio.c index d9220024f47..ad04e4b1a85 100644 --- a/drivers/sysreset/poweroff_gpio.c +++ b/drivers/sysreset/poweroff_gpio.c @@ -11,6 +11,7 @@ * Copyright (C) 2012 Jamie Lentin */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset-ti-sci.c b/drivers/sysreset/sysreset-ti-sci.c index 451fc5de735..0de132633a8 100644 --- a/drivers/sysreset/sysreset-ti-sci.c +++ b/drivers/sysreset/sysreset-ti-sci.c @@ -6,6 +6,7 @@ * Andreas Dannenberg <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-uclass.c index 0abb4042e0f..6151b5fe03e 100644 --- a/drivers/sysreset/sysreset-uclass.c +++ b/drivers/sysreset/sysreset-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_SYSRESET +#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/sysreset/sysreset_ast.c b/drivers/sysreset/sysreset_ast.c index ef09440bbef..92fad96871b 100644 --- a/drivers/sysreset/sysreset_ast.c +++ b/drivers/sysreset/sysreset_ast.c @@ -3,6 +3,7 @@ * (C) Copyright 2016 Google, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_at91.c b/drivers/sysreset/sysreset_at91.c index 457042c7aae..fc85f31ebf0 100644 --- a/drivers/sysreset/sysreset_at91.c +++ b/drivers/sysreset/sysreset_at91.c @@ -7,6 +7,7 @@ #include <asm/io.h> #include <asm/arch/at91_rstc.h> #include <clk.h> +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/sysreset/sysreset_gpio.c b/drivers/sysreset/sysreset_gpio.c index 47018844a51..de42b593542 100644 --- a/drivers/sysreset/sysreset_gpio.c +++ b/drivers/sysreset/sysreset_gpio.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Xilinx, Inc. - Michal Simek */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_microblaze.c b/drivers/sysreset/sysreset_microblaze.c index b81d82f046b..83a7f77ac41 100644 --- a/drivers/sysreset/sysreset_microblaze.c +++ b/drivers/sysreset/sysreset_microblaze.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Xilinx, Inc. - Michal Simek */ +#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_mpc83xx.c b/drivers/sysreset/sysreset_mpc83xx.c index dca49299f77..ca48328f7b5 100644 --- a/drivers/sysreset/sysreset_mpc83xx.c +++ b/drivers/sysreset/sysreset_mpc83xx.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <command.h> #include <dm.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_octeon.c b/drivers/sysreset/sysreset_octeon.c index c16223720e5..ebdea6ab66e 100644 --- a/drivers/sysreset/sysreset_octeon.c +++ b/drivers/sysreset/sysreset_octeon.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Stefan Roese <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_psci.c b/drivers/sysreset/sysreset_psci.c index 89b4f2dcaec..aa09d0b8827 100644 --- a/drivers/sysreset/sysreset_psci.c +++ b/drivers/sysreset/sysreset_psci.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Masahiro Yamada <[email protected]> */ +#include <common.h> #include <dm.h> #include <sysreset.h> #include <linux/errno.h> diff --git a/drivers/sysreset/sysreset_resetctl.c b/drivers/sysreset/sysreset_resetctl.c index fbe3999b960..25bd5c9a7ff 100644 --- a/drivers/sysreset/sysreset_resetctl.c +++ b/drivers/sysreset/sysreset_resetctl.c @@ -5,6 +5,7 @@ * Author: Weijie Gao <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_rockchip.c b/drivers/sysreset/sysreset_rockchip.c index 00308f9a33b..f353f9b4c79 100644 --- a/drivers/sysreset/sysreset_rockchip.c +++ b/drivers/sysreset/sysreset_rockchip.c @@ -3,6 +3,7 @@ * (C) Copyright 2017 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sandbox.c b/drivers/sysreset/sysreset_sandbox.c index 93179f90bbb..c12eda81d03 100644 --- a/drivers/sysreset/sysreset_sandbox.c +++ b/drivers/sysreset/sysreset_sandbox.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sbi.c b/drivers/sysreset/sysreset_sbi.c index 458191206b2..5e8090d62bf 100644 --- a/drivers/sysreset/sysreset_sbi.c +++ b/drivers/sysreset/sysreset_sbi.c @@ -3,6 +3,7 @@ * Copyright 2021, Heinrich Schuchardt <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/sysreset/sysreset_socfpga.c b/drivers/sysreset/sysreset_socfpga.c index a07b0f4fd55..9b62dd5eab0 100644 --- a/drivers/sysreset/sysreset_socfpga.c +++ b/drivers/sysreset/sysreset_socfpga.c @@ -4,6 +4,7 @@ * Simon Goldschmidt <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_socfpga_soc64.c b/drivers/sysreset/sysreset_socfpga_soc64.c index 6f44792abb0..9837aadf64b 100644 --- a/drivers/sysreset/sysreset_socfpga_soc64.c +++ b/drivers/sysreset/sysreset_socfpga_soc64.c @@ -4,6 +4,7 @@ * Simon Goldschmidt <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/sysreset/sysreset_sti.c b/drivers/sysreset/sysreset_sti.c index 110b7e23afa..edd90aab061 100644 --- a/drivers/sysreset/sysreset_sti.c +++ b/drivers/sysreset/sysreset_sti.c @@ -4,6 +4,7 @@ * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. */ +#include <common.h> #include <dm.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/sysreset/sysreset_syscon.c b/drivers/sysreset/sysreset_syscon.c index 57144fa1e3b..e468dac0e90 100644 --- a/drivers/sysreset/sysreset_syscon.c +++ b/drivers/sysreset/sysreset_syscon.c @@ -7,6 +7,7 @@ * Author: Feng Kan <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <regmap.h> diff --git a/drivers/sysreset/sysreset_watchdog.c b/drivers/sysreset/sysreset_watchdog.c index 49c061e0880..6db5aa75b54 100644 --- a/drivers/sysreset/sysreset_watchdog.c +++ b/drivers/sysreset/sysreset_watchdog.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Ălvaro FernĂĄndez Rojas <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <errno.h> diff --git a/drivers/sysreset/sysreset_x86.c b/drivers/sysreset/sysreset_x86.c index c2f28c65280..dc772b5ff9e 100644 --- a/drivers/sysreset/sysreset_x86.c +++ b/drivers/sysreset/sysreset_x86.c @@ -5,6 +5,7 @@ * Generic reset driver for x86 processor */ +#include <common.h> #include <dm.h> #include <efi_loader.h> #include <pch.h> diff --git a/drivers/sysreset/sysreset_xtfpga.c b/drivers/sysreset/sysreset_xtfpga.c index ab71ea11a0b..84fbc79016a 100644 --- a/drivers/sysreset/sysreset_xtfpga.c +++ b/drivers/sysreset/sysreset_xtfpga.c @@ -5,7 +5,7 @@ * (C) Copyright 2016 Cadence Design Systems Inc. */ -#include <config.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <sysreset.h> diff --git a/drivers/thermal/imx_scu_thermal.c b/drivers/thermal/imx_scu_thermal.c index fc2b0e227b2..3ec131cbc6e 100644 --- a/drivers/thermal/imx_scu_thermal.c +++ b/drivers/thermal/imx_scu_thermal.c @@ -4,6 +4,7 @@ */ #include <config.h> +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/thermal/imx_thermal.c b/drivers/thermal/imx_thermal.c index ea1fcc3dcb2..2f6343e7a18 100644 --- a/drivers/thermal/imx_thermal.c +++ b/drivers/thermal/imx_thermal.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <div64.h> #include <fuse.h> #include <log.h> diff --git a/drivers/thermal/imx_tmu.c b/drivers/thermal/imx_tmu.c index 70d002aee25..ea6c8329c0a 100644 --- a/drivers/thermal/imx_tmu.c +++ b/drivers/thermal/imx_tmu.c @@ -5,6 +5,7 @@ */ #include <config.h> +#include <common.h> #include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/drivers/thermal/thermal-uclass.c b/drivers/thermal/thermal-uclass.c index f0fe912e313..700df8af254 100644 --- a/drivers/thermal/thermal-uclass.c +++ b/drivers/thermal/thermal-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_THERMAL +#include <common.h> #include <dm.h> #include <thermal.h> #include <errno.h> diff --git a/drivers/thermal/thermal_sandbox.c b/drivers/thermal/thermal_sandbox.c index 9af0d0247cb..7dc0d108b8c 100644 --- a/drivers/thermal/thermal_sandbox.c +++ b/drivers/thermal/thermal_sandbox.c @@ -6,6 +6,7 @@ * Sandbox driver for the thermal uclass. */ +#include <common.h> #include <dm.h> #include <thermal.h> diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig index 6b1de82ae38..60519c3b536 100644 --- a/drivers/timer/Kconfig +++ b/drivers/timer/Kconfig @@ -50,14 +50,6 @@ config TIMER_EARLY use an early timer. These functions must be supported by your timer driver: timer_early_get_count() and timer_early_get_rate(). -config ADI_SC5XX_TIMER - bool "ADI ADSP-SC5xx Timer Support" - depends on TIMER && (SC57X || SC58X || SC59X || SC59X_64) - help - gptimer based timer support on ADI's ADSP-SC5xx platforms. Available - but not required on sc59x-64-based platforms (598 and similar). - Required on 32-bit platforms (sc57x, sc58x, sc594 and earlier). - config ALTERA_TIMER bool "Altera timer support" depends on TIMER diff --git a/drivers/timer/Makefile b/drivers/timer/Makefile index fb95c8899e3..b93145e8d43 100644 --- a/drivers/timer/Makefile +++ b/drivers/timer/Makefile @@ -3,7 +3,6 @@ # Copyright (C) 2015 Thomas Chou <[email protected]> obj-y += timer-uclass.o -obj-$(CONFIG_ADI_SC5XX_TIMER) += adi_sc5xx_timer.o obj-$(CONFIG_ALTERA_TIMER) += altera_timer.o obj-$(CONFIG_$(SPL_)ANDES_PLMT_TIMER) += andes_plmt_timer.o obj-$(CONFIG_ARC_TIMER) += arc_timer.o diff --git a/drivers/timer/adi_sc5xx_timer.c b/drivers/timer/adi_sc5xx_timer.c deleted file mode 100644 index 11c098434a8..00000000000 --- a/drivers/timer/adi_sc5xx_timer.c +++ /dev/null @@ -1,145 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0-or-later -/* - * (C) Copyright 2022 - Analog Devices, Inc. - * - * Written and/or maintained by Timesys Corporation - * - * Converted to driver model by Nathan Barrett-Morrison - * - * Author: Greg Malysa <[email protected]> - * Additional Contact: Nathan Barrett-Morrison <[email protected]> - * - * dm timer implementation for ADI ADSP-SC5xx SoCs - * - */ - -#include <clk.h> -#include <dm.h> -#include <timer.h> -#include <asm/io.h> -#include <dm/device_compat.h> -#include <linux/compiler_types.h> - -/* - * Timer Configuration Register Bits - */ -#define TIMER_OUT_DIS 0x0800 -#define TIMER_PULSE_HI 0x0080 -#define TIMER_MODE_PWM_CONT 0x000c - -#define __BFP(m) u16 m; u16 __pad_##m - -struct gptimer3 { - __BFP(config); - u32 counter; - u32 period; - u32 width; - u32 delay; -}; - -struct gptimer3_group_regs { - __BFP(run); - __BFP(enable); - __BFP(disable); - __BFP(stop_cfg); - __BFP(stop_cfg_set); - __BFP(stop_cfg_clr); - __BFP(data_imsk); - __BFP(stat_imsk); - __BFP(tr_msk); - __BFP(tr_ie); - __BFP(data_ilat); - __BFP(stat_ilat); - __BFP(err_status); - __BFP(bcast_per); - __BFP(bcast_wid); - __BFP(bcast_dly); -}; - -#define MAX_TIM_LOAD 0xFFFFFFFF - -struct adi_gptimer_priv { - struct gptimer3_group_regs __iomem *timer_group; - struct gptimer3 __iomem *timer_base; - u32 prev; - u64 upper; -}; - -static u64 adi_gptimer_get_count(struct udevice *udev) -{ - struct adi_gptimer_priv *priv = dev_get_priv(udev); - - u32 now = readl(&priv->timer_base->counter); - - if (now < priv->prev) - priv->upper += (1ull << 32); - - priv->prev = now; - - return (priv->upper + (u64)now); -} - -static const struct timer_ops adi_gptimer_ops = { - .get_count = adi_gptimer_get_count, -}; - -static int adi_gptimer_probe(struct udevice *udev) -{ - struct timer_dev_priv *uc_priv = dev_get_uclass_priv(udev); - struct adi_gptimer_priv *priv = dev_get_priv(udev); - struct clk clk; - u16 imask; - int ret; - - priv->timer_group = dev_remap_addr_index(udev, 0); - priv->timer_base = dev_remap_addr_index(udev, 1); - priv->upper = 0; - priv->prev = 0; - - if (!priv->timer_group || !priv->timer_base) { - dev_err(udev, "Missing timer_group or timer_base reg entries\n"); - return -ENODEV; - } - - ret = clk_get_by_index(udev, 0, &clk); - if (ret < 0) { - dev_err(udev, "Missing clock reference for timer\n"); - return ret; - } - - ret = clk_enable(&clk); - if (ret) { - dev_err(udev, "Failed to enable clock\n"); - return ret; - } - - uc_priv->clock_rate = clk_get_rate(&clk); - - /* Enable timer */ - writew(TIMER_OUT_DIS | TIMER_MODE_PWM_CONT | TIMER_PULSE_HI, - &priv->timer_base->config); - writel(MAX_TIM_LOAD, &priv->timer_base->period); - writel(MAX_TIM_LOAD - 1, &priv->timer_base->width); - - /* We only use timer 0 in uboot */ - imask = readw(&priv->timer_group->data_imsk); - imask &= ~(1 << 0); - writew(imask, &priv->timer_group->data_imsk); - writew((1 << 0), &priv->timer_group->enable); - - return 0; -} - -static const struct udevice_id adi_gptimer_ids[] = { - { .compatible = "adi,sc5xx-gptimer" }, - { }, -}; - -U_BOOT_DRIVER(adi_gptimer) = { - .name = "adi_gptimer", - .id = UCLASS_TIMER, - .of_match = adi_gptimer_ids, - .priv_auto = sizeof(struct adi_gptimer_priv), - .probe = adi_gptimer_probe, - .ops = &adi_gptimer_ops, -}; diff --git a/drivers/timer/altera_timer.c b/drivers/timer/altera_timer.c index ece246c23d2..040dc65f48a 100644 --- a/drivers/timer/altera_timer.c +++ b/drivers/timer/altera_timer.c @@ -7,6 +7,7 @@ * Scott McNutt <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/andes_plmt_timer.c b/drivers/timer/andes_plmt_timer.c index 20baaf61307..42dd4b62317 100644 --- a/drivers/timer/andes_plmt_timer.c +++ b/drivers/timer/andes_plmt_timer.c @@ -8,6 +8,7 @@ * associated with timer tick. */ +#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/arc_timer.c b/drivers/timer/arc_timer.c index 413bcc32f01..497f8a04155 100644 --- a/drivers/timer/arc_timer.c +++ b/drivers/timer/arc_timer.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Synopsys, Inc. All rights reserved. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/arm_global_timer.c b/drivers/timer/arm_global_timer.c index b8057929f99..2e50d9fbc58 100644 --- a/drivers/timer/arm_global_timer.c +++ b/drivers/timer/arm_global_timer.c @@ -6,7 +6,7 @@ * ARM Cortext A9 global timer driver */ -#include <config.h> +#include <common.h> #include <dm.h> #include <clk.h> #include <timer.h> diff --git a/drivers/timer/arm_twd_timer.c b/drivers/timer/arm_twd_timer.c index 2b2f3591173..40ccd165874 100644 --- a/drivers/timer/arm_twd_timer.c +++ b/drivers/timer/arm_twd_timer.c @@ -27,6 +27,7 @@ * Alex Zuepke <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <timer.h> diff --git a/drivers/timer/ast_timer.c b/drivers/timer/ast_timer.c index 6601cab7b16..78adc96cc59 100644 --- a/drivers/timer/ast_timer.c +++ b/drivers/timer/ast_timer.c @@ -3,6 +3,7 @@ * Copyright 2016 Google Inc. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/atmel_pit_timer.c b/drivers/timer/atmel_pit_timer.c index 0a367a5a7f4..5cf46f224ab 100644 --- a/drivers/timer/atmel_pit_timer.c +++ b/drivers/timer/atmel_pit_timer.c @@ -4,6 +4,7 @@ * Wenyou.Yang <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/atmel_tcb_timer.c b/drivers/timer/atmel_tcb_timer.c index 3a328b2f6c7..8c17987c7d7 100644 --- a/drivers/timer/atmel_tcb_timer.c +++ b/drivers/timer/atmel_tcb_timer.c @@ -5,6 +5,7 @@ * Author: ClĂ©ment LĂ©ger <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/cadence-ttc.c b/drivers/timer/cadence-ttc.c index 3cffb1bb88d..2eff45060ad 100644 --- a/drivers/timer/cadence-ttc.c +++ b/drivers/timer/cadence-ttc.c @@ -3,6 +3,7 @@ * Copyright (C) 2018 Xilinx, Inc. (Michal Simek) */ +#include <common.h> #include <bootstage.h> #include <dm.h> #include <errno.h> diff --git a/drivers/timer/dw-apb-timer.c b/drivers/timer/dw-apb-timer.c index 77ccb98cb8d..0607f751ca7 100644 --- a/drivers/timer/dw-apb-timer.c +++ b/drivers/timer/dw-apb-timer.c @@ -5,6 +5,7 @@ * Copyright (C) 2018 Marek Vasut <[email protected]> */ +#include <common.h> #include <dm.h> #include <clk.h> #include <dt-structs.h> diff --git a/drivers/timer/fttmr010_timer.c b/drivers/timer/fttmr010_timer.c index c41bbfc1d57..b6289e64610 100644 --- a/drivers/timer/fttmr010_timer.c +++ b/drivers/timer/fttmr010_timer.c @@ -5,6 +5,7 @@ * * 23/08/2022 Port to DM */ +#include <common.h> #include <dm.h> #include <log.h> #include <timer.h> diff --git a/drivers/timer/imx-gpt-timer.c b/drivers/timer/imx-gpt-timer.c index 07b9fdb5e18..9c3b64ae5b1 100644 --- a/drivers/timer/imx-gpt-timer.c +++ b/drivers/timer/imx-gpt-timer.c @@ -4,7 +4,7 @@ * Author(s): Giulio Benetti <[email protected]> */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/timer/mchp-pit64b-timer.c b/drivers/timer/mchp-pit64b-timer.c index 1a5b2e6a0dc..c9806d7eeeb 100644 --- a/drivers/timer/mchp-pit64b-timer.c +++ b/drivers/timer/mchp-pit64b-timer.c @@ -7,6 +7,7 @@ * Author: Claudiu Beznea <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/mpc83xx_timer.c b/drivers/timer/mpc83xx_timer.c index 9da74479aaa..7814cb6a5d6 100644 --- a/drivers/timer/mpc83xx_timer.c +++ b/drivers/timer/mpc83xx_timer.c @@ -4,7 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <irq_func.h> diff --git a/drivers/timer/mtk_timer.c b/drivers/timer/mtk_timer.c index 8216c289837..223e63f6c1a 100644 --- a/drivers/timer/mtk_timer.c +++ b/drivers/timer/mtk_timer.c @@ -7,6 +7,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/nomadik-mtu-timer.c b/drivers/timer/nomadik-mtu-timer.c index 9a05582c0d5..4d24de14ae6 100644 --- a/drivers/timer/nomadik-mtu-timer.c +++ b/drivers/timer/nomadik-mtu-timer.c @@ -12,6 +12,7 @@ * Copyright (C) 2010 Linus Walleij for ST-Ericsson */ +#include <common.h> #include <dm.h> #include <timer.h> #include <asm/io.h> diff --git a/drivers/timer/npcm-timer.c b/drivers/timer/npcm-timer.c index 9463fd29ce8..4562a6f2311 100644 --- a/drivers/timer/npcm-timer.c +++ b/drivers/timer/npcm-timer.c @@ -3,6 +3,7 @@ * Copyright (c) 2022 Nuvoton Technology Corp. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <timer.h> diff --git a/drivers/timer/omap-timer.c b/drivers/timer/omap-timer.c index fda6356fdba..9b6d97dae67 100644 --- a/drivers/timer/omap-timer.c +++ b/drivers/timer/omap-timer.c @@ -5,6 +5,7 @@ * Copyright (C) 2015, Texas Instruments, Incorporated */ +#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/orion-timer.c b/drivers/timer/orion-timer.c index 821b681a232..9cab27f2e48 100644 --- a/drivers/timer/orion-timer.c +++ b/drivers/timer/orion-timer.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ #include <asm/io.h> -#include <config.h> +#include <common.h> #include <div64.h> #include <dm/device.h> #include <dm/fdtaddr.h> diff --git a/drivers/timer/ostm_timer.c b/drivers/timer/ostm_timer.c index 314f956cdfb..3bf0d4647b5 100644 --- a/drivers/timer/ostm_timer.c +++ b/drivers/timer/ostm_timer.c @@ -5,6 +5,7 @@ * Copyright (C) 2019 Marek Vasut <[email protected]> */ +#include <common.h> #include <clock_legacy.h> #include <malloc.h> #include <asm/global_data.h> diff --git a/drivers/timer/riscv_aclint_timer.c b/drivers/timer/riscv_aclint_timer.c index 35da1ea2fd2..73fb8791285 100644 --- a/drivers/timer/riscv_aclint_timer.c +++ b/drivers/timer/riscv_aclint_timer.c @@ -4,7 +4,7 @@ * Copyright (C) 2018, Bin Meng <[email protected]> */ -#include <config.h> +#include <common.h> #include <clk.h> #include <div64.h> #include <dm.h> diff --git a/drivers/timer/riscv_timer.c b/drivers/timer/riscv_timer.c index 1f4980ceb38..169c03dcb5c 100644 --- a/drivers/timer/riscv_timer.c +++ b/drivers/timer/riscv_timer.c @@ -10,7 +10,7 @@ * This driver provides generic timer support for S-mode U-Boot. */ -#include <config.h> +#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/timer/rockchip_timer.c b/drivers/timer/rockchip_timer.c index 96c010f4dcc..e66c49aa6bb 100644 --- a/drivers/timer/rockchip_timer.c +++ b/drivers/timer/rockchip_timer.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH */ +#include <common.h> #include <bootstage.h> #include <dm.h> #include <init.h> diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c index e8b54a02965..1da7e0c3a76 100644 --- a/drivers/timer/sandbox_timer.c +++ b/drivers/timer/sandbox_timer.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Thomas Chou <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/sp804_timer.c b/drivers/timer/sp804_timer.c index a254e295cbf..8fd4afb15a5 100644 --- a/drivers/timer/sp804_timer.c +++ b/drivers/timer/sp804_timer.c @@ -4,6 +4,7 @@ * Copyright (C) 2022 Arm Ltd. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <init.h> diff --git a/drivers/timer/starfive-timer.c b/drivers/timer/starfive-timer.c index 6b79c8858b5..6ac7d7f1d0e 100644 --- a/drivers/timer/starfive-timer.c +++ b/drivers/timer/starfive-timer.c @@ -4,6 +4,7 @@ * Author: Kuan Lim Lee <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <time.h> diff --git a/drivers/timer/stm32_timer.c b/drivers/timer/stm32_timer.c index 1dc21c5c1be..1213a14ef19 100644 --- a/drivers/timer/stm32_timer.c +++ b/drivers/timer/stm32_timer.c @@ -6,7 +6,7 @@ #define LOG_CATEGORY UCLASS_TIMER -#include <config.h> +#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/timer/tegra-timer.c b/drivers/timer/tegra-timer.c index 3545424889d..a867c649c3a 100644 --- a/drivers/timer/tegra-timer.c +++ b/drivers/timer/tegra-timer.c @@ -3,6 +3,7 @@ * Copyright (C) 2022 Svyatoslav Ryhel <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <timer.h> diff --git a/drivers/timer/timer-uclass.c b/drivers/timer/timer-uclass.c index 8305f06d318..60ff65529ab 100644 --- a/drivers/timer/timer-uclass.c +++ b/drivers/timer/timer-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_TIMER +#include <common.h> #include <clk.h> #include <cpu.h> #include <dm.h> diff --git a/drivers/timer/tsc_timer.c b/drivers/timer/tsc_timer.c index 80c084f380d..f86a0b86921 100644 --- a/drivers/timer/tsc_timer.c +++ b/drivers/timer/tsc_timer.c @@ -6,6 +6,7 @@ * arch/x86/kernel/tsc_msr.c and arch/x86/kernel/tsc.c */ +#include <common.h> #include <bootstage.h> #include <dm.h> #include <log.h> diff --git a/drivers/timer/xilinx-timer.c b/drivers/timer/xilinx-timer.c index 54148aa1689..172fd9f9296 100644 --- a/drivers/timer/xilinx-timer.c +++ b/drivers/timer/xilinx-timer.c @@ -7,6 +7,7 @@ * Michal SIMEK <[email protected]> */ +#include <common.h> #include <dm.h> #include <timer.h> #include <regmap.h> diff --git a/drivers/tpm/cr50_i2c.c b/drivers/tpm/cr50_i2c.c index 08ec179346e..acf4c7859a9 100644 --- a/drivers/tpm/cr50_i2c.c +++ b/drivers/tpm/cr50_i2c.c @@ -7,12 +7,12 @@ #define LOG_CATEGORY UCLASS_TPM +#include <common.h> #include <dm.h> #include <i2c.h> #include <irq.h> #include <log.h> #include <spl.h> -#include <time.h> #include <tpm-common.h> #include <tpm-v2.h> #include <acpi/acpigen.h> diff --git a/drivers/tpm/sandbox_common.c b/drivers/tpm/sandbox_common.c index 596e0156389..7e0b2502e35 100644 --- a/drivers/tpm/sandbox_common.c +++ b/drivers/tpm/sandbox_common.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_TPM +#include <common.h> #include <tpm-v1.h> #include <tpm-v2.h> #include <asm/unaligned.h> diff --git a/drivers/tpm/tpm-uclass.c b/drivers/tpm/tpm-uclass.c index 0fade2dcc0a..b2286f7e7ed 100644 --- a/drivers/tpm/tpm-uclass.c +++ b/drivers/tpm/tpm-uclass.c @@ -6,9 +6,9 @@ #define LOG_CATEGORY UCLASS_TPM +#include <common.h> #include <dm.h> #include <log.h> -#include <time.h> #include <tpm_api.h> #include <tpm-v1.h> #include <tpm-v2.h> diff --git a/drivers/tpm/tpm2_ftpm_tee.c b/drivers/tpm/tpm2_ftpm_tee.c index f2ced50c4eb..c61ff2c2af6 100644 --- a/drivers/tpm/tpm2_ftpm_tee.c +++ b/drivers/tpm/tpm2_ftpm_tee.c @@ -13,6 +13,7 @@ * https://github.com/microsoft/ms-tpm-20-ref/tree/master/Samples/ARM32-FirmwareTPM/optee_ta/fTPM */ +#include <common.h> #include <dm.h> #include <log.h> #include <tpm-v2.h> diff --git a/drivers/tpm/tpm2_tis_core.c b/drivers/tpm/tpm2_tis_core.c index 680a6409433..81b9210056d 100644 --- a/drivers/tpm/tpm2_tis_core.c +++ b/drivers/tpm/tpm2_tis_core.c @@ -5,8 +5,8 @@ * Based on the Linux TIS core interface and U-Boot original SPI TPM driver */ +#include <common.h> #include <dm.h> -#include <time.h> #include <tpm-v2.h> #include <linux/delay.h> #include <linux/unaligned/be_byteshift.h> diff --git a/drivers/tpm/tpm2_tis_i2c.c b/drivers/tpm/tpm2_tis_i2c.c index 93efccc7757..99d1cf218da 100644 --- a/drivers/tpm/tpm2_tis_i2c.c +++ b/drivers/tpm/tpm2_tis_i2c.c @@ -3,6 +3,7 @@ * Copyright 2022 IBM Corp. */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <i2c.h> diff --git a/drivers/tpm/tpm2_tis_mmio.c b/drivers/tpm/tpm2_tis_mmio.c index dee5503c055..a646ce41ff4 100644 --- a/drivers/tpm/tpm2_tis_mmio.c +++ b/drivers/tpm/tpm2_tis_mmio.c @@ -5,6 +5,7 @@ * Specifications at www.trustedcomputinggroup.org */ +#include <common.h> #include <dm.h> #include <log.h> #include <tpm-v2.h> diff --git a/drivers/tpm/tpm2_tis_sandbox.c b/drivers/tpm/tpm2_tis_sandbox.c index 50e308e7116..d15a28d9fc8 100644 --- a/drivers/tpm/tpm2_tis_sandbox.c +++ b/drivers/tpm/tpm2_tis_sandbox.c @@ -4,6 +4,7 @@ * Author: Miquel Raynal <[email protected]> */ +#include <common.h> #include <dm.h> #include <tpm-v2.h> #include <asm/state.h> diff --git a/drivers/tpm/tpm2_tis_spi.c b/drivers/tpm/tpm2_tis_spi.c index 28079b5039a..de9cf8f21e0 100644 --- a/drivers/tpm/tpm2_tis_spi.c +++ b/drivers/tpm/tpm2_tis_spi.c @@ -13,11 +13,11 @@ * It is based on the U-Boot driver tpm_tis_infineon_i2c.c. */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> #include <spi.h> -#include <time.h> #include <tpm-v2.h> #include <linux/bitops.h> #include <linux/delay.h> diff --git a/drivers/tpm/tpm_atmel_twi.c b/drivers/tpm/tpm_atmel_twi.c index 05dd66525c7..fd2a45d34b0 100644 --- a/drivers/tpm/tpm_atmel_twi.c +++ b/drivers/tpm/tpm_atmel_twi.c @@ -5,11 +5,11 @@ * Written by Dirk Eibach <[email protected]> */ +#include <common.h> #include <display_options.h> #include <dm.h> #include <tpm-v1.h> #include <i2c.h> -#include <time.h> #include <asm/unaligned.h> #include <linux/delay.h> diff --git a/drivers/tpm/tpm_tis_infineon.c b/drivers/tpm/tpm_tis_infineon.c index e2f6238cbc7..16f4af0e331 100644 --- a/drivers/tpm/tpm_tis_infineon.c +++ b/drivers/tpm/tpm_tis_infineon.c @@ -19,11 +19,11 @@ * Version: 2.1.1 */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <i2c.h> #include <log.h> -#include <time.h> #include <tpm-v1.h> #include <linux/delay.h> #include <linux/errno.h> diff --git a/drivers/tpm/tpm_tis_lpc.c b/drivers/tpm/tpm_tis_lpc.c index dec7acb0c7b..13a133d58eb 100644 --- a/drivers/tpm/tpm_tis_lpc.c +++ b/drivers/tpm/tpm_tis_lpc.c @@ -12,6 +12,7 @@ * slb9635), so this driver provides access to locality 0 only. */ +#include <common.h> #include <dm.h> #include <log.h> #include <mapmem.h> diff --git a/drivers/tpm/tpm_tis_sandbox.c b/drivers/tpm/tpm_tis_sandbox.c index 2bc7dc87ed3..7350e1c4d52 100644 --- a/drivers/tpm/tpm_tis_sandbox.c +++ b/drivers/tpm/tpm_tis_sandbox.c @@ -3,6 +3,7 @@ * Copyright (c) 2013 Google, Inc */ +#include <common.h> #include <display_options.h> #include <dm.h> #include <tpm-v1.h> diff --git a/drivers/tpm/tpm_tis_st33zp24_i2c.c b/drivers/tpm/tpm_tis_st33zp24_i2c.c index 1a265b28b22..e0eeabb9337 100644 --- a/drivers/tpm/tpm_tis_st33zp24_i2c.c +++ b/drivers/tpm/tpm_tis_st33zp24_i2c.c @@ -12,6 +12,7 @@ * STMicroelectronics Protocol Stack Specification version 1.2.0. */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <i2c.h> diff --git a/drivers/tpm/tpm_tis_st33zp24_spi.c b/drivers/tpm/tpm_tis_st33zp24_spi.c index 2cf690328d8..f0de8a65b09 100644 --- a/drivers/tpm/tpm_tis_st33zp24_spi.c +++ b/drivers/tpm/tpm_tis_st33zp24_spi.c @@ -12,6 +12,7 @@ * STMicroelectronics Protocol Stack Specification version 1.2.0. */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/ufs/cdns-platform.c b/drivers/ufs/cdns-platform.c index 510a6a6aa5d..d1f346937c5 100644 --- a/drivers/ufs/cdns-platform.c +++ b/drivers/ufs/cdns-platform.c @@ -6,6 +6,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <ufs.h> #include <asm/io.h> diff --git a/drivers/ufs/ti-j721e-ufs.c b/drivers/ufs/ti-j721e-ufs.c index c5c08610ffd..1860e0dca29 100644 --- a/drivers/ufs/ti-j721e-ufs.c +++ b/drivers/ufs/ti-j721e-ufs.c @@ -5,6 +5,7 @@ #include <asm/io.h> #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bitops.h> diff --git a/drivers/ufs/ufs-pci.c b/drivers/ufs/ufs-pci.c index 871f3f50f5c..ad41358727a 100644 --- a/drivers/ufs/ufs-pci.c +++ b/drivers/ufs/ufs-pci.c @@ -4,6 +4,7 @@ * Author: Bin Meng <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/ufs/ufs-uclass.c b/drivers/ufs/ufs-uclass.c index 334bfcfa06a..92fcdf4e6cb 100644 --- a/drivers/ufs/ufs-uclass.c +++ b/drivers/ufs/ufs-uclass.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_UFS +#include <common.h> #include "ufs.h" #include <dm.h> diff --git a/drivers/ufs/ufs.c b/drivers/ufs/ufs.c index be64bf971f1..e4400f319a7 100644 --- a/drivers/ufs/ufs.c +++ b/drivers/ufs/ufs.c @@ -10,6 +10,7 @@ #include <bouncebuf.h> #include <charset.h> +#include <common.h> #include <dm.h> #include <log.h> #include <dm/device_compat.h> diff --git a/drivers/ufs/ufs.h b/drivers/ufs/ufs.h index 43042c294bb..816a5ce0caf 100644 --- a/drivers/ufs/ufs.h +++ b/drivers/ufs/ufs.h @@ -2,7 +2,6 @@ #ifndef __UFS_H #define __UFS_H -#include <linux/types.h> #include "unipro.h" struct udevice; diff --git a/drivers/usb/cdns3/cdns3-ti.c b/drivers/usb/cdns3/cdns3-ti.c index ac072260c30..2e44aadea47 100644 --- a/drivers/usb/cdns3/cdns3-ti.c +++ b/drivers/usb/cdns3/cdns3-ti.c @@ -5,6 +5,7 @@ * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index b4e931646b8..12a741c6ea7 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -11,6 +11,7 @@ * Roger Quadros <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/usb/cdns3/gadget.c b/drivers/usb/cdns3/gadget.c index 7aa0c6b2bee..d11175dc5b6 100644 --- a/drivers/usb/cdns3/gadget.c +++ b/drivers/usb/cdns3/gadget.c @@ -2325,6 +2325,9 @@ static void cdns3_gadget_config(struct cdns3_device *priv_dev) writel(USB_IEN_INIT, ®s->usb_ien); writel(USB_CONF_CLK2OFFDS | USB_CONF_L1DS, ®s->usb_conf); + /* Set the Fast access bit */ + writel(PUSB_PWR_FST_REG_ACCESS, &priv_dev->regs->usb_pwr); + cdns3_configure_dmult(priv_dev, NULL); cdns3_gadget_pullup(&priv_dev->gadget, 1); @@ -2383,6 +2386,7 @@ static int cdns3_gadget_udc_stop(struct usb_gadget *gadget) /* disable interrupt for device */ writel(0, &priv_dev->regs->usb_ien); + writel(0, &priv_dev->regs->usb_pwr); writel(USB_CONF_DEVDS, &priv_dev->regs->usb_conf); return ret; diff --git a/drivers/usb/common/common.c b/drivers/usb/common/common.c index 13e9a61072a..7137a569d97 100644 --- a/drivers/usb/common/common.c +++ b/drivers/usb/common/common.c @@ -6,6 +6,7 @@ * Texas Instruments Incorporated, <www.ti.com> */ +#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <linux/printk.h> diff --git a/drivers/usb/common/fsl-dt-fixup.c b/drivers/usb/common/fsl-dt-fixup.c index 6a68bd76c27..00b8cd368b1 100644 --- a/drivers/usb/common/fsl-dt-fixup.c +++ b/drivers/usb/common/fsl-dt-fixup.c @@ -7,6 +7,7 @@ * Author: Tor Krill [email protected] */ +#include <common.h> #include <log.h> #include <usb.h> #include <asm/io.h> diff --git a/drivers/usb/common/fsl-errata.c b/drivers/usb/common/fsl-errata.c index 89ae73f2ba4..9eb1d230672 100644 --- a/drivers/usb/common/fsl-errata.c +++ b/drivers/usb/common/fsl-errata.c @@ -5,6 +5,7 @@ * Copyright 2013 Freescale Semiconductor, Inc. */ +#include <common.h> #include <hwconfig.h> #include <fsl_errata.h> #include<fsl_usb.h> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index c443d56746d..96e850b7170 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -13,6 +13,7 @@ * commit cd72f890d2 : usb: dwc3: core: enable phy suspend quirk on non-FPGA */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <malloc.h> diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h index 4162a682298..7374ce950da 100644 --- a/drivers/usb/dwc3/core.h +++ b/drivers/usb/dwc3/core.h @@ -405,6 +405,8 @@ #define DWC3_DEPCMD_SETTRANSFRESOURCE (0x02 << 0) #define DWC3_DEPCMD_SETEPCONFIG (0x01 << 0) +#define DWC3_DEPCMD_CMD(x) ((x) & 0xf) + /* The EP number goes 0..31 so ep0 is always out and ep1 is always in */ #define DWC3_DALEPENA_EP(n) (1 << n) diff --git a/drivers/usb/dwc3/dwc3-generic.c b/drivers/usb/dwc3/dwc3-generic.c index 8db678eb85d..7a00529a2a8 100644 --- a/drivers/usb/dwc3/dwc3-generic.c +++ b/drivers/usb/dwc3/dwc3-generic.c @@ -7,6 +7,7 @@ * Based on dwc3-omap.c. */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <dm.h> diff --git a/drivers/usb/dwc3/dwc3-layerscape.c b/drivers/usb/dwc3/dwc3-layerscape.c index ff83bf71e89..c32df2396d7 100644 --- a/drivers/usb/dwc3/dwc3-layerscape.c +++ b/drivers/usb/dwc3/dwc3-layerscape.c @@ -7,6 +7,7 @@ * Based on dwc3-generic.c. */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/device-internal.h> diff --git a/drivers/usb/dwc3/dwc3-meson-g12a.c b/drivers/usb/dwc3/dwc3-meson-g12a.c index 21e4f637bb1..1a3e9350c46 100644 --- a/drivers/usb/dwc3/dwc3-meson-g12a.c +++ b/drivers/usb/dwc3/dwc3-meson-g12a.c @@ -6,6 +6,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <log.h> #include <dm.h> #include <dm/device-internal.h> diff --git a/drivers/usb/dwc3/dwc3-meson-gxl.c b/drivers/usb/dwc3/dwc3-meson-gxl.c index 3e693c5ff31..2ce915701a8 100644 --- a/drivers/usb/dwc3/dwc3-meson-gxl.c +++ b/drivers/usb/dwc3/dwc3-meson-gxl.c @@ -7,6 +7,7 @@ */ #define DEBUG +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/lists.h> diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c index 4b219c35eb3..53c4d4826b4 100644 --- a/drivers/usb/dwc3/dwc3-omap.c +++ b/drivers/usb/dwc3/dwc3-omap.c @@ -13,6 +13,7 @@ * commit 7ee2566ff5 : usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete() */ +#include <common.h> #include <malloc.h> #include <asm/io.h> #include <dm.h> diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 117d38a0340..1133cf82b1a 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c @@ -12,6 +12,7 @@ * * commit c00552ebaf : Merge 3.18-rc7 into usb-next */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 4de007cb0c3..39c19d94de1 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -13,6 +13,7 @@ * commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> @@ -300,8 +301,38 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, unsigned cmd, struct dwc3_gadget_ep_cmd_params *params) { u32 timeout = 500; + u32 saved_config = 0; u32 reg; + int ret = -EINVAL; + + /* + * When operating in USB 2.0 speeds (HS/FS), if GUSB2PHYCFG.ENBLSLPM or + * GUSB2PHYCFG.SUSPHY is set, it must be cleared before issuing an + * endpoint command. + * + * Save and clear both GUSB2PHYCFG.ENBLSLPM and GUSB2PHYCFG.SUSPHY + * settings. Restore them after the command is completed. + * + * DWC_usb3 3.30a and DWC_usb31 1.90a programming guide section 3.2.2 + */ + if (dwc->gadget.speed <= USB_SPEED_HIGH || + DWC3_DEPCMD_CMD(cmd) == DWC3_DEPCMD_ENDTRANSFER) { + reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); + if (unlikely(reg & DWC3_GUSB2PHYCFG_SUSPHY)) { + saved_config |= DWC3_GUSB2PHYCFG_SUSPHY; + reg &= ~DWC3_GUSB2PHYCFG_SUSPHY; + } + + if (reg & DWC3_GUSB2PHYCFG_ENBLSLPM) { + saved_config |= DWC3_GUSB2PHYCFG_ENBLSLPM; + reg &= ~DWC3_GUSB2PHYCFG_ENBLSLPM; + } + + if (saved_config) + dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg); + } + dwc3_writel(dwc->regs, DWC3_DEPCMDPAR0(ep), params->param0); dwc3_writel(dwc->regs, DWC3_DEPCMDPAR1(ep), params->param1); dwc3_writel(dwc->regs, DWC3_DEPCMDPAR2(ep), params->param2); @@ -312,7 +343,8 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, if (!(reg & DWC3_DEPCMD_CMDACT)) { dev_vdbg(dwc->dev, "Command Complete --> %d\n", DWC3_DEPCMD_STATUS(reg)); - return 0; + ret = 0; + break; } /* @@ -320,11 +352,21 @@ int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, * interrupt context. */ timeout--; - if (!timeout) - return -ETIMEDOUT; + if (!timeout) { + ret = -ETIMEDOUT; + break; + } udelay(1); } while (1); + + if (saved_config) { + reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); + reg |= saved_config; + dwc3_writel(dwc->regs, DWC3_GUSB2PHYCFG(0), reg); + } + + return ret; } static dma_addr_t dwc3_trb_dma_offset(struct dwc3_ep *dep, diff --git a/drivers/usb/dwc3/samsung_usb_phy.c b/drivers/usb/dwc3/samsung_usb_phy.c index 0a771308163..abbd4136890 100644 --- a/drivers/usb/dwc3/samsung_usb_phy.c +++ b/drivers/usb/dwc3/samsung_usb_phy.c @@ -7,7 +7,7 @@ * Author: Joonyoung Shim <[email protected]> */ -#include <asm/io.h> +#include <common.h> #include <asm/arch/power.h> #include <asm/arch/xhci-exynos.h> #include <linux/delay.h> diff --git a/drivers/usb/dwc3/ti_usb_phy.c b/drivers/usb/dwc3/ti_usb_phy.c index f0ecdea958a..8ae130860f7 100644 --- a/drivers/usb/dwc3/ti_usb_phy.c +++ b/drivers/usb/dwc3/ti_usb_phy.c @@ -16,6 +16,7 @@ * and remove" for phy-omap-usb2.c */ +#include <common.h> #include <malloc.h> #include <ti-usb-phy-uboot.h> #include <dm/device_compat.h> diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c index 24420e3d51e..7c5c1ab3de7 100644 --- a/drivers/usb/emul/sandbox_flash.c +++ b/drivers/usb/emul/sandbox_flash.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_USB +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/emul/sandbox_hub.c b/drivers/usb/emul/sandbox_hub.c index 3b3e59f978f..084cc16cc68 100644 --- a/drivers/usb/emul/sandbox_hub.c +++ b/drivers/usb/emul/sandbox_hub.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/emul/sandbox_keyb.c b/drivers/usb/emul/sandbox_keyb.c index db769883ba3..5ec1e98e4ed 100644 --- a/drivers/usb/emul/sandbox_keyb.c +++ b/drivers/usb/emul/sandbox_keyb.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <os.h> diff --git a/drivers/usb/emul/usb-emul-uclass.c b/drivers/usb/emul/usb-emul-uclass.c index cdc18d6cbb9..b31dc950e3a 100644 --- a/drivers/usb/emul/usb-emul-uclass.c +++ b/drivers/usb/emul/usb-emul-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_USB_EMUL +#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/eth/asix.c b/drivers/usb/eth/asix.c index c5a01ec922b..26dd312b7d0 100644 --- a/drivers/usb/eth/asix.c +++ b/drivers/usb/eth/asix.c @@ -5,6 +5,7 @@ * Patched for AX88772B by Antmicro Ltd <www.antmicro.com> */ +#include <common.h> #include <dm.h> #include <log.h> #include <net.h> diff --git a/drivers/usb/eth/asix88179.c b/drivers/usb/eth/asix88179.c index 7bfd285b3aa..2e737e60668 100644 --- a/drivers/usb/eth/asix88179.c +++ b/drivers/usb/eth/asix88179.c @@ -5,6 +5,7 @@ * from the Linux AX88179_178a driver */ +#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/eth/mcs7830.c b/drivers/usb/eth/mcs7830.c index 199fb7a5d08..d94204f22d5 100644 --- a/drivers/usb/eth/mcs7830.c +++ b/drivers/usb/eth/mcs7830.c @@ -9,6 +9,7 @@ * MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c index e3f20e08c33..3c866f4f1e2 100644 --- a/drivers/usb/eth/r8152.c +++ b/drivers/usb/eth/r8152.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/r8152_fw.c b/drivers/usb/eth/r8152_fw.c index 3159f301060..a41abed3069 100644 --- a/drivers/usb/eth/r8152_fw.c +++ b/drivers/usb/eth/r8152_fw.c @@ -3,6 +3,7 @@ * Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved. * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <linux/bitops.h> diff --git a/drivers/usb/eth/smsc95xx.c b/drivers/usb/eth/smsc95xx.c index b4fcb2c2bb0..de6586e6263 100644 --- a/drivers/usb/eth/smsc95xx.c +++ b/drivers/usb/eth/smsc95xx.c @@ -6,6 +6,7 @@ * Copyright (C) 2007-2008 SMSC (Steve Glendinning) */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c index 8bba3e0974e..2e9af54fd63 100644 --- a/drivers/usb/eth/usb_ether.c +++ b/drivers/usb/eth/usb_ether.c @@ -3,6 +3,7 @@ * Copyright (c) 2011 The Chromium OS Authors. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/gadget/at91_udc.c b/drivers/usb/gadget/at91_udc.c index 86b2cbf3f6a..e573a03477b 100644 --- a/drivers/usb/gadget/at91_udc.c +++ b/drivers/usb/gadget/at91_udc.c @@ -13,6 +13,7 @@ #undef VERBOSE_DEBUG #undef PACKET_TRACE +#include <common.h> #include <dm/devres.h> #include <linux/bug.h> #include <linux/err.h> diff --git a/drivers/usb/gadget/atmel_usba_udc.c b/drivers/usb/gadget/atmel_usba_udc.c index f99553df8d4..4c420747b0b 100644 --- a/drivers/usb/gadget/atmel_usba_udc.c +++ b/drivers/usb/gadget/atmel_usba_udc.c @@ -7,6 +7,7 @@ * Bo Shen <[email protected]> */ +#include <common.h> #include <linux/bitops.h> #include <linux/errno.h> #include <asm/gpio.h> diff --git a/drivers/usb/gadget/bcm_udc_otg_phy.c b/drivers/usb/gadget/bcm_udc_otg_phy.c index 9875191091c..c89cd57c253 100644 --- a/drivers/usb/gadget/bcm_udc_otg_phy.c +++ b/drivers/usb/gadget/bcm_udc_otg_phy.c @@ -4,6 +4,7 @@ */ #include <config.h> +#include <common.h> #include <asm/io.h> #include <asm/arch/sysmap.h> #include <asm/kona-common/clk.h> diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index bbe03cfff1f..750d4714879 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb/gadget/ci_udc.c @@ -7,6 +7,7 @@ * [email protected], 27-Jan-01. */ +#include <common.h> #include <command.h> #include <config.h> #include <cpu_func.h> diff --git a/drivers/usb/gadget/config.c b/drivers/usb/gadget/config.c index 1363ef9e73d..e96782644f3 100644 --- a/drivers/usb/gadget/config.c +++ b/drivers/usb/gadget/config.c @@ -8,6 +8,7 @@ * Remy Bohmer <[email protected]> */ +#include <common.h> #include <asm/unaligned.h> #include <linux/errno.h> #include <linux/list.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index 6bd395a6235..27082f5152c 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@ -17,6 +17,7 @@ * Lukasz Majewski <[email protected]> */ #undef DEBUG +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_phy.c b/drivers/usb/gadget/dwc2_udc_otg_phy.c index c7eea7b3442..7f8e9564b9e 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_phy.c +++ b/drivers/usb/gadget/dwc2_udc_otg_phy.c @@ -17,6 +17,7 @@ * Lukasz Majewski <[email protected]> */ +#include <common.h> #include <linux/delay.h> #include <linux/errno.h> #include <linux/list.h> diff --git a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c index 16b2a03f9e4..1c34b753511 100644 --- a/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c +++ b/drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c @@ -17,6 +17,7 @@ * Lukasz Majewski <[email protected]> */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <linux/bug.h> diff --git a/drivers/usb/gadget/ep0.c b/drivers/usb/gadget/ep0.c index 9d08640ff23..c256cc31fbd 100644 --- a/drivers/usb/gadget/ep0.c +++ b/drivers/usb/gadget/ep0.c @@ -36,6 +36,7 @@ * XXX */ +#include <common.h> #include <serial.h> #include <usbdevice.h> diff --git a/drivers/usb/gadget/epautoconf.c b/drivers/usb/gadget/epautoconf.c index 0a70035ce04..bb0d2971d06 100644 --- a/drivers/usb/gadget/epautoconf.c +++ b/drivers/usb/gadget/epautoconf.c @@ -8,6 +8,7 @@ * Remy Bohmer <[email protected]> */ +#include <common.h> #include <linux/usb/ch9.h> #include <linux/errno.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/gadget/ether.c b/drivers/usb/gadget/ether.c index b8b29d399b1..36618f0bdf3 100644 --- a/drivers/usb/gadget/ether.c +++ b/drivers/usb/gadget/ether.c @@ -7,6 +7,7 @@ * Copyright (C) 2008 Nokia Corporation */ +#include <common.h> #include <console.h> #include <env.h> #include <log.h> diff --git a/drivers/usb/gadget/f_acm.c b/drivers/usb/gadget/f_acm.c index f18c6a0a761..ba216128ab2 100644 --- a/drivers/usb/gadget/f_acm.c +++ b/drivers/usb/gadget/f_acm.c @@ -10,6 +10,7 @@ */ #include <circbuf.h> +#include <common.h> #include <console.h> #include <errno.h> #include <g_dnl.h> diff --git a/drivers/usb/gadget/f_dfu.c b/drivers/usb/gadget/f_dfu.c index ca8b36e077b..44877df4ec6 100644 --- a/drivers/usb/gadget/f_dfu.c +++ b/drivers/usb/gadget/f_dfu.c @@ -16,6 +16,7 @@ #include <env.h> #include <errno.h> +#include <common.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c index 8df0e3f331d..09e740cc962 100644 --- a/drivers/usb/gadget/f_fastboot.c +++ b/drivers/usb/gadget/f_fastboot.c @@ -11,6 +11,7 @@ */ #include <command.h> #include <config.h> +#include <common.h> #include <env.h> #include <errno.h> #include <fastboot.h> diff --git a/drivers/usb/gadget/f_mass_storage.c b/drivers/usb/gadget/f_mass_storage.c index 89a96dbb7a7..ef90c7ec7fb 100644 --- a/drivers/usb/gadget/f_mass_storage.c +++ b/drivers/usb/gadget/f_mass_storage.c @@ -244,6 +244,7 @@ #include <hexdump.h> #include <log.h> #include <malloc.h> +#include <common.h> #include <console.h> #include <g_dnl.h> #include <dm/devres.h> diff --git a/drivers/usb/gadget/f_rockusb.c b/drivers/usb/gadget/f_rockusb.c index d679cdae97c..98a7ffa2a75 100644 --- a/drivers/usb/gadget/f_rockusb.c +++ b/drivers/usb/gadget/f_rockusb.c @@ -6,6 +6,7 @@ */ #include <command.h> #include <config.h> +#include <common.h> #include <env.h> #include <errno.h> #include <log.h> diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c index 89496917a61..ca2760c00d0 100644 --- a/drivers/usb/gadget/f_sdp.c +++ b/drivers/usb/gadget/f_sdp.c @@ -17,6 +17,7 @@ */ #include <errno.h> +#include <common.h> #include <console.h> #include <env.h> #include <log.h> diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index 54372118348..0e7529dcdbb 100644 --- a/drivers/usb/gadget/f_thor.c +++ b/drivers/usb/gadget/f_thor.c @@ -15,6 +15,7 @@ */ #include <command.h> +#include <common.h> #include <console.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/gadget/g_dnl.c b/drivers/usb/gadget/g_dnl.c index b5b5f5d8c11..afb7b74f305 100644 --- a/drivers/usb/gadget/g_dnl.c +++ b/drivers/usb/gadget/g_dnl.c @@ -6,6 +6,7 @@ * Lukasz Majewski <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> diff --git a/drivers/usb/gadget/max3420_udc.c b/drivers/usb/gadget/max3420_udc.c index 5a227c0ffd9..fa655c98dcc 100644 --- a/drivers/usb/gadget/max3420_udc.c +++ b/drivers/usb/gadget/max3420_udc.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0+ +#include <common.h> #include <linux/errno.h> #include <linux/delay.h> #include <asm/gpio.h> diff --git a/drivers/usb/gadget/rndis.c b/drivers/usb/gadget/rndis.c index 5e6e5a054ca..e7276ccd37a 100644 --- a/drivers/usb/gadget/rndis.c +++ b/drivers/usb/gadget/rndis.c @@ -18,6 +18,7 @@ * updates to merge with Linux 2.6, better match RNDIS spec */ +#include <common.h> #include <log.h> #include <net.h> #include <malloc.h> diff --git a/drivers/usb/gadget/udc/udc-core.c b/drivers/usb/gadget/udc/udc-core.c index 6bb419ae2ab..ba658d92296 100644 --- a/drivers/usb/gadget/udc/udc-core.c +++ b/drivers/usb/gadget/udc/udc-core.c @@ -19,6 +19,7 @@ #include <malloc.h> #include <asm/cache.h> #include <linux/dma-mapping.h> +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <linux/usb/ch9.h> diff --git a/drivers/usb/gadget/udc/udc-uclass.c b/drivers/usb/gadget/udc/udc-uclass.c index 5dc23a55bb5..30ee1cab066 100644 --- a/drivers/usb/gadget/udc/udc-uclass.c +++ b/drivers/usb/gadget/udc/udc-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_USB_GADGET_GENERIC +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <linux/printk.h> diff --git a/drivers/usb/gadget/usbstring.c b/drivers/usb/gadget/usbstring.c index 4617a95bd0a..e2464ad923f 100644 --- a/drivers/usb/gadget/usbstring.c +++ b/drivers/usb/gadget/usbstring.c @@ -6,6 +6,7 @@ * Remy Bohmer <[email protected]> */ +#include <common.h> #include <linux/errno.h> #include <linux/usb/ch9.h> #include <linux/usb/gadget.h> diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c index a9dbb85f4e6..637eb2dd06f 100644 --- a/drivers/usb/host/dwc2.c +++ b/drivers/usb/host/dwc2.c @@ -4,6 +4,7 @@ * Copyright (C) 2014 Marek Vasut <[email protected]> */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/usb/host/dwc3-of-simple.c b/drivers/usb/host/dwc3-of-simple.c index d52e7d22d1a..f9df59d2e5d 100644 --- a/drivers/usb/host/dwc3-of-simple.c +++ b/drivers/usb/host/dwc3-of-simple.c @@ -10,6 +10,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <dm.h> #include <reset.h> #include <clk.h> diff --git a/drivers/usb/host/dwc3-sti-glue.c b/drivers/usb/host/dwc3-sti-glue.c index 3e6834e38e3..4a3ab611127 100644 --- a/drivers/usb/host/dwc3-sti-glue.c +++ b/drivers/usb/host/dwc3-sti-glue.c @@ -6,6 +6,7 @@ * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics. */ +#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/usb/host/ehci-atmel.c b/drivers/usb/host/ehci-atmel.c index ee751224463..c6d50fd4551 100644 --- a/drivers/usb/host/ehci-atmel.c +++ b/drivers/usb/host/ehci-atmel.c @@ -5,6 +5,7 @@ * Written-by: Bo Shen <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/ehci-exynos.c b/drivers/usb/host/ehci-exynos.c index 1e4a5a0b6f6..c1cdd4b0889 100644 --- a/drivers/usb/host/ehci-exynos.c +++ b/drivers/usb/host/ehci-exynos.c @@ -6,6 +6,7 @@ * Vivek Gautam <[email protected]> */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index ee3eb065b14..0569dd54fff 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -7,6 +7,7 @@ * Author: Tor Krill [email protected] */ +#include <common.h> #include <env.h> #include <log.h> #include <pci.h> diff --git a/drivers/usb/host/ehci-generic.c b/drivers/usb/host/ehci-generic.c index 23c3ed25554..936e30438d9 100644 --- a/drivers/usb/host/ehci-generic.c +++ b/drivers/usb/host/ehci-generic.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Alexey Brodkin <[email protected]> */ +#include <common.h> #include <clk.h> #include <log.h> #include <dm/device_compat.h> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index 7d5519c65a9..9839aa17492 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -6,6 +6,7 @@ * * All rights reserved. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-marvell.c b/drivers/usb/host/ehci-marvell.c index ca0ab57d49c..6093c8fb0b6 100644 --- a/drivers/usb/host/ehci-marvell.c +++ b/drivers/usb/host/ehci-marvell.c @@ -5,6 +5,7 @@ * Written-by: Prafulla Wadaskar <[email protected]> */ +#include <common.h> #include <log.h> #include <asm/global_data.h> #include <asm/io.h> diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c index a081f71b187..98fe7bc3bcb 100644 --- a/drivers/usb/host/ehci-msm.c +++ b/drivers/usb/host/ehci-msm.c @@ -7,6 +7,7 @@ * Based on Linux driver */ +#include <common.h> #include <dm.h> #include <dm/lists.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-mx5.c b/drivers/usb/host/ehci-mx5.c index fb912654097..c11279867c7 100644 --- a/drivers/usb/host/ehci-mx5.c +++ b/drivers/usb/host/ehci-mx5.c @@ -4,6 +4,7 @@ * Copyright (C) 2010 Freescale Semiconductor, Inc. */ +#include <common.h> #include <log.h> #include <usb.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 31cd8a50f4a..a35fcca43a2 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -4,6 +4,7 @@ * Copyright (C) 2010 Freescale Semiconductor, Inc. */ +#include <common.h> #include <clk.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/ehci-mxs.c b/drivers/usb/host/ehci-mxs.c index 95af5c9254c..ddf7cc2d00a 100644 --- a/drivers/usb/host/ehci-mxs.c +++ b/drivers/usb/host/ehci-mxs.c @@ -6,6 +6,7 @@ * on behalf of DENX Software Engineering GmbH */ +#include <common.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> #include <errno.h> diff --git a/drivers/usb/host/ehci-npcm.c b/drivers/usb/host/ehci-npcm.c index d2a9965b4b4..357a5614edb 100644 --- a/drivers/usb/host/ehci-npcm.c +++ b/drivers/usb/host/ehci-npcm.c @@ -3,6 +3,7 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/usb/host/ehci-omap.c b/drivers/usb/host/ehci-omap.c index a95fcad0213..765336a3c42 100644 --- a/drivers/usb/host/ehci-omap.c +++ b/drivers/usb/host/ehci-omap.c @@ -10,8 +10,8 @@ * */ +#include <common.h> #include <log.h> -#include <time.h> #include <usb.h> #include <linux/delay.h> #include <usb/ulpi.h> diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c index 572686580cd..e98ab312618 100644 --- a/drivers/usb/host/ehci-pci.c +++ b/drivers/usb/host/ehci-pci.c @@ -4,6 +4,7 @@ * All rights reserved. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/usb/host/ehci-tegra.c b/drivers/usb/host/ehci-tegra.c index 343893b9f19..2cf16256703 100644 --- a/drivers/usb/host/ehci-tegra.c +++ b/drivers/usb/host/ehci-tegra.c @@ -5,6 +5,7 @@ * Copyright (c) 2013 Lucas Stach */ +#include <common.h> #include <dm.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/usb/host/ehci-vf.c b/drivers/usb/host/ehci-vf.c index 5afe28ea303..648e136447d 100644 --- a/drivers/usb/host/ehci-vf.c +++ b/drivers/usb/host/ehci-vf.c @@ -6,6 +6,7 @@ * Based on ehci-mx6 driver */ +#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/ehci-zynq.c b/drivers/usb/host/ehci-zynq.c index dfaff5c60f4..f7e458cb15a 100644 --- a/drivers/usb/host/ehci-zynq.c +++ b/drivers/usb/host/ehci-zynq.c @@ -5,6 +5,7 @@ * USB Low level initialization(Specific to zynq) */ +#include <common.h> #include <dm.h> #include <usb.h> #include <asm/arch/hardware.h> diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index b170f26e6c6..9b955c1bd67 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -4,6 +4,7 @@ * DENX Software Engineering <[email protected]> */ +#include <common.h> #include <asm/arch/clk.h> int usb_cpu_init(void) diff --git a/drivers/usb/host/ohci-da8xx.c b/drivers/usb/host/ohci-da8xx.c index d321d147c2f..d3d73d23844 100644 --- a/drivers/usb/host/ohci-da8xx.c +++ b/drivers/usb/host/ohci-da8xx.c @@ -3,6 +3,7 @@ * Copyright (C) 2012 Sughosh Ganu <[email protected]> */ +#include <common.h> #include <malloc.h> #include <asm/io.h> #include <clk.h> diff --git a/drivers/usb/host/ohci-generic.c b/drivers/usb/host/ohci-generic.c index f1325cd4953..ceed1911a95 100644 --- a/drivers/usb/host/ohci-generic.c +++ b/drivers/usb/host/ohci-generic.c @@ -3,6 +3,7 @@ * Copyright (C) 2015 Alexey Brodkin <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index c020d13c43d..3f4418198cc 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -27,7 +27,7 @@ * to activate workaround for bug #41 or this driver will NOT work! */ -#include <config.h> +#include <common.h> #include <cpu_func.h> #include <asm/byteorder.h> #include <dm.h> diff --git a/drivers/usb/host/ohci-lpc32xx.c b/drivers/usb/host/ohci-lpc32xx.c index ed04cae7afe..a04b2961b96 100644 --- a/drivers/usb/host/ohci-lpc32xx.c +++ b/drivers/usb/host/ohci-lpc32xx.c @@ -7,6 +7,7 @@ * Copyright (c) 2015 Tyco Fire Protection Products. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <init.h> diff --git a/drivers/usb/host/ohci-npcm.c b/drivers/usb/host/ohci-npcm.c index ffeb6bc206a..9e1d5298809 100644 --- a/drivers/usb/host/ohci-npcm.c +++ b/drivers/usb/host/ohci-npcm.c @@ -3,6 +3,7 @@ * Copyright (c) 2021 Nuvoton Technology Corp. */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <reset.h> diff --git a/drivers/usb/host/ohci-pci.c b/drivers/usb/host/ohci-pci.c index f10f1092420..f061aec2896 100644 --- a/drivers/usb/host/ohci-pci.c +++ b/drivers/usb/host/ohci-pci.c @@ -5,6 +5,7 @@ * */ +#include <common.h> #include <dm.h> #include <errno.h> #include <pci.h> diff --git a/drivers/usb/host/r8a66597-hcd.c b/drivers/usb/host/r8a66597-hcd.c index f0b18bffba4..3ccbc16da37 100644 --- a/drivers/usb/host/r8a66597-hcd.c +++ b/drivers/usb/host/r8a66597-hcd.c @@ -5,6 +5,7 @@ * Copyright (C) 2008 Yoshihiro Shimoda <[email protected]> */ +#include <common.h> #include <console.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/usb-sandbox.c b/drivers/usb/host/usb-sandbox.c index e26f0b292ed..3d4f8d653b5 100644 --- a/drivers/usb/host/usb-sandbox.c +++ b/drivers/usb/host/usb-sandbox.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <usb.h> diff --git a/drivers/usb/host/usb-uclass.c b/drivers/usb/host/usb-uclass.c index cd3a07e4c37..a1cd0ad2d66 100644 --- a/drivers/usb/host/usb-uclass.c +++ b/drivers/usb/host/usb-uclass.c @@ -8,6 +8,7 @@ #define LOG_CATEGORY UCLASS_USB +#include <common.h> #include <bootdev.h> #include <dm.h> #include <errno.h> diff --git a/drivers/usb/host/usb_bootdev.c b/drivers/usb/host/usb_bootdev.c index 362b46dc466..7fa1c601dff 100644 --- a/drivers/usb/host/usb_bootdev.c +++ b/drivers/usb/host/usb_bootdev.c @@ -6,6 +6,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <bootdev.h> #include <dm.h> #include <usb.h> diff --git a/drivers/usb/host/xhci-brcm.c b/drivers/usb/host/xhci-brcm.c index 2ffad148dea..fe17924028c 100644 --- a/drivers/usb/host/xhci-brcm.c +++ b/drivers/usb/host/xhci-brcm.c @@ -3,6 +3,7 @@ * Copyright (C) 2019 Broadcom. */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <usb.h> diff --git a/drivers/usb/host/xhci-dwc3.c b/drivers/usb/host/xhci-dwc3.c index e3e0ceff43e..6cebe1cc30c 100644 --- a/drivers/usb/host/xhci-dwc3.c +++ b/drivers/usb/host/xhci-dwc3.c @@ -8,6 +8,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <log.h> diff --git a/drivers/usb/host/xhci-exynos5.c b/drivers/usb/host/xhci-exynos5.c index 6a2d422c4b8..270be934e7f 100644 --- a/drivers/usb/host/xhci-exynos5.c +++ b/drivers/usb/host/xhci-exynos5.c @@ -12,6 +12,7 @@ * exynos5 specific PHY-init sequence. */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/xhci-fsl.c b/drivers/usb/host/xhci-fsl.c index 3484ae1d21e..e67e09e31e4 100644 --- a/drivers/usb/host/xhci-fsl.c +++ b/drivers/usb/host/xhci-fsl.c @@ -7,6 +7,7 @@ * Author: Ramneek Mehresh<[email protected]> */ +#include <common.h> #include <log.h> #include <usb.h> #include <linux/errno.h> diff --git a/drivers/usb/host/xhci-mem.c b/drivers/usb/host/xhci-mem.c index 045b0fba812..72b75306265 100644 --- a/drivers/usb/host/xhci-mem.c +++ b/drivers/usb/host/xhci-mem.c @@ -13,6 +13,7 @@ * Vikas Sajjan <[email protected]> */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <log.h> diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 7e288f0575b..63dfb793c6b 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <dm/devres.h> diff --git a/drivers/usb/host/xhci-mvebu.c b/drivers/usb/host/xhci-mvebu.c index 1338b1021c6..46b89de85d1 100644 --- a/drivers/usb/host/xhci-mvebu.c +++ b/drivers/usb/host/xhci-mvebu.c @@ -5,6 +5,7 @@ * MVEBU USB HOST xHCI Controller */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/usb/host/xhci-omap.c b/drivers/usb/host/xhci-omap.c index 66da94c0709..501129d769a 100644 --- a/drivers/usb/host/xhci-omap.c +++ b/drivers/usb/host/xhci-omap.c @@ -8,6 +8,7 @@ * Author: Dan Murphy <[email protected]> */ +#include <common.h> #include <log.h> #include <usb.h> #include <linux/errno.h> diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c index f6972af7963..11f1c02000a 100644 --- a/drivers/usb/host/xhci-pci.c +++ b/drivers/usb/host/xhci-pci.c @@ -5,6 +5,7 @@ * All rights reserved. */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <init.h> diff --git a/drivers/usb/host/xhci-rcar.c b/drivers/usb/host/xhci-rcar.c index 38c5928faed..fedcf786929 100644 --- a/drivers/usb/host/xhci-rcar.c +++ b/drivers/usb/host/xhci-rcar.c @@ -5,6 +5,7 @@ * Renesas RCar USB HOST xHCI Controller */ +#include <common.h> #include <clk.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c index 1360a5940fa..910c5f3352b 100644 --- a/drivers/usb/host/xhci-ring.c +++ b/drivers/usb/host/xhci-ring.c @@ -13,6 +13,7 @@ * Vikas Sajjan <[email protected]> */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <asm/byteorder.h> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index d30725d3fca..741e186ee05 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -19,6 +19,7 @@ * The quirk devices support hasn't been given yet. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/isp1760/isp1760-hcd.c b/drivers/usb/isp1760/isp1760-hcd.c index 96c483fb9af..a6c4d97aee3 100644 --- a/drivers/usb/isp1760/isp1760-hcd.c +++ b/drivers/usb/isp1760/isp1760-hcd.c @@ -7,6 +7,7 @@ */ #include <hexdump.h> +#include <common.h> #include <asm/cache.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/usb/isp1760/isp1760-if.c b/drivers/usb/isp1760/isp1760-if.c index 54246b49d5f..c96ab459f93 100644 --- a/drivers/usb/isp1760/isp1760-if.c +++ b/drivers/usb/isp1760/isp1760-if.c @@ -6,6 +6,7 @@ * (c) 2007 Sebastian Siewior <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/usb/isp1760/isp1760-uboot.c b/drivers/usb/isp1760/isp1760-uboot.c index 8dcb7768a2c..203500a4cb7 100644 --- a/drivers/usb/isp1760/isp1760-uboot.c +++ b/drivers/usb/isp1760/isp1760-uboot.c @@ -6,6 +6,7 @@ * */ +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <dm/device_compat.h> diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index ca86b58dfcd..b1b22b9357c 100644 --- a/drivers/usb/mtu3/mtu3_plat.c +++ b/drivers/usb/mtu3/mtu3_plat.c @@ -5,6 +5,7 @@ * Author: Chunfeng Yun <[email protected]> */ +#include <common.h> #include <dm/lists.h> #include <linux/iopoll.h> diff --git a/drivers/usb/musb-new/am35x.c b/drivers/usb/musb-new/am35x.c index 42bc816e4f1..0a52e09e19f 100644 --- a/drivers/usb/musb-new/am35x.c +++ b/drivers/usb/musb-new/am35x.c @@ -24,6 +24,7 @@ #include <plat/usb.h> #else +#include <common.h> #include <asm/omap_musb.h> #include <linux/bug.h> #include <linux/delay.h> diff --git a/drivers/usb/musb-new/da8xx.c b/drivers/usb/musb-new/da8xx.c index 7caf03cc2e1..68fc0c36146 100644 --- a/drivers/usb/musb-new/da8xx.c +++ b/drivers/usb/musb-new/da8xx.c @@ -13,6 +13,7 @@ * */ +#include <common.h> #include <dm.h> #include <log.h> #include <dm/device-internal.h> diff --git a/drivers/usb/musb-new/mt85xx.c b/drivers/usb/musb-new/mt85xx.c index 14b28bbae6b..1e632dca046 100644 --- a/drivers/usb/musb-new/mt85xx.c +++ b/drivers/usb/musb-new/mt85xx.c @@ -9,6 +9,7 @@ * * This file is part of the Inventra Controller Driver for Linux. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb-new/musb_core.c b/drivers/usb/musb-new/musb_core.c index 257e7685cfa..00da554982f 100644 --- a/drivers/usb/musb-new/musb_core.c +++ b/drivers/usb/musb-new/musb_core.c @@ -79,6 +79,7 @@ #include <linux/platform_device.h> #include <linux/io.h> #else +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <usb.h> diff --git a/drivers/usb/musb-new/musb_dsps.c b/drivers/usb/musb-new/musb_dsps.c index b73f3531ce2..a8ff7434c9f 100644 --- a/drivers/usb/musb-new/musb_dsps.c +++ b/drivers/usb/musb-new/musb_dsps.c @@ -31,6 +31,7 @@ #include <plat/usb.h> #else +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <asm/omap_musb.h> diff --git a/drivers/usb/musb-new/musb_gadget.c b/drivers/usb/musb-new/musb_gadget.c index 29e225aa0f1..c6083963ede 100644 --- a/drivers/usb/musb-new/musb_gadget.c +++ b/drivers/usb/musb-new/musb_gadget.c @@ -22,6 +22,7 @@ #include <linux/dma-mapping.h> #include <linux/slab.h> #else +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/bug.h> diff --git a/drivers/usb/musb-new/musb_gadget_ep0.c b/drivers/usb/musb-new/musb_gadget_ep0.c index 63eee31a6b3..55ce8de99bb 100644 --- a/drivers/usb/musb-new/musb_gadget_ep0.c +++ b/drivers/usb/musb-new/musb_gadget_ep0.c @@ -18,6 +18,7 @@ #include <linux/device.h> #include <linux/interrupt.h> #else +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/printk.h> diff --git a/drivers/usb/musb-new/musb_host.c b/drivers/usb/musb-new/musb_host.c index 2f2fc7c1359..e5905d90d66 100644 --- a/drivers/usb/musb-new/musb_host.c +++ b/drivers/usb/musb-new/musb_host.c @@ -21,6 +21,7 @@ #include <linux/list.h> #include <linux/dma-mapping.h> #else +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <usb.h> diff --git a/drivers/usb/musb-new/musb_uboot.c b/drivers/usb/musb-new/musb_uboot.c index 43ab3245e5c..7cea9a2ed65 100644 --- a/drivers/usb/musb-new/musb_uboot.c +++ b/drivers/usb/musb-new/musb_uboot.c @@ -1,3 +1,4 @@ +#include <common.h> #include <console.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/usb/musb-new/omap2430.c b/drivers/usb/musb-new/omap2430.c index c8dd73050b2..308eff832c9 100644 --- a/drivers/usb/musb-new/omap2430.c +++ b/drivers/usb/musb-new/omap2430.c @@ -8,6 +8,7 @@ * * This file is part of the Inventra Controller Driver for Linux. */ +#include <common.h> #include <dm.h> #include <log.h> #include <serial.h> diff --git a/drivers/usb/musb-new/pic32.c b/drivers/usb/musb-new/pic32.c index 0b25e5893b3..4ed5e6e90c6 100644 --- a/drivers/usb/musb-new/pic32.c +++ b/drivers/usb/musb-new/pic32.c @@ -9,6 +9,7 @@ * Based on the dsps "glue layer" code. */ +#include <common.h> #include <dm.h> #include <asm/global_data.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index b577ba41878..778b01b22ea 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -15,6 +15,7 @@ * * This file is part of the Inventra Controller Driver for Linux. */ +#include <common.h> #include <clk.h> #include <dm.h> #include <generic-phy.h> diff --git a/drivers/usb/musb-new/ti-musb.c b/drivers/usb/musb-new/ti-musb.c index 76e8b88369e..ed5e5194d8c 100644 --- a/drivers/usb/musb-new/ti-musb.c +++ b/drivers/usb/musb-new/ti-musb.c @@ -5,6 +5,7 @@ * (C) Copyright 2016 * Texas Instruments Incorporated, <www.ti.com> */ +#include <common.h> #include <command.h> #include <console.h> #include <dm.h> diff --git a/drivers/usb/musb-new/ux500.c b/drivers/usb/musb-new/ux500.c index 6b4ef3c8578..57c7d5630d3 100644 --- a/drivers/usb/musb-new/ux500.c +++ b/drivers/usb/musb-new/ux500.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */ +#include <common.h> #include <dm.h> #include <generic-phy.h> #include <dm/device_compat.h> diff --git a/drivers/usb/musb/am35x.c b/drivers/usb/musb/am35x.c index 2c23043d40e..f945f1f5e2c 100644 --- a/drivers/usb/musb/am35x.c +++ b/drivers/usb/musb/am35x.c @@ -9,6 +9,7 @@ * Copyright (c) 2010 Texas Instruments Incorporated */ +#include <common.h> #include <linux/delay.h> #include "am35x.h" diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index 260552e4dbd..9651f074a49 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -8,6 +8,7 @@ * Author: Thomas Abraham [email protected], Texas Instruments */ +#include <common.h> #include <linux/bitops.h> #include "musb_core.h" diff --git a/drivers/usb/musb/musb_hcd.c b/drivers/usb/musb/musb_hcd.c index c95c6a48281..4676cabae0a 100644 --- a/drivers/usb/musb/musb_hcd.c +++ b/drivers/usb/musb/musb_hcd.c @@ -7,6 +7,7 @@ * Author: Thomas Abraham [email protected], Texas Instruments */ +#include <common.h> #include <log.h> #include <usb.h> #include <linux/delay.h> diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c index 696855ee3a6..2ffcb7caaad 100644 --- a/drivers/usb/musb/musb_udc.c +++ b/drivers/usb/musb/musb_udc.c @@ -37,6 +37,7 @@ * ------------------------------------------------------------------------- */ +#include <common.h> #include <hang.h> #include <serial.h> #include <usbdevice.h> diff --git a/drivers/usb/phy/rockchip_usb2_phy.c b/drivers/usb/phy/rockchip_usb2_phy.c index 9ec5b2d172b..c46ad86d3d6 100644 --- a/drivers/usb/phy/rockchip_usb2_phy.c +++ b/drivers/usb/phy/rockchip_usb2_phy.c @@ -3,6 +3,7 @@ * Copyright 2016 Rockchip Electronics Co., Ltd */ +#include <common.h> #include <hang.h> #include <log.h> #include <asm/global_data.h> diff --git a/drivers/usb/ulpi/omap-ulpi-viewport.c b/drivers/usb/ulpi/omap-ulpi-viewport.c index 6f0c3eb154e..1b01cd4c559 100644 --- a/drivers/usb/ulpi/omap-ulpi-viewport.c +++ b/drivers/usb/ulpi/omap-ulpi-viewport.c @@ -7,6 +7,7 @@ * Author: Govindraj R <[email protected]> */ +#include <common.h> #include <log.h> #include <asm/io.h> #include <linux/delay.h> diff --git a/drivers/usb/ulpi/ulpi-viewport.c b/drivers/usb/ulpi/ulpi-viewport.c index bac20a02f01..55a62808384 100644 --- a/drivers/usb/ulpi/ulpi-viewport.c +++ b/drivers/usb/ulpi/ulpi-viewport.c @@ -13,6 +13,7 @@ * Copyright (C) 2011 Google, Inc. */ +#include <common.h> #include <asm/io.h> #include <linux/delay.h> #include <usb/ulpi.h> diff --git a/drivers/usb/ulpi/ulpi.c b/drivers/usb/ulpi/ulpi.c index 128adcbde13..b5d2c2c2d1c 100644 --- a/drivers/usb/ulpi/ulpi.c +++ b/drivers/usb/ulpi/ulpi.c @@ -19,6 +19,7 @@ * Freescale Semiconductors */ +#include <common.h> #include <exports.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/video/anx9804.c b/drivers/video/anx9804.c index a149e6f5b95..52b5988ba5f 100644 --- a/drivers/video/anx9804.c +++ b/drivers/video/anx9804.c @@ -9,6 +9,7 @@ * interface for driving eDP TFT displays. */ +#include <common.h> #include <i2c.h> #include <linux/delay.h> #include "anx98xx-edp.h" diff --git a/drivers/video/atmel_hlcdfb.c b/drivers/video/atmel_hlcdfb.c index 89bc0eeb680..652ba141801 100644 --- a/drivers/video/atmel_hlcdfb.c +++ b/drivers/video/atmel_hlcdfb.c @@ -5,6 +5,7 @@ * Copyright (C) 2012 Atmel Corporation */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <malloc.h> diff --git a/drivers/video/atmel_lcdfb.c b/drivers/video/atmel_lcdfb.c index 281c3a1d663..5a7a54ada70 100644 --- a/drivers/video/atmel_lcdfb.c +++ b/drivers/video/atmel_lcdfb.c @@ -5,6 +5,7 @@ * Copyright (C) 2007 Atmel Corporation */ +#include <common.h> #include <atmel_lcd.h> #include <dm.h> #include <fdtdec.h> diff --git a/drivers/video/backlight-uclass.c b/drivers/video/backlight-uclass.c index 2a09b2da910..c14996d003c 100644 --- a/drivers/video/backlight-uclass.c +++ b/drivers/video/backlight-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT +#include <common.h> #include <dm.h> #include <backlight.h> diff --git a/drivers/video/backlight_gpio.c b/drivers/video/backlight_gpio.c index b26fa9a8acf..eea824ab5e1 100644 --- a/drivers/video/backlight_gpio.c +++ b/drivers/video/backlight_gpio.c @@ -4,6 +4,7 @@ * Author: Patrick Delaunay <[email protected]> */ +#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/bcm2835.c b/drivers/video/bcm2835.c index 0c81e606622..63efa762db1 100644 --- a/drivers/video/bcm2835.c +++ b/drivers/video/bcm2835.c @@ -3,6 +3,7 @@ * (C) Copyright 2012 Stephen Warren */ +#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/bmp.c b/drivers/video/bmp.c index 291ed36440c..bab6fa7265a 100644 --- a/drivers/video/bmp.c +++ b/drivers/video/bmp.c @@ -8,6 +8,7 @@ * BMP handling routines */ +#include <common.h> #include <bmp_layout.h> #include <command.h> #include <dm.h> diff --git a/drivers/video/bochs.c b/drivers/video/bochs.c index 00e673a4db0..022ea38d4cf 100644 --- a/drivers/video/bochs.c +++ b/drivers/video/bochs.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_VIDEO +#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/bridge/anx6345.c b/drivers/video/bridge/anx6345.c index 8cee4c958bd..93fa25f16e3 100644 --- a/drivers/video/bridge/anx6345.c +++ b/drivers/video/bridge/anx6345.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 Vasily Khoruzhick <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ps862x.c b/drivers/video/bridge/ps862x.c index efd03752281..d1d22a6e235 100644 --- a/drivers/video/bridge/ps862x.c +++ b/drivers/video/bridge/ps862x.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <errno.h> #include <i2c.h> diff --git a/drivers/video/bridge/ptn3460.c b/drivers/video/bridge/ptn3460.c index 5851e1ef15e..4760f04108f 100644 --- a/drivers/video/bridge/ptn3460.c +++ b/drivers/video/bridge/ptn3460.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/bridge/ssd2825.c b/drivers/video/bridge/ssd2825.c index f978021c860..f0ef3dafb93 100644 --- a/drivers/video/bridge/ssd2825.c +++ b/drivers/video/bridge/ssd2825.c @@ -3,6 +3,7 @@ * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/bridge/video-bridge-uclass.c b/drivers/video/bridge/video-bridge-uclass.c index 2084a2e03ee..f389bc6b147 100644 --- a/drivers/video/bridge/video-bridge-uclass.c +++ b/drivers/video/bridge/video-bridge-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE +#include <common.h> #include <dm.h> #include <errno.h> #include <edid.h> diff --git a/drivers/video/broadwell_igd.c b/drivers/video/broadwell_igd.c index a26154ab588..83b6c908a8d 100644 --- a/drivers/video/broadwell_igd.c +++ b/drivers/video/broadwell_igd.c @@ -5,12 +5,12 @@ * Copyright (C) 2016 Google, Inc */ +#include <common.h> #include <bios_emul.h> #include <bootstage.h> #include <dm.h> #include <init.h> #include <log.h> -#include <time.h> #include <vesa.h> #include <video.h> #include <asm/cpu.h> diff --git a/drivers/video/console_normal.c b/drivers/video/console_normal.c index 6f4194a1814..34ef5a52294 100644 --- a/drivers/video/console_normal.c +++ b/drivers/video/console_normal.c @@ -6,6 +6,7 @@ * (C) Copyright 2023 Dzmitry Sankouski <[email protected]> */ +#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_rotate.c b/drivers/video/console_rotate.c index dc969836274..e4303dfb364 100644 --- a/drivers/video/console_rotate.c +++ b/drivers/video/console_rotate.c @@ -6,6 +6,7 @@ * (C) Copyright 2023 Dzmitry Sankouski <[email protected]> */ +#include <common.h> #include <charset.h> #include <dm.h> #include <video.h> diff --git a/drivers/video/console_truetype.c b/drivers/video/console_truetype.c index c435162d3f9..28665a32757 100644 --- a/drivers/video/console_truetype.c +++ b/drivers/video/console_truetype.c @@ -3,6 +3,7 @@ * Copyright (c) 2016 Google, Inc */ +#include <common.h> #include <abuf.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/coreboot.c b/drivers/video/coreboot.c index 9aede262642..5b718ae3e5a 100644 --- a/drivers/video/coreboot.c +++ b/drivers/video/coreboot.c @@ -3,6 +3,7 @@ * Copyright (C) 2016, Bin Meng <[email protected]> */ +#include <common.h> #include <dm.h> #include <init.h> #include <vesa.h> diff --git a/drivers/video/display-uclass.c b/drivers/video/display-uclass.c index 61a73e1bc2a..2da3d1d14e9 100644 --- a/drivers/video/display-uclass.c +++ b/drivers/video/display-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_DISPLAY +#include <common.h> #include <dm.h> #include <display.h> #include <edid.h> diff --git a/drivers/video/dsi-host-uclass.c b/drivers/video/dsi-host-uclass.c index fde275ad7e2..6e5256eb126 100644 --- a/drivers/video/dsi-host-uclass.c +++ b/drivers/video/dsi-host-uclass.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_DSI_HOST +#include <common.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/dw_hdmi.c b/drivers/video/dw_hdmi.c index 35559cef229..c217af97878 100644 --- a/drivers/video/dw_hdmi.c +++ b/drivers/video/dw_hdmi.c @@ -5,14 +5,13 @@ * Copyright 2017 Jernej Skrabec <[email protected]> */ +#include <common.h> #include <fdtdec.h> #include <log.h> #include <asm/io.h> #include <i2c.h> #include <media_bus_format.h> -#include <time.h> #include <linux/delay.h> -#include <linux/errno.h> #include "dw_hdmi.h" struct tmds_n_cts { diff --git a/drivers/video/dw_mipi_dsi.c b/drivers/video/dw_mipi_dsi.c index c74fe678d12..a7e0784596a 100644 --- a/drivers/video/dw_mipi_dsi.c +++ b/drivers/video/dw_mipi_dsi.c @@ -9,6 +9,7 @@ * the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c. */ +#include <common.h> #include <clk.h> #include <dsi_host.h> #include <dm.h> diff --git a/drivers/video/efi.c b/drivers/video/efi.c index 78d123fad4b..28ac15ff61b 100644 --- a/drivers/video/efi.c +++ b/drivers/video/efi.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY LOGC_EFI +#include <common.h> #include <dm.h> #include <efi_api.h> #include <log.h> diff --git a/drivers/video/endeavoru-panel.c b/drivers/video/endeavoru-panel.c index d4ba4d8b6da..1bff641434e 100644 --- a/drivers/video/endeavoru-panel.c +++ b/drivers/video/endeavoru-panel.c @@ -3,6 +3,7 @@ * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]> */ +#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/exynos/exynos_dp.c b/drivers/video/exynos/exynos_dp.c index b0afb2338fb..59838da6c92 100644 --- a/drivers/video/exynos/exynos_dp.c +++ b/drivers/video/exynos/exynos_dp.c @@ -5,6 +5,7 @@ * Author: Donghwa Lee <[email protected]> */ +#include <common.h> #include <dm.h> #include <display.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_dp_lowlevel.c b/drivers/video/exynos/exynos_dp_lowlevel.c index f007b319b20..ae500a70280 100644 --- a/drivers/video/exynos/exynos_dp_lowlevel.c +++ b/drivers/video/exynos/exynos_dp_lowlevel.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_fb.c b/drivers/video/exynos/exynos_fb.c index 0407a3f51b0..86970a6d5d2 100644 --- a/drivers/video/exynos/exynos_fb.c +++ b/drivers/video/exynos/exynos_fb.c @@ -7,6 +7,7 @@ */ #include <config.h> +#include <common.h> #include <display.h> #include <div64.h> #include <dm.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi.c b/drivers/video/exynos/exynos_mipi_dsi.c index edeb0a87bbb..804fcd0b248 100644 --- a/drivers/video/exynos/exynos_mipi_dsi.c +++ b/drivers/video/exynos/exynos_mipi_dsi.c @@ -6,6 +6,7 @@ * Author: Donghwa Lee <[email protected]> */ +#include <common.h> #include <log.h> #include <malloc.h> #include <fdtdec.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_common.c b/drivers/video/exynos/exynos_mipi_dsi_common.c index fc2767adc38..be67cebae7f 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_common.c +++ b/drivers/video/exynos/exynos_mipi_dsi_common.c @@ -6,6 +6,7 @@ * Author: Donghwa Lee <[email protected]> */ +#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/err.h> diff --git a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c index 9f18b5da102..8111acd9a0b 100644 --- a/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +++ b/drivers/video/exynos/exynos_mipi_dsi_lowlevel.c @@ -6,6 +6,7 @@ * Author: Donghwa Lee <[email protected]> */ +#include <common.h> #include <asm/arch/dsim.h> #include <asm/arch/mipi_dsim.h> #include <asm/arch/power.h> diff --git a/drivers/video/himax-hx8394.c b/drivers/video/himax-hx8394.c index cb7f93e9c99..63637b4db02 100644 --- a/drivers/video/himax-hx8394.c +++ b/drivers/video/himax-hx8394.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2022 Ondrej Jirman <[email protected]> */ +#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/hitachi_tx18d42vm_lcd.c b/drivers/video/hitachi_tx18d42vm_lcd.c index 68f7b75eef9..95984fe3d3d 100644 --- a/drivers/video/hitachi_tx18d42vm_lcd.c +++ b/drivers/video/hitachi_tx18d42vm_lcd.c @@ -5,6 +5,7 @@ * (C) Copyright 2015 Hans de Goede <[email protected]> */ +#include <common.h> #include <malloc.h> #include <linux/delay.h> diff --git a/drivers/video/hx8238d.c b/drivers/video/hx8238d.c index 2491a32810e..6ee97cb4ff3 100644 --- a/drivers/video/hx8238d.c +++ b/drivers/video/hx8238d.c @@ -12,6 +12,7 @@ * */ +#include <common.h> #include <dm.h> #include <panel.h> #include <spi.h> diff --git a/drivers/video/ihs_video_out.c b/drivers/video/ihs_video_out.c index bf4d4995c36..73b8f4bd1c9 100644 --- a/drivers/video/ihs_video_out.c +++ b/drivers/video/ihs_video_out.c @@ -9,6 +9,7 @@ * Dirk Eibach, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/imx/ipu_common.c b/drivers/video/imx/ipu_common.c index d582fb8ad9d..b0a99c9cd5d 100644 --- a/drivers/video/imx/ipu_common.c +++ b/drivers/video/imx/ipu_common.c @@ -11,7 +11,7 @@ */ /* #define DEBUG */ -#include <config.h> +#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/ipu_disp.c b/drivers/video/imx/ipu_disp.c index aaba7d135a4..144322e4e26 100644 --- a/drivers/video/imx/ipu_disp.c +++ b/drivers/video/imx/ipu_disp.c @@ -12,6 +12,7 @@ /* #define DEBUG */ +#include <common.h> #include <log.h> #include <linux/delay.h> #include <linux/types.h> diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c index 039b22086a9..7e60385bcfa 100644 --- a/drivers/video/imx/mxc_ipuv3_fb.c +++ b/drivers/video/imx/mxc_ipuv3_fb.c @@ -10,6 +10,7 @@ * (C) Copyright 2004-2010 Freescale Semiconductor, Inc. */ +#include <common.h> #include <log.h> #include <part.h> #include <asm/cache.h> diff --git a/drivers/video/ivybridge_igd.c b/drivers/video/ivybridge_igd.c index ad688640733..c2cc976618a 100644 --- a/drivers/video/ivybridge_igd.c +++ b/drivers/video/ivybridge_igd.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Google, Inc */ +#include <common.h> #include <bios_emul.h> #include <dm.h> #include <errno.h> diff --git a/drivers/video/lm3533_backlight.c b/drivers/video/lm3533_backlight.c index 6b51fa0628e..00297a09b7f 100644 --- a/drivers/video/lm3533_backlight.c +++ b/drivers/video/lm3533_backlight.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT #include <backlight.h> +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/logicore_dp_tx.c b/drivers/video/logicore_dp_tx.c index 643a77a0f4e..624084d38bc 100644 --- a/drivers/video/logicore_dp_tx.c +++ b/drivers/video/logicore_dp_tx.c @@ -9,6 +9,7 @@ * Dirk Eibach, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mali_dp.c b/drivers/video/mali_dp.c index c8921267462..dbb2f538617 100644 --- a/drivers/video/mali_dp.c +++ b/drivers/video/mali_dp.c @@ -5,6 +5,7 @@ * */ #define DEBUG +#include <common.h> #include <malloc.h> #include <video.h> #include <dm.h> diff --git a/drivers/video/mcde_simple.c b/drivers/video/mcde_simple.c index 2ba5d0de152..0924ceee309 100644 --- a/drivers/video/mcde_simple.c +++ b/drivers/video/mcde_simple.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ /* Copyright (C) 2019 Stephan Gerhold */ +#include <common.h> #include <dm.h> #include <log.h> #include <video.h> diff --git a/drivers/video/meson/meson_canvas.c b/drivers/video/meson/meson_canvas.c index dd4c546222d..eccac2f8f24 100644 --- a/drivers/video/meson/meson_canvas.c +++ b/drivers/video/meson/meson_canvas.c @@ -6,6 +6,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/io.h> diff --git a/drivers/video/meson/meson_dw_hdmi.c b/drivers/video/meson/meson_dw_hdmi.c index 587df7beb9b..259af1b4571 100644 --- a/drivers/video/meson/meson_dw_hdmi.c +++ b/drivers/video/meson/meson_dw_hdmi.c @@ -4,6 +4,7 @@ * Author: Jorge Ramirez-Ortiz <[email protected]> */ +#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/meson/meson_plane.c b/drivers/video/meson/meson_plane.c index 899ce22d067..e3f784ecfe4 100644 --- a/drivers/video/meson/meson_plane.c +++ b/drivers/video/meson/meson_plane.c @@ -6,6 +6,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitfield.h> diff --git a/drivers/video/meson/meson_vclk.c b/drivers/video/meson/meson_vclk.c index 4761ff661e4..e718a0074ed 100644 --- a/drivers/video/meson/meson_vclk.c +++ b/drivers/video/meson/meson_vclk.c @@ -6,6 +6,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <dm.h> #include <edid.h> #include <linux/bitops.h> diff --git a/drivers/video/meson/meson_venc.c b/drivers/video/meson/meson_venc.c index 1bc6aaf7305..e7366dd2fde 100644 --- a/drivers/video/meson/meson_venc.c +++ b/drivers/video/meson/meson_venc.c @@ -6,6 +6,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <dm.h> #include <edid.h> #include <fdtdec.h> diff --git a/drivers/video/meson/meson_vpu.c b/drivers/video/meson/meson_vpu.c index ca627728743..67d4ce7b3b4 100644 --- a/drivers/video/meson/meson_vpu.c +++ b/drivers/video/meson/meson_vpu.c @@ -6,6 +6,7 @@ * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <display.h> #include <dm.h> #include <efi_loader.h> diff --git a/drivers/video/meson/meson_vpu_init.c b/drivers/video/meson/meson_vpu_init.c index 0e34cefd100..c9808e1c631 100644 --- a/drivers/video/meson/meson_vpu_init.c +++ b/drivers/video/meson/meson_vpu_init.c @@ -8,6 +8,7 @@ #define DEBUG +#include <common.h> #include <dm.h> #include <asm/io.h> #include <linux/bitops.h> diff --git a/drivers/video/mipi_dsi.c b/drivers/video/mipi_dsi.c index dc949c8ae61..ecacea1dbeb 100644 --- a/drivers/video/mipi_dsi.c +++ b/drivers/video/mipi_dsi.c @@ -32,6 +32,7 @@ * */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/mvebu_lcd.c b/drivers/video/mvebu_lcd.c index 3fc5640b71e..d3d07e5f833 100644 --- a/drivers/video/mvebu_lcd.c +++ b/drivers/video/mvebu_lcd.c @@ -5,6 +5,7 @@ * Initialization of LCD interface and setup of SPLASH screen image */ +#include <common.h> #include <dm.h> #include <part.h> #include <video.h> diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 792d6314d15..515363f6a49 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -4,6 +4,7 @@ * * Copyright (C) 2011-2013 Marek Vasut <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <env.h> diff --git a/drivers/video/nexell/s5pxx18_dp.c b/drivers/video/nexell/s5pxx18_dp.c index 16a489b88dc..2248f479057 100644 --- a/drivers/video/nexell/s5pxx18_dp.c +++ b/drivers/video/nexell/s5pxx18_dp.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <errno.h> #include <log.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_hdmi.c b/drivers/video/nexell/s5pxx18_dp_hdmi.c index 109d9f28bb0..3f1fb8a5757 100644 --- a/drivers/video/nexell/s5pxx18_dp_hdmi.c +++ b/drivers/video/nexell/s5pxx18_dp_hdmi.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <errno.h> #include <log.h> diff --git a/drivers/video/nexell/s5pxx18_dp_lvds.c b/drivers/video/nexell/s5pxx18_dp_lvds.c index 5db8d2b73b1..f8ea63fdf1b 100644 --- a/drivers/video/nexell/s5pxx18_dp_lvds.c +++ b/drivers/video/nexell/s5pxx18_dp_lvds.c @@ -6,8 +6,8 @@ */ #include <config.h> +#include <common.h> #include <errno.h> -#include <stdio.h> #include <asm/arch/nexell.h> #include <asm/arch/reset.h> diff --git a/drivers/video/nexell/s5pxx18_dp_mipi.c b/drivers/video/nexell/s5pxx18_dp_mipi.c index 58493a82598..670272b2680 100644 --- a/drivers/video/nexell/s5pxx18_dp_mipi.c +++ b/drivers/video/nexell/s5pxx18_dp_mipi.c @@ -6,6 +6,7 @@ */ #include <config.h> +#include <common.h> #include <errno.h> #include <asm/arch/nexell.h> diff --git a/drivers/video/nexell/s5pxx18_dp_rgb.c b/drivers/video/nexell/s5pxx18_dp_rgb.c index 6abb8b5e216..44e8edb02a2 100644 --- a/drivers/video/nexell/s5pxx18_dp_rgb.c +++ b/drivers/video/nexell/s5pxx18_dp_rgb.c @@ -6,8 +6,8 @@ */ #include <config.h> +#include <common.h> #include <errno.h> -#include <stdio.h> #include <asm/arch/display.h> diff --git a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h index 4ad353256eb..c7bf5043e60 100644 --- a/drivers/video/nexell/soc/s5pxx18_soc_disptop.h +++ b/drivers/video/nexell/soc/s5pxx18_soc_disptop.h @@ -8,7 +8,6 @@ #ifndef _S5PXX18_SOC_DISPTOP_H_ #define _S5PXX18_SOC_DISPTOP_H_ -#include <linux/types.h> #include "s5pxx18_soc_disptype.h" #define NUMBER_OF_DISPTOP_MODULE 1 diff --git a/drivers/video/nexell_display.c b/drivers/video/nexell_display.c index 7bda33fb16e..af2698ffca8 100644 --- a/drivers/video/nexell_display.c +++ b/drivers/video/nexell_display.c @@ -8,6 +8,7 @@ */ #include <config.h> +#include <common.h> #include <command.h> #include <dm.h> #include <mapmem.h> diff --git a/drivers/video/omap3_dss.c b/drivers/video/omap3_dss.c index 0b7ce348d5a..432b16bfbfe 100644 --- a/drivers/video/omap3_dss.c +++ b/drivers/video/omap3_dss.c @@ -25,6 +25,7 @@ * MA 02111-1307 USA */ +#include <common.h> #include <asm/io.h> #include <asm/arch/dss.h> diff --git a/drivers/video/orisetech_otm8009a.c b/drivers/video/orisetech_otm8009a.c index a29e909decc..848f174b6e4 100644 --- a/drivers/video/orisetech_otm8009a.c +++ b/drivers/video/orisetech_otm8009a.c @@ -7,6 +7,7 @@ * This otm8009a panel driver is inspired from the Linux Kernel driver * drivers/gpu/drm/panel/panel-orisetech-otm8009a.c. */ +#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/panel-uclass.c b/drivers/video/panel-uclass.c index 52a3466dc8c..1f7e20e0b50 100644 --- a/drivers/video/panel-uclass.c +++ b/drivers/video/panel-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PANEL +#include <common.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/pwm_backlight.c b/drivers/video/pwm_backlight.c index a4576c888cf..1c747d98d7a 100644 --- a/drivers/video/pwm_backlight.c +++ b/drivers/video/pwm_backlight.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT +#include <common.h> #include <dm.h> #include <backlight.h> #include <log.h> diff --git a/drivers/video/raydium-rm68200.c b/drivers/video/raydium-rm68200.c index b8662ca22bf..f1fce55a2cb 100644 --- a/drivers/video/raydium-rm68200.c +++ b/drivers/video/raydium-rm68200.c @@ -7,6 +7,7 @@ * This rm68200 panel driver is inspired from the Linux Kernel driver * drivers/gpu/drm/panel/panel-raydium-rm68200.c. */ +#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/renesas-r61307.c b/drivers/video/renesas-r61307.c index a3697bce5ee..3f5859055c9 100644 --- a/drivers/video/renesas-r61307.c +++ b/drivers/video/renesas-r61307.c @@ -5,6 +5,7 @@ * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]> */ +#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/renesas-r69328.c b/drivers/video/renesas-r69328.c index 9861c3fef11..082f5bc3d0a 100644 --- a/drivers/video/renesas-r69328.c +++ b/drivers/video/renesas-r69328.c @@ -5,6 +5,7 @@ * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]> */ +#include <common.h> #include <backlight.h> #include <dm.h> #include <panel.h> diff --git a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c index fa512173510..fb784636e87 100644 --- a/drivers/video/rockchip/dw_mipi_dsi_rockchip.c +++ b/drivers/video/rockchip/dw_mipi_dsi_rockchip.c @@ -24,6 +24,7 @@ #include <dm/lists.h> #include <linux/iopoll.h> +#include <common.h> #include <log.h> #include <video.h> #include <dm/device-internal.h> diff --git a/drivers/video/rockchip/rk3288_hdmi.c b/drivers/video/rockchip/rk3288_hdmi.c index 3d39f31a5ad..efa87540340 100644 --- a/drivers/video/rockchip/rk3288_hdmi.c +++ b/drivers/video/rockchip/rk3288_hdmi.c @@ -3,6 +3,7 @@ * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_mipi.c b/drivers/video/rockchip/rk3288_mipi.c index 850fe310754..9d42119c826 100644 --- a/drivers/video/rockchip/rk3288_mipi.c +++ b/drivers/video/rockchip/rk3288_mipi.c @@ -4,6 +4,7 @@ * Author: Eric Gao <[email protected]> */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3288_vop.c b/drivers/video/rockchip/rk3288_vop.c index 282831eaac4..a4683852ea0 100644 --- a/drivers/video/rockchip/rk3288_vop.c +++ b/drivers/video/rockchip/rk3288_vop.c @@ -5,6 +5,7 @@ * Copyright 2014 Rockchip Inc. */ +#include <common.h> #include <display.h> #include <dm.h> #include <regmap.h> diff --git a/drivers/video/rockchip/rk3399_hdmi.c b/drivers/video/rockchip/rk3399_hdmi.c index c7630ccf555..5f3f5d26886 100644 --- a/drivers/video/rockchip/rk3399_hdmi.c +++ b/drivers/video/rockchip/rk3399_hdmi.c @@ -3,6 +3,7 @@ * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_mipi.c b/drivers/video/rockchip/rk3399_mipi.c index 57e36eed6a9..b62d8086674 100644 --- a/drivers/video/rockchip/rk3399_mipi.c +++ b/drivers/video/rockchip/rk3399_mipi.c @@ -4,6 +4,7 @@ * Author: Eric Gao <[email protected]> */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk3399_vop.c b/drivers/video/rockchip/rk3399_vop.c index 17e1601e814..cb589c7537e 100644 --- a/drivers/video/rockchip/rk3399_vop.c +++ b/drivers/video/rockchip/rk3399_vop.c @@ -5,6 +5,7 @@ * Copyright 2014 Rockchip Inc. */ +#include <common.h> #include <display.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/rockchip/rk_edp.c b/drivers/video/rockchip/rk_edp.c index eb881ba4b0e..5f68a610e4a 100644 --- a/drivers/video/rockchip/rk_edp.c +++ b/drivers/video/rockchip/rk_edp.c @@ -4,6 +4,7 @@ * Copyright 2014 Rockchip Inc. */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_hdmi.c b/drivers/video/rockchip/rk_hdmi.c index 0ac0a3a1ecd..d31f6a4ff81 100644 --- a/drivers/video/rockchip/rk_hdmi.c +++ b/drivers/video/rockchip/rk_hdmi.c @@ -5,6 +5,7 @@ * Copyright 2014 Rockchip Inc. */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_lvds.c b/drivers/video/rockchip/rk_lvds.c index c969dae30b6..d0a015e31ee 100644 --- a/drivers/video/rockchip/rk_lvds.c +++ b/drivers/video/rockchip/rk_lvds.c @@ -3,6 +3,7 @@ * Copyright 2016 Rockchip Inc. */ +#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/rockchip/rk_mipi.c b/drivers/video/rockchip/rk_mipi.c index 0a603083ba9..f14cbc6dbf7 100644 --- a/drivers/video/rockchip/rk_mipi.c +++ b/drivers/video/rockchip/rk_mipi.c @@ -4,6 +4,7 @@ * Author: Eric Gao <[email protected]> */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/rockchip/rk_vop.c b/drivers/video/rockchip/rk_vop.c index 17dfe62c9da..acc02e5d7c7 100644 --- a/drivers/video/rockchip/rk_vop.c +++ b/drivers/video/rockchip/rk_vop.c @@ -4,6 +4,7 @@ * Copyright 2014 Rockchip Inc. */ +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sandbox_dsi_host.c b/drivers/video/sandbox_dsi_host.c index 7025ac986e3..c84a27ee3be 100644 --- a/drivers/video/sandbox_dsi_host.c +++ b/drivers/video/sandbox_dsi_host.c @@ -3,6 +3,7 @@ * Copyright (C) 2019, STMicroelectronics - All Rights Reserved */ +#include <common.h> #include <display.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/sandbox_osd.c b/drivers/video/sandbox_osd.c index bedc32b7c80..2a854d3958b 100644 --- a/drivers/video/sandbox_osd.c +++ b/drivers/video/sandbox_osd.c @@ -3,6 +3,7 @@ * (C) Copyright 2018 * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <display.h> #include <dm.h> #include <malloc.h> diff --git a/drivers/video/sandbox_sdl.c b/drivers/video/sandbox_sdl.c index 69dfa930273..9081c7da62e 100644 --- a/drivers/video/sandbox_sdl.c +++ b/drivers/video/sandbox_sdl.c @@ -3,6 +3,7 @@ * Copyright (c) 2013 Google, Inc */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <log.h> diff --git a/drivers/video/seps525.c b/drivers/video/seps525.c index 86cd301c4b9..74c8721e1e1 100644 --- a/drivers/video/seps525.c +++ b/drivers/video/seps525.c @@ -6,6 +6,7 @@ * Copyright (C) 2020 Xilinx Inc. */ +#include <common.h> #include <command.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c index b6c5b058b2e..76a30427a59 100644 --- a/drivers/video/simple_panel.c +++ b/drivers/video/simple_panel.c @@ -4,6 +4,7 @@ * Written by Simon Glass <[email protected]> */ +#include <common.h> #include <backlight.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/simplefb.c b/drivers/video/simplefb.c index cb518b149cb..33bb78bc3a3 100644 --- a/drivers/video/simplefb.c +++ b/drivers/video/simplefb.c @@ -3,6 +3,7 @@ * (C) Copyright 2017 Rob Clark */ +#include <common.h> #include <dm.h> #include <fdtdec.h> #include <fdt_support.h> diff --git a/drivers/video/ssd2828.c b/drivers/video/ssd2828.c index 4334bbd7235..948f5e74d0f 100644 --- a/drivers/video/ssd2828.c +++ b/drivers/video/ssd2828.c @@ -9,6 +9,7 @@ * interface for driving a MIPI compatible TFT display. */ +#include <common.h> #include <malloc.h> #include <mipi_display.h> #include <asm/gpio.h> diff --git a/drivers/video/stm32/stm32_dsi.c b/drivers/video/stm32/stm32_dsi.c index 438ed41e8d5..a18c1e027a8 100644 --- a/drivers/video/stm32/stm32_dsi.c +++ b/drivers/video/stm32/stm32_dsi.c @@ -10,6 +10,7 @@ #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE +#include <common.h> #include <clk.h> #include <dm.h> #include <dsi_host.h> diff --git a/drivers/video/stm32/stm32_ltdc.c b/drivers/video/stm32/stm32_ltdc.c index 0a062c8939d..4f60ba8ebee 100644 --- a/drivers/video/stm32/stm32_ltdc.c +++ b/drivers/video/stm32/stm32_ltdc.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_VIDEO +#include <common.h> #include <clk.h> #include <display.h> #include <dm.h> diff --git a/drivers/video/sunxi/lcdc.c b/drivers/video/sunxi/lcdc.c index 264d775c125..73033c3b858 100644 --- a/drivers/video/sunxi/lcdc.c +++ b/drivers/video/sunxi/lcdc.c @@ -7,6 +7,7 @@ * (C) Copyright 2017 Jernej Skrabec <[email protected]> */ +#include <common.h> #include <log.h> #include <linux/delay.h> diff --git a/drivers/video/sunxi/sunxi_de2.c b/drivers/video/sunxi/sunxi_de2.c index 154641b9a69..e02d359cd25 100644 --- a/drivers/video/sunxi/sunxi_de2.c +++ b/drivers/video/sunxi/sunxi_de2.c @@ -5,6 +5,7 @@ * (C) Copyright 2017 Jernej Skrabec <[email protected]> */ +#include <common.h> #include <display.h> #include <dm.h> #include <edid.h> diff --git a/drivers/video/sunxi/sunxi_display.c b/drivers/video/sunxi/sunxi_display.c index 4a6a89ef9d2..8da44a1bb6d 100644 --- a/drivers/video/sunxi/sunxi_display.c +++ b/drivers/video/sunxi/sunxi_display.c @@ -6,7 +6,7 @@ * (C) Copyright 2014-2015 Hans de Goede <[email protected]> */ -#include <config.h> +#include <common.h> #include <display.h> #include <dm.h> #include <cpu_func.h> diff --git a/drivers/video/sunxi/sunxi_dw_hdmi.c b/drivers/video/sunxi/sunxi_dw_hdmi.c index b9c03ea0386..a5e8d39e98f 100644 --- a/drivers/video/sunxi/sunxi_dw_hdmi.c +++ b/drivers/video/sunxi/sunxi_dw_hdmi.c @@ -6,6 +6,7 @@ */ #include <clk.h> +#include <common.h> #include <display.h> #include <dm.h> #include <dw_hdmi.h> diff --git a/drivers/video/sunxi/sunxi_lcd.c b/drivers/video/sunxi/sunxi_lcd.c index 953233fcd68..7a01cc343ca 100644 --- a/drivers/video/sunxi/sunxi_lcd.c +++ b/drivers/video/sunxi/sunxi_lcd.c @@ -5,6 +5,7 @@ * (C) Copyright 2017 Vasily Khoruzhick <[email protected]> */ +#include <common.h> #include <display.h> #include <log.h> #include <video_bridge.h> diff --git a/drivers/video/sunxi/tve_common.c b/drivers/video/sunxi/tve_common.c index 7bc2b3b2909..35251371d14 100644 --- a/drivers/video/sunxi/tve_common.c +++ b/drivers/video/sunxi/tve_common.c @@ -7,6 +7,7 @@ * (C) Copyright 2017 Jernej Skrabec <[email protected]> */ +#include <common.h> #include <asm/arch/tve.h> #include <asm/io.h> diff --git a/drivers/video/tda19988.c b/drivers/video/tda19988.c index ebc8521c6ed..24487439045 100644 --- a/drivers/video/tda19988.c +++ b/drivers/video/tda19988.c @@ -5,6 +5,7 @@ * Based on the Linux driver, (C) 2012 Texas Instruments */ +#include <common.h> #include <dm.h> #include <display.h> #include <i2c.h> diff --git a/drivers/video/tdo-tl070wsh30.c b/drivers/video/tdo-tl070wsh30.c index d772958f46e..273672db024 100644 --- a/drivers/video/tdo-tl070wsh30.c +++ b/drivers/video/tdo-tl070wsh30.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 BayLibre, SAS * Author: Neil Armstrong <[email protected]> */ +#include <common.h> #include <backlight.h> #include <dm.h> #include <mipi_dsi.h> diff --git a/drivers/video/tegra124/display.c b/drivers/video/tegra124/display.c index abe31e27d84..9261cc9384a 100644 --- a/drivers/video/tegra124/display.c +++ b/drivers/video/tegra124/display.c @@ -5,6 +5,7 @@ * Extracted from Chromium coreboot commit 3f59b13d */ +#include <common.h> #include <bootstage.h> #include <dm.h> #include <edid.h> @@ -13,7 +14,6 @@ #include <edid.h> #include <log.h> #include <part.h> -#include <time.h> #include <video.h> #include <asm/gpio.h> #include <asm/io.h> diff --git a/drivers/video/tegra124/dp.c b/drivers/video/tegra124/dp.c index 763f7ee39fc..b27b1633bab 100644 --- a/drivers/video/tegra124/dp.c +++ b/drivers/video/tegra124/dp.c @@ -4,12 +4,12 @@ * Copyright 2014 Google Inc. */ +#include <common.h> #include <display.h> #include <dm.h> #include <div64.h> #include <errno.h> #include <log.h> -#include <time.h> #include <video_bridge.h> #include <asm/io.h> #include <asm/arch-tegra/dc.h> diff --git a/drivers/video/tegra124/sor.c b/drivers/video/tegra124/sor.c index 1ce5330c6bc..258685182c7 100644 --- a/drivers/video/tegra124/sor.c +++ b/drivers/video/tegra124/sor.c @@ -3,6 +3,7 @@ * Copyright (c) 2011-2013, NVIDIA Corporation. */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/video/tegra20/mipi-phy.c b/drivers/video/tegra20/mipi-phy.c index 576262e405d..c3ebc4074b5 100644 --- a/drivers/video/tegra20/mipi-phy.c +++ b/drivers/video/tegra20/mipi-phy.c @@ -3,6 +3,7 @@ * Copyright (C) 2013 NVIDIA Corporation */ +#include <common.h> #include <linux/err.h> #include "mipi-phy.h" diff --git a/drivers/video/tegra20/tegra-dsi.c b/drivers/video/tegra20/tegra-dsi.c index 35a8e6c176b..13dae37806f 100644 --- a/drivers/video/tegra20/tegra-dsi.c +++ b/drivers/video/tegra20/tegra-dsi.c @@ -4,6 +4,7 @@ * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <misc.h> diff --git a/drivers/video/tegra20/tegra-pwm-backlight.c b/drivers/video/tegra20/tegra-pwm-backlight.c index 79d8a021a3a..5f93f57fe90 100644 --- a/drivers/video/tegra20/tegra-pwm-backlight.c +++ b/drivers/video/tegra20/tegra-pwm-backlight.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT #include <backlight.h> +#include <common.h> #include <dm.h> #include <i2c.h> #include <log.h> diff --git a/drivers/video/ti/tilcdc-panel.c b/drivers/video/ti/tilcdc-panel.c index d4076523060..df95086a515 100644 --- a/drivers/video/ti/tilcdc-panel.c +++ b/drivers/video/ti/tilcdc-panel.c @@ -5,6 +5,7 @@ * Copyright (C) 2020 Dario Binacchi <[email protected]> */ +#include <common.h> #include <backlight.h> #include <clk.h> #include <display.h> diff --git a/drivers/video/ti/tilcdc.c b/drivers/video/ti/tilcdc.c index 493e2f18cd2..2734754ecde 100644 --- a/drivers/video/ti/tilcdc.c +++ b/drivers/video/ti/tilcdc.c @@ -3,6 +3,7 @@ * Copyright (C) 2020 Dario Binacchi <[email protected]> */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/video/tidss/tidss_drv.c b/drivers/video/tidss/tidss_drv.c index 865d4bddb7f..1380c6b6937 100644 --- a/drivers/video/tidss/tidss_drv.c +++ b/drivers/video/tidss/tidss_drv.c @@ -9,6 +9,7 @@ * Author: Tomi Valkeinen <[email protected]> */ +#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/video/vesa.c b/drivers/video/vesa.c index ab756ac8ea1..50912c5c8bc 100644 --- a/drivers/video/vesa.c +++ b/drivers/video/vesa.c @@ -3,6 +3,7 @@ * Copyright (C) 2016, Bin Meng <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <pci.h> diff --git a/drivers/video/vidconsole-uclass.c b/drivers/video/vidconsole-uclass.c index 80e7adf6a1a..5d06e51ff23 100644 --- a/drivers/video/vidconsole-uclass.c +++ b/drivers/video/vidconsole-uclass.c @@ -9,6 +9,7 @@ #define LOG_CATEGORY UCLASS_VIDEO_CONSOLE +#include <common.h> #include <abuf.h> #include <charset.h> #include <command.h> diff --git a/drivers/video/video-uclass.c b/drivers/video/video-uclass.c index ff1382f4a43..7b5d1dfbb3b 100644 --- a/drivers/video/video-uclass.c +++ b/drivers/video/video-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_VIDEO +#include <common.h> #include <bloblist.h> #include <console.h> #include <cpu_func.h> diff --git a/drivers/video/video_bmp.c b/drivers/video/video_bmp.c index ad512d99a1b..45f003c8251 100644 --- a/drivers/video/video_bmp.c +++ b/drivers/video/video_bmp.c @@ -3,6 +3,7 @@ * Copyright (c) 2015 Google, Inc */ +#include <common.h> #include <bmp_layout.h> #include <dm.h> #include <log.h> diff --git a/drivers/video/video_osd-uclass.c b/drivers/video/video_osd-uclass.c index 923686345ff..0d3aae4d827 100644 --- a/drivers/video/video_osd-uclass.c +++ b/drivers/video/video_osd-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_VIDEO_OSD +#include <common.h> #include <dm.h> #include <video_osd.h> diff --git a/drivers/video/videomodes.c b/drivers/video/videomodes.c index d86d8679841..35955a5df7d 100644 --- a/drivers/video/videomodes.c +++ b/drivers/video/videomodes.c @@ -55,6 +55,7 @@ "myvideo" and setting the variable "videomode=myvideo".. ****************************************************************************/ +#include <common.h> #include <edid.h> #include <env.h> #include <errno.h> diff --git a/drivers/video/zynqmp/zynqmp_dpsub.c b/drivers/video/zynqmp/zynqmp_dpsub.c index 1405b29cb8b..def4dcf6261 100644 --- a/drivers/video/zynqmp/zynqmp_dpsub.c +++ b/drivers/video/zynqmp/zynqmp_dpsub.c @@ -6,6 +6,7 @@ * Xilinx displayport(DP) Tx Subsytem driver */ +#include <common.h> #include <clk.h> #include <cpu_func.h> #include <dm.h> diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c index 1dbc1a56aa2..c5420162735 100644 --- a/drivers/virtio/virtio-uclass.c +++ b/drivers/virtio/virtio-uclass.c @@ -17,6 +17,7 @@ #define LOG_CATEGORY UCLASS_VIRTIO +#include <common.h> #include <bootdev.h> #include <dm.h> #include <log.h> diff --git a/drivers/virtio/virtio_blk.c b/drivers/virtio/virtio_blk.c index 3404f61eba5..95810582867 100644 --- a/drivers/virtio/virtio_blk.c +++ b/drivers/virtio/virtio_blk.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_VIRTIO +#include <common.h> #include <blk.h> #include <dm.h> #include <part.h> diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c index 1cd737aca24..78c15c821b4 100644 --- a/drivers/virtio/virtio_mmio.c +++ b/drivers/virtio/virtio_mmio.c @@ -7,6 +7,7 @@ * Ported from Linux drivers/virtio/virtio_mmio.c */ +#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_net.c b/drivers/virtio/virtio_net.c index 0e5367a085e..1794f73a8de 100644 --- a/drivers/virtio/virtio_net.c +++ b/drivers/virtio/virtio_net.c @@ -4,6 +4,7 @@ * Copyright (C) 2018, Bin Meng <[email protected]> */ +#include <common.h> #include <dm.h> #include <net.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_pci_legacy.c b/drivers/virtio/virtio_pci_legacy.c index 15f8c6e7d25..aa89604ae84 100644 --- a/drivers/virtio/virtio_pci_legacy.c +++ b/drivers/virtio/virtio_pci_legacy.c @@ -6,6 +6,7 @@ * Ported from Linux drivers/virtio/virtio_pci*.c */ +#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_pci_modern.c b/drivers/virtio/virtio_pci_modern.c index 5850e0c18c6..3cdc2d2d6fd 100644 --- a/drivers/virtio/virtio_pci_modern.c +++ b/drivers/virtio/virtio_pci_modern.c @@ -6,6 +6,7 @@ * Ported from Linux drivers/virtio/virtio_pci*.c */ +#include <common.h> #include <dm.h> #include <log.h> #include <virtio_types.h> diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index 306fa5b3f68..c9adcce5c09 100644 --- a/drivers/virtio/virtio_ring.c +++ b/drivers/virtio/virtio_ring.c @@ -7,6 +7,7 @@ */ #include <bouncebuf.h> +#include <common.h> #include <dm.h> #include <log.h> #include <malloc.h> diff --git a/drivers/virtio/virtio_rng.c b/drivers/virtio/virtio_rng.c index 90a371a59cc..786359a6e36 100644 --- a/drivers/virtio/virtio_rng.c +++ b/drivers/virtio/virtio_rng.c @@ -3,6 +3,7 @@ * Copyright (c) 2019, Linaro Limited */ +#include <common.h> #include <dm.h> #include <log.h> #include <rng.h> diff --git a/drivers/virtio/virtio_sandbox.c b/drivers/virtio/virtio_sandbox.c index 0f1ebef22e5..b34f1d60455 100644 --- a/drivers/virtio/virtio_sandbox.c +++ b/drivers/virtio/virtio_sandbox.c @@ -5,6 +5,7 @@ * VirtIO Sandbox transport driver, for testing purpose only */ +#include <common.h> #include <dm.h> #include <virtio_types.h> #include <virtio.h> diff --git a/drivers/w1-eeprom/ds24xxx.c b/drivers/w1-eeprom/ds24xxx.c index 413d8bc5881..4be378b43d0 100644 --- a/drivers/w1-eeprom/ds24xxx.c +++ b/drivers/w1-eeprom/ds24xxx.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <linux/err.h> #include <dm.h> #include <w1-eeprom.h> diff --git a/drivers/w1-eeprom/ds2502.c b/drivers/w1-eeprom/ds2502.c index db9f41e9726..a67f5edd0fe 100644 --- a/drivers/w1-eeprom/ds2502.c +++ b/drivers/w1-eeprom/ds2502.c @@ -20,6 +20,7 @@ * Martin Fuzzey <[email protected]> */ +#include <common.h> #include <dm.h> #include <dm/device_compat.h> #include <linux/err.h> diff --git a/drivers/w1-eeprom/eep_sandbox.c b/drivers/w1-eeprom/eep_sandbox.c index 2a69ca27de7..27c7f9f1b6b 100644 --- a/drivers/w1-eeprom/eep_sandbox.c +++ b/drivers/w1-eeprom/eep_sandbox.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <linux/err.h> #include <dm.h> #include <w1-eeprom.h> diff --git a/drivers/w1-eeprom/w1-eeprom-uclass.c b/drivers/w1-eeprom/w1-eeprom-uclass.c index 3919aad3c8a..70ba537243f 100644 --- a/drivers/w1-eeprom/w1-eeprom-uclass.c +++ b/drivers/w1-eeprom/w1-eeprom-uclass.c @@ -12,6 +12,7 @@ #define LOG_CATEGORY UCLASS_W1_EEPROM +#include <common.h> #include <dm.h> #include <log.h> #include <w1.h> diff --git a/drivers/w1/mxc_w1.c b/drivers/w1/mxc_w1.c index 9ebfc13c83a..b96c1a00bf2 100644 --- a/drivers/w1/mxc_w1.c +++ b/drivers/w1/mxc_w1.c @@ -17,6 +17,7 @@ * Martin Fuzzey <[email protected]> */ +#include <common.h> #include <asm/arch/clock.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/w1/w1-gpio.c b/drivers/w1/w1-gpio.c index 759f94e224e..9346f810ce1 100644 --- a/drivers/w1/w1-gpio.c +++ b/drivers/w1/w1-gpio.c @@ -7,6 +7,7 @@ * */ +#include <common.h> #include <dm.h> #include <log.h> #include <w1.h> diff --git a/drivers/w1/w1-uclass.c b/drivers/w1/w1-uclass.c index 9637ed24257..a4247ecd623 100644 --- a/drivers/w1/w1-uclass.c +++ b/drivers/w1/w1-uclass.c @@ -14,6 +14,7 @@ #define LOG_CATEGORY UCLASS_W1 +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/watchdog/armada-37xx-wdt.c b/drivers/watchdog/armada-37xx-wdt.c index 4b51178e1b8..e09f5ac9e34 100644 --- a/drivers/watchdog/armada-37xx-wdt.c +++ b/drivers/watchdog/armada-37xx-wdt.c @@ -5,6 +5,7 @@ * Marek BehĂșn <[email protected]> */ +#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/global_data.h> diff --git a/drivers/watchdog/ast2600_wdt.c b/drivers/watchdog/ast2600_wdt.c index 190490f3692..bc9842089be 100644 --- a/drivers/watchdog/ast2600_wdt.c +++ b/drivers/watchdog/ast2600_wdt.c @@ -3,6 +3,7 @@ * Copyright (c) 2020 Aspeed Technology, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/watchdog/ast_wdt.c b/drivers/watchdog/ast_wdt.c index e61e13fdc49..f7b5a1adc10 100644 --- a/drivers/watchdog/ast_wdt.c +++ b/drivers/watchdog/ast_wdt.c @@ -3,6 +3,7 @@ * Copyright 2017 Google, Inc */ +#include <common.h> #include <dm.h> #include <errno.h> #include <log.h> diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index c809a8936b8..647ae325e9a 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -18,6 +18,7 @@ #include <asm/global_data.h> #include <asm/io.h> #include <asm/arch/at91_wdt.h> +#include <common.h> #include <div64.h> #include <dm.h> #include <errno.h> diff --git a/drivers/watchdog/bcm6345_wdt.c b/drivers/watchdog/bcm6345_wdt.c index 6ebe901c2b8..677b1347ca7 100644 --- a/drivers/watchdog/bcm6345_wdt.c +++ b/drivers/watchdog/bcm6345_wdt.c @@ -7,6 +7,7 @@ * Copyright (C) 2008 Florian Fainelli <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/cdns_wdt.c b/drivers/watchdog/cdns_wdt.c index cb5a786c589..743ab6487bc 100644 --- a/drivers/watchdog/cdns_wdt.c +++ b/drivers/watchdog/cdns_wdt.c @@ -6,6 +6,7 @@ * Author(s): Shreenidhi Shedi <[email protected]> */ +#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/cortina_wdt.c b/drivers/watchdog/cortina_wdt.c index 9f09ac0e15f..7ab9d7b2db9 100644 --- a/drivers/watchdog/cortina_wdt.c +++ b/drivers/watchdog/cortina_wdt.c @@ -4,6 +4,7 @@ * */ +#include <common.h> #include <dm.h> #include <hang.h> #include <asm/io.h> diff --git a/drivers/watchdog/designware_wdt.c b/drivers/watchdog/designware_wdt.c index bd9d7105366..b22e0ee06a4 100644 --- a/drivers/watchdog/designware_wdt.c +++ b/drivers/watchdog/designware_wdt.c @@ -4,6 +4,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <reset.h> #include <wdt.h> diff --git a/drivers/watchdog/ftwdt010_wdt.c b/drivers/watchdog/ftwdt010_wdt.c index 4769b967e52..1f5f301b125 100644 --- a/drivers/watchdog/ftwdt010_wdt.c +++ b/drivers/watchdog/ftwdt010_wdt.c @@ -14,6 +14,7 @@ * 22/08/2022 Port to DM */ +#include <common.h> #include <dm.h> #include <wdt.h> #include <log.h> diff --git a/drivers/watchdog/imx_watchdog.c b/drivers/watchdog/imx_watchdog.c index ea770217e59..894158b304a 100644 --- a/drivers/watchdog/imx_watchdog.c +++ b/drivers/watchdog/imx_watchdog.c @@ -4,6 +4,7 @@ * Licensed under the GPL-2 or later. */ +#include <common.h> #include <cpu_func.h> #include <dm.h> #include <hang.h> diff --git a/drivers/watchdog/mcf_wdt.c b/drivers/watchdog/mcf_wdt.c index 5092a256af0..b36488bb5b9 100644 --- a/drivers/watchdog/mcf_wdt.c +++ b/drivers/watchdog/mcf_wdt.c @@ -6,7 +6,7 @@ * */ -#include <config.h> +#include <common.h> #include <dm.h> #include <hang.h> #include <asm/io.h> diff --git a/drivers/watchdog/mpc8xxx_wdt.c b/drivers/watchdog/mpc8xxx_wdt.c index 036ff690d3f..f28636ca901 100644 --- a/drivers/watchdog/mpc8xxx_wdt.c +++ b/drivers/watchdog/mpc8xxx_wdt.c @@ -3,6 +3,7 @@ * Copyright 2017 CS Systemes d'Information */ +#include <common.h> #include <env.h> #include <dm.h> #include <wdt.h> diff --git a/drivers/watchdog/mt7621_wdt.c b/drivers/watchdog/mt7621_wdt.c index 6308d9632a8..f7d201b921a 100644 --- a/drivers/watchdog/mt7621_wdt.c +++ b/drivers/watchdog/mt7621_wdt.c @@ -9,6 +9,7 @@ * Copyright (C) 2013 John Crispin <[email protected]> */ +#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/global_data.h> diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index 706deb9da84..368b36849c8 100644 --- a/drivers/watchdog/mtk_wdt.c +++ b/drivers/watchdog/mtk_wdt.c @@ -6,6 +6,7 @@ * Author: Ryder Lee <[email protected]> */ +#include <common.h> #include <dm.h> #include <hang.h> #include <wdt.h> diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index 5fd02ddf564..f0e57b4f728 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c @@ -36,6 +36,7 @@ * Use the driver model and standard identifiers; handle bigger timeouts. */ +#include <common.h> #include <log.h> #include <watchdog.h> #include <asm/ti-common/omap_wdt.h> diff --git a/drivers/watchdog/orion_wdt.c b/drivers/watchdog/orion_wdt.c index 4562b2a37e3..127766df58a 100644 --- a/drivers/watchdog/orion_wdt.c +++ b/drivers/watchdog/orion_wdt.c @@ -12,6 +12,7 @@ * warranty of any kind, whether express or implied. */ +#include <common.h> #include <dm.h> #include <clk.h> #include <log.h> diff --git a/drivers/watchdog/rti_wdt.c b/drivers/watchdog/rti_wdt.c index 99168d0cad0..8d93f19b984 100644 --- a/drivers/watchdog/rti_wdt.c +++ b/drivers/watchdog/rti_wdt.c @@ -8,6 +8,7 @@ * Derived from linux/drivers/watchdog/rti_wdt.c */ +#include <common.h> #include <clk.h> #include <dm.h> #include <dm/device_compat.h> diff --git a/drivers/watchdog/s5p_wdt.c b/drivers/watchdog/s5p_wdt.c index c244f15a895..80524a00101 100644 --- a/drivers/watchdog/s5p_wdt.c +++ b/drivers/watchdog/s5p_wdt.c @@ -4,6 +4,7 @@ * Minkyu Kang <[email protected]> */ +#include <common.h> #include <asm/io.h> #include <asm/arch/cpu.h> #include <asm/arch/watchdog.h> diff --git a/drivers/watchdog/sandbox_alarm-wdt.c b/drivers/watchdog/sandbox_alarm-wdt.c index 8dbbfc249e7..71bb5d924ea 100644 --- a/drivers/watchdog/sandbox_alarm-wdt.c +++ b/drivers/watchdog/sandbox_alarm-wdt.c @@ -1,3 +1,4 @@ +#include <common.h> #include <dm.h> #include <os.h> #include <wdt.h> diff --git a/drivers/watchdog/sandbox_wdt.c b/drivers/watchdog/sandbox_wdt.c index cd5eadbfd21..535614f04d6 100644 --- a/drivers/watchdog/sandbox_wdt.c +++ b/drivers/watchdog/sandbox_wdt.c @@ -3,6 +3,7 @@ * Copyright 2017 Google, Inc */ +#include <common.h> #include <dm.h> #include <wdt.h> #include <asm/state.h> diff --git a/drivers/watchdog/sbsa_gwdt.c b/drivers/watchdog/sbsa_gwdt.c index 03585529bb6..96d04665d52 100644 --- a/drivers/watchdog/sbsa_gwdt.c +++ b/drivers/watchdog/sbsa_gwdt.c @@ -7,6 +7,7 @@ #include <asm/global_data.h> #include <asm/io.h> +#include <common.h> #include <dm/device.h> #include <dm/fdtaddr.h> #include <dm/read.h> diff --git a/drivers/watchdog/sl28cpld-wdt.c b/drivers/watchdog/sl28cpld-wdt.c index c5b4f8a9f66..af5a6b1a28a 100644 --- a/drivers/watchdog/sl28cpld-wdt.c +++ b/drivers/watchdog/sl28cpld-wdt.c @@ -5,6 +5,7 @@ * Copyright (c) 2021 Michael Walle <[email protected]> */ +#include <common.h> #include <dm.h> #include <wdt.h> #include <sl28cpld.h> diff --git a/drivers/watchdog/sp805_wdt.c b/drivers/watchdog/sp805_wdt.c index 10fe3e28232..6d58fd3cfda 100644 --- a/drivers/watchdog/sp805_wdt.c +++ b/drivers/watchdog/sp805_wdt.c @@ -8,6 +8,7 @@ #include <log.h> #include <asm/global_data.h> #include <asm/io.h> +#include <common.h> #include <clk.h> #include <dm/device.h> #include <dm/fdtaddr.h> diff --git a/drivers/watchdog/stm32mp_wdt.c b/drivers/watchdog/stm32mp_wdt.c index 97ab8cfe7ab..7ebcd255266 100644 --- a/drivers/watchdog/stm32mp_wdt.c +++ b/drivers/watchdog/stm32mp_wdt.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_WDT +#include <common.h> #include <clk.h> #include <dm.h> #include <log.h> diff --git a/drivers/watchdog/tangier_wdt.c b/drivers/watchdog/tangier_wdt.c index 8fbfac31b1e..bdc65597dcf 100644 --- a/drivers/watchdog/tangier_wdt.c +++ b/drivers/watchdog/tangier_wdt.c @@ -2,6 +2,7 @@ /* * Copyright (c) 2017 Intel Corporation */ +#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/ulp_wdog.c b/drivers/watchdog/ulp_wdog.c index 83f19dc0e86..0eea04ed2c6 100644 --- a/drivers/watchdog/ulp_wdog.c +++ b/drivers/watchdog/ulp_wdog.c @@ -3,6 +3,7 @@ * Copyright (C) 2016 Freescale Semiconductor, Inc. */ +#include <common.h> #include <cpu_func.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c index c88312ec721..417e8d7eef9 100644 --- a/drivers/watchdog/wdt-uclass.c +++ b/drivers/watchdog/wdt-uclass.c @@ -5,6 +5,7 @@ #define LOG_CATEGORY UCLASS_WDT +#include <common.h> #include <cyclic.h> #include <div64.h> #include <dm.h> diff --git a/drivers/watchdog/xilinx_tb_wdt.c b/drivers/watchdog/xilinx_tb_wdt.c index 8a8e55370a0..b38c4000161 100644 --- a/drivers/watchdog/xilinx_tb_wdt.c +++ b/drivers/watchdog/xilinx_tb_wdt.c @@ -8,6 +8,7 @@ * Copyright (c) 2011-2018 Xilinx Inc. */ +#include <common.h> #include <dm.h> #include <log.h> #include <wdt.h> diff --git a/drivers/watchdog/xilinx_wwdt.c b/drivers/watchdog/xilinx_wwdt.c index 41eff1a4645..963ab22fb45 100644 --- a/drivers/watchdog/xilinx_wwdt.c +++ b/drivers/watchdog/xilinx_wwdt.c @@ -9,6 +9,7 @@ */ #include <clk.h> +#include <common.h> #include <dm.h> #include <regmap.h> #include <wdt.h> diff --git a/drivers/xen/events.c b/drivers/xen/events.c index fa8b13d2c61..2ebe20dbf26 100644 --- a/drivers/xen/events.c +++ b/drivers/xen/events.c @@ -14,6 +14,7 @@ * * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary */ +#include <common.h> #include <log.h> #include <asm/io.h> diff --git a/drivers/xen/gnttab.c b/drivers/xen/gnttab.c index 005694a5c62..31e96e2939c 100644 --- a/drivers/xen/gnttab.c +++ b/drivers/xen/gnttab.c @@ -14,6 +14,7 @@ * * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary */ +#include <common.h> #include <asm/global_data.h> #include <linux/compiler.h> #include <log.h> diff --git a/drivers/xen/hypervisor.c b/drivers/xen/hypervisor.c index d28df823c68..0b2311ba267 100644 --- a/drivers/xen/hypervisor.c +++ b/drivers/xen/hypervisor.c @@ -8,6 +8,7 @@ * Copyright (c) 2005, Grzegorz Milos, [email protected],Intel Research Cambridge * Copyright (c) 2020, EPAM Systems Inc. */ +#include <common.h> #include <cpu_func.h> #include <log.h> #include <memalign.h> diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c index 0e47ffb46a8..9fc51d203e5 100644 --- a/drivers/xen/pvblock.c +++ b/drivers/xen/pvblock.c @@ -7,6 +7,7 @@ #define LOG_CATEGORY UCLASS_PVBLOCK #include <blk.h> +#include <common.h> #include <dm.h> #include <dm/device-internal.h> #include <malloc.h> diff --git a/drivers/xen/xenbus.c b/drivers/xen/xenbus.c index 36de5255099..177d144723c 100644 --- a/drivers/xen/xenbus.c +++ b/drivers/xen/xenbus.c @@ -15,6 +15,7 @@ * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary */ +#include <common.h> #include <log.h> #include <asm/armv8/mmu.h> |
