Files
OpenCellular/chip/stm32
Simon Glass aa64550a3f gpio: Add fast access to GPIO level
The current gpio_get_level() is pretty slow because it looks things up each
time. Add a new function to find out the register address and mask to use
to check the value for a particular GPIO.

Time-critical code can then use this to check a GPIO.

BUG=chrome-os-partner:10146
TEST=manual:
build and boot on snow;
Power on the board, hold power button for 10s and see that it powers off
Power control still works, thus GPIOs are functional

Change-Id: Ifc6c56f5cb811e0243e7712725a51948eabd42ab
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/26175
2012-07-02 22:35:52 -07:00
..
2012-07-02 15:26:02 -07:00
2012-05-04 15:00:55 -07:00
2012-05-10 14:16:07 -07:00
2012-07-02 22:35:50 -07:00
2012-06-19 10:48:21 -07:00
2012-05-21 09:17:43 -07:00