rk3026: devices.c: register device_vpu_service

This commit is contained in:
黄涛
2013-08-01 15:27:25 +08:00
parent 5161a4faf2
commit 13b97a1014

View File

@@ -772,7 +772,7 @@ static struct resource resource_arm_pmu[] = {
#endif
};
struct platform_device device_arm_pmu = {
static struct platform_device device_arm_pmu = {
.name = "arm-pmu",
.id = ARM_PMU_DEVICE_CPU,
.num_resources = ARRAY_SIZE(resource_arm_pmu),
@@ -789,7 +789,7 @@ static struct resource resource_lvds[] = {
},
};
struct platform_device device_lvds = {
static struct platform_device device_lvds = {
.name = "rk3026-lvds",
.id = -1,
.num_resources = ARRAY_SIZE(resource_lvds),
@@ -797,6 +797,33 @@ struct platform_device device_lvds = {
};
#endif
static struct resource resource_vpu_service[] = {
{
.start = IRQ_VDPU,
.end = IRQ_VDPU,
.name = "irq_vdpu",
.flags = IORESOURCE_IRQ,
},
{
.start = IRQ_VEPU,
.end = IRQ_VEPU,
.name = "irq_vepu",
.flags = IORESOURCE_IRQ,
},
{
.start = RK2928_VCODEC_PHYS,
.end = RK2928_VCODEC_PHYS + RK2928_VCODEC_SIZE - 1,
.flags = IORESOURCE_MEM,
},
};
static struct platform_device device_vpu_service = {
.name = "vpu_service",
.id = -1,
.num_resources = ARRAY_SIZE(resource_vpu_service),
.resource = resource_vpu_service,
};
static int __init rk2928_init_devices(void)
{
rk2928_init_dma();
@@ -828,6 +855,7 @@ static int __init rk2928_init_devices(void)
#ifdef CONFIG_RK3026_LVDS
platform_device_register(&device_lvds);
#endif
platform_device_register(&device_vpu_service);
return 0;
}