diff options
Diffstat (limited to 'drivers/misc')
39 files changed, 51 insertions, 6 deletions
diff --git a/drivers/misc/altera_sysid.c b/drivers/misc/altera_sysid.c index eff33f7343..387c70b070 100644 --- a/drivers/misc/altera_sysid.c +++ b/drivers/misc/altera_sysid.c @@ -44,7 +44,7 @@ void display_sysid(void) printf("SYSID: %08x, %s", sysid[0], asc); } -int do_sysid(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_sysid(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { display_sysid(); return 0; diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index 116c0661e7..422ea6f3e5 100644 --- a/drivers/misc/atsha204a-i2c.c +++ b/drivers/misc/atsha204a-i2c.c @@ -15,6 +15,8 @@ #include <i2c.h> #include <errno.h> #include <atsha204a-i2c.h> +#include <log.h> +#include <linux/delay.h> #include <u-boot/crc.h> #define ATSHA204A_TWLO 60 diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index fa9984f6bd..a5534b1667 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -18,11 +18,14 @@ #include <common.h> #include <command.h> #include <dm.h> +#include <flash.h> #include <i2c.h> #include <cros_ec.h> #include <fdtdec.h> +#include <log.h> #include <malloc.h> #include <spi.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> #include <asm-generic/gpio.h> diff --git a/drivers/misc/cros_ec_i2c.c b/drivers/misc/cros_ec_i2c.c index cdd55f5aa8..c00f5f764a 100644 --- a/drivers/misc/cros_ec_i2c.c +++ b/drivers/misc/cros_ec_i2c.c @@ -16,6 +16,7 @@ #include <dm.h> #include <i2c.h> #include <cros_ec.h> +#include <log.h> #ifdef DEBUG_TRACE #define debug_trace(fmt, b...) debug(fmt, #b) diff --git a/drivers/misc/cros_ec_lpc.c b/drivers/misc/cros_ec_lpc.c index 71d03bfba2..4ad6c8ca66 100644 --- a/drivers/misc/cros_ec_lpc.c +++ b/drivers/misc/cros_ec_lpc.c @@ -16,6 +16,7 @@ #include <dm.h> #include <command.h> #include <cros_ec.h> +#include <log.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 9dd6a18b2b..c9fa7abd71 100644 --- a/drivers/misc/cros_ec_sandbox.c +++ b/drivers/misc/cros_ec_sandbox.c @@ -11,6 +11,7 @@ #include <ec_commands.h> #include <errno.h> #include <hash.h> +#include <log.h> #include <os.h> #include <u-boot/sha256.h> #include <spi.h> diff --git a/drivers/misc/cros_ec_spi.c b/drivers/misc/cros_ec_spi.c index be510704c4..153f971bde 100644 --- a/drivers/misc/cros_ec_spi.c +++ b/drivers/misc/cros_ec_spi.c @@ -16,6 +16,7 @@ #include <cros_ec.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <spi.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 bf20a833ec..a2a5291565 100644 --- a/drivers/misc/ds4510.c +++ b/drivers/misc/ds4510.c @@ -11,6 +11,7 @@ #include <common.h> #include <i2c.h> #include <command.h> +#include <linux/delay.h> #include "ds4510.h" enum { @@ -233,7 +234,7 @@ static int ds4510_info(uint8_t chip) return 0; } -cmd_tbl_t cmd_ds4510[] = { +struct cmd_tbl cmd_ds4510[] = { U_BOOT_CMD_MKENT(device, 3, 0, (void *)DS4510_CMD_DEVICE, "", ""), U_BOOT_CMD_MKENT(nv, 3, 0, (void *)DS4510_CMD_NV, "", ""), U_BOOT_CMD_MKENT(output, 4, 0, (void *)DS4510_CMD_OUTPUT, "", ""), @@ -246,10 +247,10 @@ cmd_tbl_t cmd_ds4510[] = { U_BOOT_CMD_MKENT(sram, 6, 0, (void *)DS4510_CMD_SRAM, "", ""), }; -int do_ds4510(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int do_ds4510(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) { static uint8_t chip = 0x51; - cmd_tbl_t *c; + struct cmd_tbl *c; ulong ul_arg2 = 0; ulong ul_arg3 = 0; int tmp; diff --git a/drivers/misc/esm_pmic.c b/drivers/misc/esm_pmic.c index 92c8d68f7c..a195dc5eb1 100644 --- a/drivers/misc/esm_pmic.c +++ b/drivers/misc/esm_pmic.c @@ -12,6 +12,7 @@ #include <errno.h> #include <power/pmic.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #define INT_ESM_REG 0x6c #define INT_ESM_MASK 0x3f diff --git a/drivers/misc/fs_loader.c b/drivers/misc/fs_loader.c index 88e486e9d5..56406aa1dd 100644 --- a/drivers/misc/fs_loader.c +++ b/drivers/misc/fs_loader.c @@ -10,6 +10,7 @@ #include <blk.h> #include <fs.h> #include <fs_loader.h> +#include <log.h> #include <linux/string.h> #include <mapmem.h> #include <malloc.h> diff --git a/drivers/misc/fsl_ifc.c b/drivers/misc/fsl_ifc.c index 0dbf304487..8fdaacd5e0 100644 --- a/drivers/misc/fsl_ifc.c +++ b/drivers/misc/fsl_ifc.c @@ -6,6 +6,7 @@ #include <common.h> #include <fsl_ifc.h> +#include <part.h> #ifdef CONFIG_TFABOOT struct ifc_regs ifc_cfg_default_boot[CONFIG_SYS_FSL_IFC_BANK_COUNT] = { diff --git a/drivers/misc/fsl_iim.c b/drivers/misc/fsl_iim.c index f8075db8d5..85cc3c26b2 100644 --- a/drivers/misc/fsl_iim.c +++ b/drivers/misc/fsl_iim.c @@ -10,6 +10,7 @@ #include <common.h> #include <fuse.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/imx-regs.h> diff --git a/drivers/misc/fsl_portals.c b/drivers/misc/fsl_portals.c index 45eed22f6e..632430e420 100644 --- a/drivers/misc/fsl_portals.c +++ b/drivers/misc/fsl_portals.c @@ -5,6 +5,7 @@ */ #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 e9f351dc3a..321bd27fd3 100644 --- a/drivers/misc/fsl_sec_mon.c +++ b/drivers/misc/fsl_sec_mon.c @@ -5,6 +5,7 @@ #include <common.h> #include <fsl_sec_mon.h> +#include <linux/delay.h> static u32 get_sec_mon_state(void) { diff --git a/drivers/misc/gdsys_ioep.c b/drivers/misc/gdsys_ioep.c index 7f17095cc5..69e16a06a0 100644 --- a/drivers/misc/gdsys_ioep.c +++ b/drivers/misc/gdsys_ioep.c @@ -13,6 +13,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <misc.h> #include <regmap.h> diff --git a/drivers/misc/gdsys_ioep.h b/drivers/misc/gdsys_ioep.h index 4d9524b6b6..f195388eda 100644 --- a/drivers/misc/gdsys_ioep.h +++ b/drivers/misc/gdsys_ioep.h @@ -15,6 +15,7 @@ * @bc: Block counter (filled in by FPGA). * @packet_length: Length of the packet's payload bytes. */ +#include <linux/bitops.h> struct io_generic_packet { u16 target_address; u16 source_address; diff --git a/drivers/misc/gdsys_soc.c b/drivers/misc/gdsys_soc.c index 94a21e08af..b4c721c6fe 100644 --- a/drivers/misc/gdsys_soc.c +++ b/drivers/misc/gdsys_soc.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/lists.h> #include "gdsys_soc.h" diff --git a/drivers/misc/i2c_eeprom.c b/drivers/misc/i2c_eeprom.c index ef5f103c98..ed23a62384 100644 --- a/drivers/misc/i2c_eeprom.c +++ b/drivers/misc/i2c_eeprom.c @@ -5,6 +5,7 @@ #include <common.h> #include <eeprom.h> +#include <linux/delay.h> #include <linux/err.h> #include <linux/kernel.h> #include <dm.h> diff --git a/drivers/misc/i2c_eeprom_emul.c b/drivers/misc/i2c_eeprom_emul.c index 16758a0ef9..6be76ad02e 100644 --- a/drivers/misc/i2c_eeprom_emul.c +++ b/drivers/misc/i2c_eeprom_emul.c @@ -9,6 +9,7 @@ #include <dm.h> #include <errno.h> #include <i2c.h> +#include <log.h> #include <malloc.h> #include <asm/test.h> diff --git a/drivers/misc/ihs_fpga.c b/drivers/misc/ihs_fpga.c index f9e4b27a27..00d34a3adc 100644 --- a/drivers/misc/ihs_fpga.c +++ b/drivers/misc/ihs_fpga.c @@ -11,8 +11,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <regmap.h> #include <asm/gpio.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include "ihs_fpga.h" diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c index 6916b754f6..ee635eb947 100644 --- a/drivers/misc/imx8/scu.c +++ b/drivers/misc/imx8/scu.c @@ -6,12 +6,14 @@ */ #include <common.h> +#include <log.h> #include <asm/io.h> #include <dm.h> #include <dm/lists.h> #include <dm/root.h> #include <dm/device-internal.h> #include <asm/arch/sci/sci.h> +#include <linux/bitops.h> #include <linux/iopoll.h> #include <misc.h> diff --git a/drivers/misc/irq-uclass.c b/drivers/misc/irq-uclass.c index 61aa10e465..16dc0be75c 100644 --- a/drivers/misc/irq-uclass.c +++ b/drivers/misc/irq-uclass.c @@ -10,6 +10,7 @@ #include <dm.h> #include <dt-structs.h> #include <irq.h> +#include <log.h> #include <dm/device-internal.h> int irq_route_pmc_gpio_gpe(struct udevice *dev, uint pmc_gpe_num) diff --git a/drivers/misc/jz4780_efuse.c b/drivers/misc/jz4780_efuse.c index bc3dc93af2..1fba3271db 100644 --- a/drivers/misc/jz4780_efuse.c +++ b/drivers/misc/jz4780_efuse.c @@ -10,6 +10,7 @@ #include <asm/io.h> #include <asm/unaligned.h> #include <errno.h> +#include <linux/bitops.h> #include <mach/jz4780.h> #include <wait_bit.h> diff --git a/drivers/misc/k3_avs.c b/drivers/misc/k3_avs.c index d8048e1b70..408c89315a 100644 --- a/drivers/misc/k3_avs.c +++ b/drivers/misc/k3_avs.c @@ -14,6 +14,7 @@ #include <i2c.h> #include <k3-avs.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #include <power/regulator.h> #define AM6_VTM_DEVINFO(i) (priv->base + 0x100 + 0x20 * (i)) diff --git a/drivers/misc/k3_esm.c b/drivers/misc/k3_esm.c index 8f270f3b5c..cc2a23dd66 100644 --- a/drivers/misc/k3_esm.c +++ b/drivers/misc/k3_esm.c @@ -12,6 +12,7 @@ #include <errno.h> #include <asm/io.h> #include <dm/device_compat.h> +#include <linux/bitops.h> #define ESM_SFT_RST 0x0c #define ESM_SFT_RST_KEY 0x0f diff --git a/drivers/misc/microchip_flexcom.c b/drivers/misc/microchip_flexcom.c index 4cff160d88..44a8b180a4 100644 --- a/drivers/misc/microchip_flexcom.c +++ b/drivers/misc/microchip_flexcom.c @@ -7,6 +7,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <misc.h> #include <asm/io.h> #include <linux/err.h> diff --git a/drivers/misc/mpc83xx_serdes.c b/drivers/misc/mpc83xx_serdes.c index d572dda3c1..ab1e34e6f4 100644 --- a/drivers/misc/mpc83xx_serdes.c +++ b/drivers/misc/mpc83xx_serdes.c @@ -11,8 +11,10 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <mapmem.h> #include <misc.h> +#include <linux/delay.h> #include "mpc83xx_serdes.h" diff --git a/drivers/misc/mpc83xx_serdes.h b/drivers/misc/mpc83xx_serdes.h index 89ea1dbab7..2a13c5892b 100644 --- a/drivers/misc/mpc83xx_serdes.h +++ b/drivers/misc/mpc83xx_serdes.h @@ -18,6 +18,7 @@ * lane E) field of the SRCSCR0 * @SRDSCR0_TXEQE_SATA: Bitmask to set the TXEQE to the value used for SATA */ +#include <linux/bitops.h> enum srdscr0_mask { SRDSCR0_DPPA = BIT(31 - 16), SRDSCR0_DPPE = BIT(31 - 20), diff --git a/drivers/misc/mxc_ocotp.c b/drivers/misc/mxc_ocotp.c index 80cd8dceda..926c62c8a1 100644 --- a/drivers/misc/mxc_ocotp.c +++ b/drivers/misc/mxc_ocotp.c @@ -13,6 +13,7 @@ #include <common.h> #include <fuse.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/drivers/misc/mxs_ocotp.c b/drivers/misc/mxs_ocotp.c index 21cae02118..facc720c8e 100644 --- a/drivers/misc/mxs_ocotp.c +++ b/drivers/misc/mxs_ocotp.c @@ -13,6 +13,7 @@ #include <common.h> #include <fuse.h> +#include <linux/delay.h> #include <linux/errno.h> #include <asm/io.h> #include <asm/arch/clock.h> diff --git a/drivers/misc/p2sb-uclass.c b/drivers/misc/p2sb-uclass.c index 9fe0aca342..06b1e8d9ad 100644 --- a/drivers/misc/p2sb-uclass.c +++ b/drivers/misc/p2sb-uclass.c @@ -8,6 +8,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <mapmem.h> #include <p2sb.h> diff --git a/drivers/misc/p2sb_emul.c b/drivers/misc/p2sb_emul.c index 02f7a7ea67..a4b6dba516 100644 --- a/drivers/misc/p2sb_emul.c +++ b/drivers/misc/p2sb_emul.c @@ -12,6 +12,7 @@ #include <common.h> #include <axi.h> #include <dm.h> +#include <log.h> #include <pci.h> #include <asm/test.h> #include <p2sb.h> diff --git a/drivers/misc/qfw.c b/drivers/misc/qfw.c index 81e26614d3..f6eb6583ed 100644 --- a/drivers/misc/qfw.c +++ b/drivers/misc/qfw.c @@ -6,6 +6,7 @@ #include <common.h> #include <command.h> #include <errno.h> +#include <log.h> #include <malloc.h> #include <qfw.h> #include <asm/io.h> diff --git a/drivers/misc/rockchip-efuse.c b/drivers/misc/rockchip-efuse.c index 2520c6a38e..46ce6305fe 100644 --- a/drivers/misc/rockchip-efuse.c +++ b/drivers/misc/rockchip-efuse.c @@ -43,8 +43,8 @@ struct rockchip_efuse_platdata { }; #if defined(DEBUG) -static int dump_efuses(cmd_tbl_t *cmdtp, int flag, - int argc, char * const argv[]) +static int dump_efuses(struct cmd_tbl *cmdtp, int flag, + int argc, char *const argv[]) { /* * N.B.: This function is tailored towards the RK3399 and assumes that diff --git a/drivers/misc/stm32_rcc.c b/drivers/misc/stm32_rcc.c index 980b84453e..b82fe54c60 100644 --- a/drivers/misc/stm32_rcc.c +++ b/drivers/misc/stm32_rcc.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <misc.h> #include <stm32_rcc.h> #include <dm/device-internal.h> diff --git a/drivers/misc/swap_case.c b/drivers/misc/swap_case.c index 97e2afa676..07c67577d5 100644 --- a/drivers/misc/swap_case.c +++ b/drivers/misc/swap_case.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <pci.h> #include <asm/test.h> #include <linux/ctype.h> diff --git a/drivers/misc/tegra186_bpmp.c b/drivers/misc/tegra186_bpmp.c index ce2b925173..18da138507 100644 --- a/drivers/misc/tegra186_bpmp.c +++ b/drivers/misc/tegra186_bpmp.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <time.h> #include <dm/lists.h> @@ -13,6 +14,7 @@ #include <misc.h> #include <asm/arch-tegra/bpmp_abi.h> #include <asm/arch-tegra/ivc.h> +#include <linux/bitops.h> #include <linux/err.h> #define BPMP_IVC_FRAME_COUNT 1 diff --git a/drivers/misc/tegra_car.c b/drivers/misc/tegra_car.c index db05c8917f..0ddbb3c619 100644 --- a/drivers/misc/tegra_car.c +++ b/drivers/misc/tegra_car.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/lists.h> #include <dm/root.h> diff --git a/drivers/misc/vexpress_config.c b/drivers/misc/vexpress_config.c index 53d7e1d154..02e5b586e2 100644 --- a/drivers/misc/vexpress_config.c +++ b/drivers/misc/vexpress_config.c @@ -9,6 +9,7 @@ #include <malloc.h> #include <dm/read.h> #include <asm/io.h> +#include <linux/bitops.h> #include <linux/delay.h> #include <misc.h> |