aboutsummaryrefslogtreecommitdiff
path: root/hw/musicpal.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-11-20 23:37:15 +0000
committerPaul Brook <paul@codesourcery.com>2009-11-22 21:27:40 +0000
commit3cd035d863bd516a2967810c22258d82535c051f (patch)
treefdbd357881c1df41ca0928ec54c42a6cfe0bdd28 /hw/musicpal.c
parent1dfe3943e9f74cf55a8c84238b8d1a9d3486387f (diff)
GPIO I2C rework
Reqrite bitbanging I2C implementation. New code improves stop/start condition handling, and gives more accurate input line level. Introduce intermediate abstraction layer for I2C bitbanging that is not connected via a GPIO port. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/musicpal.c')
-rw-r--r--hw/musicpal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/musicpal.c b/hw/musicpal.c
index 0d21f1778f..264669f618 100644
--- a/hw/musicpal.c
+++ b/hw/musicpal.c
@@ -1565,7 +1565,7 @@ static void musicpal_init(ram_addr_t ram_size,
musicpal_misc_init();
dev = sysbus_create_simple("musicpal_gpio", MP_GPIO_BASE, pic[MP_GPIO_IRQ]);
- i2c_dev = sysbus_create_simple("bitbang_i2c", 0, NULL);
+ i2c_dev = sysbus_create_simple("gpio_i2c", 0, NULL);
i2c = (i2c_bus *)qdev_get_child_bus(i2c_dev, "i2c");
lcd_dev = sysbus_create_simple("musicpal_lcd", MP_LCD_BASE, NULL);