]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: No need to include board-apollon.h from hardware.h
authorTony Lindgren <tony@atomide.com>
Tue, 31 Mar 2009 21:20:33 +0000 (14:20 -0700)
committerTony Lindgren <tony@atomide.com>
Tue, 31 Mar 2009 21:20:33 +0000 (14:20 -0700)
Move the defines to the associated board file and remove
the now unnecessary header file.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-apollon-keys.c
arch/arm/mach-omap2/board-apollon.c
arch/arm/plat-omap/include/mach/board-apollon.h [deleted file]
arch/arm/plat-omap/include/mach/hardware.h

index e3f74e62a78873bddf286762e9d8df138683ab01..10329c0ae6ad5bad3c5ded7f6ffdeb0f99a3e38f 100644 (file)
@@ -25,6 +25,8 @@
 #define SW_RIGHT_GPIO96                96
 #define SW_ESC_GPIO97          97
 
+extern int apollon_plus(void);
+
 static struct gpio_keys_button apollon_gpio_keys_buttons[] = {
        [0] = {
                .code           = KEY_ENTER,
index 727d282e431562bdcdd9561decbca1eb9d5b53e8..936cb49bdd0c0156b78476a8977c4824284761e8 100644 (file)
 #define APOLLON_FLASH_CS       0
 #define APOLLON_ETH_CS         1
 #define APOLLON_NOR_CS         3
+#define APOLLON_ETHR_GPIO_IRQ  74
 
 #define APOLLON_ONENAND_CS2_ADDRESS    (0x00000e40 | (0x10000000 >> 24))
 #define APOLLON_EXT_CS3_ADDRESS                (0x00000c40 | (0x18000000 >> 24))
 
+extern apollon_mmc_init(void);
+
+int apollon_plus(void)
+{
+       /* The apollon plus has IDCODE revision 5 */
+       return omap_rev() & 0xc0;
+}
+
 static struct mtd_partition apollon_partitions[] = {
        {
                .name           = "X-Loader + U-Boot",
diff --git a/arch/arm/plat-omap/include/mach/board-apollon.h b/arch/arm/plat-omap/include/mach/board-apollon.h
deleted file mode 100644 (file)
index 61bd5e8..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * arch/arm/plat-omap/include/mach/board-apollon.h
- *
- * Hardware definitions for Samsung OMAP24XX Apollon board.
- *
- * Initial creation by Kyungmin Park <kyungmin.park@samsung.com>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the
- * Free Software Foundation; either version 2 of the License, or (at your
- * option) any later version.
- *
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
- * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
- * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
- * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-#ifndef __ASM_ARCH_OMAP_APOLLON_H
-#define __ASM_ARCH_OMAP_APOLLON_H
-
-#include <mach/cpu.h>
-
-extern void apollon_mmc_init(void);
-
-static inline int apollon_plus(void)
-{
-       /* The apollon plus has IDCODE revision 5 */
-       return omap_rev() & 0xc0;
-}
-
-/* Placeholder for APOLLON specific defines */
-#define APOLLON_ETHR_GPIO_IRQ          74
-
-#endif /*  __ASM_ARCH_OMAP_APOLLON_H */
-
index 347f6cff9e0badb9b1b0fc8ab9be21d22952aca2..3f12302faf7668eb36c4fdcb764beaa10108ada3 100644 (file)
 #include "board-ldp.h"
 #endif
 
-#ifdef CONFIG_MACH_OMAP_APOLLON
-#include "board-apollon.h"
-#endif
-
 #ifdef CONFIG_MACH_VOICEBLUE
 #include "board-voiceblue.h"
 #endif