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
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
thorpej
3ddf26777f
Use device_is_active() rather than testing dv_flags for DVF_ACTIVE
...
directly.
2006-02-20 16:50:36 +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
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
1388c544a6
Add GPIO driver, and GPIO access functions for other subsystems.
2006-02-12 20:49:34 +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
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
gdamore
0a8bdb270d
Add Au1550 PCI support (Au1500 not yet, coming shortly).
...
Closes PR port-evbmips/32087.
Reviewed by simonb@ (Also, earlier, matt@, and tsutsui@.)
2006-02-09 00:26:39 +00:00
gdamore
e67db332d1
Remove pointless (unused) dependency upon pb1000 evbmips headers.
2006-02-08 08:49:49 +00:00
chs
33d70de438
remove the COM_MPLOCK option. always include the spinlock in the softc
...
and always call the simple_* locking functions. the locking functions
are compiled out if they are not needed anyway, so a separate option
for this doesn't gain anything.
this also fixes the serial console on my alpha ES40 (which doesn't make much
sense since the com driver should still be under the big lock on alpha,
but whatever).
2005-12-27 00:46:38 +00:00
tron
e7b5db7c4a
Add basic support for Alchemy Au1550 processor (CPU and devices).
...
Patch contributed by Garrett D'Amore in PR port-evbmips/32030.
2005-12-20 21:06:42 +00:00
tron
8b0925bcb6
Make OHCI work on Au1500 systems running in big-endian mode.
...
Patch contributed by Garrett D'Amore in PR port-evbmips/31912.
2005-12-19 15:06:51 +00:00
christos
95e1ffb156
merge ktrace-lwp.
2005-12-11 12:16:03 +00:00
yamt
6bba73019a
use VM_PAGE_TO_PHYS macro.
2005-12-08 22:41:44 +00:00
kleink
aece7a90fd
Change the driver open function's conditional for overriding exclusive tty
...
use from checking the proc's uid to suser(9), and account for the use of
privileges. Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
simonb
b665007462
Include <sys/systm.h>; needed for printf() and strcmp() in the
...
non-DEBUG case.
2005-09-06 12:22:43 +00:00
thorpej
e9818f5b5e
When adding/deleting multicast addresses, only whack the address
...
filter if the interface is marked RUNNING.
Fixes kern/27678.
2004-10-30 18:08:34 +00:00
thorpej
cdac01064e
Rename the COM16650 option to COM_16650, for consistency with other
...
com variant options.
2004-05-01 19:03:59 +00:00
simonb
210a9530eb
Use UART_SIZE instead of a (redefined) COM_NPORTS.
2003-12-15 09:13:41 +00:00
simonb
edaec67118
Use the COM_AU1x00 option for Au1x00 feature support.
2003-11-08 05:12:51 +00:00
simonb
52f438d9a8
Sync with com.c, rev 1.222.
2003-11-08 05:10:11 +00:00
simonb
8899101173
Add a "COM_AU1x00" option, similar to COM_PXA2X0, for enabling Au1x00
...
features in the "com" driver.
2003-11-08 05:05:14 +00:00
simonb
4116da8027
Sync with dev/ic/com.c rev 1.221.
2003-11-07 02:08:35 +00:00
simonb
e93422fa5f
Remove "struct aubus_ohci_softc". As well as ohci_softc_t, it only had
...
a copy of the interrupt cookie which isn't used outside the attach. We
has also bogusly only told the autoconfiguration machinery that our softc
was as big as a ohci_softc_t, not a struct aubus_ohci_softc.
Also, disestablish the interrupt if OHCI initialisation fails.
2003-10-23 04:58:32 +00:00
simonb
513b330566
Tell the Alchemy Au1x00 on-chip ohci that we're in big-endian mode if
...
necessary.
2003-10-18 04:34:30 +00:00
simonb
136dd90b25
Remove unused ohci stub.
2003-10-18 04:31:37 +00:00
agc
aad01611e7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
lukem
4b2744bf35
__KERNEL_RCSID()
2003-07-15 02:43:09 +00:00
thorpej
d876aa082a
Nuke the "alchemy_info" stuff, and just use the dev_propdb to set
...
the mac-addr property for the Au1x00 on-chip MACs.
2003-07-04 01:19:58 +00:00
fvdl
d5aece61d6
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
...
and need to be examined and discussed more.
2003-06-29 22:28:00 +00:00
simonb
9e8290fbee
Use the com softc enabled/disable hooks instead of directly frobbing
...
Au1x00 registers in com_attach_subr(). Suggested by Jason Thorpe and
tested on both console and extra serial ports.
2003-06-29 13:18:24 +00:00
simonb
261417ff31
Fix 'struct lwp *' lossage.
2003-06-29 12:34:55 +00:00
he
57822a30b2
Conditionalize usage of the COM_HW_HAYESP constant on COM_HAYESP.
...
Add a dummy type argument to the local (au)comcnattach to match the change
in the prototype of the "real" comcnattach.
Reviewed and tested by simonb.
2003-06-27 07:39:34 +00:00