Currently the eb7500atx doesn't have a cmos_read function, however it also
won't use the RPC600_IOMD_ID code path, so disable that code path for the eb7500atx.
This commit is contained in:
parent
637bdaa1f9
commit
190f92bccf
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: vidcaudio.c,v 1.31 2004/01/01 18:07:58 bjh21 Exp $ */
|
/* $NetBSD: vidcaudio.c,v 1.32 2004/01/03 14:53:16 chris Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995 Melvin Tang-Richardson
|
* Copyright (c) 1995 Melvin Tang-Richardson
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
|
|
||||||
#include <sys/param.h> /* proc.h */
|
#include <sys/param.h> /* proc.h */
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.31 2004/01/01 18:07:58 bjh21 Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.32 2004/01/03 14:53:16 chris Exp $");
|
||||||
|
|
||||||
#include <sys/audioio.h>
|
#include <sys/audioio.h>
|
||||||
#include <sys/conf.h> /* autoconfig functions */
|
#include <sys/conf.h> /* autoconfig functions */
|
||||||
|
@ -217,10 +217,12 @@ vidcaudio_attach(struct device *parent, struct device *self, void *aux)
|
||||||
struct vidcaudio_softc *sc = (void *)self;
|
struct vidcaudio_softc *sc = (void *)self;
|
||||||
|
|
||||||
switch (IOMD_ID) {
|
switch (IOMD_ID) {
|
||||||
|
#ifndef EB7500ATX
|
||||||
case RPC600_IOMD_ID:
|
case RPC600_IOMD_ID:
|
||||||
sc->sc_is16bit = (cmos_read(0xc4) >> 5) & 1;
|
sc->sc_is16bit = (cmos_read(0xc4) >> 5) & 1;
|
||||||
sc->sc_dma_intr = IRQ_DMASCH0;
|
sc->sc_dma_intr = IRQ_DMASCH0;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
case ARM7500_IOC_ID:
|
case ARM7500_IOC_ID:
|
||||||
case ARM7500FE_IOC_ID:
|
case ARM7500FE_IOC_ID:
|
||||||
sc->sc_is16bit = TRUE;
|
sc->sc_is16bit = TRUE;
|
||||||
|
|
Loading…
Reference in New Issue