aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuciano Coelho <coelho@ti.com>2011-03-10 09:42:47 -0500
committerLuciano Coelho <coelho@ti.com>2011-04-19 09:19:44 -0400
commit62c7d085e1f2a1f2b4d89560551eff18d703b3b1 (patch)
tree148246891c0c7f41e6cdb72623ad58e2ae0ed21c /include
parent34a0a2025c8bddc6505b56a58ef2e7333a4e4165 (diff)
wl12xx: add new board_tcxo_clock element to the platform data
This new value is a new type of clock setting that is used by wl128x chipsets. Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/wl12xx.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/linux/wl12xx.h b/include/linux/wl12xx.h
index bebb8efea0a6..eb8aacab8d4e 100644
--- a/include/linux/wl12xx.h
+++ b/include/linux/wl12xx.h
@@ -24,7 +24,7 @@
24#ifndef _LINUX_WL12XX_H 24#ifndef _LINUX_WL12XX_H
25#define _LINUX_WL12XX_H 25#define _LINUX_WL12XX_H
26 26
27/* The board reference clock values */ 27/* Reference clock values */
28enum { 28enum {
29 WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */ 29 WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */
30 WL12XX_REFCLOCK_26 = 1, /* 26 MHz */ 30 WL12XX_REFCLOCK_26 = 1, /* 26 MHz */
@@ -32,12 +32,25 @@ enum {
32 WL12XX_REFCLOCK_54 = 3, /* 54 MHz */ 32 WL12XX_REFCLOCK_54 = 3, /* 54 MHz */
33}; 33};
34 34
35/* TCXO clock values */
36enum {
37 WL12XX_TCXOCLOCK_19_2 = 0, /* 19.2MHz */
38 WL12XX_TCXOCLOCK_26 = 1, /* 26 MHz */
39 WL12XX_TCXOCLOCK_38_4 = 2, /* 38.4MHz */
40 WL12XX_TCXOCLOCK_52 = 3, /* 52 MHz */
41 WL12XX_TCXOCLOCK_16_368 = 4, /* 16.368 MHz */
42 WL12XX_TCXOCLOCK_32_736 = 5, /* 32.736 MHz */
43 WL12XX_TCXOCLOCK_16_8 = 6, /* 16.8 MHz */
44 WL12XX_TCXOCLOCK_33_6 = 7, /* 33.6 MHz */
45};
46
35struct wl12xx_platform_data { 47struct wl12xx_platform_data {
36 void (*set_power)(bool enable); 48 void (*set_power)(bool enable);
37 /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */ 49 /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
38 int irq; 50 int irq;
39 bool use_eeprom; 51 bool use_eeprom;
40 int board_ref_clock; 52 int board_ref_clock;
53 int board_tcxo_clock;
41}; 54};
42 55
43#ifdef CONFIG_WL12XX_PLATFORM_DATA 56#ifdef CONFIG_WL12XX_PLATFORM_DATA