From patchwork Wed Jul 28 13:08:19 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phil Edworthy X-Patchwork-Id: 114759 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6SD8TbF025716 for ; Wed, 28 Jul 2010 13:08:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751665Ab0G1NI3 (ORCPT ); Wed, 28 Jul 2010 09:08:29 -0400 Received: from mail.renesas.com ([202.234.163.13]:44701 "EHLO mail01.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751225Ab0G1NI2 convert rfc822-to-8bit (ORCPT ); Wed, 28 Jul 2010 09:08:28 -0400 X-AuditID: ac140384-00000008000004f6-d8-4c502bca4dea Received: from guardian04.idc.renesas.com ([172.20.8.206]) by mail01.idc.renesas.com (sendmail) with ESMTP id o6SD8PmT000830 for ; Wed, 28 Jul 2010 22:08:25 +0900 (JST) Received: (from root@localhost) by guardian04.idc.renesas.com with id o6SD8QYn010020 for linux-sh@vger.kernel.org; Wed, 28 Jul 2010 22:08:26 +0900 (JST) Received: from mta02.idc.renesas.com (localhost [127.0.0.1]) by mta02.idc.renesas.com with ESMTP id o6SD8QmS012264 for ; Wed, 28 Jul 2010 22:08:26 +0900 (JST) Received: from rte-ben-exch.RTE.ADWIN.RENESAS.COM ([172.28.0.16]) by rte-idc-bh1.RTE.ADWIN.RENESAS.COM with Microsoft SMTPSVC(6.0.3790.211); Wed, 28 Jul 2010 14:08:24 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: [PATCH] sh: Add sh7724 BEU resources Date: Wed, 28 Jul 2010 14:08:19 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH] sh: Add sh7724 BEU resources Thread-Index: AcsuVfMlw12GTN0iTj+qO/oM1sU+Mw== From: "Phil Edworthy" To: X-OriginalArrivalTime: 28 Jul 2010 13:08:24.0028 (UTC) FILETIME=[F5BFD9C0:01CB2E55] X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@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]); Wed, 28 Jul 2010 13:08:29 +0000 (UTC) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c index 79c556e..93b2e0b 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c @@ -524,6 +524,70 @@ static struct platform_device veu1_device = { }, }; +/* BEU0 */ +static struct uio_info beu0_platform_data = { + .name = "BEU0", + .version = "0", + .irq = evt2irq(0x8A0), +}; + +static struct resource beu0_resources[] = { + [0] = { + .name = "BEU0", + .start = 0xfe930000, + .end = 0xfe933400, + .flags = IORESOURCE_MEM, + }, + [1] = { + /* place holder for contiguous memory */ + }, +}; + +static struct platform_device beu0_device = { + .name = "uio_pdrv_genirq", + .id = 6, + .dev = { + .platform_data = &beu0_platform_data, + }, + .resource = beu0_resources, + .num_resources = ARRAY_SIZE(beu0_resources), + .archdata = { + .hwblk_id = HWBLK_BEU0, + }, +}; + +/* BEU1 */ +static struct uio_info beu1_platform_data = { + .name = "BEU1", + .version = "0", + .irq = evt2irq(0xA00), +}; + +static struct resource beu1_resources[] = { + [0] = { + .name = "BEU1", + .start = 0xfe940000, + .end = 0xfe943400, + .flags = IORESOURCE_MEM, + }, + [1] = { + /* place holder for contiguous memory */ + }, +}; + +static struct platform_device beu1_device = { + .name = "uio_pdrv_genirq", + .id = 7, + .dev = { + .platform_data = &beu1_platform_data, + }, + .resource = beu1_resources, + .num_resources = ARRAY_SIZE(beu1_resources), + .archdata = { + .hwblk_id = HWBLK_BEU1, + }, +}; + static struct sh_timer_config cmt_platform_data = { .channel_offset = 0x60, .timer_bit = 5, @@ -857,6 +921,8 @@ static struct platform_device *sh7724_devices[] __initdata = { &vpu_device, &veu0_device, &veu1_device, + &beu0_device, + &beu1_device, &jpu_device, &spu0_device,