diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-cm-t35.c')
-rw-r--r-- | arch/arm/mach-omap2/board-cm-t35.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/arch/arm/mach-omap2/board-cm-t35.c b/arch/arm/mach-omap2/board-cm-t35.c index 35891d49c631..f0749215df11 100644 --- a/arch/arm/mach-omap2/board-cm-t35.c +++ b/arch/arm/mach-omap2/board-cm-t35.c | |||
@@ -1,8 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * board-cm-t35.c (CompuLab CM-T35 module) | 2 | * board-cm-t35.c (CompuLab CM-T35 module) |
3 | * | 3 | * |
4 | * Copyright (C) 2009 CompuLab, Ltd. | 4 | * Copyright (C) 2009-2011 CompuLab, Ltd. |
5 | * Author: Mike Rapoport <mike@compulab.co.il> | 5 | * Authors: Mike Rapoport <mike@compulab.co.il> |
6 | * Igor Grinberg <grinberg@compulab.co.il> | ||
6 | * | 7 | * |
7 | * This program is free software; you can redistribute it and/or | 8 | * This program is free software; you can redistribute it and/or |
8 | * modify it under the terms of the GNU General Public License | 9 | * modify it under the terms of the GNU General Public License |
@@ -13,11 +14,6 @@ | |||
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | * General Public License for more details. | 15 | * General Public License for more details. |
15 | * | 16 | * |
16 | * You should have received a copy of the GNU General Public License | ||
17 | * along with this program; if not, write to the Free Software | ||
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
19 | * 02110-1301 USA | ||
20 | * | ||
21 | */ | 17 | */ |
22 | 18 | ||
23 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
@@ -149,12 +145,12 @@ static struct mtd_partition cm_t35_nand_partitions[] = { | |||
149 | }, | 145 | }, |
150 | { | 146 | { |
151 | .name = "linux", | 147 | .name = "linux", |
152 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x280000 */ | 148 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x2A0000 */ |
153 | .size = 32 * NAND_BLOCK_SIZE, | 149 | .size = 32 * NAND_BLOCK_SIZE, |
154 | }, | 150 | }, |
155 | { | 151 | { |
156 | .name = "rootfs", | 152 | .name = "rootfs", |
157 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x680000 */ | 153 | .offset = MTDPART_OFS_APPEND, /* Offset = 0x6A0000 */ |
158 | .size = MTDPART_SIZ_FULL, | 154 | .size = MTDPART_SIZ_FULL, |
159 | }, | 155 | }, |
160 | }; | 156 | }; |
@@ -433,9 +429,9 @@ static int cm_t35_twl_gpio_setup(struct device *dev, unsigned gpio, | |||
433 | if (gpio_request_one(wlan_rst, GPIOF_OUT_INIT_HIGH, "WLAN RST") == 0) { | 429 | if (gpio_request_one(wlan_rst, GPIOF_OUT_INIT_HIGH, "WLAN RST") == 0) { |
434 | gpio_export(wlan_rst, 0); | 430 | gpio_export(wlan_rst, 0); |
435 | udelay(10); | 431 | udelay(10); |
436 | gpio_set_value(wlan_rst, 0); | 432 | gpio_set_value_cansleep(wlan_rst, 0); |
437 | udelay(10); | 433 | udelay(10); |
438 | gpio_set_value(wlan_rst, 1); | 434 | gpio_set_value_cansleep(wlan_rst, 1); |
439 | } else { | 435 | } else { |
440 | pr_err("CM-T35: could not obtain gpio for WiFi reset\n"); | 436 | pr_err("CM-T35: could not obtain gpio for WiFi reset\n"); |
441 | } | 437 | } |