UPSTREAM: soc/intel/apollolake: make internal pulls weak for gpio inputs
The internal pulls for gpio_input_pullup() and gpio_input_pulldown() were using fairly strong pulls. Weaken them so that external pulls can override the internal ones. This matches the current assumptions of lib/gpio.c. BUG=chrome-os-partner:54949 BRANCH=None TEST=Built and used on reef for memory config. BUG=None BRANCH=None TEST=None Change-Id: Ifda1d04d40141325f78db277eb0bd55574994abf Original-Signed-off-by: Aaron Durbin <adurbin@chromuim.org> Original-Reviewed-on: https://review.coreboot.org/15558 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Original-Reviewed-by: Andrey Petrov <andrey.petrov@intel.com> Original-Reviewed-by: Furquan Shaikh <furquan@google.com> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/358893 Reviewed-by: Furquan Shaikh <furquan@chromium.org>
This commit is contained in:
parent
b15383d89b
commit
07081c5c67
1 changed files with 2 additions and 2 deletions
|
|
@ -71,13 +71,13 @@ void gpio_configure_pads(const struct pad_config *cfg, size_t num_pads)
|
|||
|
||||
void gpio_input_pulldown(gpio_t gpio)
|
||||
{
|
||||
struct pad_config cfg = PAD_CFG_GPI(gpio, DN_5K, DEEP);
|
||||
struct pad_config cfg = PAD_CFG_GPI(gpio, DN_20K, DEEP);
|
||||
gpio_configure_pad(&cfg);
|
||||
}
|
||||
|
||||
void gpio_input_pullup(gpio_t gpio)
|
||||
{
|
||||
struct pad_config cfg = PAD_CFG_GPI(gpio, UP_5K, DEEP);
|
||||
struct pad_config cfg = PAD_CFG_GPI(gpio, UP_20K, DEEP);
|
||||
gpio_configure_pad(&cfg);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue