diff options
| author | 2011-10-21 22:55:01 +0000 | |
|---|---|---|
| committer | 2011-10-21 22:55:01 +0000 | |
| commit | f23bcbb57694e10b38ef5afee1ab344373b23103 (patch) | |
| tree | d24a5db6b8964b4126af8ac86977dcc825a3c92a /sys/arch/beagle/dev/gptimer.c | |
| parent | Set mp_nbusses such that the newly added bounds checks on i386 and amd64 (diff) | |
| download | wireguard-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/gptimer.c')
| -rw-r--r-- | sys/arch/beagle/dev/gptimer.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/arch/beagle/dev/gptimer.c b/sys/arch/beagle/dev/gptimer.c index 8e5ae8c26e1..6c97cb593dd 100644 --- a/sys/arch/beagle/dev/gptimer.c +++ b/sys/arch/beagle/dev/gptimer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gptimer.c,v 1.5 2011/04/07 15:30:15 miod Exp $ */ +/* $OpenBSD: gptimer.c,v 1.6 2011/10/21 22:55:01 drahn Exp $ */ /* * Copyright (c) 2007,2009 Dale Rahn <drahn@openbsd.org> * @@ -141,6 +141,14 @@ struct cfdriver gptimer_cd = { int gptimer_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 */ + } return (1); } |
