Commit Graph

49976 Commits

Author SHA1 Message Date
matt
065a21e041 Add the RL2561 PCI 801.11b/g 2009-08-08 20:50:44 +00:00
matt
142b72f410 Add pci_attach_hook to configure the ralink device since PMON didn't. This
avoids the over kill of PCI_NETBSD_CONFIGURE.  And given the bounded nature
of the Gdium, it's not as if someone is going to add more devices.
2009-08-08 20:49:58 +00:00
matt
c113c8b98f Don't hardcode the FB address. Read it from the PCI device.
Don't tell wasops to the clear the screen since we do it ourselves.
2009-08-08 20:48:33 +00:00
skrll
25f569f275 Whitespace. 2009-08-08 14:19:43 +00:00
skrll
8a8c968f1a Use device_xname. 2009-08-08 14:18:51 +00:00
matt
0c80f83e59 Clean up a bit. No reason to use 4way on icache ops (it clears all ways). 2009-08-07 23:23:58 +00:00
macallan
6e1dc1f650 set device properties for genfb, now wsdisplay attaches successfully
TODO: replace hardcoded values with reality
2009-08-07 19:27:54 +00:00
snj
72cb0cefcf Update path to the atheros HAL. 2009-08-07 18:48:38 +00:00
matt
fab892c926 Add loongson2 specific cache ops 2009-08-07 18:39:10 +00:00
matt
ec695a81bd Mark LOONGSON as uncached for the moment. 2009-08-07 03:33:28 +00:00
matt
a26452b1dd Interrupts now work. Fix old bug with softints. 2009-08-07 01:27:14 +00:00
matt
5161730624 Fix references to mips_ipl_si_to_sr which were off by 1. 2009-08-07 01:26:13 +00:00
matt
01327baca5 attach the missed evcnt too 2009-08-07 01:14:26 +00:00
matt
60dd40f5be Get the CPU frequency from the PMON environment (which it provided to us). 2009-08-07 00:11:08 +00:00
matt
d9c091be8f Use mips3_get_cache_config for Loongson2 2009-08-06 23:16:39 +00:00
matt
5e3f78448a print ra on trap. 2009-08-06 23:07:55 +00:00
matt
2891bea040 Update Loongston. Set colors and mark it as having virtual aliases. 2009-08-06 22:56:31 +00:00
macallan
54334fe790 enable the tcx driver 2009-08-06 18:28:41 +00:00
matt
db94de7856 Cleanup a bit and remove some debugging cruft that's no longer needed now
that the early console is working.
2009-08-06 16:37:01 +00:00
matt
7cb1141cfa Change MIPS64_LOONGSON2 to MIP3_LOONGSON2 since it's a MIPS3 and not MIPS64. 2009-08-06 16:13:07 +00:00
matt
cff0705eb4 The Loongson2 secondary cache is unified. 2009-08-06 15:58:46 +00:00
matt
bb6666c5a7 Make cidnames const 2009-08-06 15:58:12 +00:00
msaitoh
f02cd49d11 Add disassemble code for DMT, DMF, MTH and MFH. 2009-08-06 04:34:50 +00:00
matt
144bdbe663 Add Loongson2 support. 2009-08-06 01:27:47 +00:00
matt
74c9ebf370 GDIUM support. It compiles but doesn't yet work. It dies quickly in
mips_vector_init.
2009-08-06 00:50:25 +00:00
matt
fcbae537a4 Add ICT Loongson2 identification. 2009-08-06 00:46:34 +00:00
matt
48f76ccf28 LOONGSON2 is a MIPS III 2009-08-06 00:42:58 +00:00
matt
d9fa6bc288 Use bool instead of int. 2009-08-06 00:42:22 +00:00
jym
bba2c41d59 Add Intel SpeedStep and AMD PowerNow! support in Xen dom0. MSR operations
are now compiled in by default.

Note that MSR support in Xen depends on its version. rdmsr() should always
succeed, but wrmsr() to certain registers can end in a NOOP. In that case,
the error will be logged (see xm dmesg).

Setting CPU frequency (SpeedStep) requires Xen 3.3 with the option
cpufreq="dom0-kernel" passed down to hypervisor during boot.

