summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/colibri_t20_defconfig1
-rw-r--r--configs/harmony_defconfig1
-rw-r--r--configs/medcom-wide_defconfig1
-rw-r--r--configs/nyan-big_defconfig1
-rw-r--r--configs/paz00_defconfig1
-rw-r--r--configs/seaboard_defconfig1
-rw-r--r--configs/tec_defconfig1
-rw-r--r--configs/ventana_defconfig1
-rw-r--r--drivers/pwm/Kconfig8
-rw-r--r--include/configs/colibri_t20.h1
-rw-r--r--include/configs/harmony.h1
-rw-r--r--include/configs/medcom-wide.h1
-rw-r--r--include/configs/nyan-big.h1
-rw-r--r--include/configs/paz00.h1
-rw-r--r--include/configs/seaboard.h1
-rw-r--r--include/configs/tec.h1
-rw-r--r--include/configs/ventana.h1
17 files changed, 16 insertions, 8 deletions
diff --git a/configs/colibri_t20_defconfig b/configs/colibri_t20_defconfig
index 84e5bc5..e8b3e0c 100644
--- a/configs/colibri_t20_defconfig
+++ b/configs/colibri_t20_defconfig
@@ -14,6 +14,7 @@ CONFIG_CMD_GPIO=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_PWM=y
+CONFIG_PWM_TEGRA=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_DM_USB=y
diff --git a/configs/harmony_defconfig b/configs/harmony_defconfig
index 8a41118..14125b4 100644
--- a/configs/harmony_defconfig
+++ b/configs/harmony_defconfig
@@ -15,6 +15,7 @@ CONFIG_CMD_GPIO=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_PWM=y
+CONFIG_PWM_TEGRA=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_DM_USB=y
diff --git a/configs/medcom-wide_defconfig b/configs/medcom-wide_defconfig
index 7aff258..49687cf 100644
--- a/configs/medcom-wide_defconfig
+++ b/configs/medcom-wide_defconfig
@@ -15,6 +15,7 @@ CONFIG_CMD_GPIO=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_PWM=y
+CONFIG_PWM_TEGRA=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_DM_USB=y
diff --git a/configs/nyan-big_defconfig b/configs/nyan-big_defconfig
index 12377bd..1243006 100644
--- a/configs/nyan-big_defconfig
+++ b/configs/nyan-big_defconfig
@@ -26,6 +26,7 @@ CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_REGULATOR_FIXED=y
CONFIG_DM_PWM=y
+CONFIG_PWM_TEGRA=y
CONFIG_SYS_NS16550=y
CONFIG_TEGRA114_SPI=y
CONFIG_TPM_TIS_INFINEON=y
diff --git a/configs/paz00_defconfig b/configs/paz00_defconfig
index ea9fe44..5469331 100644
--- a/configs/paz00_defconfig
+++ b/configs/paz00_defconfig
@@ -15,6 +15,7 @@ CONFIG_CMD_GPIO=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_PWM=y
+CONFIG_PWM_TEGRA=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_DM_USB=y
diff --git a/configs/seaboard_defconfig b/configs/seaboard_defconfig
index 528707f..7956670 100644
--- a/configs/seaboard_defconfig
+++ b/configs/seaboard_defconfig
@@ -15,6 +15,7 @@ CONFIG_CMD_GPIO=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_PWM=y
+CONFIG_PWM_TEGRA=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_DM_USB=y
diff --git a/configs/tec_defconfig b/configs/tec_defconfig
index 9ba3062..274fc9d 100644
--- a/configs/tec_defconfig
+++ b/configs/tec_defconfig
@@ -15,6 +15,7 @@ CONFIG_CMD_GPIO=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_PWM=y
+CONFIG_PWM_TEGRA=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_DM_USB=y
diff --git a/configs/ventana_defconfig b/configs/ventana_defconfig
index 08abea2..66c9e26 100644
--- a/configs/ventana_defconfig
+++ b/configs/ventana_defconfig
@@ -15,6 +15,7 @@ CONFIG_CMD_GPIO=y
CONFIG_DM_PMIC=y
CONFIG_DM_REGULATOR=y
CONFIG_DM_PWM=y
+CONFIG_PWM_TEGRA=y
CONFIG_SYS_NS16550=y
CONFIG_USB=y
CONFIG_DM_USB=y
diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig
index cd8f357..e5880ac 100644
--- a/drivers/pwm/Kconfig
+++ b/drivers/pwm/Kconfig
@@ -17,3 +17,11 @@ config PWM_ROCKCHIP
programmable period and duty cycle. A 32-bit counter is used.
Various options provided in the hardware (such as capture mode and
continuous/single-shot) are not supported by the driver.
+
+config PWM_TEGRA
+ bool "Enable support for the Tegra PWM"
+ help
+ This PWM is found on Tegra 20 and other Nvidia SoCs. It supports
+ four channels with a programmable period and duty cycle. Only a
+ 32KHz clock is supported by the driver but the duty cycle is
+ configurable.
diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h
index 61d04b7..f3a1c96 100644
--- a/include/configs/colibri_t20.h
+++ b/include/configs/colibri_t20.h
@@ -53,7 +53,6 @@
#define CONFIG_TFTP_TSIZE
/* LCD support */
-#define CONFIG_PWM_TEGRA
#define CONFIG_SYS_WHITE_ON_BLACK
#define CONFIG_CONSOLE_SCROLL_LINES 10
#define CONFIG_CMD_BMP
diff --git a/include/configs/harmony.h b/include/configs/harmony.h
index a78f7c4..353caec 100644
--- a/include/configs/harmony.h
+++ b/include/configs/harmony.h
@@ -60,7 +60,6 @@
#define CONFIG_CMD_DHCP
/* LCD support */
-#define CONFIG_PWM_TEGRA
#define CONFIG_SYS_WHITE_ON_BLACK
#define CONFIG_CONSOLE_SCROLL_LINES 10
diff --git a/include/configs/medcom-wide.h b/include/configs/medcom-wide.h
index c3e9128..cd89fa5 100644
--- a/include/configs/medcom-wide.h
+++ b/include/configs/medcom-wide.h
@@ -48,7 +48,6 @@
#define CONFIG_CMD_DHCP
/* LCD support */
-#define CONFIG_PWM_TEGRA
#define CONFIG_SYS_WHITE_ON_BLACK
/* support the new (FDT-based) image format */
diff --git a/include/configs/nyan-big.h b/include/configs/nyan-big.h
index eb00f2e..d99d93c 100644
--- a/include/configs/nyan-big.h
+++ b/include/configs/nyan-big.h
@@ -38,7 +38,6 @@
#define CONFIG_ENV_OFFSET (-CONFIG_ENV_SIZE)
/* LCD support */
-#define CONFIG_PWM_TEGRA
#define CONFIG_AS3722_POWER
#define CONFIG_SYS_WHITE_ON_BLACK
#define CONFIG_CMD_BMP
diff --git a/include/configs/paz00.h b/include/configs/paz00.h
index 04ddb1b..6acecb1 100644
--- a/include/configs/paz00.h
+++ b/include/configs/paz00.h
@@ -48,7 +48,6 @@
#define CONFIG_CMD_DHCP
/* LCD support */
-#define CONFIG_PWM_TEGRA
#define CONFIG_SYS_WHITE_ON_BLACK
#define CONFIG_CONSOLE_SCROLL_LINES 10
diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h
index 01650e4..fb9a106 100644
--- a/include/configs/seaboard.h
+++ b/include/configs/seaboard.h
@@ -66,7 +66,6 @@
#define CONFIG_USB_KEYBOARD
/* LCD support */
-#define CONFIG_PWM_TEGRA
#define CONFIG_SYS_WHITE_ON_BLACK
#define CONFIG_CONSOLE_SCROLL_LINES 10
diff --git a/include/configs/tec.h b/include/configs/tec.h
index 9c2311b..50b9e97 100644
--- a/include/configs/tec.h
+++ b/include/configs/tec.h
@@ -48,7 +48,6 @@
#define CONFIG_CMD_DHCP
/* LCD support */
-#define CONFIG_PWM_TEGRA
#define CONFIG_SYS_WHITE_ON_BLACK
/* support the new (FDT-based) image format */
diff --git a/include/configs/ventana.h b/include/configs/ventana.h
index 8d10dde..7f970d0 100644
--- a/include/configs/ventana.h
+++ b/include/configs/ventana.h
@@ -49,7 +49,6 @@
#define CONFIG_USB_KEYBOARD
/* LCD support */
-#define CONFIG_PWM_TEGRA
#define CONFIG_SYS_WHITE_ON_BLACK
#define CONFIG_CONSOLE_SCROLL_LINES 10