History log of /src/sys/arch/evbarm/armadillo/armadillo9_iic.c |
Revision | | Date | Author | Comments |
1.12 |
| 15-Sep-2025 |
thorpej | Encapsulate what's needed to attach an I2C bus into a iicbus_attach() inline.
|
1.11 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.10 |
| 24-Apr-2021 |
thorpej | branches: 1.10.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.9 |
| 22-Dec-2019 |
thorpej | branches: 1.9.10; Cleanup i2c bus acquire / release, centralizing all of the logic into iic_acquire_bus() / iic_release_bus(). "acquire" and "release" hooks no longer need to be provided by back-end controller drivers (only if they need special handling, e.g. powering on the i2c controller). This results in the removal of a bunch of rendundant code from each back-end controller driver.
Assert that we are not in hard interrupt context in iic_acquire_bus(), iic_exec(), and iic_release_bus().
|
1.8 |
| 14-Feb-2016 |
chs | branches: 1.8.18; zero the i2c_attach_args structure before filling it in. fixes occasional crashes in iic_attach().
|
1.7 |
| 27-Oct-2012 |
chs | branches: 1.7.14; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.6 |
| 10-Jun-2008 |
hamajima | branches: 1.6.30; 1.6.40; revise for reorganized MI i2c_bitbang.c
|
1.5 |
| 25-May-2008 |
hamajima | branches: 1.5.2; fix gpio port direction for i2c_wait_for_scl(). Armadillo9 works again.
|
1.4 |
| 06-Dec-2007 |
ad | branches: 1.4.12; 1.4.14; 1.4.16; 1.4.18; lockmgr -> mutex
|
1.3 |
| 26-Jun-2006 |
drochner | branches: 1.3.18; 1.3.30; 1.3.32; 1.3.34; 1.3.40; 1.3.44; use the "i2cbus" interface attribute rather than putting a string name into the i2cbus attach args
|
1.2 |
| 18-Feb-2006 |
thorpej | branches: 1.2.2; 1.2.10; 1.2.12; - Don't expose dev_propdb directly -- provide devprop_*() wrappers instead. - Rework the ARMADILLO / epe device properties interaction so that it actually associates the MAC address property with the epe device instance.
|
1.1 |
| 13-Nov-2005 |
hamajima | branches: 1.1.4; 1.1.6; 1.1.8; 1.1.10; Add initial support for the EP9315-based Atmark Techno Armadillo-9 board.
|
1.1.10.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.1.8.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.1.6.1 |
| 18-Feb-2006 |
yamt | sync with head.
|
1.1.4.2 |
| 11-Dec-2005 |
christos | Sync with head.
|
1.1.4.1 |
| 13-Nov-2005 |
christos | file armadillo9_iic.c was added on branch ktrace-lwp on 2005-12-11 10:28:16 +0000
|
1.2.12.4 |
| 07-Dec-2007 |
yamt | sync with head
|
1.2.12.3 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.2.12.2 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.2.12.1 |
| 18-Feb-2006 |
yamt | file armadillo9_iic.c was added on branch yamt-lazymbuf on 2006-06-21 14:50:32 +0000
|
1.2.10.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
1.2.2.1 |
| 11-Aug-2006 |
yamt | sync with head
|
1.3.44.1 |
| 08-Dec-2007 |
ad | Sync with head.
|
1.3.40.1 |
| 08-Dec-2007 |
mjf | Sync with HEAD.
|
1.3.34.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
1.3.32.1 |
| 09-Dec-2007 |
jmcneill | Sync with HEAD.
|
1.3.30.1 |
| 26-Dec-2007 |
rjs | Sync with HEAD.
|
1.3.18.1 |
| 09-Dec-2007 |
reinoud | Pullup to HEAD
|
1.4.18.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.4.16.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.4.14.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.4.14.1 |
| 04-Jun-2008 |
yamt | sync with head
|
1.4.12.2 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.4.12.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.5.2.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.6.40.2 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.6.40.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.6.30.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.7.14.1 |
| 19-Mar-2016 |
skrll | Sync with HEAD
|
1.8.18.1 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.9.10.1 |
| 23-Mar-2021 |
thorpej | Convert config_found_ia() call sites where the device only carries a single interface attribute to bare config_found() calls.
|
1.10.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|