]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board/km: move km i2c deblock declarations to a km/common.h
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Fri, 5 Feb 2021 06:02:01 +0000 (06:02 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 8 Feb 2021 08:31:18 +0000 (14:01 +0530)
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>
board/keymile/common/common.h
include/configs/km/km_arm.h
include/configs/kmp204x.h

index 8251de4db8f3aace1dae133a625a0a5bbf341b2e..15a3c3797d1a95e9f5ff8db9532e546982abf1d2 100644 (file)
@@ -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 */
index 29060fa96b3500184ba2649d0db6ae1bc5338acb..4115906c5d7fcfbe3c210215c653a3efae704b40 100644 (file)
 #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
index d1eb7b574b41aeabd855356703d9d6f4e26aa6bf..90e3702bd80d5d7c5137b65ae65e0702fec5ff22 100644 (file)
@@ -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)*/