|
@@ -0,0 +1,83 @@
|
|
|
+/*
|
|
|
+ * CompuLab CM-T35/CM-T3730 modules support
|
|
|
+ *
|
|
|
+ * Copyright (C) 2009-2011 CompuLab, Ltd.
|
|
|
+ * Authors: Mike Rapoport <mike@compulab.co.il>
|
|
|
+ * Igor Grinberg <grinberg@compulab.co.il>
|
|
|
+ *
|
|
|
+ * 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.
|
|
|
+ *
|
|
|
+ * This program is distributed in the hope that it will be useful, but
|
|
|
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
+ * General Public License for more details.
|
|
|
+ *
|
|
|
+ */
|
|
|
+
|
|
|
+#include <linux/kernel.h>
|
|
|
+#include <linux/init.h>
|
|
|
+#include <linux/platform_device.h>
|
|
|
+#include <linux/input.h>
|
|
|
+#include <linux/input/matrix_keypad.h>
|
|
|
+#include <linux/delay.h>
|
|
|
+#include <linux/gpio.h>
|
|
|
+#include <linux/platform_data/gpio-omap.h>
|
|
|
+
|
|
|
+#include <linux/i2c/at24.h>
|
|
|
+#include <linux/i2c/twl.h>
|
|
|
+#include <linux/regulator/fixed.h>
|
|
|
+#include <linux/regulator/machine.h>
|
|
|
+#include <linux/mmc/host.h>
|
|
|
+
|
|
|
+#include <linux/spi/spi.h>
|
|
|
+#include <linux/spi/tdo24m.h>
|
|
|
+
|
|
|
+#include <asm/mach-types.h>
|
|
|
+#include <asm/mach/arch.h>
|
|
|
+#include <asm/mach/map.h>
|
|
|
+
|
|
|
+#include <linux/platform_data/mtd-nand-omap2.h>
|
|
|
+#include <video/omapdss.h>
|
|
|
+#include <video/omap-panel-generic-dpi.h>
|
|
|
+#include <video/omap-panel-tfp410.h>
|
|
|
+#include <linux/platform_data/spi-omap2-mcspi.h>
|
|
|
+
|
|
|
+#include "common.h"
|
|
|
+#include "mux.h"
|
|
|
+#include "sdram-micron-mt46h32m32lf-6.h"
|
|
|
+#include "hsmmc.h"
|
|
|
+#include "common-board-devices.h"
|
|
|
+#include "gpmc.h"
|
|
|
+#include "gpmc-nand.h"
|
|
|
+
|
|
|
+#define CM_T35_GPIO_PENDOWN 57
|
|
|
+#define SB_T35_USB_HUB_RESET_GPIO 167
|
|
|
+
|
|
|
+#define CM_T35_SMSC911X_CS 5
|
|
|
+#define CM_T35_SMSC911X_GPIO 163
|
|
|
+#define SB_T35_SMSC911X_CS 4
|
|
|
+#define SB_T35_SMSC911X_GPIO 65
|
|
|
+
|
|
|
+#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
|
|
|
+#include <linux/smsc911x.h>
|
|
|
+#include "gpmc-smsc911x.h"
|
|
|
+
|
|
|
+static struct omap_smsc911x_platform_data cm_t35_smsc911x_cfg = {
|
|
|
+ .id = 0,
|
|
|
+ .cs = CM_T35_SMSC911X_CS,
|
|
|
+ .gpio_irq = CM_T35_SMSC911X_GPIO,
|
|
|
+ .gpio_reset = -EINVAL,
|
|
|
+ .flags = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS,
|
|
|
+};
|
|
|
+
|
|
|
+static struct omap_smsc911x_platform_data sb_t35_smsc911x_cfg = {
|
|
|
+ .id = 1,
|
|
|
+ .cs = SB_T35_SMSC911X_CS,
|
|
|
+ .gpio_irq = SB_T35_SMSC911X_GPIO,
|
|
|
+ .gpio_reset = -EINVAL,
|
|
|
+ .flags = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS,
|
|
|
+};
|
|
|
+
|
|
|
+static struct regulator_consumer_supply cm_t35_smsc911x_supplies[] = {
|