diff options
author | Jaewon Kim <jaewon02.kim@samsung.com> | 2016-08-16 18:47:38 +0900 |
---|---|---|
committer | jino.cho <jino.cho@samsung.com> | 2016-12-05 17:05:43 +0900 |
commit | e10b06ecb0703c9dd69fa627c8d49c7eb6379bdb (patch) | |
tree | 216e14df1491a41687c778c8446d0d6eb4946684 | |
parent | b42f1c543af41c8a4b8d8cfb5bac03f59bfcc9c4 (diff) | |
download | u-boot-artik-accepted/tizen_3.0_common.tar.gz u-boot-artik-accepted/tizen_3.0_common.tar.bz2 u-boot-artik-accepted/tizen_3.0_common.zip |
board: samsung: artik5: setup pwm earlysubmit/tizen_3.0/20161206.005022submit/tizen/20161205.083345accepted/tizen/common/20161205.140013accepted/tizen/3.0/common/20161206.125930tizen_3.0.m2tizen_3.0accepted/tizen_3.0_common
This patch setups pwm channel 0 and 1 in order to maintain
the pwm gpio signal to low until use in kernel.
Change-Id: I170c1af8f686a0ea7cc37f385ab4a657b1fcd054
Signed-off-by: Jaewon Kim <jaewon02.kim@samsung.com>
-rw-r--r-- | board/samsung/espresso3250/espresso3250.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/board/samsung/espresso3250/espresso3250.c b/board/samsung/espresso3250/espresso3250.c index 0df24873f..394022c4f 100644 --- a/board/samsung/espresso3250/espresso3250.c +++ b/board/samsung/espresso3250/espresso3250.c @@ -44,6 +44,18 @@ DECLARE_GLOBAL_DATA_PTR; unsigned int OmPin; +void pwm_early_init(unsigned int channel) +{ + struct exynos3_gpio_part1 *bank = + (struct exynos3_gpio_part1 *)samsung_get_base_gpio_part1(); + + if (channel > 4) + return; + + pwm_enable(channel); + pwm_disable(channel); + s5p_gpio_cfg_pin(&bank->d0, channel, GPIO_FUNC(0x2)); +} int board_init(void) { @@ -129,6 +141,10 @@ int board_init(void) printf(" Please check OM_pin\n"); } + /* Enable PWM to maintain the PWM output signal to low */ + pwm_early_init(0); + pwm_early_init(1); + return 0; } |