summaryrefslogtreecommitdiff
path: root/hw/arm/imx25_pdk.c
diff options
context:
space:
mode:
authorAlastair D'Silva <alastair@d-silva.org>2017-01-20 11:15:06 +0000
committerPeter Maydell <peter.maydell@linaro.org>2017-01-20 11:15:06 +0000
commit643bb6fca7102e49c156d4ba210d2ec3c160b844 (patch)
tree07b181907e09c5bbc52f567859adc9011d6c5832 /hw/arm/imx25_pdk.c
parent0f6bcf68a99efdc531b209551f2b760b0bdcc554 (diff)
downloadqemu-643bb6fca7102e49c156d4ba210d2ec3c160b844.tar.gz
arm: Uniquely name imx25 I2C buses.
The imx25 chip provides 3 i2c buses, but they have all been named "i2c", which makes it difficult to predict which bus a device will be connected to when specified on the command line. This patch addresses the issue by naming the buses uniquely: i2c-bus.0 i2c-bus.1 i2c-bus.2 Signed-off-by: Alastair D'Silva <alastair@d-silva.org> Message-id: 20170105043430.3176-2-alastair@au1.ibm.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/imx25_pdk.c')
-rw-r--r--hw/arm/imx25_pdk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/imx25_pdk.c b/hw/arm/imx25_pdk.c
index 025b60843e..44e741fde3 100644
--- a/hw/arm/imx25_pdk.c
+++ b/hw/arm/imx25_pdk.c
@@ -139,7 +139,7 @@ static void imx25_pdk_init(MachineState *machine)
* of simple qtest. See "make check" for details.
*/
i2c_create_slave((I2CBus *)qdev_get_child_bus(DEVICE(&s->soc.i2c[0]),
- "i2c"),
+ "i2c-bus.0"),
"ds1338", 0x68);
}
}