aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_2430_data.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-11-08 05:16:09 -0500
committerPaul Walmsley <paul@pwsan.com>2011-11-08 05:16:09 -0500
commitb8ac10d8b75843c9ddd6aadf70a0cdf8aa783659 (patch)
tree94bf21f155e8318cd8050fded397b1c5fa3dfd1e /arch/arm/mach-omap2/omap_hwmod_2430_data.c
parent1258ea596fe0422272525d9ec8a25b703de4623f (diff)
ARM: OMAP2xxx: HWMOD: fix DSS clock data
The OMAP2xxx HWMOD data currently contains two errors with DSS clocks: - dss_rfbi is missing ick opt-clock, which is needed for RFBI to calculate timings - dss_venc's interface and main clocks are wrong, causing VENC to fail to start These problems were temporarily fixed with a DSS patch 9ede365aa6f74428a1f69c21ca1cf21213167576 ("HACK: OMAP: DSS2: clk hack for OMAP2/3"), which can be reverted after this patch (and the similar patches for other OMAPs). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_2430_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_2430_data.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_2430_data.c b/arch/arm/mach-omap2/omap_hwmod_2430_data.c
index d02a44ea7f9..6f0365388df 100644
--- a/arch/arm/mach-omap2/omap_hwmod_2430_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_2430_data.c
@@ -1020,6 +1020,10 @@ static struct omap_hwmod_ocp_if *omap2430_dss_rfbi_slaves[] = {
1020 &omap2430_l4_core__dss_rfbi, 1020 &omap2430_l4_core__dss_rfbi,
1021}; 1021};
1022 1022
1023static struct omap_hwmod_opt_clk dss_rfbi_opt_clks[] = {
1024 { .role = "ick", .clk = "dss_ick" },
1025};
1026
1023static struct omap_hwmod omap2430_dss_rfbi_hwmod = { 1027static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1024 .name = "dss_rfbi", 1028 .name = "dss_rfbi",
1025 .class = &omap2_rfbi_hwmod_class, 1029 .class = &omap2_rfbi_hwmod_class,
@@ -1031,6 +1035,8 @@ static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1031 .module_offs = CORE_MOD, 1035 .module_offs = CORE_MOD,
1032 }, 1036 },
1033 }, 1037 },
1038 .opt_clks = dss_rfbi_opt_clks,
1039 .opt_clks_cnt = ARRAY_SIZE(dss_rfbi_opt_clks),
1034 .slaves = omap2430_dss_rfbi_slaves, 1040 .slaves = omap2430_dss_rfbi_slaves,
1035 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves), 1041 .slaves_cnt = ARRAY_SIZE(omap2430_dss_rfbi_slaves),
1036 .flags = HWMOD_NO_IDLEST, 1042 .flags = HWMOD_NO_IDLEST,
@@ -1040,7 +1046,7 @@ static struct omap_hwmod omap2430_dss_rfbi_hwmod = {
1040static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = { 1046static struct omap_hwmod_ocp_if omap2430_l4_core__dss_venc = {
1041 .master = &omap2430_l4_core_hwmod, 1047 .master = &omap2430_l4_core_hwmod,
1042 .slave = &omap2430_dss_venc_hwmod, 1048 .slave = &omap2430_dss_venc_hwmod,
1043 .clk = "dss_54m_fck", 1049 .clk = "dss_ick",
1044 .addr = omap2_dss_venc_addrs, 1050 .addr = omap2_dss_venc_addrs,
1045 .flags = OCPIF_SWSUP_IDLE, 1051 .flags = OCPIF_SWSUP_IDLE,
1046 .user = OCP_USER_MPU | OCP_USER_SDMA, 1052 .user = OCP_USER_MPU | OCP_USER_SDMA,
@@ -1054,7 +1060,7 @@ static struct omap_hwmod_ocp_if *omap2430_dss_venc_slaves[] = {
1054static struct omap_hwmod omap2430_dss_venc_hwmod = { 1060static struct omap_hwmod omap2430_dss_venc_hwmod = {
1055 .name = "dss_venc", 1061 .name = "dss_venc",
1056 .class = &omap2_venc_hwmod_class, 1062 .class = &omap2_venc_hwmod_class,
1057 .main_clk = "dss1_fck", 1063 .main_clk = "dss_54m_fck",
1058 .prcm = { 1064 .prcm = {
1059 .omap2 = { 1065 .omap2 = {
1060 .prcm_reg_id = 1, 1066 .prcm_reg_id = 1,