diff options
author | Simon Glass <sjg@chromium.org> | 2017-05-12 21:09:49 -0600 |
---|---|---|
committer | Heiko Schocher <hs@denx.de> | 2017-05-15 06:17:09 +0200 |
commit | eb5ba3aefdf0f6cbd61684eeb61428f11fa7613c (patch) | |
tree | 89887dacbe56dc1b3cef048ce08c2ec3ef8f955b /board/freescale/mpc5121ads | |
parent | 22f3368e71321db1e0e15dfbf54b052367890ec7 (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/freescale/mpc5121ads')
-rw-r--r-- | board/freescale/mpc5121ads/mpc5121ads.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/board/freescale/mpc5121ads/mpc5121ads.c b/board/freescale/mpc5121ads/mpc5121ads.c index f87579f193..d729056fd0 100644 --- a/board/freescale/mpc5121ads/mpc5121ads.c +++ b/board/freescale/mpc5121ads/mpc5121ads.c @@ -174,27 +174,6 @@ int dram_init(void) int misc_init_r(void) { - u8 tmp_val; - - /* Using this for DIU init before the driver in linux takes over - * Enable the TFP410 Encoder (I2C address 0x38) - */ - - i2c_set_bus_num(2); - tmp_val = 0xBF; - i2c_write(0x38, 0x08, 1, &tmp_val, sizeof(tmp_val)); - /* Verify if enabled */ - tmp_val = 0; - i2c_read(0x38, 0x08, 1, &tmp_val, sizeof(tmp_val)); - debug("DVI Encoder Read: 0x%02x\n", tmp_val); - - tmp_val = 0x10; - i2c_write(0x38, 0x0A, 1, &tmp_val, sizeof(tmp_val)); - /* Verify if enabled */ - tmp_val = 0; - i2c_read(0x38, 0x0A, 1, &tmp_val, sizeof(tmp_val)); - debug("DVI Encoder Read: 0x%02x\n", tmp_val); - return 0; } |