exynos: gpio: add a bigger delay when reading board strappings
Z-state pins were not reading reliably with a 5us delay, so increase it to 15us. This is ported from https://gerrit.chromium.org/gerrit/64338 Signed-off-by: David Hendricks <dhendrix@chromium.org> BUG=none BRANCH=none TEST=built and booted on pit Change-Id: Ife6ea2ef5989e1a4c17913278ab972f0fd7f7f35 Reviewed-on: https://gerrit.chromium.org/gerrit/65727 Reviewed-by: Ronald G. Minnich <rminnich@chromium.org> Tested-by: Ronald G. Minnich <rminnich@chromium.org> Commit-Queue: David Hendricks <dhendrix@chromium.org> Tested-by: David Hendricks <dhendrix@chromium.org>
This commit is contained in:
parent
243d8a80f6
commit
76f0f8203f
1 changed files with 2 additions and 2 deletions
|
|
@ -206,10 +206,10 @@ int gpio_set_value(unsigned gpio, int value)
|
|||
|
||||
/*
|
||||
* Add a delay here to give the lines time to settle
|
||||
* TODO(sjg): 1us does not always work, 2 is stable, so use 5 to be safe
|
||||
* TODO(dianders): 5us does not always work, 10 is stable, so use 15 to be safe
|
||||
* Come back to this and sort out what the datasheet says
|
||||
*/
|
||||
#define GPIO_DELAY_US 5
|
||||
#define GPIO_DELAY_US 15
|
||||
|
||||
#ifndef __BOOT_BLOCK__
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue