From e792affe21686788ee7fdbabbb5fc1bcc799eaa8 Mon Sep 17 00:00:00 2001 From: Holger Brunck Date: Wed, 14 Sep 2011 10:54:12 +0200 Subject: powerpc/83xx: move km 83xx specific i2c code to km83xx_i2c The common code should be valid for more than one architecture. Therefore this code was reorganized and moved to the new file km83xx_i2c.c Signed-off-by: Holger Brunck Signed-off-by: Kim Phillips --- board/keymile/common/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'board/keymile/common/common.h') diff --git a/board/keymile/common/common.h b/board/keymile/common/common.h index 0fb19cf331..6c1f6400c2 100644 --- a/board/keymile/common/common.h +++ b/board/keymile/common/common.h @@ -136,6 +136,9 @@ int fdt_get_node_and_value(void *blob, char *propname, void **var); +#define DELAY_ABORT_SEQ 62 /* @200kHz 9 clocks = 44us, 62us is ok */ +#define DELAY_HALF_PERIOD (500 / (CONFIG_SYS_I2C_SPEED / 1000)) + int i2c_soft_read_pin(void); int i2c_make_abort(void); #endif /* __KEYMILE_COMMON_H */ -- cgit v1.2.1