aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>2021-02-05 06:02:01 +0000
committerPriyanka Jain <priyanka.jain@nxp.com>2021-02-08 14:01:18 +0530
commita1f57c393380d0245f8740ddf1497902b9f963f8 (patch)
treec1a9e5203e851c12549d2705639f4d1823b51dfc /board
parentd167667d1b9053534445a1c0748a0739fe3aa944 (diff)
downloadu-boot-a1f57c393380d0245f8740ddf1497902b9f963f8.zip
u-boot-a1f57c393380d0245f8740ddf1497902b9f963f8.tar.gz
u-boot-a1f57c393380d0245f8740ddf1497902b9f963f8.tar.bz2
board/km: move km i2c deblock declarations to a km/common.h
Cleanup, move the declarations to keymile/common.h instead declaring them per-board config.h Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com> Reviewed-by: Tom Rini <trini@konsulko.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/keymile/common/common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/keymile/common/common.h b/board/keymile/common/common.h
index 8251de4..15a3c37 100644
--- a/board/keymile/common/common.h
+++ b/board/keymile/common/common.h
@@ -136,6 +136,11 @@ int set_km_env(void);
#define DELAY_ABORT_SEQ 62 /* @200kHz 9 clocks = 44us, 62us is ok */
#define DELAY_HALF_PERIOD (500 / (CONFIG_SYS_I2C_SPEED / 1000))
+void set_sda(int state);
+void set_scl(int state);
+int get_sda(void);
+int get_scl(void);
+
int i2c_soft_read_pin(void);
int i2c_make_abort(void);
#endif /* __KEYMILE_COMMON_H */