summaryrefslogtreecommitdiff
path: root/board/keymile/common/qrio.h
diff options
context:
space:
mode:
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com>2021-11-16 15:48:46 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2022-02-01 12:34:24 +0300
commit7c49bd50ed16644f46cac5ea711890efe49e2984 (patch)
treecd55017a41e984db0d48ea9ab3fce05632389240 /board/keymile/common/qrio.h
parent7539bb3b7cd2c0f94a283d55e4f3dacc628ed2cc (diff)
downloadu-boot-7c49bd50ed16644f46cac5ea711890efe49e2984.tar.xz
km: qrio: add function to read SLFTEST pin status
There is a request from HW designers to use this QRIO pin for detecting DIC26_SELFTEST status instead of a GPIO pin. This pin is typically used during production for executing POST tests and starting test ESW bank. Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachienergy.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/keymile/common/qrio.h')
-rw-r--r--board/keymile/common/qrio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/keymile/common/qrio.h b/board/keymile/common/qrio.h
index 757bcbf2f3..c341cd9cb6 100644
--- a/board/keymile/common/qrio.h
+++ b/board/keymile/common/qrio.h
@@ -12,6 +12,7 @@
#define QRIO_GPIO_B 0x60
void show_qrio(void);
+bool qrio_get_selftest_pin(void);
int qrio_get_gpio(u8 port_off, u8 gpio_nr);
void qrio_set_opendrain_gpio(u8 port_off, u8 gpio_nr, u8 val);
void qrio_set_gpio(u8 port_off, u8 gpio_nr, bool value);