Skip to content

Commit 09e11ca

Browse files
andy-shevLinus Walleij
authored andcommitted
pinctrl: Add PIN_CONFIG_MODE_PWM to enum pin_config_param
It seems that we will have more and more pin controllers that support PWM function on the (selected) pins. Due to it being a part of pin controller IP the idea is to have some code that will switch the mode and attach the corresponding driver, for example, via using it as a library. Meanwhile, put a corresponding item to the pin_config_param enumerator. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210412140741.39946-3-andriy.shevchenko@linux.intel.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 31f9a42 commit 09e11ca

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/linux/pinctrl/pinconf-generic.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ struct pinctrl_map;
8080
* operation, if several modes of operation are supported these can be
8181
* passed in the argument on a custom form, else just use argument 1
8282
* to indicate low power mode, argument 0 turns low power mode off.
83+
* @PIN_CONFIG_MODE_PWM: this will configure the pin for PWM
8384
* @PIN_CONFIG_OUTPUT_ENABLE: this will enable the pin's output mode
8485
* without driving a value there. For most platforms this reduces to
8586
* enable the output buffers and then let the pin controller current
@@ -125,6 +126,7 @@ enum pin_config_param {
125126
PIN_CONFIG_INPUT_SCHMITT,
126127
PIN_CONFIG_INPUT_SCHMITT_ENABLE,
127128
PIN_CONFIG_MODE_LOW_POWER,
129+
PIN_CONFIG_MODE_PWM,
128130
PIN_CONFIG_OUTPUT_ENABLE,
129131
PIN_CONFIG_OUTPUT,
130132
PIN_CONFIG_PERSIST_STATE,

0 commit comments

Comments
 (0)