Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: sh7724: Add JPU support

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Acked-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>

authored by

Kuninori Morimoto and committed by
Paul Mundt
f168dd00 c5eeff1f

+31
+31
arch/sh/kernel/cpu/sh4a/setup-sh7724.c
··· 451 451 .num_resources = ARRAY_SIZE(tmu5_resources), 452 452 }; 453 453 454 + /* JPU */ 455 + static struct uio_info jpu_platform_data = { 456 + .name = "JPU", 457 + .version = "0", 458 + .irq = 27, 459 + }; 460 + 461 + static struct resource jpu_resources[] = { 462 + [0] = { 463 + .name = "JPU", 464 + .start = 0xfe980000, 465 + .end = 0xfe9902d3, 466 + .flags = IORESOURCE_MEM, 467 + }, 468 + [1] = { 469 + /* place holder for contiguous memory */ 470 + }, 471 + }; 472 + 473 + static struct platform_device jpu_device = { 474 + .name = "uio_pdrv_genirq", 475 + .id = 3, 476 + .dev = { 477 + .platform_data = &jpu_platform_data, 478 + }, 479 + .resource = jpu_resources, 480 + .num_resources = ARRAY_SIZE(jpu_resources), 481 + }; 482 + 454 483 static struct platform_device *sh7724_devices[] __initdata = { 455 484 &cmt_device, 456 485 &tmu0_device, ··· 495 466 &vpu_device, 496 467 &veu0_device, 497 468 &veu1_device, 469 + &jpu_device, 498 470 }; 499 471 500 472 static int __init sh7724_devices_setup(void) ··· 503 473 platform_resource_setup_memory(&vpu_device, "vpu", 2 << 20); 504 474 platform_resource_setup_memory(&veu0_device, "veu0", 2 << 20); 505 475 platform_resource_setup_memory(&veu1_device, "veu1", 2 << 20); 476 + platform_resource_setup_memory(&jpu_device, "jpu", 2 << 20); 506 477 507 478 return platform_add_devices(sh7724_devices, 508 479 ARRAY_SIZE(sh7724_devices));