Skip to content

Commit

Permalink
hw/i2c: add support for PMBus
Browse files Browse the repository at this point in the history
QEMU has support for SMBus devices, and PMBus is a more specific
implementation of SMBus. The additions made in this commit makes it easier to
add new PMBus devices to QEMU.

https://pmbus.org/specification-archives/

Reviewed-by: Joel Stanley <joel@jms.id.au>
Reviewed-by: Hao Wu <wuhaotsh@google.com>
Signed-off-by: Titus Rwantare <titusr@google.com>
Message-Id: <20210519165002.1195745-2-titusr@google.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
  • Loading branch information
Rwantare authored and cminyard committed Jun 17, 2021
1 parent 5e9ae4b commit 0c95dde
Show file tree
Hide file tree
Showing 5 changed files with 2,135 additions and 0 deletions.
1 change: 1 addition & 0 deletions hw/arm/Kconfig
Expand Up @@ -375,6 +375,7 @@ config NPCM7XX
select ARM_GIC
select AT24C # EEPROM
select PL310 # cache controller
select PMBUS
select SERIAL
select SSI
select UNIMP
Expand Down
4 changes: 4 additions & 0 deletions hw/i2c/Kconfig
Expand Up @@ -32,3 +32,7 @@ config MPC_I2C
config PCA954X
bool
select I2C

config PMBUS
bool
select SMBUS
1 change: 1 addition & 0 deletions hw/i2c/meson.build
Expand Up @@ -15,4 +15,5 @@ i2c_ss.add(when: 'CONFIG_VERSATILE_I2C', if_true: files('versatile_i2c.c'))
i2c_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_i2c.c'))
i2c_ss.add(when: 'CONFIG_PPC4XX', if_true: files('ppc4xx_i2c.c'))
i2c_ss.add(when: 'CONFIG_PCA954X', if_true: files('i2c_mux_pca954x.c'))
i2c_ss.add(when: 'CONFIG_PMBUS', if_true: files('pmbus_device.c'))
softmmu_ss.add_all(when: 'CONFIG_I2C', if_true: i2c_ss)

0 comments on commit 0c95dde

Please sign in to comment.