[APPLIED] [PATCH 1/2] ARM: OMAP3: add CompuLab CM-T35 module

2009-10-22 Thread Tony Lindgren
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: for-next

Initial commit ID (Likely to change): 5aa0983aac0ad56ee62e0ed850e36aac3c2bfda8

PatchWorks
http://patchwork.kernel.org/patch/55052/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=5aa0983aac0ad56ee62e0ed850e36aac3c2bfda8


--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/2] ARM: OMAP3: add CompuLab CM-T35 module

2009-10-21 Thread Mike Rapoport
This patch adds basic support for CompuLab CM-T35 module.

Signed-off-by: Mike Rapoport m...@compulab.co.il
---
 arch/arm/mach-omap2/Kconfig|4 +
 arch/arm/mach-omap2/Makefile   |2 +
 arch/arm/mach-omap2/board-cm-t35.c |  458 
 3 files changed, 464 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-omap2/board-cm-t35.c

diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 75b1c7e..f80439e 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -85,6 +85,10 @@ config MACH_OMAP_ZOOM2
bool OMAP3 Zoom2 board
depends on ARCH_OMAP3  ARCH_OMAP34XX
 
+config MACH_CM_T35
+   bool CompuLab CM-T35 module
+   depends on ARCH_OMAP3  ARCH_OMAP34XX
+
 config MACH_OMAP_4430SDP
bool OMAP 4430 SDP board
depends on ARCH_OMAP4
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 8cb1677..7468505 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -74,6 +74,8 @@ obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \
 obj-$(CONFIG_MACH_OMAP_ZOOM2)  += board-zoom2.o \
   mmc-twl4030.o \
   board-zoom-debugboard.o
+obj-$(CONFIG_MACH_CM_T35)  += board-cm-t35.o \
+  mmc-twl4030.o
 
 obj-$(CONFIG_MACH_OMAP_4430SDP)+= board-4430sdp.o
 
