Skip to content

Commit

Permalink
wl12xx: add new board_tcxo_clock element to the platform data
Browse files Browse the repository at this point in the history
This new value is a new type of clock setting that is used by wl128x
chipsets.

Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Luciano Coelho committed Apr 19, 2011
1 parent 34a0a20 commit 62c7d08
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion include/linux/wl12xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,33 @@
#ifndef _LINUX_WL12XX_H
#define _LINUX_WL12XX_H

/* The board reference clock values */
/* Reference clock values */
enum {
WL12XX_REFCLOCK_19 = 0, /* 19.2 MHz */
WL12XX_REFCLOCK_26 = 1, /* 26 MHz */
WL12XX_REFCLOCK_38 = 2, /* 38.4 MHz */
WL12XX_REFCLOCK_54 = 3, /* 54 MHz */
};

/* TCXO clock values */
enum {
WL12XX_TCXOCLOCK_19_2 = 0, /* 19.2MHz */
WL12XX_TCXOCLOCK_26 = 1, /* 26 MHz */
WL12XX_TCXOCLOCK_38_4 = 2, /* 38.4MHz */
WL12XX_TCXOCLOCK_52 = 3, /* 52 MHz */
WL12XX_TCXOCLOCK_16_368 = 4, /* 16.368 MHz */
WL12XX_TCXOCLOCK_32_736 = 5, /* 32.736 MHz */
WL12XX_TCXOCLOCK_16_8 = 6, /* 16.8 MHz */
WL12XX_TCXOCLOCK_33_6 = 7, /* 33.6 MHz */
};

struct wl12xx_platform_data {
void (*set_power)(bool enable);
/* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
int irq;
bool use_eeprom;
int board_ref_clock;
int board_tcxo_clock;
};

#ifdef CONFIG_WL12XX_PLATFORM_DATA
Expand Down

0 comments on commit 62c7d08

Please sign in to comment.