|
@@ -0,0 +1,132 @@
|
|
|
|
+/*
|
|
|
|
+ * Hardware definitions for Voipac PXA270
|
|
|
|
+ *
|
|
|
|
+ * Copyright (C) 2010
|
|
|
|
+ * Marek Vasut <marek.vasut@gmail.com>
|
|
|
|
+ *
|
|
|
|
+ * This program is free software; you can redistribute it and/or modify
|
|
|
|
+ * it under the terms of the GNU General Public License version 2 as
|
|
|
|
+ * published by the Free Software Foundation.
|
|
|
|
+ *
|
|
|
|
+ */
|
|
|
|
+
|
|
|
|
+#include <linux/platform_device.h>
|
|
|
|
+#include <linux/delay.h>
|
|
|
|
+#include <linux/irq.h>
|
|
|
|
+#include <linux/gpio_keys.h>
|
|
|
|
+#include <linux/input.h>
|
|
|
|
+#include <linux/gpio.h>
|
|
|
|
+#include <linux/usb/gpio_vbus.h>
|
|
|
|
+#include <linux/mtd/mtd.h>
|
|
|
|
+#include <linux/mtd/partitions.h>
|
|
|
|
+#include <linux/mtd/physmap.h>
|
|
|
|
+#include <linux/mtd/onenand.h>
|
|
|
|
+#include <linux/dm9000.h>
|
|
|
|
+#include <linux/ucb1400.h>
|
|
|
|
+#include <linux/ata_platform.h>
|
|
|
|
+#include <linux/regulator/max1586.h>
|
|
|
|
+#include <linux/i2c/pxa-i2c.h>
|
|
|
|
+
|
|
|
|
+#include <asm/mach-types.h>
|
|
|
|
+#include <asm/mach/arch.h>
|
|
|
|
+
|
|
|
|
+#include <mach/pxa27x.h>
|
|
|
|
+#include <mach/audio.h>
|
|
|
|
+#include <mach/vpac270.h>
|
|
|
|
+#include <linux/platform_data/mmc-pxamci.h>
|
|
|
|
+#include <linux/platform_data/video-pxafb.h>
|
|
|
|
+#include <linux/platform_data/usb-ohci-pxa27x.h>
|
|
|
|
+#include <mach/pxa27x-udc.h>
|
|
|
|
+#include <mach/udc.h>
|
|
|
|
+#include <linux/platform_data/ata-pxa.h>
|
|
|
|
+
|
|
|
|
+#include "generic.h"
|
|
|
|
+#include "devices.h"
|
|
|
|
+
|
|
|
|
+/******************************************************************************
|
|
|
|
+ * Pin configuration
|
|
|
|
+ ******************************************************************************/
|
|
|
|
+static unsigned long vpac270_pin_config[] __initdata = {
|
|
|
|
+ /* MMC */
|
|
|
|
+ GPIO32_MMC_CLK,
|
|
|
|
+ GPIO92_MMC_DAT_0,
|
|
|
|
+ GPIO109_MMC_DAT_1,
|
|
|
|
+ GPIO110_MMC_DAT_2,
|
|
|
|
+ GPIO111_MMC_DAT_3,
|
|
|
|
+ GPIO112_MMC_CMD,
|
|
|
|
+ GPIO53_GPIO, /* SD detect */
|
|
|
|
+ GPIO52_GPIO, /* SD r/o switch */
|
|
|
|
+
|
|
|
|
+ /* GPIO KEYS */
|
|
|
|
+ GPIO1_GPIO, /* USER BTN */
|
|
|
|
+
|
|
|
|
+ /* LEDs */
|
|
|
|
+ GPIO15_GPIO, /* orange led */
|
|
|
|
+
|
|
|
|
+ /* FFUART */
|
|
|
|
+ GPIO34_FFUART_RXD,
|
|
|
|
+ GPIO39_FFUART_TXD,
|
|
|
|
+ GPIO27_FFUART_RTS,
|
|
|
|
+ GPIO100_FFUART_CTS,
|
|
|
|
+ GPIO33_FFUART_DSR,
|
|
|
|
+ GPIO40_FFUART_DTR,
|
|
|
|
+ GPIO10_FFUART_DCD,
|
|
|
|
+ GPIO38_FFUART_RI,
|
|
|
|
+
|
|
|
|
+ /* LCD */
|
|
|
|
+ GPIO58_LCD_LDD_0,
|
|
|
|
+ GPIO59_LCD_LDD_1,
|
|
|
|
+ GPIO60_LCD_LDD_2,
|
|
|
|
+ GPIO61_LCD_LDD_3,
|
|
|
|
+ GPIO62_LCD_LDD_4,
|
|
|
|
+ GPIO63_LCD_LDD_5,
|
|
|
|
+ GPIO64_LCD_LDD_6,
|
|
|
|
+ GPIO65_LCD_LDD_7,
|
|
|
|
+ GPIO66_LCD_LDD_8,
|
|
|
|
+ GPIO67_LCD_LDD_9,
|
|
|
|
+ GPIO68_LCD_LDD_10,
|
|
|
|
+ GPIO69_LCD_LDD_11,
|
|
|
|
+ GPIO70_LCD_LDD_12,
|
|
|
|
+ GPIO71_LCD_LDD_13,
|
|
|
|
+ GPIO72_LCD_LDD_14,
|
|
|
|
+ GPIO73_LCD_LDD_15,
|
|
|
|
+ GPIO86_LCD_LDD_16,
|
|
|
|
+ GPIO87_LCD_LDD_17,
|
|
|
|
+ GPIO74_LCD_FCLK,
|
|
|
|
+ GPIO75_LCD_LCLK,
|
|
|
|
+ GPIO76_LCD_PCLK,
|
|
|
|
+ GPIO77_LCD_BIAS,
|
|
|
|
+
|
|
|
|
+ /* PCMCIA */
|
|
|
|
+ GPIO48_nPOE,
|
|
|
|
+ GPIO49_nPWE,
|
|
|
|
+ GPIO50_nPIOR,
|
|
|
|
+ GPIO51_nPIOW,
|
|
|
|
+ GPIO85_nPCE_1,
|
|
|
|
+ GPIO54_nPCE_2,
|
|
|
|
+ GPIO55_nPREG,
|
|
|
|
+ GPIO57_nIOIS16,
|
|
|
|
+ GPIO56_nPWAIT,
|
|
|
|
+ GPIO104_PSKTSEL,
|
|
|
|
+ GPIO84_GPIO, /* PCMCIA CD */
|
|
|
|
+ GPIO35_GPIO, /* PCMCIA RDY */
|
|
|
|
+ GPIO107_GPIO, /* PCMCIA PPEN */
|
|
|
|
+ GPIO11_GPIO, /* PCMCIA RESET */
|
|
|
|
+ GPIO17_GPIO, /* CF CD */
|
|
|
|
+ GPIO12_GPIO, /* CF RDY */
|
|
|
|
+ GPIO16_GPIO, /* CF RESET */
|
|
|
|
+
|
|
|
|
+ /* UHC */
|
|
|
|
+ GPIO88_USBH1_PWR,
|
|
|
|
+ GPIO89_USBH1_PEN,
|
|
|
|
+ GPIO119_USBH2_PWR,
|
|
|
|
+ GPIO120_USBH2_PEN,
|
|
|
|
+
|
|
|
|
+ /* UDC */
|
|
|
|
+ GPIO41_GPIO,
|
|
|
|
+
|
|
|
|
+ /* Ethernet */
|
|
|
|
+ GPIO114_GPIO, /* IRQ */
|
|
|
|
+
|
|
|
|
+ /* AC97 */
|
|
|
|
+ GPIO28_AC97_BITCLK,
|