diff options
author | Cédric Le Goater <clg@kaod.org> | 2018-06-08 13:15:32 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-06-08 13:15:32 +0100 |
commit | 5141d4158cf0dbdc13e42f175d1718d40b789f75 (patch) | |
tree | bf02ff272c838cc6688e7887ee236a68b1498a5f /tests/libqos/i2c.h | |
parent | 3d165f12db211c0c17e937a87551d869b25a82db (diff) |
misc: add pca9552 LED blinker model
Specs are available here :
https://www.nxp.com/docs/en/application-note/AN264.pdf
This is a simple model supporting the basic registers for led and GPIO
mode. The device also supports two blinking rates but not the model
yet.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 20180530064049.27976-7-clg@kaod.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'tests/libqos/i2c.h')
-rw-r--r-- | tests/libqos/i2c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libqos/i2c.h b/tests/libqos/i2c.h index eb40b808bd..cc01358a9f 100644 --- a/tests/libqos/i2c.h +++ b/tests/libqos/i2c.h @@ -21,6 +21,8 @@ struct I2CAdapter { QTestState *qts; }; +#define OMAP2_I2C_1_BASE 0x48070000 + void i2c_send(I2CAdapter *i2c, uint8_t addr, const uint8_t *buf, uint16_t len); void i2c_recv(I2CAdapter *i2c, uint8_t addr, |