board/km: move km i2c deblock declarations to a km/common.h
PATCH 4/5 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 <[email protected]>
--- board/keymile/common/common.h | 5 +++++ include/configs/km/km_arm.h | 4 ---- include/configs/kmp204x.h | 6 ------ 3 files changed, 5 insertions(+), 10 deletions(-)
board/keymile/common/common.h +5 -0
@@ -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 */
include/configs/km/km_arm.h +0 -4
@@ -110,10 +110,6 @@#include <linux/delay.h> #include <linux/stringify.h> extern void __set_direction (unsigned pin,int high); -void set_sda (int state); -void set_scl (int state); -int get_sda (void ); -int get_scl (void );#define KM_KIRKWOOD_SDA_PIN 8#define KM_KIRKWOOD_SCL_PIN 9#define KM_KIRKWOOD_SOFT_I2C_GPIOS 0x0300
include/configs/kmp204x.h +0 -6
@@ -237,12 +237,6 @@ unsigned long get_board_sys_clk(unsigned long dummy); {0, {{I2C_MUX_PCA9547, 0x70, 1 } } }, \ {0, {{I2C_MUX_PCA9547, 0x70, 2 } } }, \ } -#ifndef __ASSEMBLY__ -void set_sda (int state); -void set_scl (int state); -int get_sda (void ); -int get_scl (void ); -#endif #define CONFIG_KM_IVM_BUS 1/* I2C1 (Mux-Port 1)*/
Signature · 1 line
1.8.3.1
PATCH 4/5 board/km: move km i2c deblock declarations to a km/common.h
Quoted 4 lines · Aleksandar Gerasimovski
Cleanup, move the declarations to
keymile/common.hinstead declaring them per-boardconfig.hSigned-off-by Aleksandar Gerasimovski <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210205/914892af/attachment.sig>