Add MobilePro 880 (MC/R730A), MC/R730 support for USB/"pci".

Addresses PR/23654.
This commit is contained in:
shin 2003-12-27 07:34:21 +00:00
parent 26ccb9c6d2
commit 17435165fa
2 changed files with 12 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: GENERIC,v 1.143 2003/12/27 07:29:56 shin Exp $
# $NetBSD: GENERIC,v 1.144 2003/12/27 07:34:21 shin Exp $
#
# GENERIC machine description file
#
@ -24,7 +24,7 @@ include "arch/hpcmips/conf/std.hpcmips.tx39"
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
#ident "GENERIC-$Revision: 1.143 $"
#ident "GENERIC-$Revision: 1.144 $"
maxusers 16
@ -370,8 +370,13 @@ hpcin* at hpcioman8 evtype PCIINTR id PCIINTR_00_00_01 port 7 level 0 connect 1
options VRC4172PCI_MCR700_SUPPORT
vrc4172pci0 at vr4102ip? addr 0x0aff0cf8 size 0x8 platform NEC_MCR_700
vrc4172pci0 at vr4102ip? addr 0x0aff0cf8 size 0x8 platform NEC_MCR_700A
vrc4172pci0 at vr4102ip? addr 0x0aff0cf8 size 0x8 platform NEC_MCR_730
vrc4172pci0 at vr4102ip? addr 0x0aff0cf8 size 0x8 platform NEC_MCR_730A
pci* at vrc4172pci?
hpcioman9 at vrgiu? platform NEC_MCR_700
hpcioman9 at vrgiu? platform NEC_MCR_700A
hpcioman9 at vrgiu? platform NEC_MCR_730
hpcioman9 at vrgiu? platform NEC_MCR_730A
hpcin* at hpcioman9 evtype PCIINTR id PCIINTR_00_00_01 port 13 level 0 connect 1
#

View File

@ -1,4 +1,4 @@
/* $NetBSD: vrc4172pci.c,v 1.10 2003/07/15 02:29:35 lukem Exp $ */
/* $NetBSD: vrc4172pci.c,v 1.11 2003/12/27 07:34:21 shin Exp $ */
/*-
* Copyright (c) 2002 TAKEMURA Shin
@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vrc4172pci.c,v 1.10 2003/07/15 02:29:35 lukem Exp $");
__KERNEL_RCSID(0, "$NetBSD: vrc4172pci.c,v 1.11 2003/12/27 07:34:21 shin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -154,7 +154,9 @@ vrc4172pci_attach(struct device *parent, struct device *self, void *aux)
#ifdef VRC4172PCI_MCR700_SUPPORT
if (platid_match(&platid, &platid_mask_MACH_NEC_MCR_700) ||
platid_match(&platid, &platid_mask_MACH_NEC_MCR_700A)) {
platid_match(&platid, &platid_mask_MACH_NEC_MCR_700A) ||
platid_match(&platid, &platid_mask_MACH_NEC_MCR_730) ||
platid_match(&platid, &platid_mask_MACH_NEC_MCR_730A)) {
/* power USB controller on MC-R700 */
sc->sc_iochip = va->va_gpio_chips[VRIP_IOCHIP_VRGIU];
hpcio_portwrite(sc->sc_iochip, 45, 1);