Commit Graph

123 Commits

Author SHA1 Message Date
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
gdamore
203fcf4dc2 Use todr_attach. 2006-03-28 16:52:35 +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
shige
ff41ffc530 Add waits after bus_space_write. 2006-03-27 19:03:50 +00:00
thorpej
376a595f60 Use device_unit().CVS: ---------------------------------------------------------------------- 2006-03-26 04:31:00 +00:00
gdamore
a86f56dbf6 Remove verbose debug message, and make sure we pass right IPL.
(Pedantic, since IPL isn't used in ICU, but better to be pedantic and right
than wrong.)
2006-03-25 07:25:56 +00:00
gdamore
9372888951 Ooops, forgot to commit some register renames. (Minor cleanups.) 2006-03-25 07:24:01 +00:00
gdamore
1ef49ecb4d Clean up some code and ensure that the ICU registers start out with sane
values.
2006-03-25 07:23:05 +00:00
gdamore
7e418f280f Remove crufty (and unused) augpio_found check. Noted by Kiyohara Takashi. 2006-03-24 18:22:42 +00:00
gdamore
5cd61be031 Add macros so that GPIOs can be accessed directly without having to use
ioctls or the GPIO framework.  Useful for some subsystems such as PCMCIA, that
may also use GPIOs.  Requested by Kiyohara Takashi.
2006-03-24 02:58:36 +00:00
martin
6f9eece7e6 Fix bus_space_read_stream*_2 accessors (pasto, proably) - this makes wi0
work on my meshcube.
2006-03-19 11:55:02 +00:00
simonb
c050474de9 Update a comment. 2006-03-16 14:23:19 +00:00
simonb
714761acde Fix prototype for au_himem_map(). 2006-03-16 14:19:04 +00:00
gdamore
08f478e5ab Fix the RTC so that the AU1550 keeps accurate time. The RTC is taken from
the TOY register, which is presumed to be seconds since Jan. 1 2000.

For now I'm assuming the trim divider is 32K, which makes 1 tick per sec.
This is true for the DBAU1550 board at least.  Other boards might need to
initialize a reasonable trim counter and establish the 32KHz oscillator.

