Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146879
b: refs/heads/master
c: f168dd0
h: refs/heads/master
i:
  146877: e14fd7c
  146875: bca1cab
  146871: 5f99cb7
  146863: da82112
  146847: d51be14
  146815: fa0857f
v: v3
  • Loading branch information
Kuninori Morimoto authored and Paul Mundt committed Jun 11, 2009
1 parent daf0e2d commit 28e2fab
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5eeff1f8ecbc4bc7c1dd8e97a8610bc4dd3def8
refs/heads/master: f168dd00a9440a6f644db73bda47718fd12008e4
31 changes: 31 additions & 0 deletions trunk/arch/sh/kernel/cpu/sh4a/setup-sh7724.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -466,13 +495,15 @@ static struct platform_device *sh7724_devices[] __initdata = {
&vpu_device,
&veu0_device,
&veu1_device,
&jpu_device,
};

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));
Expand Down

0 comments on commit 28e2fab

Please sign in to comment.