From a88df0b9b517b76c1a0052fb1b0fe83080559197 Mon Sep 17 00:00:00 2001 From: Isaku Yamahata Date: Tue, 5 Apr 2011 11:07:06 +0900 Subject: smbus_eeprom: consolidate smbus eeprom creation oc pc_piix, mips_mapta, mips_fulong consolidate smbus initialization for pc_piix, mips_malta and mips_fulong. Cc: Aurelien Jarno Cc: Huacai Chen Signed-off-by: Isaku Yamahata Reviewed-by: Aurelien Jarno Signed-off-by: Aurelien Jarno --- hw/smbus.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'hw/smbus.h') diff --git a/hw/smbus.h b/hw/smbus.h index 571c52dfb1..a39871593b 100644 --- a/hw/smbus.h +++ b/hw/smbus.h @@ -66,3 +66,6 @@ void smbus_write_word(i2c_bus *bus, uint8_t addr, uint8_t command, uint16_t data int smbus_read_block(i2c_bus *bus, uint8_t addr, uint8_t command, uint8_t *data); void smbus_write_block(i2c_bus *bus, uint8_t addr, uint8_t command, uint8_t *data, int len); + +void smbus_eeprom_init(i2c_bus *smbus, int nb_eeprom, + const uint8_t *eeprom_spd, int size); -- cgit v1.2.3