Support SH7706
This commit is contained in:
parent
3954731670
commit
8ca2e6bcac
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: adc.c,v 1.11 2009/04/05 00:22:27 uwe Exp $ */
|
||||
/* $NetBSD: adc.c,v 1.12 2009/04/30 05:20:30 nonaka Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003 Valeriy E. Ushakov
|
||||
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: adc.c,v 1.11 2009/04/05 00:22:27 uwe Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: adc.c,v 1.12 2009/04/30 05:20:30 nonaka Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -58,7 +58,8 @@ adc_match(device_t parent, cfdata_t cf, void *aux)
|
|||
|
||||
/* REMINDER: also in 7727 and 7729 */
|
||||
if ((cpu_product != CPU_PRODUCT_7709)
|
||||
&& (cpu_product != CPU_PRODUCT_7709A))
|
||||
&& (cpu_product != CPU_PRODUCT_7709A)
|
||||
&& (cpu_product != CPU_PRODUCT_7706))
|
||||
return (0);
|
||||
|
||||
if (strcmp(cf->cf_name, "adc") != 0)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cache_sh3.c,v 1.14 2008/04/28 20:23:35 martin Exp $ */
|
||||
/* $NetBSD: cache_sh3.c,v 1.15 2009/04/30 05:20:30 nonaka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cache_sh3.c,v 1.14 2008/04/28 20:23:35 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cache_sh3.c,v 1.15 2009/04/30 05:20:30 nonaka Exp $");
|
||||
|
||||
#include "opt_cache.h"
|
||||
|
||||
|
@ -77,6 +77,8 @@ sh3_cache_config()
|
|||
cache_size = 8 * 1024;
|
||||
break;
|
||||
case CPU_PRODUCT_7709A:
|
||||
/* FALLTHROUGH */
|
||||
case CPU_PRODUCT_7706:
|
||||
cache_size = 16 * 1024;
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: interrupt.c,v 1.27 2008/04/28 20:23:35 martin Exp $ */
|
||||
/* $NetBSD: interrupt.c,v 1.28 2009/04/30 05:20:30 nonaka Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.27 2008/04/28 20:23:35 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.28 2009/04/30 05:20:30 nonaka Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/malloc.h>
|
||||
|
@ -76,6 +76,7 @@ intc_init(void)
|
|||
#ifdef SH3
|
||||
case CPU_PRODUCT_7709:
|
||||
case CPU_PRODUCT_7709A:
|
||||
case CPU_PRODUCT_7706:
|
||||
_reg_write_2(SH7709_IPRC, 0);
|
||||
_reg_write_2(SH7709_IPRD, 0);
|
||||
_reg_write_2(SH7709_IPRE, 0);
|
||||
|
@ -215,7 +216,7 @@ intc_intr_enable(int evtcode)
|
|||
* int intc_intr_priority(int evtcode, int level)
|
||||
* Setup interrupt priority register.
|
||||
* SH7708, SH7708S, SH7708R, SH7750, SH7750S ... evtcode is INTEVT
|
||||
* SH7709, SH7709A ... evtcode is INTEVT2
|
||||
* SH7709, SH7709A, SH7706 ... evtcode is INTEVT2
|
||||
*/
|
||||
static void
|
||||
intc_intr_priority(int evtcode, int level)
|
||||
|
@ -391,7 +392,9 @@ intc_unknown_intr(void *arg)
|
|||
{
|
||||
|
||||
printf("INTEVT=0x%x", _reg_read_4(SH_(INTEVT)));
|
||||
if (cpu_product == CPU_PRODUCT_7709 || cpu_product == CPU_PRODUCT_7709A)
|
||||
if (cpu_product == CPU_PRODUCT_7709 ||
|
||||
cpu_product == CPU_PRODUCT_7709A ||
|
||||
cpu_product == CPU_PRODUCT_7706)
|
||||
printf(" INTEVT2=0x%x", _reg_read_4(SH7709_INTEVT2));
|
||||
printf("\n");
|
||||
|
||||
|
|
Loading…
Reference in New Issue