Guys,
I'm trying to get a cape board with a TiWi-R2 chip from LSR working with a Beaglebone. It's not working and I have some question about timing and clocks.
I've made my updates in the kernel file board-am335xevm.c, where I'm setting the board_ref_clock to 38.4 Mhz, as follows:
struct wl12xx_platform_data am335xevm_wlan_data = {
.irq = OMAP_GPIO_IRQ(AM335XEVM_WLAN_IRQ_GPIO),
.board_ref_clock = WL12XX_REFCLOCK_38_XTAL, /* 38.4Mhz */
};
Here are some kernel structs:
/* 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_52 = 3, /* 52 MHz */
WL12XX_REFCLOCK_38_XTAL = 4, /* 38.4 MHz, XTAL */
WL12XX_REFCLOCK_26_XTAL = 5, /* 26 MHz, XTAL */
};
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;
unsigned long platform_quirks;
int bt_enable_gpio;
int wlan_enable_gpio;
};
I have a few questions.
What is board_ref_clock? Is this how I specify the frequency of the SDIO_CLK going to the TiWi chip?
What is board_tcxo_clock? I don't set this to anything? Should I?
How does WL12XX_REFCLOCK_38_XTAL differ from WL12XX_REFCLOCK_38?
And finally, what is use_eeprom? I don't set this to anything either.
Note : My code in board-am335xevm.c mimics the code that is already in this file supporting the WL1271 chip on the am335x evm board.
Thanks for your help,
Tim M
I'm trying to get a cape board with a TiWi-R2 chip from LSR working with a Beaglebone. It's not working and I have some question about timing and clocks.
I've made my updates in the kernel file board-am335xevm.c, where I'm setting the board_ref_clock to 38.4 Mhz, as follows:
struct wl12xx_platform_data am335xevm_wlan_data = {
.irq = OMAP_GPIO_IRQ(AM335XEVM_WLAN_IRQ_GPIO),
.board_ref_clock = WL12XX_REFCLOCK_38_XTAL, /* 38.4Mhz */
};
Here are some kernel structs:
/* 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_52 = 3, /* 52 MHz */
WL12XX_REFCLOCK_38_XTAL = 4, /* 38.4 MHz, XTAL */
WL12XX_REFCLOCK_26_XTAL = 5, /* 26 MHz, XTAL */
};
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;
unsigned long platform_quirks;
int bt_enable_gpio;
int wlan_enable_gpio;
};
I have a few questions.
What is board_ref_clock? Is this how I specify the frequency of the SDIO_CLK going to the TiWi chip?
What is board_tcxo_clock? I don't set this to anything? Should I?
How does WL12XX_REFCLOCK_38_XTAL differ from WL12XX_REFCLOCK_38?
And finally, what is use_eeprom? I don't set this to anything either.
Note : My code in board-am335xevm.c mimics the code that is already in this file supporting the WL1271 chip on the am335x evm board.
Thanks for your help,
Tim M