From 213987ea2007d1d667cae811f5013ce1402964ca Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 15 Apr 2015 21:37:41 -0600 Subject: [PATCH] Missing PWM boardctl logic breaks PWM test. --- configs/Kconfig | 4 ++++ configs/boardctl.c | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/configs/Kconfig b/configs/Kconfig index fab01136d2..d7856d0e06 100644 --- a/configs/Kconfig +++ b/configs/Kconfig @@ -1596,6 +1596,10 @@ config BOARDCTL_ADCTEST bool "Enable ADC test interfaces" default n +config BOARDCTL_PWMTEST + bool "Enable PWM test interfaces" + default n + config BOARDCTL_GRAPHICS bool "Enable custom graphics initialization interfaces" default n diff --git a/configs/boardctl.c b/configs/boardctl.c index 23d1f8507e..dae3153426 100644 --- a/configs/boardctl.c +++ b/configs/boardctl.c @@ -141,6 +141,21 @@ int boardctl(unsigned int cmd, uintptr_t arg) break; #endif +#ifdef CONFIG_BOARDCTL_PWMTEST + /* CMD: BOARDIOC_PWMTEST_SETUP + * DESCRIPTION: PWM controller test configuration + * ARG: None + * CONFIGURATION: CONFIG_LIB_BOARDCTL && CONFIG_BOARDCTL_PWMTEST + * DEPENDENCIES: Board logic must provide board_pwm_setup() + */ + + case BOARDIOC_PWMTEST_SETUP: + { + ret = board_pwm_setup(); + } + break; +#endif + #ifdef CONFIG_BOARDCTL_GRAPHICS /* CMD: BOARDIOC_GRAPHICS_SETUP * DESCRIPTION: Configure graphics that require special initialization