From patchwork Thu Apr 8 14:13:38 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Sakoman X-Patchwork-Id: 91277 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o38EDeJR021988 for ; Thu, 8 Apr 2010 14:13:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752324Ab0DHONk (ORCPT ); Thu, 8 Apr 2010 10:13:40 -0400 Received: from mail-qy0-f179.google.com ([209.85.221.179]:40059 "EHLO mail-qy0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750768Ab0DHONj (ORCPT ); Thu, 8 Apr 2010 10:13:39 -0400 Received: by qyk9 with SMTP id 9so143492qyk.1 for ; Thu, 08 Apr 2010 07:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=GxEZQP6pWki6X8Yc6rT+hPMgtthkcyEDZS5yqIjSLg8=; b=xtx40qHijNQcd0pfTJCM+qbVUU/9mDMR8zyUVL22mr54iNSfeM9IrqV9fcXYL61GJl tHv6gFRWPTkRPVT6LcyBCUm5JKKfp9IVVjVf2qZWFfcPux+Wk4OQSyuStfTmIiaftE3v rT09reaIaFe2TUHH9EXo3AHcYnaRYVZnwItxU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=DEgcAwzfoVoozpswJNMuG0Rzn2YWCriBQGZrAP/I+JUNvk3kh1uHjMDV/dKiitq1RD 6uxWPd0j2IAm5lLIYneIIb+Es/ewuxwPXWP/qgOw0EtSrxeqcFf8cwk+z2ZEBpRFKiPL Jt6CwgZtni5o6MB8blBQRo90kJFfXFokX1X2U= MIME-Version: 1.0 Received: by 10.229.70.133 with HTTP; Thu, 8 Apr 2010 07:13:38 -0700 (PDT) Date: Thu, 8 Apr 2010 07:13:38 -0700 Received: by 10.229.192.68 with SMTP id dp4mr292289qcb.36.1270736018368; Thu, 08 Apr 2010 07:13:38 -0700 (PDT) Message-ID: Subject: [PATCH] ARM: OMAP: Overo: Add support for second ethernet port From: Steve Sakoman To: linux-omap@vger.kernel.org Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 08 Apr 2010 14:13:43 +0000 (UTC) diff --git a/arch/arm/mach-omap2/board-overo.c b/arch/arm/mach-omap2/board-overo.c index 8848c7c..4ceeb56 100644 --- a/arch/arm/mach-omap2/board-overo.c +++ b/arch/arm/mach-omap2/board-overo.c @@ -63,6 +63,8 @@ #define OVERO_SMSC911X_CS 5 #define OVERO_SMSC911X_GPIO 176 +#define OVERO_SMSC911X2_CS 4 +#define OVERO_SMSC911X2_GPIO 65 #if defined(CONFIG_TOUCHSCREEN_ADS7846) || \ defined(CONFIG_TOUCHSCREEN_ADS7846_MODULE) @@ -137,6 +139,16 @@ static struct resource overo_smsc911x_resources[] = { }, }; +static struct resource overo_smsc911x2_resources[] = { + { + .name = "smsc911x2-memory", + .flags = IORESOURCE_MEM, + }, + { + .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL, + }, +}; + static struct smsc911x_platform_config overo_smsc911x_config = { .irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_LOW, .irq_type = SMSC911X_IRQ_TYPE_OPEN_DRAIN, @@ -146,7 +158,7 @@ static struct smsc911x_platform_config overo_smsc911x_config = { static struct platform_device overo_smsc911x_device = { .name = "smsc911x", - .id = -1, + .id = 0, .num_resources = ARRAY_SIZE(overo_smsc911x_resources), .resource = overo_smsc911x_resources,