| # Kconfig - PWM configuration options |
| |
| # |
| # Copyright (c) 2015 Intel Corporation |
| # |
| # Redistribution and use in source and binary forms, with or without |
| # modification, are permitted provided that the following conditions are met: |
| # |
| # 1) Redistributions of source code must retain the above copyright notice, |
| # this list of conditions and the following disclaimer. |
| # |
| # 2) Redistributions in binary form must reproduce the above copyright notice, |
| # this list of conditions and the following disclaimer in the documentation |
| # and/or other materials provided with the distribution. |
| # |
| # 3) Neither the name of Intel Corporation nor the names of its contributors |
| # may be used to endorse or promote products derived from this software without |
| # specific prior written permission. |
| # |
| # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| # POSSIBILITY OF SUCH DAMAGE. |
| # |
| |
| menuconfig PWM |
| bool "PWM (Pulse Width Modulation) Drivers" |
| default n |
| help |
| Enable config options for PWM drivers. |
| |
| config PWM_PCA9685 |
| bool "PCA9685 I2C-based PWM chip" |
| depends on PWM && I2C |
| default n |
| help |
| Enable driver for PCA9685 I2C-based PWM chip. |
| |
| config PWM_PCA9685_0 |
| bool "PCA9685 PWM chip #0" |
| depends on PWM_PCA9685 |
| default n |
| help |
| Enable config options for the PCA9685 I2C-based PWM chip #0. |
| |
| config PWM_PCA9685_0_DEV_NAME |
| string "PCA9685 PWM chip #0 Device Name" |
| depends on PWM_PCA9685_0 |
| default "PWM_P0" |
| help |
| Specify the device name for the PCA9685 I2C-based PWM chip #0. |
| |
| config PWM_PCA9685_0_I2C_ADDR |
| hex "PCA9685 PWM chip #0 I2C slave address" |
| depends on PWM_PCA9685_0 |
| default 0x0 |
| help |
| Specify the I2C slave address for the PCA9685 I2C-based PWM chip #0. |
| |
| config PWM_PCA9685_0_I2C_MASTER_DEV_NAME |
| string "I2C Master where PCA9685 PWM chip #0 is connected" |
| depends on PWM_PCA9685_0 |
| default "" |
| help |
| Specify the device name of the I2C master device to which this |
| PCA9685 chip #0 is binded. |