Commit a6e50da0d5a42f84f39edad57cb24a85e8524e6d

Authored by Marek Vasut
Committed by Marek Vasut
1 parent 88306dbb5a

ARM: rmobile: Replace SH I2C with IIC on Porter

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>

Showing 2 changed files with 2 additions and 14 deletions Side-by-side Diff

configs/porter_defconfig
... ... @@ -50,6 +50,8 @@
50 50 CONFIG_CLK_RENESAS=y
51 51 CONFIG_DM_GPIO=y
52 52 CONFIG_RCAR_GPIO=y
  53 +CONFIG_DM_I2C=y
  54 +CONFIG_SYS_I2C_RCAR_IIC=y
53 55 CONFIG_DM_MMC=y
54 56 CONFIG_MMC_UNIPHIER=y
55 57 CONFIG_SPI_FLASH=y
include/configs/porter.h
... ... @@ -49,20 +49,6 @@
49 49  
50 50 #define CONFIG_SYS_TMU_CLK_DIV 4
51 51  
52   -/* i2c */
53   -#define CONFIG_SYS_I2C
54   -#define CONFIG_SYS_I2C_SH
55   -#define CONFIG_SYS_I2C_SLAVE 0x7F
56   -#define CONFIG_SYS_I2C_SH_NUM_CONTROLLERS 3
57   -#define CONFIG_SYS_I2C_SH_SPEED0 400000
58   -#define CONFIG_SYS_I2C_SH_SPEED1 400000
59   -#define CONFIG_SYS_I2C_SH_SPEED2 400000
60   -#define CONFIG_SH_I2C_DATA_HIGH 4
61   -#define CONFIG_SH_I2C_DATA_LOW 5
62   -#define CONFIG_SH_I2C_CLOCK 10000000
63   -
64   -#define CONFIG_SYS_I2C_POWERIC_ADDR 0x58 /* da9063 */
65   -
66 52 #define CONFIG_EXTRA_ENV_SETTINGS \
67 53 "fdt_high=0xffffffff\0" \
68 54 "initrd_high=0xffffffff\0"