Home | History | Annotate | Download | only in i2c
History log of /src/sys/dev/i2c/ac100.c
RevisionDateAuthorComments
 1.11  17-Sep-2025  thorpej These drivers conditionally support FDT (with an #ifdef). Rather than
blindly assume that i2c_attach_args::ia_cookie is an FDT phandle, consult
self's devhandle and, if the type is DEVHANDLE_TYPE_OF, exctract the phandle
from there.

XXX These drivers should probably become FDT-only (like many others already
are) because the functionality is questionable without information from the
device tree.
 1.10  08-Sep-2025  thorpej Garbage-collect fdtbus_todr_attach(); todr_attach() does all the
necessary work now.

kern/59630
 1.9  07-Sep-2025  thorpej Change todr_chip_handle::cookie -> todr_chip_handle::todr_dev, and
make it a device_t. Upcoming functional changes will require the
device_t associated with a TODR device.

Change todr_chip_handle::bus_cookie -> todr_chip_handle::todr_devaux.
Nothing was using the old field, but I decided to keep it around just
in cause something needs it in the future.

And with these largely mechanical yet semantically meaningful changes,
thus spake the Oracle: "Welcome to NetBSD 11.99.2."
 1.8  07-Sep-2025  thorpej Attach the AC100 RTC as a separate child device node.

XXX This driver doesn't really work without FDT.
 1.7  27-Jan-2021  thorpej branches: 1.7.4; 1.7.14;
Use DEVICE_COMPAT_EOL.
 1.6  25-Jan-2021  thorpej Since we're using designated initialisers for compat data, we should
use a completely empty initializer for the sentinel.
 1.5  17-Jan-2021  thorpej Use designated initializers and a consistent termination style in
compat_data[].
 1.4  27-Jul-2019  thorpej branches: 1.4.10;
No need to check cold to add I2C_F_POLL; the i2c API does it for us now.
 1.3  27-May-2019  jmcneill FDT-ize AC100 driver
 1.2  16-Jun-2018  thorpej branches: 1.2.2;
More cleanup to i2c autoconfiguration:

- Get all of the drivers onto the new match quality constants.
- Introduce a new helper function, iic_use_direct_match(), that has
all of the logic for direct-config matching. If it returns true,
the driver returns the match result (which may be 0). If it returns
false, the driver does indirect-config matching.
- iic_compat_match() now returns a weighted match quality; matches to
lower-indexed "compatible" device property are more-specific matches,
and return a better match quality accordingly.
 1.1  07-Dec-2014  jmcneill branches: 1.1.2; 1.1.18; 1.1.20;
Add driver for X-Powers AC100 integrated audio codec and RTC subsystem.
Only RTC functionality implemented for now.
 1.1.20.1  25-Jun-2018  pgoyette Sync with HEAD
 1.1.18.2  03-Dec-2017  jdolecek update from HEAD
 1.1.18.1  07-Dec-2014  jdolecek file ac100.c was added on branch tls-maxphys on 2017-12-03 11:37:02 +0000
 1.1.2.2  06-Apr-2015  skrll Sync with HEAD
 1.1.2.1  07-Dec-2014  skrll file ac100.c was added on branch nick-nhusb on 2015-04-06 15:18:09 +0000
 1.2.2.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.2.2.1  10-Jun-2019  christos Sync with HEAD
 1.4.10.1  03-Apr-2021  thorpej Sync with HEAD.
 1.7.14.1  09-Aug-2021  thorpej Port over the changes from thorpej-i2c-spi-conf to thorpej-i2c-spi-conf2,
which is based on a newer HEAD revision.
 1.7.4.1  08-May-2021  thorpej ia->ia_cookie -> devhandle_to_of(device_handle(self))

RSS XML Feed