From 729a995971b16881ce84094346831442fe210c83 Mon Sep 17 00:00:00 2001 From: rapha Date: Wed, 22 May 2013 17:44:48 +0000 Subject: Add am335x as an omap device. ok patrick@ --- sys/arch/beagle/dev/omap.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'sys/arch/beagle/dev/omap.c') diff --git a/sys/arch/beagle/dev/omap.c b/sys/arch/beagle/dev/omap.c index 25e90bd77ca..5ed108c7e5a 100644 --- a/sys/arch/beagle/dev/omap.c +++ b/sys/arch/beagle/dev/omap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: omap.c,v 1.6 2013/05/09 15:16:53 patrick Exp $ */ +/* $OpenBSD: omap.c,v 1.7 2013/05/22 17:44:47 rapha Exp $ */ /* * Copyright (c) 2005,2008 Dale Rahn * @@ -66,6 +66,17 @@ struct board_dev beagleboard_devs[] = { { NULL, 0 } }; +struct board_dev beaglebone_devs[] = { + { "prcm", 0 }, + { "intc", 0 }, + { "dmtimer", 0 }, + { "dmtimer", 1 }, + { "omdog", 0 }, + { "ommmc", 0 }, /* HSMMC0 */ + { "com", 0 }, /* UART0 */ + { NULL, 0 } +}; + struct board_dev overo_devs[] = { { "prcm", 0 }, { "intc", 0 }, @@ -134,6 +145,11 @@ omap_attach(struct device *parent, struct device *self, void *aux) omap3_init(); board_devs = beagleboard_devs; break; + case BOARD_ID_AM335X_BEAGLEBONE: + printf(": BeagleBone\n"); + am335x_init(); + board_devs = beaglebone_devs; + break; case BOARD_ID_OMAP3_OVERO: printf(": Gumstix Overo\n"); omap3_init(); -- cgit v1.2.3