summaryrefslogtreecommitdiff
path: root/board/renesas
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-12 21:09:49 -0600
committerHeiko Schocher <hs@denx.de>2017-05-15 06:17:09 +0200
commiteb5ba3aefdf0f6cbd61684eeb61428f11fa7613c (patch)
tree89887dacbe56dc1b3cef048ce08c2ec3ef8f955b /board/renesas
parent22f3368e71321db1e0e15dfbf54b052367890ec7 (diff)
i2c: Drop use of CONFIG_I2C_HARD
This option is pretty old. It predates CONFIG_SYS_I2C which is itself deprecated in favour of driver model. Disable it for all boards. Also drop I2C options which depend on this. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'board/renesas')
-rw-r--r--board/renesas/r0p7734/r0p7734.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/board/renesas/r0p7734/r0p7734.c b/board/renesas/r0p7734/r0p7734.c
index 360e0a1a6f..d0b4537513 100644
--- a/board/renesas/r0p7734/r0p7734.c
+++ b/board/renesas/r0p7734/r0p7734.c
@@ -44,17 +44,7 @@ int board_init(void)
int board_late_init(void)
{
- u8 mac[6];
-
- /* Read Mac Address and set*/
- i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
- i2c_set_bus_num(CONFIG_SYS_I2C_MODULE);
-
- /* Read MAC address */
- i2c_read(0x50, 0x10, 0, mac, 6);
-
- if (is_valid_ethaddr(mac))
- eth_setenv_enetaddr("ethaddr", mac);
+ printf("Cannot get MAC address from I2C\n");
return 0;
}