In any case, this code is *no worse* on older systems than what was there
before.
2006-03-09 20:42:18 +00:00
shige
675a401abf Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h. 2006-03-07 16:34:16 +00:00
shige
97e07f10cd Change name of SMBus include: smbusreg.h => ausmbus_pscreg.h. 2006-03-06 23:06:17 +00:00
simonb
f27f6a0ae1 Remove commented out "ausmbus" instance now that there's a fleshed out
instance above this.
2006-03-06 21:29:23 +00:00
shige
21d185683c Remove working-debug codes.
I apologize sincerely...
2006-03-06 17:22:38 +00:00
shige
4f9e38e993 Add support for On-chip PSC SMBus protocol. 2006-03-06 17:16:45 +00:00
shige
01a719a41a Add enable/disable/suspend functions for AuXXXX PSC devices. 2006-03-06 17:15:03 +00:00
shige
f38dbbf211 Add register definitions for AuXXXX SMBus protocol. 2006-03-06 17:12:24 +00:00
shige
4990fa749e Add some definitions for register bits. 2006-03-06 17:10:46 +00:00
simonb
3e799256b7 Oops, missed the call to rnd_attach_source() in previous. 2006-03-03 05:35:26 +00:00
simonb
af18c3e851 Contribute to the random pool. No measurable difference to network
speeds when measured with nttcp.
2006-03-03 05:27:29 +00:00
shige
fc14a8a6bb Fix base-address for PSC devices. 2006-03-01 18:35:28 +00:00
gdamore
7572f01aa0 Masking for mstart was still *not* right. This time I'm fairly sure I got
it right -- OMSAL400 and MTX-1 boards should have functional PCI now.
2006-02-27 21:10:27 +00:00
gdamore
43518cac14 Incorrect pci_mbar/pci_mwmask related calculation was causing devices to be
inaccessible on some platforms.
2006-02-27 05:02:50 +00:00
shige
ac76a40e3a Add Au1XXX PSC(Programable Serial Controller) bus-type driver.
PSC supports four protocols (AC97, I2S, SPI, SMBus).
These protocol drivers will be configured on the bus.
2006-02-24 14:34:31 +00:00
gdamore
6dd67e3239 Initial commit of aupcmcia chip driver. It requires board specific logic
(coming in a the follow up commit for dbau1550 only), and is not yet complete.
It has serious problems, enough that it isn't yet usable, although the
functionality is all basically fleshed out.  It is not enabled in any
default kernels at this point, so it should be benign.  Hopefully the
bugs will soon be worked out and these caveats can be removed.
2006-02-23 03:49:28 +00:00
gdamore
f964209a3e Sprinkle wbflush() to ensure register writes are pushed thru the cpu write
buffer.
Clear and set WAKEUP properly.
2006-02-23 01:50:55 +00:00
gdamore
bd88c02e70 Add missing GPIO_BASE, plus clean up PCMCIA_BASE and add STATIC_BUS_BASE.
Fixes build error noted by martin@
2006-02-20 17:08:08 +00:00
thorpej
3ddf26777f Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
directly.
2006-02-20 16:50:36 +00:00
gdamore
24829ed7cc Back out accidental inclusion of aupcmcia. Doh! 2006-02-19 00:55:00 +00:00
gdamore
b0d6ee4527 Sprinkle wbflush(). Apparently code out there assumes implicit barriers. 2006-02-19 00:16:54 +00:00
gdamore
26ef9b6b01 Use bus_space instead of direct access.
Fix a couple of inverted bits.
Added GPIO_BASE definition to aureg.h.
2006-02-18 23:21:06 +00:00
thorpej
680d9eea68 - 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.
2006-02-18 05:04:11 +00:00
gdamore
e5312db1b0 Reenable PCI on DBAU1500. May still be useful for PIO devices. Comments
in the config are left intact, though.
Add a PMAP-driven bus_space for access to upper memory, instead of using
wired entries.
Convert aupci to use said bus_space -- no measured performance impact.
2006-02-16 01:55:17 +00:00
gdamore
547601cc8e Remove useless extra assignment. 2006-02-16 01:50:19 +00:00
simonb
34cdf29c15 If we get a master abort, reset the SPL before returning. 2006-02-13 22:57:52 +00:00
gdamore
7d9a6498cf Do not reset GPIO2 block -- causes PCI reset. 2006-02-13 04:30:47 +00:00
gdamore
2bc42dde61 GPIO support for all supported Alchemy parts. 2006-02-13 00:09:15 +00:00
gdamore
1388c544a6 Add GPIO driver, and GPIO access functions for other subsystems. 2006-02-12 20:49:34 +00:00
gdamore
ace199bd1e Reduce address space used by PCI.
Add definitions for PCMCIA addresses.
2006-02-10 20:49:14 +00:00
simonb
45da43de95 Fix bogus gcc uninitialised warnings - they're not needed for one of the
variables.
Update a comment to match changed code.
2006-02-10 02:15:37 +00:00
gdamore
d7b576a512 Fix error calling interrupt too many times (found with vmstat -e).
Replace "&&" with "&" when doing bit mask operations.  Doh!
2006-02-10 00:56:41 +00:00
gdamore
07fe2e72a2 Add au_intr_enable() and au_intr_disable() API to allow for split interrupts
(e.g. PCMCIA leaves GPIO interrupt masked and reenables them soft interrupt.)
Add checks for masked interrupts before calling the handler.
When removing last interrupt handler, mask off interrupts completely using
MASK_CLEAR and WAKEUP_CLEAR.  Tested on dbau1500.
2006-02-10 00:22:42 +00:00
gdamore
0cf592aa8a au_icu.c is in mips/ and should not depend on evbmips intr handler struct.
convert various u_int32_t to preferred uint32_t.
2006-02-09 18:03:12 +00:00
gdamore
0129c2494b Split out peripheral register defines from aureg.h. As discussed with
simonb@.
2006-02-09 03:14:31 +00:00
gdamore
24967001fb Remove if_aumac register defs, which were generally #ifdef'd out anyway. 2006-02-09 01:20:18 +00:00
gdamore
10c249bac1 Remove not-useful UART references from aureg.h, duplicates consolidated into
aucomreg.h.  First part of aureg.h cleanup requested by simonb@.
2006-02-09 01:08:40 +00:00