diff options
author | Anton Staaf <robotboy@chromium.org> | 2015-06-17 12:20:43 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-06-30 17:18:59 +0000 |
commit | ebdad6b0f2918ba4eae3f897d6c4a342a70a4b48 (patch) | |
tree | 8ad946a516dc3865bcbc397df5f159bb2a8f856d /chip/stm32/pwm.c | |
parent | e881d99fde5bc818b72bea91ce8cd1daa70bc760 (diff) | |
download | chrome-ec-ebdad6b0f2918ba4eae3f897d6c4a342a70a4b48.tar.gz |
STM32F: Remove support for this family
There are no boards left that use this family of STM32 parts. If we
add one later we can resurect support.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Change-Id: If985a9e9f93c935e98c93f33c075ce00cb9a91ac
Reviewed-on: https://chromium-review.googlesource.com/282532
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Commit-Queue: Anton Staaf <robotboy@chromium.org>
Trybot-Ready: Anton Staaf <robotboy@chromium.org>
Diffstat (limited to 'chip/stm32/pwm.c')
-rw-r--r-- | chip/stm32/pwm.c | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/chip/stm32/pwm.c b/chip/stm32/pwm.c index 42e6716db5..c25dd2330e 100644 --- a/chip/stm32/pwm.c +++ b/chip/stm32/pwm.c @@ -38,32 +38,11 @@ static void pwm_configure(enum pwm_channel ch) const struct gpio_info *gpio = gpio_list + pwm->pin; timer_ctlr_t *tim = (timer_ctlr_t *)(pwm->tim.base); volatile unsigned *ccmr = NULL; -#ifdef CHIP_FAMILY_STM32F - int mask = gpio->mask; - volatile uint32_t *gpio_cr = NULL; - uint32_t val; -#endif if (using_pwm[ch]) return; -#if defined(CHIP_FAMILY_STM32F) - if (mask < 0x100) { - gpio_cr = &STM32_GPIO_CRL(gpio->port); - } else { - gpio_cr = &STM32_GPIO_CRH(gpio->port); - mask >>= 8; - } - - /* Expand mask from 8-bit to 32-bit */ - mask = mask * mask; - mask = mask * mask; - - /* Set alternate function */ - val = *gpio_cr & ~(mask * 0xf); - val |= mask * 0x9; - *gpio_cr = val; -#elif defined(CHIP_FAMILY_STM32F0) || defined(CHIP_FAMILY_STM32F3) +#if defined(CHIP_FAMILY_STM32F0) || defined(CHIP_FAMILY_STM32F3) gpio_set_alternate_function(gpio->port, gpio->mask, pwm->gpio_alt_func); #else /* stm32l */ gpio_set_alternate_function(gpio->port, gpio->mask, |