Home | History | Annotate | Download | only in ingenic
History log of /src/sys/arch/mips/ingenic/apbus.c
RevisionDateAuthorComments
 1.21  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.20  24-Apr-2021  thorpej branches: 1.20.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.19  19-May-2017  skrll branches: 1.19.8; 1.19.26;
Trailing whitespace
 1.18  08-Oct-2015  macallan add a driver for the chip's EFUSE interface, use it to find the MAC address
for the onboard ethernet controller
 1.17  07-Aug-2015  macallan add driver for jz4780 random number generator
From Michael McConville
 1.16  11-Jul-2015  macallan - get rid of private bus space in ingenic_com.c
- move com to apbus
- attach the other UARTs
 1.15  18-May-2015  macallan pass the appropriate clock register to devices so different instances of the
same driver don't have to guess
also wire the ddc2 part to iic4 for now so we can see the monitor
 1.14  04-May-2015  macallan - fix pclk calculation
- report CPU clock
- pass mclk to child devices
- wire up pins for MSC / sdmmc
 1.13  28-Apr-2015  macallan add entries for sdmmc hosts, no driver yet
 1.12  21-Apr-2015  macallan enable clocks as needed
 1.11  25-Mar-2015  macallan branches: 1.11.2;
- determine bus clock, pass it to devices
- more clock enabling / gpio setup
 1.10  19-Mar-2015  macallan spin up SMBus clocks before attaching drivers
TODO: only enable clocks for drivers that actually attach
 1.9  17-Mar-2015  macallan always print the child devices' address, print irq if not -1 and a driver
is actually attaching
 1.8  17-Mar-2015  macallan - keep a list of devices, addresses and interrupts in apbus.c
- pass irq numbers to devices
- reduce magic numbers in device drivers
- allow multiple instances of device drivers
 1.7  09-Mar-2015  macallan moar devices
 1.6  27-Dec-2014  macallan restrict DMA buffers to the lower 256MB -> now dwc2 DMA works
 1.5  25-Dec-2014  macallan un-gate yet another clock
 1.4  23-Dec-2014  macallan appease nick
 1.3  23-Dec-2014  macallan wake up the USB ports before attaching dwctwo
now it finds a root hub
 1.2  23-Dec-2014  macallan use defflag-ed debug options
enable USB clocks before attaching dwctwo
 1.1  06-Dec-2014  macallan peripheral bus, not really tested
 1.11.2.5  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.11.2.4  22-Sep-2015  skrll Sync with HEAD
 1.11.2.3  06-Jun-2015  skrll Sync with HEAD
 1.11.2.2  06-Apr-2015  skrll Sync with HEAD
 1.11.2.1  25-Mar-2015  skrll file apbus.c was added on branch nick-nhusb on 2015-04-06 15:17:59 +0000
 1.19.26.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.19.8.2  03-Dec-2017  jdolecek update from HEAD
 1.19.8.1  19-May-2017  jdolecek file apbus.c was added on branch tls-maxphys on 2017-12-03 11:36:28 +0000
 1.20.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed