Commit de55fc5d authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

enabled i2c0

parent 1b77d470
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
aliases { aliases {
serial0 = &uart0; serial0 = &uart0;
mmc0 = &sdhci0; mmc0 = &sdhci0;
i2c0 = &i2c0;
}; };
chosen { chosen {
...@@ -36,3 +37,8 @@ ...@@ -36,3 +37,8 @@
u-boot,dm-pre-reloc; u-boot,dm-pre-reloc;
status = "okay"; status = "okay";
}; };
&i2c0 {
status = "okay";
clock-frequency = <400000>;
};
...@@ -18,3 +18,6 @@ CONFIG_SPI_FLASH_WINBOND=n ...@@ -18,3 +18,6 @@ CONFIG_SPI_FLASH_WINBOND=n
CONFIG_ZYNQ_GEM=y CONFIG_ZYNQ_GEM=y
CONFIG_ZYNQ_QSPI=n CONFIG_ZYNQ_QSPI=n
CONFIG_CMD_NAND=y CONFIG_CMD_NAND=y
# CONFIG_CMD_I2C=y
CONFIG_DM_I2C=n
...@@ -70,7 +70,10 @@ ...@@ -70,7 +70,10 @@
/*redefined in zynq-common.h*/ /*redefined in zynq-common.h*/
/*#undef CONFIG_CMD_NAND*/ /*#undef CONFIG_CMD_NAND*/
#define CONFIG_ZYNQ_I2C0
#include <configs/zynq-common.h> #include <configs/zynq-common.h>
#undef CONFIG_SYS_PROMPT #undef CONFIG_SYS_PROMPT
#undef CONFIG_BOOTDELAY #undef CONFIG_BOOTDELAY
#undef CONFIG_EXTRA_ENV_SETTINGS #undef CONFIG_EXTRA_ENV_SETTINGS
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment