]> git.sur5r.net Git - u-boot/commitdiff
ARM: rmobile: Replace SH I2C with IIC on Porter
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Sat, 17 Feb 2018 01:15:08 +0000 (02:15 +0100)
committerMarek Vasut <marex@denx.de>
Sat, 17 Feb 2018 21:00:25 +0000 (22:00 +0100)
Get rid of the SH I2C driver on Porter and enable the IIC driver
instead . The old SH I2C is completely broken on Porter anyway
and the DM/DT capable IIC driver allows access to the PMIC too.
Use the DM/DT capable driver instead.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
configs/porter_defconfig
include/configs/porter.h

index 53d197c2fa888bd4415fe1b417134cf605ad3b16..736576c78eef59263d546b1d55bae22237dbe7bf 100644 (file)
@@ -50,6 +50,8 @@ CONFIG_SPL_CLK=y
 CONFIG_CLK_RENESAS=y
 CONFIG_DM_GPIO=y
 CONFIG_RCAR_GPIO=y
+CONFIG_DM_I2C=y
+CONFIG_SYS_I2C_RCAR_IIC=y
 CONFIG_DM_MMC=y
 CONFIG_MMC_UNIPHIER=y
 CONFIG_SPI_FLASH=y
index 1816f2fd766a196f70898f4cbb1cc1195004f4c4..eb28d1afcca6618833157427b1b3e71d43338641 100644 (file)
 
 #define CONFIG_SYS_TMU_CLK_DIV 4
 
-/* i2c */
-#define CONFIG_SYS_I2C
-#define CONFIG_SYS_I2C_SH
-#define CONFIG_SYS_I2C_SLAVE           0x7F
-#define CONFIG_SYS_I2C_SH_NUM_CONTROLLERS      3
-#define CONFIG_SYS_I2C_SH_SPEED0       400000
-#define CONFIG_SYS_I2C_SH_SPEED1       400000
-#define CONFIG_SYS_I2C_SH_SPEED2       400000
-#define CONFIG_SH_I2C_DATA_HIGH                4
-#define CONFIG_SH_I2C_DATA_LOW         5
-#define CONFIG_SH_I2C_CLOCK            10000000
-
-#define CONFIG_SYS_I2C_POWERIC_ADDR    0x58 /* da9063 */
-
 #define CONFIG_EXTRA_ENV_SETTINGS      \
        "fdt_high=0xffffffff\0"         \
        "initrd_high=0xffffffff\0"