Simon Glass
8a45b22057
gpio: Add a way to read 3-way strapping pins
...
Using the internal vs. external pull resistors it is possible to get
27 different combinations from 3 strapping pins. Add an implementation
of this.
This involves updating the sandbox GPIO driver to model external and
(weaker) internal pull resistors. The get_value() method now takes account
of what is driving a pin:
sandbox: GPIOD_EXT_DRIVEN - in which case GPIO_EXT_HIGH provides the
value
outside source - in which case GPIO_EXT_PULL_UP/DOWN indicates the
external state and we work the final state using those flags and
the internal GPIOD_PULL_UP/DOWN flags
Of course the outside source does not really exist in sandbox. We are just
modelling it for test purpose.
Signed-off-by: Simon Glass <sjg@chromium.org >
2021-03-03 15:40:47 -05:00
..
2020-09-25 11:27:14 +08:00
2021-02-02 15:33:42 -05:00
2020-07-17 14:32:24 +08:00
2020-09-25 11:27:18 +08:00
2020-12-13 16:51:08 -07:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2021-02-02 15:33:42 -05:00
2020-08-20 09:49:20 +02:00
2021-02-02 15:33:42 -05:00
2021-02-18 11:37:26 +01:00
2020-08-07 22:31:32 -04:00
2020-09-22 11:27:18 +03:00
2021-01-12 10:58:04 +05:30
2021-02-18 11:56:25 +01:00
2021-01-05 12:24:41 -07:00
2021-01-30 14:25:41 -07:00
2020-12-13 16:51:09 -07:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2021-02-26 15:30:55 +01:00
2021-02-02 15:33:42 -05:00
2020-08-07 22:31:32 -04:00
2021-03-03 15:40:47 -05:00
2020-08-07 22:31:32 -04:00
2020-12-18 20:32:21 -07:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-07-01 15:01:21 +08:00
2015-05-21 09:16:17 -04:00
2020-10-08 11:42:36 -04:00
2020-08-07 22:31:32 -04:00
2021-02-26 15:30:55 +01:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2021-02-26 15:30:55 +01:00
2020-10-28 11:49:31 -04:00
2021-02-02 15:33:42 -05:00
2020-10-28 11:49:31 -04:00
2020-08-07 22:31:32 -04:00
2021-01-30 14:25:42 -07:00
2021-02-02 15:33:42 -05:00
2020-12-13 07:58:18 -07:00
2020-12-13 16:51:08 -07:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-10-18 15:07:33 +02:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2021-01-05 12:24:41 -07:00
2020-08-22 07:58:39 -06:00
2021-02-18 11:56:25 +01:00
2020-10-08 11:42:36 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2021-02-02 15:33:42 -05:00
2021-02-18 11:56:25 +01:00
2020-12-13 08:00:25 -07:00
2020-12-13 16:51:08 -07:00
2020-08-07 22:31:32 -04:00
2020-09-30 11:55:22 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-09-30 11:55:24 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-12-22 20:39:26 -07:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-08-07 22:31:32 -04:00
2020-11-06 10:18:20 +08:00
2020-11-05 09:11:30 -07:00
2021-02-16 11:48:20 -05:00
2021-02-03 03:38:41 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2021-01-05 12:24:40 -07:00
2020-09-30 08:54:45 +08:00
2020-10-22 09:54:53 -04:00
2020-12-13 16:51:09 -07:00
2021-02-03 03:38:41 -07:00
2020-08-07 22:31:32 -04:00