aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2009-03-23 21:07:37 -0400
committerTony Lindgren <tony@atomide.com>2009-03-23 21:07:37 -0400
commitec7558a62d2e28ec607fdfab1cd39b475d929ce5 (patch)
tree242762b2b47a9d07d127bbb154650b022662d7db
parent40662d77311d8de3a26c33f2fd5a2d4d810a4c8a (diff)
ARM: OMAP: No need to include board-ldp.h from hardware.h
Move the defines to the associated board file and remove the now unnecessary header file. Also rename OMAP34XX_ETHR_START to LDP_ETHR_START. Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r--arch/arm/mach-omap2/board-ldp.c10
-rw-r--r--arch/arm/plat-omap/include/mach/board-ldp.h39
-rw-r--r--arch/arm/plat-omap/include/mach/hardware.h4
3 files changed, 6 insertions, 47 deletions
diff --git a/arch/arm/mach-omap2/board-ldp.c b/arch/arm/mach-omap2/board-ldp.c
index 6031e179926b..f035d7836e55 100644
--- a/arch/arm/mach-omap2/board-ldp.c
+++ b/arch/arm/mach-omap2/board-ldp.c
@@ -28,7 +28,6 @@
28#include <asm/mach/arch.h> 28#include <asm/mach/arch.h>
29#include <asm/mach/map.h> 29#include <asm/mach/map.h>
30 30
31#include <mach/board-ldp.h>
32#include <mach/mcspi.h> 31#include <mach/mcspi.h>
33#include <mach/gpio.h> 32#include <mach/gpio.h>
34#include <mach/board.h> 33#include <mach/board.h>
@@ -41,12 +40,15 @@
41 40
42#include "mmc-twl4030.h" 41#include "mmc-twl4030.h"
43 42
44#define SDP3430_SMC91X_CS 3 43#define LDP_SMC911X_CS 1
44#define LDP_SMC911X_GPIO 152
45#define DEBUG_BASE 0x08000000
46#define LDP_ETHR_START DEBUG_BASE
45 47
46static struct resource ldp_smc911x_resources[] = { 48static struct resource ldp_smc911x_resources[] = {
47 [0] = { 49 [0] = {
48 .start = OMAP34XX_ETHR_START, 50 .start = LDP_ETHR_START,
49 .end = OMAP34XX_ETHR_START + SZ_4K, 51 .end = LDP_ETHR_START + SZ_4K,
50 .flags = IORESOURCE_MEM, 52 .flags = IORESOURCE_MEM,
51 }, 53 },
52 [1] = { 54 [1] = {
diff --git a/arch/arm/plat-omap/include/mach/board-ldp.h b/arch/arm/plat-omap/include/mach/board-ldp.h
deleted file mode 100644
index f23399665212..000000000000
--- a/arch/arm/plat-omap/include/mach/board-ldp.h
+++ /dev/null
@@ -1,39 +0,0 @@
1/*
2 * arch/arm/plat-omap/include/mach/board-ldp.h
3 *
4 * Hardware definitions for TI OMAP3 LDP.
5 *
6 * Copyright (C) 2008 Texas Instruments Inc.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2 of the License, or (at your
11 * option) any later version.
12 *
13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
14 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
15 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
16 * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
19 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * You should have received a copy of the GNU General Public License along
25 * with this program; if not, write to the Free Software Foundation, Inc.,
26 * 675 Mass Ave, Cambridge, MA 02139, USA.
27 */
28
29#ifndef __ASM_ARCH_OMAP_LDP_H
30#define __ASM_ARCH_OMAP_LDP_H
31
32extern void twl4030_bci_battery_init(void);
33
34#define TWL4030_IRQNUM INT_34XX_SYS_NIRQ
35#define LDP_SMC911X_CS 1
36#define LDP_SMC911X_GPIO 152
37#define DEBUG_BASE 0x08000000
38#define OMAP34XX_ETHR_START DEBUG_BASE
39#endif /* __ASM_ARCH_OMAP_LDP_H */
diff --git a/arch/arm/plat-omap/include/mach/hardware.h b/arch/arm/plat-omap/include/mach/hardware.h
index 85f02b6a8025..bba9498253e4 100644
--- a/arch/arm/plat-omap/include/mach/hardware.h
+++ b/arch/arm/plat-omap/include/mach/hardware.h
@@ -298,10 +298,6 @@
298#include "board-omap3beagle.h" 298#include "board-omap3beagle.h"
299#endif 299#endif
300 300
301#ifdef CONFIG_MACH_OMAP_LDP
302#include "board-ldp.h"
303#endif
304
305#ifdef CONFIG_MACH_VOICEBLUE 301#ifdef CONFIG_MACH_VOICEBLUE
306#include "board-voiceblue.h" 302#include "board-voiceblue.h"
307#endif 303#endif