diff --git a/arch/arm/mach-omap2/board-cm-t35.c 
b/arch/arm/mach-omap2/board-cm-t35.c
new file mode 100644
index 000..ec9cf47
--- /dev/null
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -0,0 +1,458 @@
+/*
+ * board-cm-t35.c (CompuLab CM-T35 module)
+ *
+ * Copyright (C) 2009 CompuLab, Ltd.
+ * Author: Mike Rapoport m...@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.
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include linux/kernel.h
+#include linux/init.h
+#include linux/platform_device.h
+#include linux/input.h
+#include linux/delay.h
+#include linux/gpio.h
+
+#include linux/i2c/at24.h
+#include linux/i2c/twl4030.h
+#include linux/regulator/machine.h
+
+#include asm/mach-types.h
+#include asm/mach/arch.h
+#include asm/mach/map.h
+
+#include mach/board.h
+#include mach/common.h
+#include mach/hardware.h
+#include mach/mux.h
+#include mach/nand.h
+#include mach/keypad.h
+#include mach/gpmc.h
+#include mach/usb.h
+
+#include sdram-micron-mt46h32m32lf-6.h
+#include mmc-twl4030.h
+
+#define CM_T35_GPIO_PENDOWN57
+
+#define CM_T35_SMSC911X_CS 5
+#define CM_T35_SMSC911X_GPIO   163
+
+#define NAND_BLOCK_SIZESZ_128K
+#define GPMC_CS0_BASE  0x60
+#define GPMC_CS0_BASE_ADDR (OMAP34XX_GPMC_VIRT + GPMC_CS0_BASE)
+
+#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
+#include linux/smsc911x.h
+
+static struct resource cm_t35_smsc911x_resources[] = {
+   {
+   .name   = smsc911x-memory,
+   .flags  = IORESOURCE_MEM,
+   },
+   {
+   .start  = OMAP_GPIO_IRQ(CM_T35_SMSC911X_GPIO),
+   .end= OMAP_GPIO_IRQ(CM_T35_SMSC911X_GPIO),
+   .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
+   },
+};
+
+static struct smsc911x_platform_config cm_t35_smsc911x_config = {
+   .irq_polarity   = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
+   .irq_type   = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
+   .flags  = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS,
+   .phy_interface  = PHY_INTERFACE_MODE_MII,
+};
+
+static struct platform_device cm_t35_smsc911x_device = {
+   .name   = smsc911x,
+   .id = 0,
+   .num_resources  = ARRAY_SIZE(cm_t35_smsc911x_resources),
+   .resource   = cm_t35_smsc911x_resources,
+   .dev= {
+   .platform_data = cm_t35_smsc911x_config,
+   },
+};
+
+static void __init cm_t35_init_smsc911x(void)
+{
+   unsigned long cs_mem_base;
+
+   if (gpmc_cs_request(CM_T35_SMSC911X_CS, SZ_16M, cs_mem_base)  0) {
+   pr_err(CM-T35: Failed request for GPMC mem for smsc911x\n);
+   return;
+   }
+
+   cm_t35_smsc911x_resources[0].start = cs_mem_base + 0x0;
+   cm_t35_smsc911x_resources[0].end   = cs_mem_base + 0xff;
+
+   if ((gpio_request(CM_T35_SMSC911X_GPIO, CM ETH IRQ) == 0) 
+   

Re: [PATCH 1/2] ARM: OMAP3: add CompuLab CM-T35 module

2009-10-19 Thread Tony Lindgren
* Mike Rapoport m...@compulab.co.il [091014 01:14]:
 This patch adds basic support for CompuLab CM-T35 module.
 
 Signed-off-by: Mike Rapoport m...@compulab.co.il
 ---
  arch/arm/mach-omap2/Kconfig|4 +
  arch/arm/mach-omap2/Makefile   |2 +
  arch/arm/mach-omap2/board-cm-t35.c |  459 
 
  3 files changed, 465 insertions(+), 0 deletions(-)
  create mode 100644 arch/arm/mach-omap2/board-cm-t35.c
 
 diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
 index 75b1c7e..f80439e 100644
 --- a/arch/arm/mach-omap2/Kconfig
 +++ b/arch/arm/mach-omap2/Kconfig
 @@ -85,6 +85,10 @@ config MACH_OMAP_ZOOM2
   bool OMAP3 Zoom2 board
   depends on ARCH_OMAP3  ARCH_OMAP34XX
  
 +config MACH_CM_T35
 + bool CompuLab CM-T35 module
 + depends on ARCH_OMAP3  ARCH_OMAP34XX
 +
  config MACH_OMAP_4430SDP
   bool OMAP 4430 SDP board
   depends on ARCH_OMAP4
 diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
 index 8cb1677..7468505 100644
 --- a/arch/arm/mach-omap2/Makefile
 +++ b/arch/arm/mach-omap2/Makefile
 @@ -74,6 +74,8 @@ obj-$(CONFIG_MACH_NOKIA_RX51)   += board-rx51.o 
 \
  obj-$(CONFIG_MACH_OMAP_ZOOM2)+= board-zoom2.o \
  mmc-twl4030.o \
  board-zoom-debugboard.o
 +obj-$(CONFIG_MACH_CM_T35)+= board-cm-t35.o \
 +mmc-twl4030.o
  
  obj-$(CONFIG_MACH_OMAP_4430SDP)  += board-4430sdp.o
  
 diff --git a/arch/arm/mach-omap2/board-cm-t35.c 
 b/arch/arm/mach-omap2/board-cm-t35.c
 new file mode 100644
 index 000..94c1f35
 --- /dev/null
 +++ b/arch/arm/mach-omap2/board-cm-t35.c
 @@ -0,0 +1,459 @@
 +/*
 + * board-cm-t35.c (CompuLab CM-T35 module)
 + *
 + * Copyright (C) 2009 CompuLab, Ltd.
 + * Author: Mike Rapoport m...@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.
 + *
 + * 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., 51 Franklin St, Fifth Floor, Boston, MA
 + * 02110-1301 USA
 + *
 + */
 +
 +#include linux/kernel.h
 +#include linux/init.h
 +#include linux/platform_device.h
 +#include linux/input.h
 +#include linux/delay.h
 +
 +#include linux/i2c/at24.h
 +#include linux/i2c/twl4030.h
 +#include linux/regulator/machine.h
 +
 +#include asm/mach-types.h
 +#include asm/mach/arch.h
 +#include asm/mach/map.h
 +
 +#include mach/board.h
 +#include mach/common.h
 +#include mach/hardware.h
 +#include mach/gpio.h

