pwm: imx: add Kconfig support

add Kconfig support for this driver.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Martyn Welch <martyn.welch@collabora.co.uk>
This commit is contained in:
Heiko Schocher 2019-05-28 06:51:51 +02:00 committed by Stefano Babic
parent f6771083a6
commit e0f0657ddf
18 changed files with 13 additions and 16 deletions

4
README
View file

@ -960,10 +960,6 @@ The following options need to be configured:
CONFIG_SH_ETHER_CACHE_WRITEBACK CONFIG_SH_ETHER_CACHE_WRITEBACK
If this option is set, the driver enables cache flush. If this option is set, the driver enables cache flush.
- PWM Support:
CONFIG_PWM_IMX
Support for PWM module on the imx6.
- TPM Support: - TPM Support:
CONFIG_TPM CONFIG_TPM
Support TPM devices. Support TPM devices.

View file

@ -50,6 +50,7 @@ CONFIG_PHYLIB=y
CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL=y
CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_PHY_MICREL_KSZ90X1=y
CONFIG_MII=y CONFIG_MII=y
CONFIG_PWM_IMX=y
CONFIG_SPI=y CONFIG_SPI=y
CONFIG_MXC_SPI=y CONFIG_MXC_SPI=y
CONFIG_USB=y CONFIG_USB=y

View file

@ -48,6 +48,7 @@ CONFIG_PHYLIB=y
CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL=y
CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_PHY_MICREL_KSZ90X1=y
CONFIG_MII=y CONFIG_MII=y
CONFIG_PWM_IMX=y
CONFIG_SPI=y CONFIG_SPI=y
CONFIG_MXC_SPI=y CONFIG_MXC_SPI=y
CONFIG_USB=y CONFIG_USB=y

View file

@ -49,6 +49,7 @@ CONFIG_PHYLIB=y
CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL=y
CONFIG_PHY_MICREL_KSZ8XXX=y CONFIG_PHY_MICREL_KSZ8XXX=y
CONFIG_MII=y CONFIG_MII=y
CONFIG_PWM_IMX=y
CONFIG_SPI=y CONFIG_SPI=y
CONFIG_MXC_SPI=y CONFIG_MXC_SPI=y
CONFIG_USB=y CONFIG_USB=y

View file

@ -41,6 +41,7 @@ CONFIG_SPI_FLASH_STMICRO=y
CONFIG_SPI_FLASH_WINBOND=y CONFIG_SPI_FLASH_WINBOND=y
CONFIG_PHYLIB=y CONFIG_PHYLIB=y
CONFIG_MII=y CONFIG_MII=y
CONFIG_PWM_IMX=y
CONFIG_SPI=y CONFIG_SPI=y
CONFIG_MXC_SPI=y CONFIG_MXC_SPI=y
CONFIG_USB=y CONFIG_USB=y

View file

@ -40,6 +40,7 @@ CONFIG_SPI_FLASH_STMICRO=y
CONFIG_SPI_FLASH_WINBOND=y CONFIG_SPI_FLASH_WINBOND=y
CONFIG_PHYLIB=y CONFIG_PHYLIB=y
CONFIG_MII=y CONFIG_MII=y
CONFIG_PWM_IMX=y
CONFIG_SPI=y CONFIG_SPI=y
CONFIG_MXC_SPI=y CONFIG_MXC_SPI=y
CONFIG_USB=y CONFIG_USB=y

View file

@ -55,6 +55,7 @@ CONFIG_CMD_E1000=y
CONFIG_MII=y CONFIG_MII=y
CONFIG_PINCTRL=y CONFIG_PINCTRL=y
CONFIG_PINCTRL_IMX6=y CONFIG_PINCTRL_IMX6=y
CONFIG_PWM_IMX=y
CONFIG_SPI=y CONFIG_SPI=y
CONFIG_DM_SPI=y CONFIG_DM_SPI=y
CONFIG_MXC_SPI=y CONFIG_MXC_SPI=y

View file

@ -43,6 +43,7 @@ CONFIG_FSL_ESDHC_IMX=y
CONFIG_MII=y CONFIG_MII=y
CONFIG_PINCTRL=y CONFIG_PINCTRL=y
CONFIG_PINCTRL_IMX5=y CONFIG_PINCTRL_IMX5=y
CONFIG_PWM_IMX=y
CONFIG_RTC_S35392A=y CONFIG_RTC_S35392A=y
CONFIG_USB=y CONFIG_USB=y
CONFIG_USB_EHCI_MX5=y CONFIG_USB_EHCI_MX5=y

View file

@ -45,6 +45,7 @@ CONFIG_SUPPORT_EMMC_BOOT=y
CONFIG_FSL_ESDHC_IMX=y CONFIG_FSL_ESDHC_IMX=y
CONFIG_PHYLIB=y CONFIG_PHYLIB=y
CONFIG_MII=y CONFIG_MII=y
CONFIG_PWM_IMX=y
CONFIG_PCI=y CONFIG_PCI=y
CONFIG_DM_PCI=y CONFIG_DM_PCI=y
CONFIG_PINCTRL=y CONFIG_PINCTRL=y

