From patchwork Wed Apr 15 02:43:03 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 18274 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3F2ha7L030852 for ; Wed, 15 Apr 2009 02:43:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758094AbZDOCnH (ORCPT ); Tue, 14 Apr 2009 22:43:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758202AbZDOCnG (ORCPT ); Tue, 14 Apr 2009 22:43:06 -0400 Received: from mail.renesas.com ([202.234.163.13]:36321 "EHLO mail02.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1758213AbZDOCnF (ORCPT ); Tue, 14 Apr 2009 22:43:05 -0400 X-AuditID: ac140385-0000000b000002de-ec-49e549b77185 Received: from guardian03.idc.renesas.com ([172.20.8.202]) by mail02.idc.renesas.com (sendmail) with ESMTP id n3F2h31D029317; Wed, 15 Apr 2009 11:43:03 +0900 (JST) Received: (from root@localhost) by guardian03.idc.renesas.com with id n3F2h3K7026089; Wed, 15 Apr 2009 11:43:03 +0900 (JST) Received: from mta03.idc.renesas.com (localhost [127.0.0.1]) by mta03.idc.renesas.com with ESMTP id n3F2h4W1029650; Wed, 15 Apr 2009 11:43:05 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KI4008K5FJRQ5@ims05.idc.renesas.com>; Wed, 15 Apr 2009 11:43:03 +0900 (JST) Date: Wed, 15 Apr 2009 11:43:03 +0900 From: Kuninori Morimoto Subject: [PATCH 5/6] Add VPU support for SH7724 To: Paul Mundt Cc: SH-Linux Message-id: MIME-version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-type: text/plain; charset=US-ASCII User-Agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.7 Emacs/22.1 (i386-mingw-nt5.1.2600) MULE/5.0 (SAKAKI) Meadow/3.00-dev (KIKU) X-Brightmail-Tracker: AAAAAA== Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Signed-off-by: Kuninori Morimoto --- arch/sh/kernel/cpu/sh4a/setup-sh7724.c | 33 ++++++++++++++++++++++++++++++++ 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c index ca625c2..64b7f0d 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c @@ -168,12 +168,42 @@ static struct platform_device iic1_device = { .resource = iic1_resources, }; +/* VPU */ +static struct uio_info vpu_platform_data = { + .name = "VPU5F", + .version = "0", + .irq = 60, +}; + +static struct resource vpu_resources[] = { + [0] = { + .name = "VPU", + .start = 0xfe900000, + .end = 0xfe902807, + .flags = IORESOURCE_MEM, + }, + [1] = { + /* place holder for contiguous memory */ + }, +}; + +static struct platform_device vpu_device = { + .name = "uio_pdrv_genirq", + .id = 0, + .dev = { + .platform_data = &vpu_platform_data, + }, + .resource = vpu_resources, + .num_resources = ARRAY_SIZE(vpu_resources), +}; + static struct platform_device *sh7724_devices[] __initdata = { &sci_device, &rtc_device, &usb0_device, &iic0_device, &iic1_device, + &vpu_device, }; #define UPONCR0 0xa40501d4 @@ -188,6 +218,9 @@ static void __init sh7724_usb_setup(void) static int __init sh7724_devices_setup(void) { clk_always_enable("rtc0"); /* RTC */ + clk_always_enable("vpu0"); /* VPU */ + + platform_resource_setup_memory(&vpu_device, "vpu", 2 << 20); sh7724_usb_setup(); return platform_add_devices(sh7724_devices,