Template:One patch for the WLAN daughter card

From ea13526f8b8d89a1f702f8ccd357a9bb11a17dbf Mon Sep 17 00:00:00 2001 From: Luciano Coelho  Date: Thu, 23 Sep 2010 22:07:49 +0300 Subject: [PATCH] omap: beagle: add support for wl1271 on the board file

Add board configuration for the wl1271 daughter board. This patch is based on Ohad Ben-Cohen's patches for Zoom boards.

Updated to work on 2.6.39-rc1.

Cc: Ohad Ben-Cohen  Signed-off-by: Luciano Coelho  --- arch/arm/mach-omap2/board-omap3beagle.c |  71 +++++++++++++++++++++++++++++++ 1 files changed, 71 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c index 33007fd..03f2c5b 100644 --- a/arch/arm/mach-omap2/board-omap3beagle.c +++ b/arch/arm/mach-omap2/board-omap3beagle.c @@ -31,7 +31,9 @@ +#include  +#include  @@ -53,6 +55,9 @@ +#define OMAP_BEAGLE_WLAN_EN_GPIO   (139) +#define OMAP_BEAGLE_WLAN_IRQ_GPIO  (137) + /* @@ -254,12 +259,25 @@ static void __init beagle_display_init(void) +struct wl12xx_platform_data omap_beagle_wlan_data __initdata = { +	.irq = OMAP_GPIO_IRQ(OMAP_BEAGLE_WLAN_IRQ_GPIO), +	.board_ref_clock = WL12XX_REFCLOCK_38, +}; + static struct omap2_hsmmc_info mmc[] = { { 		.mmc		= 1, .caps		= MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA, .gpio_wp	= 29, }, +	{ +		.name          = "wl1271",
 * 1) include 
 * 1) include 
 * 1) include 
 * 1) include 
 * 2) include 
 * 1) include "timer-gp.h"
 * 2) include "pm.h"
 * 1) define NAND_BLOCK_SIZE		SZ_128K
 * 1) include "sdram-micron-mt46h32m32lf-6.h"