diff options
author | Muralidharan Karicheri <m-karicheri2@ti.com> | 2009-09-16 11:53:18 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-09-16 13:25:26 -0400 |
commit | ab8e8df87421574fe053bf1770353af5b24a2bbb (patch) | |
tree | 656f02746d36f06f34b88c3354b3c44f3102daf7 /arch/arm/mach-davinci/dm644x.c | |
parent | 1a7ff8ff6eebfa732ca2abe00a0878136bfb2d01 (diff) |
davinci: DM644x platform changes for vpfe capture
DM644x platform and board setup
This adds platform and board setup changes required to support
vpfe capture driver on DM644x
Tested video capture on DM6446 with tvp514x driver
Reviewed-by: Hans Verkuil <hverkuil@xs4all.nl>
Reviewed-by: Laurent Pinchart <laurent.pinchart@skynet.be>
Reviewed-by: David Brownell <david-b@pacbell.net>
Signed-off-by: Muralidharan Karicheri <m-karicheri2@ti.com>
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm644x.c')
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index e554aa6c9a84..d6e0fa5a8d8a 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
@@ -580,6 +580,59 @@ static struct platform_device dm644x_asp_device = { | |||
580 | .resource = dm644x_asp_resources, | 580 | .resource = dm644x_asp_resources, |
581 | }; | 581 | }; |
582 | 582 | ||
583 | static struct resource dm644x_vpss_resources[] = { | ||
584 | { | ||
585 | /* VPSS Base address */ | ||
586 | .name = "vpss", | ||
587 | .start = 0x01c73400, | ||
588 | .end = 0x01c73400 + 0xff, | ||
589 | .flags = IORESOURCE_MEM, | ||
590 | }, | ||
591 | }; | ||
592 | |||
593 | static struct platform_device dm644x_vpss_device = { | ||
594 | .name = "vpss", | ||
595 | .id = -1, | ||
596 | .dev.platform_data = "dm644x_vpss", | ||
597 | .num_resources = ARRAY_SIZE(dm644x_vpss_resources), | ||
598 | .resource = dm644x_vpss_resources, | ||
599 | }; | ||
600 | |||
601 | static struct resource vpfe_resources[] = { | ||
602 | { | ||
603 | .start = IRQ_VDINT0, | ||
604 | .end = IRQ_VDINT0, | ||
605 | .flags = IORESOURCE_IRQ, | ||
606 | }, | ||
607 | { | ||
608 | .start = IRQ_VDINT1, | ||
609 | .end = IRQ_VDINT1, | ||
610 | .flags = IORESOURCE_IRQ, | ||
611 | }, | ||
612 | { | ||
613 | .start = 0x01c70400, | ||
614 | .end = 0x01c70400 + 0xff, | ||
615 | .flags = IORESOURCE_MEM, | ||
616 | }, | ||
617 | }; | ||
618 | |||
619 | static u64 vpfe_capture_dma_mask = DMA_BIT_MASK(32); | ||
620 | static struct platform_device vpfe_capture_dev = { | ||
621 | .name = CAPTURE_DRV_NAME, | ||
622 | .id = -1, | ||
623 | .num_resources = ARRAY_SIZE(vpfe_resources), | ||
624 | .resource = vpfe_resources, | ||
625 | .dev = { | ||
626 | .dma_mask = &vpfe_capture_dma_mask, | ||
627 | .coherent_dma_mask = DMA_BIT_MASK(32), | ||
628 | }, | ||
629 | }; | ||
630 | |||
631 | void dm644x_set_vpfe_config(struct vpfe_config *cfg) | ||
632 | { | ||
633 | vpfe_capture_dev.dev.platform_data = cfg; | ||
634 | } | ||
635 | |||
583 | /*----------------------------------------------------------------------*/ | 636 | /*----------------------------------------------------------------------*/ |
584 | 637 | ||
585 | static struct map_desc dm644x_io_desc[] = { | 638 | static struct map_desc dm644x_io_desc[] = { |
@@ -715,6 +768,9 @@ static int __init dm644x_init_devices(void) | |||
715 | 768 | ||
716 | platform_device_register(&dm644x_edma_device); | 769 | platform_device_register(&dm644x_edma_device); |
717 | platform_device_register(&dm644x_emac_device); | 770 | platform_device_register(&dm644x_emac_device); |
771 | platform_device_register(&dm644x_vpss_device); | ||
772 | platform_device_register(&vpfe_capture_dev); | ||
773 | |||
718 | return 0; | 774 | return 0; |
719 | } | 775 | } |
720 | postcore_initcall(dm644x_init_devices); | 776 | postcore_initcall(dm644x_init_devices); |