1.1 --- a/pkg/devices/lib/i2c/include/i2c-jz4780.h Mon Oct 30 17:21:26 2023 +0100
1.2 +++ b/pkg/devices/lib/i2c/include/i2c-jz4780.h Mon Oct 30 17:22:43 2023 +0100
1.3 @@ -34,6 +34,16 @@
1.4
1.5 class I2c_jz4780_channel : public I2c_channel
1.6 {
1.7 +protected:
1.8 + bool high_speed_mode()
1.9 + { return false; }
1.10 +
1.11 + bool hold_enable()
1.12 + { return true; }
1.13 +
1.14 + bool stop_hold()
1.15 + { return true; }
1.16 +
1.17 public:
1.18 explicit I2c_jz4780_channel(l4_addr_t start, enum Clock_identifiers clock,
1.19 Cpm_chip *cpm, uint32_t frequency);
1.20 @@ -47,6 +57,10 @@
1.21 unsigned int num_channels()
1.22 { return 5; }
1.23
1.24 + I2c_channel *_get_channel(l4_addr_t addr, enum Clock_identifiers clock,
1.25 + Cpm_chip *cpm, uint32_t frequency)
1.26 + { return new I2c_jz4780_channel(addr, clock, cpm, frequency); }
1.27 +
1.28 public:
1.29 explicit I2c_jz4780_chip(l4_addr_t start, l4_addr_t end, Cpm_chip *cpm,
1.30 uint32_t frequency);
1.31 @@ -89,4 +103,6 @@
1.32
1.33 int jz4780_i2c_failed(void *i2c_channel);
1.34
1.35 +void jz4780_i2c_stop(void *i2c_channel);
1.36 +
1.37 EXTERN_C_END