From patchwork Wed Sep 7 10:24:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaccon Bastiaansen X-Patchwork-Id: 1127842 Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p87GqQXo001294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 7 Sep 2011 16:52:49 GMT Received: from canuck.infradead.org ([2001:4978:20e::1]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R1FgL-0003km-BI; Wed, 07 Sep 2011 10:48:39 +0000 Received: from localhost ([127.0.0.1] helo=canuck.infradead.org) by canuck.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1R1FfU-0004Au-Ki; Wed, 07 Sep 2011 10:47:44 +0000 Received: from mail-ew0-f49.google.com ([209.85.215.49]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1R1FfA-00043b-8a for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2011 10:47:25 +0000 Received: by ewy3 with SMTP id 3so39476ewy.36 for ; Wed, 07 Sep 2011 03:47:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=yHIyxlW/2WLLWVk3hQpWBKo8fN+krBw5aiAYUJOLeYM=; b=gg22PBFE3z9c0bceGcZRWwoxIhNptW1c1ZWVpMtKFr4/dg6VehDxBF9zi7Pf7B4hAk W3kcCWBTRl6bU61EZYB0CnouY+tWv61rqIF6m3ArvtnSMmAOdNqhHY6WiIR+YkvqRBMW mwOfUOGiVlggYqEvVbOXP0xH7eA6fpoI2lGjQ= Received: by 10.14.5.11 with SMTP id 11mr2319556eek.181.1315391060527; Wed, 07 Sep 2011 03:24:20 -0700 (PDT) Received: from localhost.localdomain (s529d540e.adsl.wanadoo.nl [82.157.84.14]) by mx.google.com with ESMTPS id d12sm5832802eeb.8.2011.09.07.03.24.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Sep 2011 03:24:19 -0700 (PDT) From: Jaccon Bastiaansen To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] Add CS890x0 ethernet controller support to the i.MX21ADS Date: Wed, 7 Sep 2011 12:24:10 +0200 Message-Id: <1315391050-6715-1-git-send-email-jaccon.bastiaansen@gmail.com> X-Mailer: git-send-email 1.7.1 X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20110907_064724_615067_19AA5038 X-CRM114-Status: GOOD ( 13.54 ) X-Spam-Score: -0.8 (/) X-Spam-Report: SpamAssassin version 3.3.1 on canuck.infradead.org summary: Content analysis details: (-0.8 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.215.49 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jaccon.bastiaansen[at]gmail.com) -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.0 T_TO_NO_BRKTS_FREEMAIL To: misformatted and free email service Cc: s.hauer@pengutronix.de, Jaccon Bastiaansen , kernel@pengutronix.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 07 Sep 2011 16:52:49 +0000 (UTC) Signed-off-by: Jaccon Bastiaansen --- arch/arm/mach-imx/mach-mx21ads.c | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-imx/mach-mx21ads.c b/arch/arm/mach-imx/mach-mx21ads.c index 74ac889..62b4717 100644 --- a/arch/arm/mach-imx/mach-mx21ads.c +++ b/arch/arm/mach-imx/mach-mx21ads.c @@ -159,6 +159,26 @@ static struct platform_device mx21ads_nor_mtd_device = { .resource = &mx21ads_flash_resource, }; +static struct resource mx21ads_cs8900_resources[] = { + { + .start = (u32)MX21ADS_CS8900A_IOBASE_REG, + .end = (u32)MX21ADS_CS8900A_IOBASE_REG + 0x200000 - 1, + .flags = IORESOURCE_MEM, + }, + { + .start = MX21ADS_CS8900A_IRQ, + .end = MX21ADS_CS8900A_IRQ, + .flags = IORESOURCE_IRQ, + }, +}; + +static struct platform_device mx21ads_cs8900_device = { + .name = "cs89x0", + .id = 0, + .num_resources = ARRAY_SIZE(mx21ads_cs8900_resources), + .resource = mx21ads_cs8900_resources, +}; + static const struct imxuart_platform_data uart_pdata_rts __initconst = { .flags = IMXUART_HAVE_RTSCTS, }; @@ -275,6 +295,7 @@ static void __init mx21ads_map_io(void) static struct platform_device *platform_devices[] __initdata = { &mx21ads_nor_mtd_device, + &mx21ads_cs8900_device }; static void __init mx21ads_board_init(void)