This should be linux/gpio.h.


 +#include mach/mux.h
 +#include mach/nand.h
 +#include mach/keypad.h
 +#include mach/gpmc.h
 +#include mach/usb.h
 +
 +#include sdram-micron-mt46h32m32lf-6.h
 +#include mmc-twl4030.h
 +
 +#define CM_T35_GPIO_PENDOWN  57
 +
 +#define CM_T35_SMSC911X_CS   5
 +#define CM_T35_SMSC911X_GPIO 163
 +
 +#define NAND_BLOCK_SIZE  SZ_128K
 +#define GPMC_CS0_BASE0x60
 +#define GPMC_CS0_BASE_ADDR   (OMAP34XX_GPMC_VIRT + GPMC_CS0_BASE)
 +
 +#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
 +#include linux/smsc911x.h
 +
 +static struct resource cm_t35_smsc911x_resources[] = {
 + {
 + .name   = smsc911x-memory,
 + .flags  = IORESOURCE_MEM,
 + },
 + {
 + .start  = OMAP_GPIO_IRQ(CM_T35_SMSC911X_GPIO),
 + .end= OMAP_GPIO_IRQ(CM_T35_SMSC911X_GPIO),
 + .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
 + },
 +};
 +
 +static struct smsc911x_platform_config cm_t35_smsc911x_config = {
 + .irq_polarity   = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
 + .irq_type   = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
 + .flags  = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS,
 + .phy_interface  = PHY_INTERFACE_MODE_MII,
 +};
 +
 +static struct platform_device cm_t35_smsc911x_device = {
 + .name   = smsc911x,
 + .id = 0,
 + .num_resources  = ARRAY_SIZE(cm_t35_smsc911x_resources),
 + .resource   = cm_t35_smsc911x_resources,
 + .dev= {
 + .platform_data = cm_t35_smsc911x_config,
 + },
 +};
 +
 +static void __init cm_t35_init_smsc911x(void)
 +{
 + unsigned long cs_mem_base;
 +
 + if (gpmc_cs_request(CM_T35_SMSC911X_CS, SZ_16M, cs_mem_base)  0) {
 + pr_err(CM-T35: Failed request for GPMC mem for smsc911x\n);
 + return;
 + }
 +
 + cm_t35_smsc911x_resources[0].start = cs_mem_base + 0x0;
 + 

[PATCH 1/2] ARM: OMAP3: add CompuLab CM-T35 module

2009-10-14 Thread Mike Rapoport
This patch adds basic support for CompuLab CM-T35 module.

Signed-off-by: Mike Rapoport m...@compulab.co.il
---
 arch/arm/mach-omap2/Kconfig|4 +
 arch/arm/mach-omap2/Makefile   |2 +
 arch/arm/mach-omap2/board-cm-t35.c |  459 
 3 files changed, 465 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-omap2/board-cm-t35.c

diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 75b1c7e..f80439e 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -85,6 +85,10 @@ config MACH_OMAP_ZOOM2
bool OMAP3 Zoom2 board
depends on ARCH_OMAP3  ARCH_OMAP34XX
 
+config MACH_CM_T35
+   bool CompuLab CM-T35 module
+   depends on ARCH_OMAP3  ARCH_OMAP34XX
+
 config MACH_OMAP_4430SDP
bool OMAP 4430 SDP board
depends on ARCH_OMAP4
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 8cb1677..7468505 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -74,6 +74,8 @@ obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \
 obj-$(CONFIG_MACH_OMAP_ZOOM2)  += board-zoom2.o \
   mmc-twl4030.o \
   board-zoom-debugboard.o
+obj-$(CONFIG_MACH_CM_T35)  += board-cm-t35.o \
+  mmc-twl4030.o
 
 obj-$(CONFIG_MACH_OMAP_4430SDP)+= board-4430sdp.o
 
diff --git a/arch/arm/mach-omap2/board-cm-t35.c 
b/arch/arm/mach-omap2/board-cm-t35.c
new file mode 100644
index 000..94c1f35
--- /dev/null
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -0,0 +1,459 @@
+/*
+ * board-cm-t35.c (CompuLab CM-T35 module)
+ *
+ * Copyright (C) 2009 CompuLab, Ltd.
+ * Author: Mike Rapoport m...@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.
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include linux/kernel.h
+#include linux/init.h
+#include linux/platform_device.h
+#include linux/input.h
+#include linux/delay.h
+
+#include linux/i2c/at24.h
+#include linux/i2c/twl4030.h
+#include linux/regulator/machine.h
+
+#include asm/mach-types.h
+#include asm/mach/arch.h
+#include asm/mach/map.h
+
+#include mach/board.h
+#include mach/common.h
+#include mach/hardware.h
+#include mach/gpio.h
+#include mach/mux.h
+#include mach/nand.h
+#include mach/keypad.h
+#include mach/gpmc.h
+#include mach/usb.h
+
+#include sdram-micron-mt46h32m32lf-6.h
+#include mmc-twl4030.h
+
+#define CM_T35_GPIO_PENDOWN57
+
+#define CM_T35_SMSC911X_CS 5
+#define CM_T35_SMSC911X_GPIO   163
+
+#define NAND_BLOCK_SIZESZ_128K
+#define GPMC_CS0_BASE  0x60
+#define GPMC_CS0_BASE_ADDR (OMAP34XX_GPMC_VIRT + GPMC_CS0_BASE)
+
+#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
+#include linux/smsc911x.h
+
+static struct resource cm_t35_smsc911x_resources[] = {
+   {
+   .name   = smsc911x-memory,
+   .flags  = IORESOURCE_MEM,
+   },
+   {
+   .start  = OMAP_GPIO_IRQ(CM_T35_SMSC911X_GPIO),
+   .end= OMAP_GPIO_IRQ(CM_T35_SMSC911X_GPIO),
+   .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
+   },
+};
+
+static struct smsc911x_platform_config cm_t35_smsc911x_config = {
+   .irq_polarity   = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
+   .irq_type   = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
+   .flags  = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS,
+   .phy_interface  = PHY_INTERFACE_MODE_MII,
+};
+
+static struct platform_device cm_t35_smsc911x_device = {
+   .name   = smsc911x,
+   .id = 0,
+   .num_resources  = ARRAY_SIZE(cm_t35_smsc911x_resources),
+   .resource   = cm_t35_smsc911x_resources,
+   .dev= {
+   .platform_data = cm_t35_smsc911x_config,
+   },
+};
+
+static void __init cm_t35_init_smsc911x(void)
+{
+   unsigned long cs_mem_base;
+
+   if (gpmc_cs_request(CM_T35_SMSC911X_CS, SZ_16M, cs_mem_base)  0) {
+   pr_err(CM-T35: Failed request for GPMC mem for smsc911x\n);
+   return;
+   }
+
+   cm_t35_smsc911x_resources[0].start = cs_mem_base + 0x0;
+   cm_t35_smsc911x_resources[0].end   = cs_mem_base + 0xff;
+
+   if ((gpio_request(CM_T35_SMSC911X_GPIO, CM ETH IRQ) == 0) 
+   

Re: [PATCH 1/2] ARM: OMAP3: add CompuLab CM-T35 module

2009-10-14 Thread Mike Rapoport
Tony Lindgren wrote:
 * Mike Rapoport m...@compulab.co.il [091013 10:00]:
 This patch adds basic support for CompuLab CM-T35 module.

 Signed-off-by: Mike Rapoport m...@compulab.co.il
 ---
 
 snip
 
 +static struct ehci_hcd_omap_platform_data ehci_pdata = {
 +
 +.port_mode[0] = EHCI_HCD_OMAP_MODE_PHY,
 +.port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
 +.port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
 +
 +.phy_reset  = true,
 +.reset_gpio_port[0]  = -EINVAL,
 +.reset_gpio_port[1]  = -EINVAL,
 +.reset_gpio_port[2]  = -EINVAL
 +};
 
 This ehci stuff should be done in a separate patch, it's not in
 the mainline tree yet.

Ok.

 Can you please check that your patch will compile OK with the
 mainline tree?

It does with ehci stuff removed... I'm too confused with amount of OMAP trees
and branches.

 Regards,
 
 Tony
 

-- 
Sincerely yours,
Mike.

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/2] ARM: OMAP3: add CompuLab CM-T35 module

2009-10-13 Thread Mike Rapoport
This patch adds basic support for CompuLab CM-T35 module.

Signed-off-by: Mike Rapoport m...@compulab.co.il
---
 arch/arm/mach-omap2/Kconfig|4 +
 arch/arm/mach-omap2/Makefile   |2 +
 arch/arm/mach-omap2/board-cm-t35.c |  476 
 3 files changed, 482 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/mach-omap2/board-cm-t35.c

diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig
index 75b1c7e..f80439e 100644
--- a/arch/arm/mach-omap2/Kconfig
+++ b/arch/arm/mach-omap2/Kconfig
@@ -85,6 +85,10 @@ config MACH_OMAP_ZOOM2
bool OMAP3 Zoom2 board
depends on ARCH_OMAP3  ARCH_OMAP34XX
 
+config MACH_CM_T35
+   bool CompuLab CM-T35 module
+   depends on ARCH_OMAP3  ARCH_OMAP34XX
+
 config MACH_OMAP_4430SDP
bool OMAP 4430 SDP board
depends on ARCH_OMAP4
diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile
index 8cb1677..7468505 100644
--- a/arch/arm/mach-omap2/Makefile
+++ b/arch/arm/mach-omap2/Makefile
@@ -74,6 +74,8 @@ obj-$(CONFIG_MACH_NOKIA_RX51) += board-rx51.o \
 obj-$(CONFIG_MACH_OMAP_ZOOM2)  += board-zoom2.o \
   mmc-twl4030.o \
   board-zoom-debugboard.o
+obj-$(CONFIG_MACH_CM_T35)  += board-cm-t35.o \
+  mmc-twl4030.o
 
 obj-$(CONFIG_MACH_OMAP_4430SDP)+= board-4430sdp.o
 
diff --git a/arch/arm/mach-omap2/board-cm-t35.c 
b/arch/arm/mach-omap2/board-cm-t35.c
new file mode 100644
index 000..2aeb44f
--- /dev/null
+++ b/arch/arm/mach-omap2/board-cm-t35.c
@@ -0,0 +1,476 @@
+/*
+ * board-cm-t35.c (CompuLab CM-T35 module)
+ *
+ * Copyright (C) 2009 CompuLab, Ltd.
+ * Author: Mike Rapoport m...@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.
+ *
+ * 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., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include linux/kernel.h
+#include linux/init.h
+#include linux/platform_device.h
+#include linux/input.h
+#include linux/delay.h
+
+#include linux/i2c/at24.h
+#include linux/i2c/twl4030.h
+#include linux/regulator/machine.h
+
+#include asm/mach-types.h
+#include asm/mach/arch.h
+#include asm/mach/map.h
+
+#include mach/board.h
+#include mach/common.h
+#include mach/hardware.h
+#include mach/gpio.h
+#include mach/mux.h
+#include mach/nand.h
+#include mach/keypad.h
+#include mach/gpmc.h
+#include mach/usb.h
+
+#include sdram-micron-mt46h32m32lf-6.h
+#include mmc-twl4030.h
+
+#define CM_T35_GPIO_PENDOWN57
+
+#define CM_T35_SMSC911X_CS 5
+#define CM_T35_SMSC911X_GPIO   163
+
+#define NAND_BLOCK_SIZESZ_128K
+#define GPMC_CS0_BASE  0x60
+#define GPMC_CS0_BASE_ADDR (OMAP34XX_GPMC_VIRT + GPMC_CS0_BASE)
+
+#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
+#include linux/smsc911x.h
+
+static struct resource cm_t35_smsc911x_resources[] = {
+   {
+   .name   = smsc911x-memory,
+   .flags  = IORESOURCE_MEM,
+   },
+   {
+   .start  = OMAP_GPIO_IRQ(CM_T35_SMSC911X_GPIO),
+   .end= OMAP_GPIO_IRQ(CM_T35_SMSC911X_GPIO),
+   .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
+   },
+};
+
+static struct smsc911x_platform_config cm_t35_smsc911x_config = {
+   .irq_polarity   = SMSC911X_IRQ_POLARITY_ACTIVE_LOW,
+   .irq_type   = SMSC911X_IRQ_TYPE_OPEN_DRAIN,
+   .flags  = SMSC911X_USE_32BIT | SMSC911X_SAVE_MAC_ADDRESS,
+   .phy_interface  = PHY_INTERFACE_MODE_MII,
+};
+
+static struct platform_device cm_t35_smsc911x_device = {
+   .name   = smsc911x,
+   .id = 0,
+   .num_resources  = ARRAY_SIZE(cm_t35_smsc911x_resources),
+   .resource   = cm_t35_smsc911x_resources,
+   .dev= {
+   .platform_data = cm_t35_smsc911x_config,
+   },
+};
+
+static void __init cm_t35_init_smsc911x(void)
+{
+   unsigned long cs_mem_base;
+
+   if (gpmc_cs_request(CM_T35_SMSC911X_CS, SZ_16M, cs_mem_base)  0) {
+   pr_err(CM-T35: Failed request for GPMC mem for smsc911x\n);
+   return;
+   }
+
+   cm_t35_smsc911x_resources[0].start = cs_mem_base + 0x0;
+   cm_t35_smsc911x_resources[0].end   = cs_mem_base + 0xff;
+
+   if ((gpio_request(CM_T35_SMSC911X_GPIO, CM ETH IRQ) == 0) 
+   

Re: [PATCH 1/2] ARM: OMAP3: add CompuLab CM-T35 module

2009-10-13 Thread Tony Lindgren
* Mike Rapoport m...@compulab.co.il [091013 10:00]:
 This patch adds basic support for CompuLab CM-T35 module.
 
 Signed-off-by: Mike Rapoport m...@compulab.co.il
 ---

snip

 +static struct ehci_hcd_omap_platform_data ehci_pdata = {
 +
 + .port_mode[0] = EHCI_HCD_OMAP_MODE_PHY,
 + .port_mode[1] = EHCI_HCD_OMAP_MODE_PHY,
 + .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN,
 +
 + .phy_reset  = true,
 + .reset_gpio_port[0]  = -EINVAL,
 + .reset_gpio_port[1]  = -EINVAL,
 + .reset_gpio_port[2]  = -EINVAL
 +};

This ehci stuff should be done in a separate patch, it's not in
the mainline tree yet.

Can you please check that your patch will compile OK with the
mainline tree?

Regards,

Tony
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html