Commit Graph

20 Commits

Author SHA1 Message Date
gdamore
34537908ab Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@.  Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
gdamore
2f446293b4 Activate argpio. Apparently I forgot to commit this change earlier.
Noticed while merging other com(4) changes.
2006-07-13 21:38:24 +00:00
gdamore
d266f72a20 Add AR531X GPIO support. This also registers the reset button with sysmon,
so that when it is pressed the default reset button action (currently board
reset, no change to data in flash) is taken.

While here, remove the AR531X generic config, because it just doesn't make
sense.
2006-07-07 22:03:19 +00:00
gdamore
a8d4d1e86c Add AR531X_SYSREG_WDOG_TIMER register. (Forgot to commit this earlier.) 2006-06-09 18:35:42 +00:00
gdamore
b38b3d39ad Import new HAL 0.9.17.2. Approved by sam@
New HAL includes some driver changes to register accesses.
Adds support for WLAN devices on AR5312 family devices.
Adds support 32-bit SPARC ath devices (untested).
ath enabled in SPARC64 GENERIC builds.
This HAL is tested and known to work for i386 PCI devices, SPARC64 PCI devices,
and AR5312 WiSoC devices.  MIPS PCI devices appear to be busted (possibly only
on Alchemy hardware, unconfirmed), and cardbus support is untested due to
lack of test hardware.

Please report any new problems with this import to garrett@.
2006-06-05 05:14:37 +00:00
gdamore
60a298a64e Rename flash to athflash to reflect MD nature. Approved by simon@ and dyoung@ 2006-05-25 06:37:47 +00:00
gdamore
473eede9de Add flash device support. 2006-05-25 03:19:43 +00:00
gdamore
0a959690d5 Add RBLE bit to flash enable. 2006-05-25 03:17:36 +00:00
gdamore
4ce6c587eb Move comment with caveats about this driver, and make it more prominent, as
requested by simon@.
2006-05-17 07:11:48 +00:00
gdamore
2dc15aaa84 Initial swag at flash device support. Only read/write supported, and only
read is tested now.  (I don't have a recovery option if I clobber flash on
write, so I'm loathe to test write access right now.)
2006-05-17 06:42:06 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +00:00
gdamore
9ecc473358 A zero mask means that the device should always be enabled. 2006-05-11 06:35:55 +00:00
thorpej
fb44a8574b Remove the devprop API and switch everthing over to the new proplib. Add
a new device_properties() accessor for device_t that returns the device's
property dictionary.
2006-05-05 18:04:41 +00:00
gdamore
1afeab4d6d Add unified AR531X_REVISION_WMAC. 2006-04-07 04:58:31 +00:00
gdamore
e1c0ebdcf7 Use PCI vendor ID for Atheros. 2006-04-07 04:57:05 +00:00
gdamore
0b8fc35579 Change to use new HAL layout. (Not in HEAD yet, but since this device
isn't built by default yet, it is harmless to change now.)

Pass DMA tag.  Do not register shutdown hooks if attach fails.
Use SYSREG_REVISION for ath device ids.

if_ath_arbus isn't operational yet, but it is much closer now.
2006-04-02 05:44:28 +00:00
gdamore
9f8c8a9908 Interrupt values (aa_irq) can be zero, and represent a real interrupt.
Please display them.
2006-04-02 05:41:32 +00:00
gdamore
d375c80e7f Rework evbmips clock architecture to use common clock_subr.h routines.
Additionally, do not fail if no RTC is present, as not all boards have one.

Malta now uses the common dev/ic/mc146818.c code as much as possible, reducing
local "custom" code.  These malta changes are *untested*, as I do not have
a Malta board to test with.  If someone would please test them and get back to
me, I'd appreciate it!
2006-03-28 03:43:57 +00:00
gdamore
2716ac0eba Remove a file that should never have been committed. (Stub implementation
that I abandoned.)
2006-03-21 22:50:21 +00:00
gdamore
bc3e11746b Initial import of Atheros AR531X SoC support. Currently the onboard ethernet
and serial ports are supported, and the system appears stable with an NFS
mounted root.   An earlier version of the code was reviewed by simon@, but it
has since had numerous improvements and cleanups.


At the moment, only AR5312 is known to work, but I suspect AR2313 will work
as well.  Later 2315/2316 parts are substantially different, and are not yet
supported.  Wifi and Marvell switch support found on some designs are not yet
supported.

Platforms known to include AR5312 include Senao Aries 2 (AP5054) and Netgear
WGU624.
2006-03-21 08:15:19 +00:00