Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C: Add real clock control #175

Open
omeh-a opened this issue Jul 25, 2024 · 0 comments
Open

I2C: Add real clock control #175

omeh-a opened this issue Jul 25, 2024 · 0 comments
Labels
drivers Issues pertaining to driver code for a device class meson Devices on a Meson platform - e.g. ODROID C4

Comments

@omeh-a
Copy link
Member

omeh-a commented Jul 25, 2024

Currently the I2C driver has absolutely no idea how to set its timing. It depends on hard-coded constants to set clock dividers, and this means that the functionality of the I2C is now dependent on the system clocks being exactly what those hard-coded values are tuned for AND is fully insensitive to variations in device clocking.

This principally refers to the Meson I2C driver (as the only extant one), but this will be needed in general.

To solve this issue, a clock driver must be connected to I2C to allow it to detect the clock rate and tune itself OR the I2C must be given access to the relevant clocking hardware to set the divider values appropriately.

@omeh-a omeh-a added drivers Issues pertaining to driver code for a device class meson Devices on a Meson platform - e.g. ODROID C4 labels Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
drivers Issues pertaining to driver code for a device class meson Devices on a Meson platform - e.g. ODROID C4
Projects
None yet
Development

No branches or pull requests

1 participant