pwm: imx: add Kconfig support
authorHeiko Schocher <hs@denx.de>
Tue, 28 May 2019 04:51:51 +0000 (06:51 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 18:14:50 +0000 (20:14 +0200)
add Kconfig support for this driver.

Signed-off-by: Heiko Schocher <hs@denx.de>
Acked-by: Martyn Welch <martyn.welch@collabora.co.uk>
18 files changed:
README
configs/aristainetos2_defconfig
configs/aristainetos2b_defconfig
configs/aristainetos_defconfig
configs/dms-ba16-1g_defconfig
configs/dms-ba16_defconfig
configs/ge_bx50v3_defconfig
configs/mx53ppd_defconfig
configs/vining_2000_defconfig
drivers/pwm/Kconfig
include/configs/advantech_dms-ba16.h
include/configs/aristainetos-common.h
include/configs/aristainetos2.h
include/configs/aristainetos2b.h
include/configs/ge_bx50v3.h
include/configs/mx53ppd.h
include/configs/vining_2000.h
scripts/config_whitelist.txt

diff --git a/README b/README
index 8f816ad2aff4d141e689dba5adbf5945cdf358b2..7e610a8ebda3a669f0e1f9cb3a7eaeaf0420336c 100644 (file)
--- a/README
+++ b/README
@@ -960,10 +960,6 @@ The following options need to be configured:
                        CONFIG_SH_ETHER_CACHE_WRITEBACK
                        If this option is set, the driver enables cache flush.
 
-- PWM Support:
-               CONFIG_PWM_IMX
-               Support for PWM module on the imx6.
-
 - TPM Support:
                CONFIG_TPM
                Support TPM devices.
index 49dd9bb755336bc39265d743d184f1dc50703c9f..33e40cd7d3a2e3ca53a7081a1595339599fb6ef8 100644 (file)
@@ -50,6 +50,7 @@ CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_MII=y
+CONFIG_PWM_IMX=y
 CONFIG_SPI=y
 CONFIG_MXC_SPI=y
 CONFIG_USB=y
index 06c05f7e2223b8c837d252902cd1694418b12595..34a6cde1ee88ff61c3f74abc6f578e42b17236ee 100644 (file)
@@ -48,6 +48,7 @@ CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_MII=y
+CONFIG_PWM_IMX=y
 CONFIG_SPI=y
 CONFIG_MXC_SPI=y
 CONFIG_USB=y
index e645055afa11649993cc7e9a722c12e4dba26be3..cb361daafb0f9e84ad92bd74f94800bb52f2786b 100644 (file)
@@ -49,6 +49,7 @@ CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ8XXX=y
 CONFIG_MII=y
+CONFIG_PWM_IMX=y
 CONFIG_SPI=y
 CONFIG_MXC_SPI=y
 CONFIG_USB=y
index 4231adb6a729c2c29cdde96b27c771a1be4de4ea..91b6a7424f962576fefd3406069d7ad4a7e2ac35 100644 (file)
@@ -41,6 +41,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_PHYLIB=y
 CONFIG_MII=y
+CONFIG_PWM_IMX=y
 CONFIG_SPI=y
 CONFIG_MXC_SPI=y
 CONFIG_USB=y
index f98088deb74be3a1cb848f0a5f7972405542e48e..fbf1f89ece210e4a2db768327a3ebfafb1a88b17 100644 (file)
@@ -40,6 +40,7 @@ CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_PHYLIB=y
 CONFIG_MII=y
+CONFIG_PWM_IMX=y
 CONFIG_SPI=y
 CONFIG_MXC_SPI=y
 CONFIG_USB=y
index 60bdcd67a00fc281ab40586eeed723aa7ce14794..54197f7541cd77837e04493d9930067a04db70a3 100644 (file)
@@ -55,6 +55,7 @@ CONFIG_CMD_E1000=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX6=y
+CONFIG_PWM_IMX=y
 CONFIG_SPI=y
 CONFIG_DM_SPI=y
 CONFIG_MXC_SPI=y
index a88af15760ea7b22ab90e202324cc6b585f80824..cad798a4166b56ba02822c402d2699ab1b4a98b4 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_FSL_ESDHC_IMX=y
 CONFIG_MII=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_IMX5=y
+CONFIG_PWM_IMX=y
 CONFIG_RTC_S35392A=y
 CONFIG_USB=y
 CONFIG_USB_EHCI_MX5=y
index 7364c67cd7d87cb0a5466e31780d6860d8ca88d9..6b9691ad3e3ef331f03cbdabc46cb24061f5914b 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_SUPPORT_EMMC_BOOT=y
 CONFIG_FSL_ESDHC_IMX=y
 CONFIG_PHYLIB=y
 CONFIG_MII=y
+CONFIG_PWM_IMX=y
 CONFIG_PCI=y
 CONFIG_DM_PCI=y
 CONFIG_PINCTRL=y
index 2984b7976637caad4759149bd4fb19224989b5b1..1f36fc78fa7b3df4d9095f5cafdde7c0400d43a6 100644 (file)
@@ -18,6 +18,11 @@ config PWM_EXYNOS
          used. It provides 5 channels which can be independently
          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
        bool "Enable support for the Rockchip PWM"
        depends on DM_PWM
index 22d1e41bc8dcac903fdbaed34bcb2e95f6ce5fd7..a03734916278fc757e416fb877a6cfb925c5ddc7 100644 (file)
 #define CONFIG_IMX_VIDEO_SKIP
 #endif
 
-#define CONFIG_PWM_IMX
 #define CONFIG_IMX6_PWM_PER_CLK         66000000
 
 #ifdef CONFIG_CMD_PCI
index a24814673c5fba64c64973366b890e359f11e9b2..e998d9b1b279800f27a67be3e091574d9aec6cf9 100644 (file)
 #define CONFIG_VIDEO_BMP_LOGO
 #define CONFIG_IMX_VIDEO_SKIP
 
-#define CONFIG_PWM_IMX
 #define CONFIG_IMX6_PWM_PER_CLK        66000000
 
 #endif /* __ARISTAINETOS_COMMON_CONFIG_H */
index 00e5667499e4f91842f3fdbd86810acb7c38e1f4..361e6ac65425f818cbd7f4e84be3fbd53f969c4d 100644 (file)
@@ -45,9 +45,6 @@
 #define CONFIG_LG4573_BUS 0
 #define CONFIG_LG4573_CS 0
 
-#define CONFIG_PWM_IMX
-#define CONFIG_IMX6_PWM_PER_CLK        66000000
-
 #include "aristainetos-common.h"
 
 #endif                         /* __ARISTAINETOS2_CONFIG_H */
index cfe0e053b6638cb7ca196df339a32fc7cfe6501f..cdeb7a3b032f40e50a90979d7158f96cc6ad8520 100644 (file)
@@ -45,9 +45,6 @@
 #define CONFIG_LG4573_BUS 0
 #define CONFIG_LG4573_CS 1
 
-#define CONFIG_PWM_IMX
-#define CONFIG_IMX6_PWM_PER_CLK        66000000
-
 #include "aristainetos-common.h"
 
 #endif                         /* __ARISTAINETOS2B_CONFIG_H */
index 0481ed06a91f22ce4da0e700c3d19f7c0a9d6f2e..31214a6aa78e2beb43bf4ca30aac03dd88626606 100644 (file)
 #define CONFIG_IMX_VIDEO_SKIP
 #define CONFIG_CMD_BMP
 
-#define CONFIG_PWM_IMX
 #define CONFIG_IMX6_PWM_PER_CLK        66000000
 
 #define CONFIG_PCI
index 2d6715cba260245b0594f04f982af2b187f490b9..d5b54dfa15e0cc01f35a181632a4adf8f422918d 100644 (file)
 #define CONFIG_BCH
 
 /* Backlight Control */
-#define CONFIG_PWM_IMX
 #define CONFIG_IMX6_PWM_PER_CLK 66666000
 
 #endif                         /* __CONFIG_H */
index d4db9b4a567187894e62ab3dcb567d6bf0183b15..33f06c00b1d8c5f57d4bd8ffa12d88d827504e85 100644 (file)
@@ -83,7 +83,6 @@
 
 #define CONFIG_IMX_THERMAL
 
-#define CONFIG_PWM_IMX
 #define CONFIG_IMX6_PWM_PER_CLK 66000000
 
 #define CONFIG_ENV_OFFSET              (8 * SZ_64K)
index bd167959b3fb29f8b1c54fe76ddaca7ddcdd9738..be94a600d63fea71e46feb6c47eb38e94caf13ab 100644 (file)
@@ -1459,7 +1459,6 @@ CONFIG_PROOF_POINTS
 CONFIG_PRPMC_PCI_ALIAS
 CONFIG_PSRAM_SCFG
 CONFIG_PWM
-CONFIG_PWM_IMX
 CONFIG_PXA_LCD
 CONFIG_PXA_MMC_GENERIC
 CONFIG_PXA_PWR_I2C