Files
OpenCellular/chip
Bill Richardson 9c2cbb6b5d Cr50: Add DIO_PULL_UP and DIO_PULL_DOWN flags
In board/*/gpio.inc, we can specify pullups and pulldowns on pads
connected to GPIOs, like so:

  GPIO(SOME_BUTTON, PIN(0,0), GPIO_INPUT | GPIO_PULL_UP)

This adds flags to do the same thing for pads that connect to
internal periperals:

  PINMUX(FUNC(UART0_RX), A1, DIO_PULL_UP)

BUG=chrome-os-partner:51410
BRANCH=none
TEST=make buildall; manual test on Cr50

I added these flags to the gpio.inc file and tested the result:

  PINMUX(FUNC(I2C0_SCL),        B0, DIO_INPUT | DIO_PULL_UP)
  PINMUX(FUNC(I2C0_SDA),        B1, DIO_INPUT | DIO_PULL_DOWN)

The "pinmux" console command showed that the new flags took effect:

Before:

  400600a0: DIOB0    0  IN
  400600a8: DIOB1    0  IN

After:

  400600a0: DIOB0    0  IN PU
  400600a8: DIOB1    0  IN PD

Change-Id: I1d212331431ef67b2f1bcece8729d092b9ad5ba8
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/339254
Reviewed-by: Dominic Rizzo <domrizzo@google.com>
2016-04-15 21:29:25 -07:00
..
2016-01-25 21:46:48 -08:00
2016-04-15 21:29:14 -07:00
2016-03-15 21:49:35 -07:00