From patchwork Wed Jun 10 05:04:32 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 29182 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 n5A55EiN021060 for ; Wed, 10 Jun 2009 05:05:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752468AbZFJFEg (ORCPT ); Wed, 10 Jun 2009 01:04:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752720AbZFJFEg (ORCPT ); Wed, 10 Jun 2009 01:04:36 -0400 Received: from mail.renesas.com ([202.234.163.13]:34805 "EHLO mail03.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752468AbZFJFEg (ORCPT ); Wed, 10 Jun 2009 01:04:36 -0400 X-AuditID: ac140386-0000000600003037-73-4a2f3ee140d0 Received: from guardian01.idc.renesas.com ([172.20.8.200]) by mail03.idc.renesas.com (sendmail) with ESMTP id n5A54WbC015856; Wed, 10 Jun 2009 14:04:32 +0900 (JST) Received: (from root@localhost) by guardian01.idc.renesas.com with id n5A54Xw0022059; Wed, 10 Jun 2009 14:04:33 +0900 (JST) Received: from mta01.idc.renesas.com (localhost [127.0.0.1]) by mta01.idc.renesas.com with ESMTP id n5A54VSP004684; Wed, 10 Jun 2009 14:04:32 +0900 (JST) Received: from PG10870.renesas.com ([172.30.8.159]) by ims05.idc.renesas.com (Sendmail) with ESMTPA id <0KL000JO8BFKXA@ims05.idc.renesas.com>; Wed, 10 Jun 2009 14:04:32 +0900 (JST) Date: Wed, 10 Jun 2009 14:04:32 +0900 From: Kuninori Morimoto Subject: [PATCH] sh7724: Add JPU support To: Paul Mundt Cc: SH-Linux , Magnus 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 Acked-by: Magnus Damm --- arch/sh/kernel/cpu/sh4a/setup-sh7724.c | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c index 000f3b8..13816ea 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7724.c @@ -451,6 +451,35 @@ static struct platform_device tmu5_device = { .num_resources = ARRAY_SIZE(tmu5_resources), }; +/* JPU */ +static struct uio_info jpu_platform_data = { + .name = "JPU", + .version = "0", + .irq = 27, +}; + +static struct resource jpu_resources[] = { + [0] = { + .name = "JPU", + .start = 0xfe980000, + .end = 0xfe9902d3, + .flags = IORESOURCE_MEM, + }, + [1] = { + /* place holder for contiguous memory */ + }, +}; + +static struct platform_device jpu_device = { + .name = "uio_pdrv_genirq", + .id = 3, + .dev = { + .platform_data = &jpu_platform_data, + }, + .resource = jpu_resources, + .num_resources = ARRAY_SIZE(jpu_resources), +}; + static struct platform_device *sh7724_devices[] __initdata = { &cmt_device, &tmu0_device, @@ -466,6 +495,7 @@ static struct platform_device *sh7724_devices[] __initdata = { &vpu_device, &veu0_device, &veu1_device, + &jpu_device, }; static int __init sh7724_devices_setup(void) @@ -473,6 +503,7 @@ static int __init sh7724_devices_setup(void) platform_resource_setup_memory(&vpu_device, "vpu", 2 << 20); platform_resource_setup_memory(&veu0_device, "veu0", 2 << 20); platform_resource_setup_memory(&veu1_device, "veu1", 2 << 20); + platform_resource_setup_memory(&jpu_device, "jpu", 2 << 20); return platform_add_devices(sh7724_devices, ARRAY_SIZE(sh7724_devices));