freebsd-dev/sys/mips/atheros
Adrian Chadd 19ac3f84d0 Re-jiggle the GPIO code a little to remove the hard-coded AR71xx GPIO
config and function mask setup.

* "gpiomask" now specifies which GPIO pins to enable, for devices to bind to.
* "function_set" allows bits in the function register to be set at GPIO setup.
* "function_clear" allows bits in the function register to be cleared at
  GPIO setup.

The function_set/function_clear bits allow for individual GPIO pins to either
drive a GPIO line or an alternate function - eg USB, JTAG, etc. This allows
for things like CS1/CS2 be enabled for those boards w/ >1 SPI device connected,
or disabling JTAG for the AR7240 (which is apparently needed ..)

I've verified this on the AR71xx.
2011-12-15 01:03:49 +00:00
..
apb.c - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
apbvar.h - Add intr counters for APB interrupts 2009-11-18 22:53:05 +00:00
ar71xx_bus_space_reversed.c - Handle byte-order issue for non-word accesses to memory mapped 2009-04-19 22:56:35 +00:00
ar71xx_bus_space_reversed.h - Handle byte-order issue for non-word accesses to memory mapped 2009-04-19 22:56:35 +00:00
ar71xx_chip.c Style(9) changes. 2011-12-13 05:13:51 +00:00
ar71xx_chip.h Preparation work for supporting the AR91xx and AR724x. 2010-08-19 02:03:12 +00:00
ar71xx_cpudef.h Join chip depended methods for arge0 and arge1 into single call with unit. 2011-11-27 11:15:59 +00:00
ar71xx_ehci.c Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
ar71xx_gpio.c Re-jiggle the GPIO code a little to remove the hard-coded AR71xx GPIO 2011-12-15 01:03:49 +00:00
ar71xx_gpiovar.h Fix GPIO_MAXPINS calculation for the AR71xx, AR724x, AR913x SoC. 2011-05-06 02:45:02 +00:00
ar71xx_machdep.c Introduce a new (global, sorry!) option which controls whether 2011-11-24 07:32:52 +00:00
ar71xx_ohci.c Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
ar71xx_pci_bus_space.c - Add pci bus space that translates byte order to little endian, 2009-05-15 21:36:50 +00:00
ar71xx_pci_bus_space.h - Add pci bus space that translates byte order to little endian, 2009-05-15 21:36:50 +00:00
ar71xx_pci.c - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
ar71xx_setup.c Remove duplicate header includes 2011-06-26 10:07:48 +00:00
ar71xx_setup.h Preparation work for supporting the AR91xx and AR724x. 2010-08-19 02:03:12 +00:00
ar71xx_spi.c - Remove unnecessary register writes in activate_device 2010-01-21 00:15:59 +00:00
ar71xx_wdog.c Preparation work for supporting the AR91xx and AR724x. 2010-08-19 02:03:12 +00:00
ar71xxreg.h - Fix values of CS1_EN and CS2_EN flags 2010-09-29 23:06:41 +00:00
ar91xx_chip.c Style(9) changes. 2011-12-13 05:13:51 +00:00
ar91xx_chip.h Add initial Atheros AR91XX support. 2010-08-19 11:40:10 +00:00
ar91xxreg.h Fix GPIO_MAXPINS calculation for the AR71xx, AR724x, AR913x SoC. 2011-05-06 02:45:02 +00:00
ar724x_chip.c Style(9) changes. 2011-12-13 05:13:51 +00:00
ar724x_chip.h Add some initial AR724X chipset support. 2010-08-19 11:53:55 +00:00
ar724x_pci.c - There's no need to overwrite the default device method with the default 2011-11-22 21:28:20 +00:00
ar724xreg.h Fix GPIO_MAXPINS calculation for the AR71xx, AR724x, AR913x SoC. 2011-05-06 02:45:02 +00:00
files.ar71xx Add some initial PCIe bridge support for the AR724x chipsets. 2011-04-30 11:36:16 +00:00
if_arge.c Simplify arge_flush_ddr to use updated ar71xx_device_flush_ddr_ge(unit). 2011-11-28 13:42:59 +00:00
if_argevar.h * Add some more debugging to if_arge 2011-04-05 06:33:35 +00:00
pcf2123_rtc.c - Add driver for PCF2123, SPI real time clock/calendar 2010-01-22 22:14:12 +00:00
pcf2123reg.h - Add driver for PCF2123, SPI real time clock/calendar 2010-01-22 22:14:12 +00:00
std.ar71xx Remove the 'machine mips' from DEFAULTS. Put the proper 'machine mips 2010-11-13 22:34:12 +00:00
uart_bus_ar71xx.c Preparation work for supporting the AR91xx and AR724x. 2010-08-19 02:03:12 +00:00
uart_cpu_ar71xx.c Preparation work for supporting the AR91xx and AR724x. 2010-08-19 02:03:12 +00:00