mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
MAX7310 I2C qdev conversion
Signed-off-by: Paul Brook <paul@codesourcery.com>
This commit is contained in:
parent
d2199005d5
commit
6c0bd6bde2
3 changed files with 19 additions and 12 deletions
|
@ -759,8 +759,8 @@ static void spitz_i2c_setup(PXA2xxState *cpu)
|
|||
static void spitz_akita_i2c_setup(PXA2xxState *cpu)
|
||||
{
|
||||
/* Attach a Max7310 to Akita I2C bus. */
|
||||
i2c_set_slave_address(max7310_init(pxa2xx_i2c_bus(cpu->i2c[0])),
|
||||
AKITA_MAX_ADDR);
|
||||
i2c_create_slave(pxa2xx_i2c_bus(cpu->i2c[0]), "max7310",
|
||||
AKITA_MAX_ADDR);
|
||||
}
|
||||
|
||||
/* Other peripherals */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue