From d79c17dfa54a096b7c197bdf6555ff5a0b6b4690 Mon Sep 17 00:00:00 2001 From: Grzegorz Sygieda Date: Fri, 2 Sep 2011 14:23:10 +0530 Subject: cg2900: bluetooth support for 5500 This patch enables cg2900 functionality in 5500 boards. All tests have been made on B5500 (big board BBM R1A) with new CG2900 hardware. NOTE: For proper work new B5500 FPGA firmware is needed (v536). Depends-On: I7820139cc44e347c5b113b1beb665c2489bf74c2 ST-Ericsson Linux next: NA ST-Ericsson ID: 281802 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I3df0bc1e41e60ce6abf4be9cb18465073ba8d738 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/30348 Reviewed-by: Par-Gunnar HJALMDAHL Reviewed-by: Virupax SADASHIVPETIMATH Tested-by: Virupax SADASHIVPETIMATH --- drivers/staging/cg2900/devices-cg2900.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'drivers/staging/cg2900/devices-cg2900.h') diff --git a/drivers/staging/cg2900/devices-cg2900.h b/drivers/staging/cg2900/devices-cg2900.h index e365a4fae1e..49023c0c45b 100644 --- a/drivers/staging/cg2900/devices-cg2900.h +++ b/drivers/staging/cg2900/devices-cg2900.h @@ -9,6 +9,29 @@ #define __DEVICES_CG2900_H #include "cg2900.h" +#include + +#define CHIP_ENABLE_PDB_LOW_TIMEOUT 100 /* ms */ + +struct dcg2900_info { + int gbf_gpio; + int pmuen_gpio; + int bt_gpio; + bool sleep_gpio_set; + u8 gpio_0_7_pull_up; + u8 gpio_8_15_pull_up; + u8 gpio_16_20_pull_up; + u8 gpio_0_7_pull_down; + u8 gpio_8_15_pull_down; + u8 gpio_16_20_pull_down; + struct clk *lpoclk; + struct regulator *regulator_wlan; +}; + +extern void dcg2900_enable_chip(struct cg2900_chip_dev *dev); +extern void dcg2900_disable_chip(struct cg2900_chip_dev *dev); +extern int dcg2900_setup(struct cg2900_chip_dev *dev, + struct dcg2900_info *info); /** * enum cg2900_gpio_pull_sleep - GPIO pull setting in sleep. -- cgit v1.2.3