View file

@ -18,6 +18,11 @@ config PWM_EXYNOS
used. It provides 5 channels which can be independently used. It provides 5 channels which can be independently
programmed. Channel 4 (the last) is normally used as a timer. programmed. Channel 4 (the last) is normally used as a timer.
config PWM_IMX
bool "Enable support for i.MX27 and later PWM"
help
This PWM is found i.MX27 and later i.MX SoCs.
config PWM_ROCKCHIP config PWM_ROCKCHIP
bool "Enable support for the Rockchip PWM" bool "Enable support for the Rockchip PWM"
depends on DM_PWM depends on DM_PWM

View file

@ -223,7 +223,6 @@
#define CONFIG_IMX_VIDEO_SKIP #define CONFIG_IMX_VIDEO_SKIP
#endif #endif
#define CONFIG_PWM_IMX
#define CONFIG_IMX6_PWM_PER_CLK 66000000 #define CONFIG_IMX6_PWM_PER_CLK 66000000
#ifdef CONFIG_CMD_PCI #ifdef CONFIG_CMD_PCI

View file

@ -196,7 +196,6 @@
#define CONFIG_VIDEO_BMP_LOGO #define CONFIG_VIDEO_BMP_LOGO
#define CONFIG_IMX_VIDEO_SKIP #define CONFIG_IMX_VIDEO_SKIP
#define CONFIG_PWM_IMX
#define CONFIG_IMX6_PWM_PER_CLK 66000000 #define CONFIG_IMX6_PWM_PER_CLK 66000000
#endif /* __ARISTAINETOS_COMMON_CONFIG_H */ #endif /* __ARISTAINETOS_COMMON_CONFIG_H */

View file

@ -45,9 +45,6 @@
#define CONFIG_LG4573_BUS 0 #define CONFIG_LG4573_BUS 0
#define CONFIG_LG4573_CS 0 #define CONFIG_LG4573_CS 0
#define CONFIG_PWM_IMX
#define CONFIG_IMX6_PWM_PER_CLK 66000000
#include "aristainetos-common.h" #include "aristainetos-common.h"
#endif /* __ARISTAINETOS2_CONFIG_H */ #endif /* __ARISTAINETOS2_CONFIG_H */

View file

@ -45,9 +45,6 @@
#define CONFIG_LG4573_BUS 0 #define CONFIG_LG4573_BUS 0
#define CONFIG_LG4573_CS 1 #define CONFIG_LG4573_CS 1
#define CONFIG_PWM_IMX
#define CONFIG_IMX6_PWM_PER_CLK 66000000
#include "aristainetos-common.h" #include "aristainetos-common.h"
#endif /* __ARISTAINETOS2B_CONFIG_H */ #endif /* __ARISTAINETOS2B_CONFIG_H */

View file

@ -198,7 +198,6 @@
#define CONFIG_IMX_VIDEO_SKIP #define CONFIG_IMX_VIDEO_SKIP
#define CONFIG_CMD_BMP #define CONFIG_CMD_BMP
#define CONFIG_PWM_IMX
#define CONFIG_IMX6_PWM_PER_CLK 66000000 #define CONFIG_IMX6_PWM_PER_CLK 66000000
#define CONFIG_PCI #define CONFIG_PCI

View file

@ -211,7 +211,6 @@
#define CONFIG_BCH #define CONFIG_BCH
/* Backlight Control */ /* Backlight Control */
#define CONFIG_PWM_IMX
#define CONFIG_IMX6_PWM_PER_CLK 66666000 #define CONFIG_IMX6_PWM_PER_CLK 66666000
#endif /* __CONFIG_H */ #endif /* __CONFIG_H */

View file

@ -83,7 +83,6 @@
#define CONFIG_IMX_THERMAL #define CONFIG_IMX_THERMAL
#define CONFIG_PWM_IMX
#define CONFIG_IMX6_PWM_PER_CLK 66000000 #define CONFIG_IMX6_PWM_PER_CLK 66000000
#define CONFIG_ENV_OFFSET (8 * SZ_64K) #define CONFIG_ENV_OFFSET (8 * SZ_64K)

View file

@ -1459,7 +1459,6 @@ CONFIG_PROOF_POINTS
CONFIG_PRPMC_PCI_ALIAS CONFIG_PRPMC_PCI_ALIAS
CONFIG_PSRAM_SCFG CONFIG_PSRAM_SCFG
CONFIG_PWM CONFIG_PWM
CONFIG_PWM_IMX
CONFIG_PXA_LCD CONFIG_PXA_LCD
CONFIG_PXA_MMC_GENERIC CONFIG_PXA_MMC_GENERIC
CONFIG_PXA_PWR_I2C CONFIG_PXA_PWR_I2C