Compiled and tested for SpeedStep under i386 for XEN3_DOM0 and XEN3PAE_DOM0
by jym@. amd64 was tested by Joel Carnat.

See also http://mail-index.netbsd.org/port-xen/2009/08/02/msg005213.html .

Commit requested by bouyer@.
2009-08-05 20:15:36 +00:00
kiyohara
56ab546296 Fix GPIO configurations.
http://mail-index.netbsd.org/port-arm/2009/07/08/msg000807.html
    3. I misstake sinse 2007/08/21.
	 :

Details:
  Remove hwuart_gpioconf.  PXA270 not have HWUART.
  Add ohci_gpioconf.  However all selectable.
  Fix pSKTSEL of pcic is selectable.
  Fix MMDAT<1-3> of mci is optional.
2009-08-04 12:11:33 +00:00
dsl
42c6f77e6e Add #if NPCI > 1 around call to mp_pci_childdetached()
Fixes rst of PR/41301
2009-08-04 06:55:26 +00:00
dsl
0c0bfe778a Only define x86_genfb_set_mapreg() and found_console when NPCI > 0
Fixes PR/41451
2009-08-03 20:15:14 +00:00
he
0e35dff596 Move the include of <sys/gpio.h> up above <dev/gpio/gpiovar.h>, so that
GPIOMAXNAME gets defined before being used.  Also remove the > 0 test on
NGPIO around the include of <sys/gpio.h>.
2009-08-03 06:57:09 +00:00
matt
2355613b3f Use a common version of cpu.c (mmm removing identical code). 2009-08-02 17:12:28 +00:00
uch
9337b12fa8 fix comment 2009-08-02 12:04:28 +00:00
gavan
c7de5c4b16 * Increase symtab space so the kernel builds again.
* Add in bits and pieces to get a genfb console going.
2009-08-02 11:36:39 +00:00
gavan
23869c7874 On NetBSD/iyonix:
* Disable interrupts in otherwise-configure Nvidia graphics card
* Support genfb console, based on information supplied by the bootloader
* Support kernel args
* Support ways to choose which console to use
* Clarify argument parsing a little.

(from me and abs)
2009-08-02 11:32:05 +00:00
gavan
01cd53c5df Don't reset devices if booting an Iyonix. It's fine for acorn32 devices
because we know how to configure all of the hardware, but as we don't know
how to configure the Iyonix graphics card we must rely on RISC OS to do
it for us.

While we're here, space separate the kernel arguments. It's a bit hard
parsing them in the kernel when they're all run together.
2009-08-02 11:20:37 +00:00
nonaka
4a585bfa17 fix build failure. 2009-08-02 00:06:44 +00:00
matt
c08351c1cd Add MIPS64_LOONGSON2F since it needs some special help in various places. 2009-08-01 22:59:52 +00:00
matt
e7b97f7d32 Extract bonito support from sys/arch/algor/conf/files.algor so it can be
used by multiple ports.
2009-08-01 22:58:36 +00:00
matt
ab4ed2bee9 Add Loongson2 chip ids 2009-08-01 22:50:41 +00:00
kiyohara
9cac6fe270 Support run-time configuration for PXA25x and PXA27x. 2009-08-01 10:33:58 +00:00
tsutsui
aea4cb8993 Micro optimization around ncr53c9x register accesses. 2009-08-01 08:20:36 +00:00
tsutsui
6e74d97975 Read AD_CFG_SWITCH via volatile pointer so that
the default density is detected correctly.
2009-07-31 15:55:10 +00:00
cegger
bd216fbaba from x86/x86/cpu.c:
- use atomic operations to set flags
- Align struct cpu_info to 64b.
2009-07-30 13:56:57 +00:00
nisimura
8a349980ce - fix EUMB com console attach case.
- #ifdef out pci_conf_interrupt() for PCI_NETBSD_CONFIGURE option.
Requested and tested by kiyohara.
2009-07-30 05:57:27 +00:00
rmind
cbc808fd9c Reduce the difference between i386 and amd64 trap handler.
No functional changes intended.
2009-07-29 18:47:15 +00:00
rmind
585d607d92 Fix few more l_pflag and LP_OWEUPC confusions. 2009-07-29 17:45:39 +00:00
rmind
52b85c5fb7 Fix KASSERT(1); 2009-07-29 17:16:56 +00:00