staging/bluetooth: Add hci_h4p driver
PATCH v7 1/1 staging/bluetooth: Add hci_h4p driver
Add hci_h4p bluetooth driver to bluetooth-next. This device is used for example on Nokia N900 cell phone.
Thanks-to: Sebastian Reichel <[email protected]>
Thanks-to: Joe Perches <[email protected]>
---
Move it to staging, rename header file as Marcel requested. Driver still needs too many changes to make direct merge easy, yet it is useful for using Maemo on N900.
I sent it to the lists, but made a mistake in Greg's address. It received no comments.
drivers/staging/Kconfig +2 -0
@@ -150,4 +150,6 @@ source "drivers/staging/dgnc/Kconfig" source "drivers/staging/dgap/Kconfig" +source "drivers/staging/nokia_h4p/Kconfig" + endif # STAGING
drivers/staging/Makefile +1 -0
@@ -67,3 +67,4 @@ obj-$(CONFIG_XILLYBUS) += xillybus/ obj-$(CONFIG_DGNC) += dgnc/ obj-$(CONFIG_DGAP) += dgap/ obj-$(CONFIG_MTD_SPINAND_MT29F) += mt29f_spinand/ +obj-$(CONFIG_BT_NOKIA_H4P) += nokia_h4p/
drivers/staging/nokia_h4p/Kconfig new file +9 -0
@@ -0,0 +1,9 @@ +config BT_NOKIA_H4P + tristate "HCI driver with H4 Nokia extensions" + depends on BT && ARCH_OMAP + help + Bluetooth HCI driver with H4 extensions. This driver provides + support for H4+ Bluetooth chip with vendor-specific H4 extensions. + + Say Y here to compile support for h4 extended devices into the kernel + or say M to compile it as module (btnokia_h4p).
drivers/staging/nokia_h4p/Makefile new file +6 -0
@@ -0,0 +1,6 @@ + +obj-$(CONFIG_BT_NOKIA_H4P) += btnokia_h4p.o +btnokia_h4p-objs := nokia_core.o nokia_fw.o nokia_uart.o nokia_fw-csr.o \ + nokia_fw-bcm.o nokia_fw-ti1273.o + +ccflags-y += -D__CHECK_ENDIAN__
drivers/staging/nokia_h4p/TODO new file +140 -0
140 lines not on this page · raw message
drivers/staging/nokia_h4p/hci_h4p.h new file +228 -0
228 lines not on this page · raw message
drivers/staging/nokia_h4p/nokia_core.c new file +1205 -0
1,205 lines not on this page · raw message
drivers/staging/nokia_h4p/nokia_fw-bcm.c new file +147 -0
147 lines not on this page · raw message
drivers/staging/nokia_h4p/nokia_fw-csr.c new file +150 -0
150 lines not on this page · raw message
drivers/staging/nokia_h4p/nokia_fw-ti1273.c new file +110 -0
110 lines not on this page · raw message
drivers/staging/nokia_h4p/nokia_fw.c new file +195 -0
195 lines not on this page · raw message
drivers/staging/nokia_h4p/nokia_uart.c new file +199 -0
199 lines not on this page · raw message
include/linux/platform_data/bt-nokia-h4p.h new file +38 -0
@@ -0,0 +1,38 @@ +/* +* This file is part of Nokia H4P bluetooth driver +* +* Copyright (C) 2010 Nokia Corporation. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* version 2 as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, but +* WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +* General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA +* 02110-1301 USA +* +*/ + + +/** +* struct hci_h4p_platform data - hci_h4p Platform data structure +*/ +struct hci_h4p_platform_data { +int chip_type; +int bt_sysclk; +unsigned int bt_wakeup_gpio; +unsigned int host_wakeup_gpio; +unsigned int reset_gpio; +int reset_gpio_shared; +unsigned int uart_irq; +phys_addr_t uart_base; +const char *uart_iclk; +const char *uart_fclk; +void (*set_pm_limits)(struct device *dev,bool set); +};
Signature · 8 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html ----- End forwarded message ----- -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html