summaryrefslogtreecommitdiffstats
path: root/sys/arch/beagle/dev/intc.c
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2011-10-21 22:55:01 +0000
committerdrahn <drahn@openbsd.org>2011-10-21 22:55:01 +0000
commitf23bcbb57694e10b38ef5afee1ab344373b23103 (patch)
treed24a5db6b8964b4126af8ac86977dcc825a3c92a /sys/arch/beagle/dev/intc.c
parentSet mp_nbusses such that the newly added bounds checks on i386 and amd64 (diff)
downloadwireguard-openbsd-f23bcbb57694e10b38ef5afee1ab344373b23103.tar.xz
wireguard-openbsd-f23bcbb57694e10b38ef5afee1ab344373b23103.zip
Pile of diffs to improve beagle/panda status. fetching u-boot parameters
out of the register input. (with a beagle_start.S fix from uwe@) Devices now detect device_id from u-boot and decide to enable/disable themselves in the device match routine. ok uwe@
Diffstat (limited to 'sys/arch/beagle/dev/intc.c')
-rw-r--r--sys/arch/beagle/dev/intc.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/beagle/dev/intc.c b/sys/arch/beagle/dev/intc.c
index 8506f3853fb..09786443695 100644
--- a/sys/arch/beagle/dev/intc.c
+++ b/sys/arch/beagle/dev/intc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intc.c,v 1.6 2011/09/21 10:09:07 miod Exp $ */
+/* $OpenBSD: intc.c,v 1.7 2011/10/21 22:55:01 drahn Exp $ */
/*
* Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org>
*
@@ -140,6 +140,14 @@ int intc_attached = 0;
int
intc_match(struct device *parent, void *v, void *aux)
{
+ switch (board_id) {
+ case BOARD_ID_OMAP3_BEAGLE:
+ break; /* continue trying */
+ case BOARD_ID_OMAP4_PANDA:
+ return 0; /* not ported yet ??? - different */
+ default:
+ return 0; /* unknown */
+ }
if (intc_attached != 0)
return 0;