]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/mach-omap2/board-n800-bt.c
ARM: OMAP: Merge board specific files from N800 tree
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-n800-bt.c
1 /*
2  * Nokia N800 platform-specific data for Bluetooth
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation
5  * Contact: Ville Tervo <ville.tervo@nokia.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * version 2 as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21
22 #include <linux/kernel.h>
23 #include <linux/platform_device.h>
24 #include <asm/arch/board.h>
25
26 static struct platform_device n800_bt_device = {
27         .name           = "hci_h4p",
28         .id             = -1,
29         .num_resources  = 0,
30 };
31
32 void __init n800_bt_init(void)
33 {
34         const struct omap_bluetooth_config *bt_config;
35
36         bt_config = (void *) omap_get_config(OMAP_TAG_NOKIA_BT,
37                                              struct omap_bluetooth_config);
38         n800_bt_device.dev.platform_data = (void *) bt_config;
39         if (platform_device_register(&n800_bt_device) < 0)
40                 BUG();
41 }
42