Commit 727b8e6b authored by Suman Anna's avatar Suman Anna Committed by Nishanth Menon

[CPUINFO] Correct I2C bus number to fix cpuinfo for OMAP4/5

The cpuinfo option prints out the PMIC and AudioIC device
information alongside the SoC information. This data is
gathered by querying the devices using appropriate i2c
commands. The I2C bus number being used currently matches
the bus numbers from the legacy non-DT boots, and does not
match the DT alias numbers from the current DT-based boots.
The PMIC and AudioIC info is incorrect as a result, and it
also causes additional delays due to i2c timeouts on every
omapconf command (especially on OMAP5).

Fix this I2C bus number so that the cpuinfo information is
printed properly for OMAP4 and OMAP5 SoCs. The behavior on
other SoCs is same as before this patch.
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
Signed-off-by: default avatarNishanth Menon <nm@ti.com>
parent 576b01f4
......@@ -50,7 +50,7 @@
#include <stdio.h>
#define TWL6040_I2C_BUS 1
#define TWL6040_I2C_BUS 0
#define TWL6040_I2C_ADDR 0x4B
#define TWL6040_REG_ASICID 0x01
......
......@@ -50,7 +50,7 @@
#include <twl603x_lib.h>
#define TWL6030_I2C_BUS 1
#define TWL6030_I2C_BUS 0
#define TWL6030_I2C_ID1 0x48
#define TWL6030_I2C_ID2 0x49
#define TWL6030_I2C_ID3 0x4A
......
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