From dc30ba65c77d9d871eb5656f48199f4e4c71d8fa Mon Sep 17 00:00:00 2001 From: Jasper Lievisse Adriaanse Date: Mon, 14 Mar 2011 14:20:59 +0000 Subject: - replace a magic number with an address define, as checked against the omap3530 and dm3730 datasheets. ok drahn@ --- sys/arch/beagle/dev/omehci.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/beagle/dev/omehci.c b/sys/arch/beagle/dev/omehci.c index 98f81147f76..37396d367f2 100644 --- a/sys/arch/beagle/dev/omehci.c +++ b/sys/arch/beagle/dev/omehci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omehci.c,v 1.4 2010/09/07 16:21:37 deraadt Exp $ */ +/* $OpenBSD: omehci.c,v 1.5 2011/03/14 14:20:58 jasper Exp $ */ /* * Copyright (c) 2005 David Gwynne @@ -37,6 +37,8 @@ #include #include +#define EHCI_HCPCAPBASE 0x48064800 + int omehci_match(struct device *, void *, void *); void omehci_attach(struct device *, struct device *, void *); int omehci_detach(struct device *, int); @@ -58,10 +60,9 @@ struct cfattach omehci_ca = { int omehci_match(struct device *parent, void *match, void *aux) { - struct ahb_attach_args *aa = aux; + struct ahb_attach_args *aa = aux; - /* XXX - 3[45]30 */ - if (aa->aa_addr != 0x48064800) + if (aa->aa_addr != EHCI_HCPCAPBASE) return 0; return (1); -- cgit v1.2.3