Commit Graph

143 Commits

Author SHA1 Message Date
simonb
80c8d64aa9 Fix some caddr_t rototill fallout. 2007-03-06 00:43:50 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
thorpej
09c5f9cc49 TRUE -> true, FALSE -> false 2007-02-28 04:21:51 +00:00
thorpej
712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
gdamore
bcad08160c Add Alchemy PSC SPI bus protocol driver. Not activated on any boards yet,
that requires an evbmips commit.
2006-10-02 08:00:07 +00:00
gdamore
3bd9bd2f64 Make PSC better able to support different protocols, as developed for SPI.
The main changes needed are:

	1) pass address and IRQ information from aubus (auspi uses interrupts)

	2) all Au1550 PSC protocols have the same status and register bits
	   for enable, so clean that up (clock registers could be different)

	3) improve timeout logic on enable (a fixed delay isn't good enough)

	4) make aupsc_print return QUIET, as it is annoying to see messages
	   for unconfigured protocols.  This whole mechanism should be re-
	   engineered, to either use indirect configuration or provide more
	   detailed board-driven configuration.  A comment to that effect is
	   placed in the source.

This is shown to work on DBAU1550.
2006-10-02 07:32:16 +00:00
gdamore
871bc9f71c Add register values required to configure PSC/SPI devices on Alchemy AU1550.
Fairly soon I will be committing a new SPI bus framwork and an Alchemy
Au1550 implementation of the framework.
2006-10-02 06:44:00 +00:00
gdamore
4d15d9eb84 Fix incorrect code which ignored "req", causing all interrupts to get
assigned to request 0.  With this change, ethernet interrupts are assigned
to req1, seperately from req0.  This potentially gives better performance
by shortening the list of handlers walked somewhat.
2006-10-02 02:08:36 +00:00
gdamore
7c9507a357 Get rid of annoying and useless missed frame message, no other driver
echos this "non-error" message (not even tulip.c).  Included is an
explanatory message stating that these counters should probably all be
converted to evcnt counters.
2006-09-20 05:37:22 +00:00
simonb
30151b7fc1 Fix a white-space nit. 2006-09-09 04:01:37 +00:00
gdamore
a37acb1b52 Remove unused todr_setcal/todr_getcal and all the assorted stub
implementations.
2006-09-04 23:45:30 +00:00
gdamore
b671de1aa9 Remove pointless dependency upon evbmips/clockvar.h. 2006-09-02 22:53:02 +00:00
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
drochner
a3464e1d27 use the "i2cbus" interface attribute rather than putting a string name
into the i2cbus attach args
2006-06-26 18:21:38 +00:00
kiyohara
383a50d6cd Supoort read/write word. 2006-06-25 13:32:16 +00:00
elad
8ccb6c9341 integrate kauth. 2006-05-14 21:55:09 +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
simonb
23b376683a The RTC and PCMCIA don't live at address 0 - restore the -1 address
locator from pre-split aubus.c.  Should only affect autoconfig display.
2006-04-11 11:51:31 +00:00
simonb
f7a378cb65 Fix some comment grammar nits. 2006-04-10 14:20:48 +00:00
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