summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-08-05 17:01:03 -0700
committerChromeBot <chrome-bot@google.com>2013-08-07 12:43:32 -0700
commitce704b40005c1acdffabe58f47df42c1d7da33c2 (patch)
tree0c62fbf194a2c6136808ca2a57b77cc15441000c
parent45abaf22bff10f04992eff5eb37d343d9ff93ecd (diff)
downloadchrome-ec-ce704b40005c1acdffabe58f47df42c1d7da33c2.tar.gz
stm32f: Don't glitch signal when setting GPIO_PULL_UP
It looks like a line of code was accidentally left in during refactoring gpio_set_flags(). That line is equivalent to gpio_set_level(signal, 0). It's so far been harmless, because it's immediately followed by gpio_set_level(signal, 1) - but it does mean the signal may glitch for a few clocks at this point. BUG=chrome-os-partner:21678 BRANCH=none (or Spring, but it seems to work fine even with this line) TEST=boot Spring Change-Id: Id7a48e2c9bd543f2aa6a0b710faa5dd2b482fd84 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/64719
-rw-r--r--chip/stm32/gpio-stm32f.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/chip/stm32/gpio-stm32f.c b/chip/stm32/gpio-stm32f.c
index df892705d0..5bf3e15ada 100644
--- a/chip/stm32/gpio-stm32f.c
+++ b/chip/stm32/gpio-stm32f.c
@@ -80,7 +80,6 @@ void gpio_set_flags(enum gpio_signal signal, int flags)
*/
if (flags & GPIO_PULL_UP) {
mask |= 0x88888888 & cnf;
- STM32_GPIO_BSRR(g->port) |= g->mask;
gpio_set_level(signal, 1);
} else if (flags & GPIO_PULL_DOWN) {
mask |= 0x88888888 & cnf;