1.1 --- a/pkg/devices/lib/i2c/src/jz4730.cc Tue Oct 24 18:52:06 2023 +0200
1.2 +++ b/pkg/devices/lib/i2c/src/jz4730.cc Fri Oct 27 18:02:49 2023 +0200
1.3 @@ -89,7 +89,7 @@
1.4 {
1.5 // Make sure that the I2C clock is available.
1.6
1.7 - _cpm->start_clock(Clock_i2c);
1.8 + _cpm->start_clock(Clock_i2c0);
1.9
1.10 // Set the bus clock frequency.
1.11
1.12 @@ -119,7 +119,7 @@
1.13 // obtained from the CPM unit and is scaled to kHz in order to keep the
1.14 // numbers easily representable, as is the bus frequency.
1.15
1.16 - uint32_t pclk = _cpm->get_pclock_frequency() / 1000;
1.17 + uint32_t pclk = _cpm->get_frequency(Clock_pclock) / 1000;
1.18 uint32_t i2c_clk = _frequency / 1000;
1.19 uint32_t division = pclk / (16 * i2c_clk);
1.20