diff options
Diffstat (limited to 'drivers/pinctrl')
41 files changed, 64 insertions, 0 deletions
diff --git a/drivers/pinctrl/aspeed/pinctrl_ast2500.c b/drivers/pinctrl/aspeed/pinctrl_ast2500.c index a6e9c0d933..05ef24864f 100644 --- a/drivers/pinctrl/aspeed/pinctrl_ast2500.c +++ b/drivers/pinctrl/aspeed/pinctrl_ast2500.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <asm/io.h> #include <asm/arch/pinctrl.h> #include <asm/arch/scu_ast2500.h> diff --git a/drivers/pinctrl/ath79/pinctrl_ar933x.c b/drivers/pinctrl/ath79/pinctrl_ar933x.c index 5e154a9f19..a0625d7c83 100644 --- a/drivers/pinctrl/ath79/pinctrl_ar933x.c +++ b/drivers/pinctrl/ath79/pinctrl_ar933x.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <asm/io.h> #include <dm/pinctrl.h> #include <mach/ar71xx_regs.h> diff --git a/drivers/pinctrl/ath79/pinctrl_qca953x.c b/drivers/pinctrl/ath79/pinctrl_qca953x.c index 3166167d71..c9f9608c92 100644 --- a/drivers/pinctrl/ath79/pinctrl_qca953x.c +++ b/drivers/pinctrl/ath79/pinctrl_qca953x.c @@ -6,6 +6,7 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <asm/io.h> #include <dm/pinctrl.h> #include <mach/ar71xx_regs.h> diff --git a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c index eb720f09f8..f44af6cf9a 100644 --- a/drivers/pinctrl/broadcom/pinctrl-bcm283x.c +++ b/drivers/pinctrl/broadcom/pinctrl-bcm283x.c @@ -14,6 +14,7 @@ #include <config.h> #include <errno.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <dm/root.h> #include <dm/device-internal.h> diff --git a/drivers/pinctrl/intel/pinctrl.c b/drivers/pinctrl/intel/pinctrl.c index e280054f94..ba8206350e 100644 --- a/drivers/pinctrl/intel/pinctrl.c +++ b/drivers/pinctrl/intel/pinctrl.c @@ -19,6 +19,7 @@ #include <common.h> #include <dm.h> #include <irq.h> +#include <log.h> #include <malloc.h> #include <p2sb.h> #include <spl.h> diff --git a/drivers/pinctrl/intel/pinctrl_apl.c b/drivers/pinctrl/intel/pinctrl_apl.c index bd80435ffa..c14176d4a7 100644 --- a/drivers/pinctrl/intel/pinctrl_apl.c +++ b/drivers/pinctrl/intel/pinctrl_apl.c @@ -11,6 +11,7 @@ #include <common.h> #include <dm.h> #include <dt-structs.h> +#include <log.h> #include <p2sb.h> #include <asm/intel_pinctrl.h> #include <asm-generic/gpio.h> diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index c7351f32bb..5fdc150295 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -11,6 +11,7 @@ #include <dm/pinctrl.h> #include <asm/io.h> #include <asm-generic/gpio.h> +#include <linux/bitops.h> #include "pinctrl-mtk-common.h" diff --git a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c index b5d74068c5..c6cb941d0a 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-axg-pmx.c @@ -4,6 +4,7 @@ * Copyright (C) 2017 Xingyu Chen <xingyu.chen@amlogic.com> */ +#include <log.h> #include <asm/gpio.h> #include <common.h> #include <dm.h> diff --git a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c index b37b517fe5..159f3406a2 100644 --- a/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c +++ b/drivers/pinctrl/meson/pinctrl-meson-gx-pmx.c @@ -3,10 +3,12 @@ * (C) Copyright 2016 - Beniamino Galvani <b.galvani@gmail.com> */ +#include <log.h> #include <asm/gpio.h> #include <common.h> #include <dm.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/io.h> #include "pinctrl-meson-gx.h" diff --git a/drivers/pinctrl/meson/pinctrl-meson.c b/drivers/pinctrl/meson/pinctrl-meson.c index 7fbe2810a2..d4539b02d8 100644 --- a/drivers/pinctrl/meson/pinctrl-meson.c +++ b/drivers/pinctrl/meson/pinctrl-meson.c @@ -5,14 +5,17 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <malloc.h> #include <dm/device-internal.h> #include <dm/device_compat.h> #include <dm/lists.h> #include <dm/pinctrl.h> #include <fdt_support.h> +#include <linux/bitops.h> #include <linux/err.h> #include <linux/io.h> +#include <linux/libfdt.h> #include <linux/sizes.h> #include <asm/gpio.h> diff --git a/drivers/pinctrl/mscc/mscc-common.c b/drivers/pinctrl/mscc/mscc-common.c index 90c54b45c3..307ed1db87 100644 --- a/drivers/pinctrl/mscc/mscc-common.c +++ b/drivers/pinctrl/mscc/mscc-common.c @@ -21,6 +21,7 @@ #include <dm/root.h> #include <errno.h> #include <fdtdec.h> +#include <linux/bitops.h> #include <linux/io.h> #include "mscc-common.h" diff --git a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c index 6e0bcae991..2dee79af17 100644 --- a/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c +++ b/drivers/pinctrl/mvebu/pinctrl-armada-37xx.c @@ -32,6 +32,8 @@ #include <asm/gpio.h> #include <asm/system.h> #include <asm/io.h> +#include <linux/bitops.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pinctrl/mvebu/pinctrl-mvebu.c b/drivers/pinctrl/mvebu/pinctrl-mvebu.c index 0b9c9e1d6a..2206e958ec 100644 --- a/drivers/pinctrl/mvebu/pinctrl-mvebu.c +++ b/drivers/pinctrl/mvebu/pinctrl-mvebu.c @@ -9,11 +9,13 @@ #include <fdtdec.h> #include <errno.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <dm/root.h> #include <asm/system.h> #include <asm/io.h> #include <asm/arch-armada8k/soc-info.h> +#include <linux/bitops.h> #include "pinctrl-mvebu.h" #define AP_EMMC_PHY_CTRL_REG 0x100 diff --git a/drivers/pinctrl/nxp/pinctrl-imx.c b/drivers/pinctrl/nxp/pinctrl-imx.c index 474c38a049..48c7bde375 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx.c +++ b/drivers/pinctrl/nxp/pinctrl-imx.c @@ -8,6 +8,7 @@ #include <mapmem.h> #include <dm/device_compat.h> #include <dm/devres.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/err.h> #include <dm.h> diff --git a/drivers/pinctrl/nxp/pinctrl-mxs.c b/drivers/pinctrl/nxp/pinctrl-mxs.c index 8d61dfe863..a403114f21 100644 --- a/drivers/pinctrl/nxp/pinctrl-mxs.c +++ b/drivers/pinctrl/nxp/pinctrl-mxs.c @@ -5,6 +5,7 @@ */ #include <common.h> +#include <log.h> #include <dm/device_compat.h> #include <dm/devres.h> #include <linux/io.h> diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index 0c43686e01..801d14253c 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -9,6 +9,7 @@ #include <common.h> #include <dm.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/err.h> #include <mach/atmel_pio4.h> diff --git a/drivers/pinctrl/pinctrl-at91.c b/drivers/pinctrl/pinctrl-at91.c index 27f274ff02..b3fa124cfb 100644 --- a/drivers/pinctrl/pinctrl-at91.c +++ b/drivers/pinctrl/pinctrl-at91.c @@ -8,8 +8,10 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <asm/hardware.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/err.h> #include <mach/at91_pio.h> diff --git a/drivers/pinctrl/pinctrl-sandbox.c b/drivers/pinctrl/pinctrl-sandbox.c index 3ee75fbbee..ac0119d198 100644 --- a/drivers/pinctrl/pinctrl-sandbox.c +++ b/drivers/pinctrl/pinctrl-sandbox.c @@ -7,7 +7,9 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> static const char * const sandbox_pins[] = { "SCL", diff --git a/drivers/pinctrl/pinctrl-sti.c b/drivers/pinctrl/pinctrl-sti.c index f0cd845fea..8e942a8280 100644 --- a/drivers/pinctrl/pinctrl-sti.c +++ b/drivers/pinctrl/pinctrl-sti.c @@ -14,6 +14,8 @@ #include <syscon.h> #include <asm/io.h> #include <dm/pinctrl.h> +#include <linux/bug.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pinctrl/pinctrl-stmfx.c b/drivers/pinctrl/pinctrl-stmfx.c index b0e43ae0a1..a3240ccd5a 100644 --- a/drivers/pinctrl/pinctrl-stmfx.c +++ b/drivers/pinctrl/pinctrl-stmfx.c @@ -15,6 +15,8 @@ #include <dm/lists.h> #include <dm/pinctrl.h> #include <linux/bitfield.h> +#include <linux/bitops.h> +#include <linux/delay.h> #include <power/regulator.h> /* STMFX pins = GPIO[15:0] + aGPIO[7:0] */ diff --git a/drivers/pinctrl/pinctrl_pic32.c b/drivers/pinctrl/pinctrl_pic32.c index 06f1518c78..911af1297b 100644 --- a/drivers/pinctrl/pinctrl_pic32.c +++ b/drivers/pinctrl/pinctrl_pic32.c @@ -7,8 +7,10 @@ #include <common.h> #include <dm.h> #include <errno.h> +#include <log.h> #include <asm/io.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <mach/pic32.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 9926235b52..fc241fdcde 100644 --- a/drivers/pinctrl/pinctrl_stm32.c +++ b/drivers/pinctrl/pinctrl_stm32.c @@ -1,6 +1,7 @@ #include <common.h> #include <dm.h> #include <hwspinlock.h> +#include <log.h> #include <malloc.h> #include <asm/arch/gpio.h> #include <asm/gpio.h> @@ -8,7 +9,9 @@ #include <dm/device_compat.h> #include <dm/lists.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/err.h> +#include <linux/libfdt.h> DECLARE_GLOBAL_DATA_PTR; diff --git a/drivers/pinctrl/renesas/pfc-r7s72100.c b/drivers/pinctrl/renesas/pfc-r7s72100.c index 7e4530d684..5055780bf7 100644 --- a/drivers/pinctrl/renesas/pfc-r7s72100.c +++ b/drivers/pinctrl/renesas/pfc-r7s72100.c @@ -9,6 +9,7 @@ #include <dm.h> #include <dm/lists.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/io.h> #include <linux/err.h> diff --git a/drivers/pinctrl/renesas/pfc-r8a77990.c b/drivers/pinctrl/renesas/pfc-r8a77990.c index 5313f2f509..de22e49ebe 100644 --- a/drivers/pinctrl/renesas/pfc-r8a77990.c +++ b/drivers/pinctrl/renesas/pfc-r8a77990.c @@ -15,6 +15,7 @@ #include <dm.h> #include <errno.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> #include <linux/kernel.h> #include "sh_pfc.h" diff --git a/drivers/pinctrl/renesas/pfc.c b/drivers/pinctrl/renesas/pfc.c index ab64f4f0c8..1179afd2e7 100644 --- a/drivers/pinctrl/renesas/pfc.c +++ b/drivers/pinctrl/renesas/pfc.c @@ -17,6 +17,8 @@ #include <dm/device_compat.h> #include <dm/devres.h> #include <dm/pinctrl.h> +#include <linux/bitops.h> +#include <linux/bug.h> #include <linux/io.h> #include <linux/sizes.h> diff --git a/drivers/pinctrl/renesas/sh_pfc.h b/drivers/pinctrl/renesas/sh_pfc.h index 1cfb881e58..db3d513358 100644 --- a/drivers/pinctrl/renesas/sh_pfc.h +++ b/drivers/pinctrl/renesas/sh_pfc.h @@ -672,4 +672,5 @@ extern const struct sh_pfc_soc_info r8a77995_pinmux_info; */ #define RCAR_GP_PIN(bank, pin) (((bank) * 32) + (pin)) +#include <linux/bug.h> #endif /* __SH_PFC_H */ diff --git a/drivers/pinctrl/rockchip/pinctrl-px30.c b/drivers/pinctrl/rockchip/pinctrl-px30.c index bb56ae9fb3..617721a626 100644 --- a/drivers/pinctrl/rockchip/pinctrl-px30.c +++ b/drivers/pinctrl/rockchip/pinctrl-px30.c @@ -5,9 +5,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3036.c b/drivers/pinctrl/rockchip/pinctrl-rk3036.c index 28c905129b..d49e3007ce 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3036.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3036.c @@ -8,6 +8,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3128.c b/drivers/pinctrl/rockchip/pinctrl-rk3128.c index 3eb4d952bb..a175d6c07f 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3128.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3128.c @@ -8,6 +8,7 @@ #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3188.c b/drivers/pinctrl/rockchip/pinctrl-rk3188.c index 043764fc92..afde809854 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3188.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3188.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk322x.c b/drivers/pinctrl/rockchip/pinctrl-rk322x.c index c5e4fe30a7..85bc0ef0f3 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk322x.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk322x.c @@ -5,9 +5,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3288.c b/drivers/pinctrl/rockchip/pinctrl-rk3288.c index 7ae147f304..faaa2ce1f7 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3288.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3288.c @@ -5,8 +5,10 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3308.c b/drivers/pinctrl/rockchip/pinctrl-rk3308.c index abd57e54a5..db2b10a690 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3308.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3308.c @@ -5,9 +5,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3328.c b/drivers/pinctrl/rockchip/pinctrl-rk3328.c index 8d37a6f945..f9160f26c7 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3328.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3328.c @@ -5,9 +5,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3368.c b/drivers/pinctrl/rockchip/pinctrl-rk3368.c index 6cb7bb45d9..7a6059959e 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3368.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3368.c @@ -5,6 +5,7 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> diff --git a/drivers/pinctrl/rockchip/pinctrl-rk3399.c b/drivers/pinctrl/rockchip/pinctrl-rk3399.c index 75634e9f4d..d04c1afb09 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rk3399.c +++ b/drivers/pinctrl/rockchip/pinctrl-rk3399.c @@ -5,9 +5,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c index 0fd0416b18..ec1cb9b652 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip-core.c @@ -5,10 +5,13 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> #include <fdtdec.h> +#include <linux/bitops.h> +#include <linux/libfdt.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/rockchip/pinctrl-rockchip.h b/drivers/pinctrl/rockchip/pinctrl-rockchip.h index 5edc7cbd74..d969c20082 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rockchip.h +++ b/drivers/pinctrl/rockchip/pinctrl-rockchip.h @@ -6,6 +6,7 @@ #ifndef __DRIVERS_PINCTRL_ROCKCHIP_H #define __DRIVERS_PINCTRL_ROCKCHIP_H +#include <linux/bitops.h> #include <linux/types.h> /** diff --git a/drivers/pinctrl/rockchip/pinctrl-rv1108.c b/drivers/pinctrl/rockchip/pinctrl-rv1108.c index 54610a3e90..22334329ed 100644 --- a/drivers/pinctrl/rockchip/pinctrl-rv1108.c +++ b/drivers/pinctrl/rockchip/pinctrl-rv1108.c @@ -5,9 +5,11 @@ #include <common.h> #include <dm.h> +#include <log.h> #include <dm/pinctrl.h> #include <regmap.h> #include <syscon.h> +#include <linux/bitops.h> #include "pinctrl-rockchip.h" diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c index abeba965c4..8545b9d070 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-core.c @@ -7,6 +7,8 @@ #include <common.h> #include <dm.h> #include <dm/device_compat.h> +#include <linux/bitops.h> +#include <linux/bug.h> #include <linux/io.h> #include <linux/err.h> #include <linux/kernel.h> diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier.h b/drivers/pinctrl/uniphier/pinctrl-uniphier.h index 8f83ecae7d..5951835d6e 100644 --- a/drivers/pinctrl/uniphier/pinctrl-uniphier.h +++ b/drivers/pinctrl/uniphier/pinctrl-uniphier.h @@ -8,6 +8,7 @@ #define __PINCTRL_UNIPHIER_H__ #include <linux/bitops.h> +#include <linux/bug.h> #include <linux/build_bug.h> #include <linux/kernel.h> #include <linux/types.h> |