aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2013-06-11 03:37:19 -0400
committerTony Lindgren <tony@atomide.com>2013-06-12 09:52:30 -0400
commitb38911f3472be89551bfca740adf0009562b9873 (patch)
tree943247990a4a2cbba644c6f3c95fe9eab6274bec /arch/arm/mach-omap2/omap_hwmod_44xx_data.c
parent3b9b10151c6838af52244cec4af41a938bb5b7ec (diff)
ARM: OMAP4: hwmod data: add DSS data back
Commit 3b9b10151c6838af52244cec4af41a938bb5b7ec (ARM: OMAP4: hwmod data: Clean up the data file) removes hwmod data for omap4, including DSS data. DSS has not yet been converted to DT, so the hwmod data is still needed. This patch adds back the DSS parts of the hwmod data. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_44xx_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_44xx_data.c54
1 files changed, 54 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
index 5f5d6317f00a..c8d49570694a 100644
--- a/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_44xx_data.c
@@ -619,6 +619,16 @@ static struct omap_hwmod_class omap44xx_dispc_hwmod_class = {
619}; 619};
620 620
621/* dss_dispc */ 621/* dss_dispc */
622static struct omap_hwmod_irq_info omap44xx_dss_dispc_irqs[] = {
623 { .irq = 25 + OMAP44XX_IRQ_GIC_START },
624 { .irq = -1 }
625};
626
627static struct omap_hwmod_dma_info omap44xx_dss_dispc_sdma_reqs[] = {
628 { .dma_req = 5 + OMAP44XX_DMA_REQ_START },
629 { .dma_req = -1 }
630};
631
622static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = { 632static struct omap_dss_dispc_dev_attr omap44xx_dss_dispc_dev_attr = {
623 .manager_count = 3, 633 .manager_count = 3,
624 .has_framedonetv_irq = 1 634 .has_framedonetv_irq = 1
@@ -628,6 +638,8 @@ static struct omap_hwmod omap44xx_dss_dispc_hwmod = {
628 .name = "dss_dispc", 638 .name = "dss_dispc",
629 .class = &omap44xx_dispc_hwmod_class, 639 .class = &omap44xx_dispc_hwmod_class,
630 .clkdm_name = "l3_dss_clkdm", 640 .clkdm_name = "l3_dss_clkdm",
641 .mpu_irqs = omap44xx_dss_dispc_irqs,
642 .sdma_reqs = omap44xx_dss_dispc_sdma_reqs,
631 .main_clk = "dss_dss_clk", 643 .main_clk = "dss_dss_clk",
632 .prcm = { 644 .prcm = {
633 .omap4 = { 645 .omap4 = {
@@ -660,6 +672,16 @@ static struct omap_hwmod_class omap44xx_dsi_hwmod_class = {
660}; 672};
661 673
662/* dss_dsi1 */ 674/* dss_dsi1 */
675static struct omap_hwmod_irq_info omap44xx_dss_dsi1_irqs[] = {
676 { .irq = 53 + OMAP44XX_IRQ_GIC_START },
677 { .irq = -1 }
678};
679
680static struct omap_hwmod_dma_info omap44xx_dss_dsi1_sdma_reqs[] = {
681 { .dma_req = 74 + OMAP44XX_DMA_REQ_START },
682 { .dma_req = -1 }
683};
684
663static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = { 685static struct omap_hwmod_opt_clk dss_dsi1_opt_clks[] = {
664 { .role = "sys_clk", .clk = "dss_sys_clk" }, 686 { .role = "sys_clk", .clk = "dss_sys_clk" },
665}; 687};
@@ -668,6 +690,8 @@ static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
668 .name = "dss_dsi1", 690 .name = "dss_dsi1",
669 .class = &omap44xx_dsi_hwmod_class, 691 .class = &omap44xx_dsi_hwmod_class,
670 .clkdm_name = "l3_dss_clkdm", 692 .clkdm_name = "l3_dss_clkdm",
693 .mpu_irqs = omap44xx_dss_dsi1_irqs,
694 .sdma_reqs = omap44xx_dss_dsi1_sdma_reqs,
671 .main_clk = "dss_dss_clk", 695 .main_clk = "dss_dss_clk",
672 .prcm = { 696 .prcm = {
673 .omap4 = { 697 .omap4 = {
@@ -680,6 +704,16 @@ static struct omap_hwmod omap44xx_dss_dsi1_hwmod = {
680}; 704};
681 705
682/* dss_dsi2 */ 706/* dss_dsi2 */
707static struct omap_hwmod_irq_info omap44xx_dss_dsi2_irqs[] = {
708 { .irq = 84 + OMAP44XX_IRQ_GIC_START },
709 { .irq = -1 }
710};
711
712static struct omap_hwmod_dma_info omap44xx_dss_dsi2_sdma_reqs[] = {
713 { .dma_req = 83 + OMAP44XX_DMA_REQ_START },
714 { .dma_req = -1 }
715};
716
683static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = { 717static struct omap_hwmod_opt_clk dss_dsi2_opt_clks[] = {
684 { .role = "sys_clk", .clk = "dss_sys_clk" }, 718 { .role = "sys_clk", .clk = "dss_sys_clk" },
685}; 719};
@@ -688,6 +722,8 @@ static struct omap_hwmod omap44xx_dss_dsi2_hwmod = {
688 .name = "dss_dsi2", 722 .name = "dss_dsi2",
689 .class = &omap44xx_dsi_hwmod_class, 723 .class = &omap44xx_dsi_hwmod_class,
690 .clkdm_name = "l3_dss_clkdm", 724 .clkdm_name = "l3_dss_clkdm",
725 .mpu_irqs = omap44xx_dss_dsi2_irqs,
726 .sdma_reqs = omap44xx_dss_dsi2_sdma_reqs,
691 .main_clk = "dss_dss_clk", 727 .main_clk = "dss_dss_clk",
692 .prcm = { 728 .prcm = {
693 .omap4 = { 729 .omap4 = {
@@ -720,6 +756,16 @@ static struct omap_hwmod_class omap44xx_hdmi_hwmod_class = {
720}; 756};
721 757
722/* dss_hdmi */ 758/* dss_hdmi */
759static struct omap_hwmod_irq_info omap44xx_dss_hdmi_irqs[] = {
760 { .irq = 101 + OMAP44XX_IRQ_GIC_START },
761 { .irq = -1 }
762};
763
764static struct omap_hwmod_dma_info omap44xx_dss_hdmi_sdma_reqs[] = {
765 { .dma_req = 75 + OMAP44XX_DMA_REQ_START },
766 { .dma_req = -1 }
767};
768
723static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = { 769static struct omap_hwmod_opt_clk dss_hdmi_opt_clks[] = {
724 { .role = "sys_clk", .clk = "dss_sys_clk" }, 770 { .role = "sys_clk", .clk = "dss_sys_clk" },
725}; 771};
@@ -733,6 +779,8 @@ static struct omap_hwmod omap44xx_dss_hdmi_hwmod = {
733 * set idle mode by software. 779 * set idle mode by software.
734 */ 780 */
735 .flags = HWMOD_SWSUP_SIDLE, 781 .flags = HWMOD_SWSUP_SIDLE,
782 .mpu_irqs = omap44xx_dss_hdmi_irqs,
783 .sdma_reqs = omap44xx_dss_hdmi_sdma_reqs,
736 .main_clk = "dss_48mhz_clk", 784 .main_clk = "dss_48mhz_clk",
737 .prcm = { 785 .prcm = {
738 .omap4 = { 786 .omap4 = {
@@ -765,6 +813,11 @@ static struct omap_hwmod_class omap44xx_rfbi_hwmod_class = {
765}; 813};
766 814
767/* dss_rfbi */ 815/* dss_rfbi */
816static struct omap_hwmod_dma_info omap44xx_dss_rfbi_sdma_reqs[] = {
817 { .dma_req = 13 + OMAP44XX_DMA_REQ_START },
818 { .dma_req = -1 }
819};
820
768static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = { 821static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
769 { .role = "ick", .clk = "dss_fck" }, 822 { .role = "ick", .clk = "dss_fck" },
770}; 823};
@@ -773,6 +826,7 @@ static struct omap_hwmod omap44xx_dss_rfbi_hwmod = {
773 .name = "dss_rfbi", 826 .name = "dss_rfbi",
774 .class = &omap44xx_rfbi_hwmod_class, 827 .class = &omap44xx_rfbi_hwmod_class,
775 .clkdm_name = "l3_dss_clkdm", 828 .clkdm_name = "l3_dss_clkdm",
829 .sdma_reqs = omap44xx_dss_rfbi_sdma_reqs,
776 .main_clk = "dss_dss_clk", 830 .main_clk = "dss_dss_clk",
777 .prcm = { 831 .prcm = {
778 .omap4 = { 832 .omap4 = {