configs: socfpga: convert i2c to dm
Enable DM I2C driver on SoCFPGA platforms. Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
This commit is contained in:
@@ -137,6 +137,7 @@
|
||||
/*
|
||||
* I2C support
|
||||
*/
|
||||
#ifndef CONFIG_DM_I2C
|
||||
#define CONFIG_SYS_I2C
|
||||
#define CONFIG_SYS_I2C_BASE SOCFPGA_I2C0_ADDRESS
|
||||
#define CONFIG_SYS_I2C_BASE1 SOCFPGA_I2C1_ADDRESS
|
||||
@@ -157,6 +158,7 @@
|
||||
unsigned int cm_get_l4_sp_clk_hz(void);
|
||||
#define IC_CLK (cm_get_l4_sp_clk_hz() / 1000000)
|
||||
#endif
|
||||
#endif /* CONFIG_DM_I2C */
|
||||
|
||||
/*
|
||||
* QSPI support
|
||||
|
||||
Reference in New Issue
Block a user