Home | History | Annotate | Download | only in xscale
History log of /src/sys/arch/arm/xscale/pxa2x0_gpio.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  20-Nov-2020  thorpej branches: 1.19.2;
malloc(9) -> kmem(9)
 1.18  10-Nov-2019  chs branches: 1.18.8;
in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT
and remove code to handle failures that can no longer happen.
 1.17  16-Jun-2017  pgoyette branches: 1.17.6;
Add gpio support for Xscale

From Stephan Meisenger in PR/52163
 1.16  12-Nov-2012  skrll branches: 1.16.14;
C99 types
 1.15  01-Jul-2011  dyoung branches: 1.15.2; 1.15.12;
#include <sys/bus.h> instead of <machine/bus.h>.
 1.14  09-Jun-2011  nonaka - device_t/softc split.
- use aprint_* function.
 1.13  04-Aug-2009  kiyohara branches: 1.13.4; 1.13.10;
Fix GPIO configurations.
http://mail-index.netbsd.org/port-arm/2009/07/08/msg000807.html
3. I misstake sinse 2007/08/21.
:

Details:
Remove hwuart_gpioconf. PXA270 not have HWUART.
Add ohci_gpioconf. However all selectable.
Fix pSKTSEL of pcic is selectable.
Fix MMDAT<1-3> of mci is optional.
 1.12  17-Dec-2008  cegger kill MALLOC and FREE macros.
 1.11  07-Nov-2008  rafal Remove parameter checks from under DEBUG; bad gpio pin numbers will cause
the kernel to fall over rather quickly anyway with memory faults, so a panic
with a hint as to what's wrong seems much better.
 1.10  24-Apr-2008  nonaka branches: 1.10.2; 1.10.8; 1.10.10;
fix typo.
 1.9  17-Oct-2007  garbled branches: 1.9.16; 1.9.18;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.8  21-Aug-2007  kiyohara branches: 1.8.2;
The initarm() should initialize GPIO. We must not initialize GPIO in
foo_attach() of the each drivers. And, it is necessary to confirm whether
to be initialized in foo_match(). To avoid a dangerous configuring on the
evaluation boards.
 1.7  17-Dec-2006  peter branches: 1.7.6; 1.7.14; 1.7.18; 1.7.20; 1.7.22; 1.7.24;
Update from the latest Zaurus source from NONAKA Kimihiro.

Includes drivers for I2C, I2S, PCMCIA controller, USB device controller,
OHCI USB controller (from OpenBSD) and some improvements to the LCD
controller driver.
 1.6  16-Dec-2006  ober Zaurus Port from OpenBSD by Nonaka Kimihiro
OK gimpy
 1.5  24-Dec-2005  perry branches: 1.5.20; 1.5.22;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.4  11-Dec-2005  christos merge ktrace-lwp.
 1.3  04-Jul-2005  bsh branches: 1.3.2;
The first step to support Intel PXA270.

kernel config option CPU_XSCALE_PXA2X0 is now obsoleted by
CPU_XSCALE_PXA250 and CPU_XSCALE_PXA270. If both of them are defined,
CPU is determined run-time.
 1.2  15-Jul-2003  lukem __KERNEL_RCSID()
 1.1  05-Jun-2003  scw branches: 1.1.2;
- Rearrange the PXA2x0 support code to better support attaching
child drivers such as interrupt and gpio controllers.
- Add a function to probe SDRAM size at boot time.
- Add a function to configure the Clock Manager's CKEN settings.
- Add an INTC driver.
- Add a GPIO driver.
- Add attach glue for the PXA2x0's "almost" 16550-compatible uarts.
- Tweak the LCD driver to use the GPIO driver's services for setting
up GPIO pin function.
 1.1.2.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.1.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.1.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.1.2.1  03-Aug-2004  skrll Sync with HEAD
 1.3.2.3  03-Sep-2007  yamt sync with head.
 1.3.2.2  30-Dec-2006  yamt sync with head.
 1.3.2.1  21-Jun-2006  yamt sync with head.
 1.5.22.1  18-Dec-2006  yamt sync with head.
 1.5.20.1  12-Jan-2007  ad Sync with head.
 1.7.24.1  01-Jan-2008  chris Sync with HEAD.
 1.7.22.1  03-Sep-2007  jmcneill Sync with HEAD.
 1.7.20.1  01-Nov-2007  rjs Sync with HEAD.
 1.7.18.1  03-Sep-2007  skrll Sync with HEAD.
 1.7.14.1  03-Oct-2007  garbled Sync with HEAD
 1.7.6.1  09-Oct-2007  ad Sync with head.
 1.8.2.1  06-Nov-2007  matt sync with HEAD
 1.9.18.1  18-May-2008  yamt sync with head.
 1.9.16.2  17-Jan-2009  mjf Sync with HEAD.
 1.9.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.10.10.1  19-Jan-2009  skrll Sync with HEAD.
 1.10.8.1  13-Dec-2008  haad Update haad-dm branch to haad-dm-base2.
 1.10.2.2  19-Aug-2009  yamt sync with head.
 1.10.2.1  04-May-2009  yamt sync with head.
 1.13.10.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.13.4.1  12-Jun-2011  rmind sync with head
 1.15.12.2  03-Dec-2017  jdolecek update from HEAD
 1.15.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.15.2.1  16-Jan-2013  yamt sync with (a bit old) head
 1.16.14.1  28-Aug-2017  skrll Sync with HEAD
 1.17.6.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.18.8.1  14-Dec-2020  thorpej Sync w/ HEAD.
 1.19.2.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.20.8.1  04-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed