diff options
author | Sumit Semwal <sumit.semwal@ti.com> | 2011-01-31 11:27:43 -0500 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-03-11 08:46:22 -0500 |
commit | 872462cdfc74e7b93c09870128d9bb436d4e9804 (patch) | |
tree | 3334df4774a219b79ae9422c50ea5e2d4be9894c | |
parent | ef631f82500390b3dfc20b16214e53c443d675a4 (diff) |
OMAP2PLUS: clocks: Align DSS clock names and roles
Currently, clock database has <dev, clock-name> tuples for DSS2. Because of
this, the clock names are different across different OMAP platforms.
This patch aligns the DSS2 clock names and roles across OMAP 2420, 2430, 3xxx,
44xx platforms in the clock databases, hwmod databases for opt-clocks, and DSS
clock handling.
This ensures that clk_get/put/enable/disable APIs in DSS can use uniform role
names.
Signed-off-by: Sumit Semwal <sumit.semwal@ti.com>
Acked-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r-- | arch/arm/mach-omap2/clock2420_data.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock2430_data.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock3xxx_data.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock44xx_data.c | 10 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | 2 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.c | 8 |
6 files changed, 21 insertions, 21 deletions
diff --git a/arch/arm/mach-omap2/clock2420_data.c b/arch/arm/mach-omap2/clock2420_data.c index 9ece62a44a3f..26d89d5827c8 100644 --- a/arch/arm/mach-omap2/clock2420_data.c +++ b/arch/arm/mach-omap2/clock2420_data.c | |||
@@ -1787,9 +1787,9 @@ static struct omap_clk omap2420_clks[] = { | |||
1787 | CLK(NULL, "gfx_ick", &gfx_ick, CK_242X), | 1787 | CLK(NULL, "gfx_ick", &gfx_ick, CK_242X), |
1788 | /* DSS domain clocks */ | 1788 | /* DSS domain clocks */ |
1789 | CLK("omapdss_dss", "ick", &dss_ick, CK_242X), | 1789 | CLK("omapdss_dss", "ick", &dss_ick, CK_242X), |
1790 | CLK("omapdss_dss", "dss1_fck", &dss1_fck, CK_242X), | 1790 | CLK("omapdss_dss", "fck", &dss1_fck, CK_242X), |
1791 | CLK("omapdss_dss", "dss2_fck", &dss2_fck, CK_242X), | 1791 | CLK("omapdss_dss", "sys_clk", &dss2_fck, CK_242X), |
1792 | CLK("omapdss_dss", "tv_fck", &dss_54m_fck, CK_242X), | 1792 | CLK("omapdss_dss", "tv_clk", &dss_54m_fck, CK_242X), |
1793 | /* L3 domain clocks */ | 1793 | /* L3 domain clocks */ |
1794 | CLK(NULL, "core_l3_ck", &core_l3_ck, CK_242X), | 1794 | CLK(NULL, "core_l3_ck", &core_l3_ck, CK_242X), |
1795 | CLK(NULL, "ssi_fck", &ssi_ssr_sst_fck, CK_242X), | 1795 | CLK(NULL, "ssi_fck", &ssi_ssr_sst_fck, CK_242X), |
diff --git a/arch/arm/mach-omap2/clock2430_data.c b/arch/arm/mach-omap2/clock2430_data.c index 61006ae7eac4..0bfe4872b02b 100644 --- a/arch/arm/mach-omap2/clock2430_data.c +++ b/arch/arm/mach-omap2/clock2430_data.c | |||
@@ -1891,9 +1891,9 @@ static struct omap_clk omap2430_clks[] = { | |||
1891 | CLK(NULL, "mdm_osc_ck", &mdm_osc_ck, CK_243X), | 1891 | CLK(NULL, "mdm_osc_ck", &mdm_osc_ck, CK_243X), |
1892 | /* DSS domain clocks */ | 1892 | /* DSS domain clocks */ |
1893 | CLK("omapdss_dss", "ick", &dss_ick, CK_243X), | 1893 | CLK("omapdss_dss", "ick", &dss_ick, CK_243X), |
1894 | CLK("omapdss_dss", "dss1_fck", &dss1_fck, CK_243X), | 1894 | CLK("omapdss_dss", "fck", &dss1_fck, CK_243X), |
1895 | CLK("omapdss_dss", "dss2_fck", &dss2_fck, CK_243X), | 1895 | CLK("omapdss_dss", "sys_clk", &dss2_fck, CK_243X), |
1896 | CLK("omapdss_dss", "tv_fck", &dss_54m_fck, CK_243X), | 1896 | CLK("omapdss_dss", "tv_clk", &dss_54m_fck, CK_243X), |
1897 | /* L3 domain clocks */ | 1897 | /* L3 domain clocks */ |
1898 | CLK(NULL, "core_l3_ck", &core_l3_ck, CK_243X), | 1898 | CLK(NULL, "core_l3_ck", &core_l3_ck, CK_243X), |
1899 | CLK(NULL, "ssi_fck", &ssi_ssr_sst_fck, CK_243X), | 1899 | CLK(NULL, "ssi_fck", &ssi_ssr_sst_fck, CK_243X), |
diff --git a/arch/arm/mach-omap2/clock3xxx_data.c b/arch/arm/mach-omap2/clock3xxx_data.c index 2e47d16fce77..427f6c8d1585 100644 --- a/arch/arm/mach-omap2/clock3xxx_data.c +++ b/arch/arm/mach-omap2/clock3xxx_data.c | |||
@@ -3357,11 +3357,11 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3357 | CLK("omap_rng", "ick", &rng_ick, CK_34XX | CK_36XX), | 3357 | CLK("omap_rng", "ick", &rng_ick, CK_34XX | CK_36XX), |
3358 | CLK(NULL, "sha11_ick", &sha11_ick, CK_34XX | CK_36XX), | 3358 | CLK(NULL, "sha11_ick", &sha11_ick, CK_34XX | CK_36XX), |
3359 | CLK(NULL, "des1_ick", &des1_ick, CK_34XX | CK_36XX), | 3359 | CLK(NULL, "des1_ick", &des1_ick, CK_34XX | CK_36XX), |
3360 | CLK("omapdss_dss", "dss1_fck", &dss1_alwon_fck_3430es1, CK_3430ES1), | 3360 | CLK("omapdss_dss", "fck", &dss1_alwon_fck_3430es1, CK_3430ES1), |
3361 | CLK("omapdss_dss", "dss1_fck", &dss1_alwon_fck_3430es2, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | 3361 | CLK("omapdss_dss", "fck", &dss1_alwon_fck_3430es2, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), |
3362 | CLK("omapdss_dss", "tv_fck", &dss_tv_fck, CK_3XXX), | 3362 | CLK("omapdss_dss", "tv_clk", &dss_tv_fck, CK_3XXX), |
3363 | CLK("omapdss_dss", "video_fck", &dss_96m_fck, CK_3XXX), | 3363 | CLK("omapdss_dss", "video_clk", &dss_96m_fck, CK_3XXX), |
3364 | CLK("omapdss_dss", "dss2_fck", &dss2_alwon_fck, CK_3XXX), | 3364 | CLK("omapdss_dss", "sys_clk", &dss2_alwon_fck, CK_3XXX), |
3365 | CLK("omapdss_dss", "ick", &dss_ick_3430es1, CK_3430ES1), | 3365 | CLK("omapdss_dss", "ick", &dss_ick_3430es1, CK_3430ES1), |
3366 | CLK("omapdss_dss", "ick", &dss_ick_3430es2, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | 3366 | CLK("omapdss_dss", "ick", &dss_ick_3430es2, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), |
3367 | CLK(NULL, "cam_mclk", &cam_mclk, CK_34XX | CK_36XX), | 3367 | CLK(NULL, "cam_mclk", &cam_mclk, CK_34XX | CK_36XX), |
diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c index fdbc0426b6f4..6ba69b1158e6 100644 --- a/arch/arm/mach-omap2/clock44xx_data.c +++ b/arch/arm/mach-omap2/clock44xx_data.c | |||
@@ -3106,11 +3106,11 @@ static struct omap_clk omap44xx_clks[] = { | |||
3106 | CLK(NULL, "dmic_sync_mux_ck", &dmic_sync_mux_ck, CK_443X), | 3106 | CLK(NULL, "dmic_sync_mux_ck", &dmic_sync_mux_ck, CK_443X), |
3107 | CLK(NULL, "dmic_fck", &dmic_fck, CK_443X), | 3107 | CLK(NULL, "dmic_fck", &dmic_fck, CK_443X), |
3108 | CLK(NULL, "dsp_fck", &dsp_fck, CK_443X), | 3108 | CLK(NULL, "dsp_fck", &dsp_fck, CK_443X), |
3109 | CLK(NULL, "dss_sys_clk", &dss_sys_clk, CK_443X), | 3109 | CLK("omapdss_dss", "sys_clk", &dss_sys_clk, CK_443X), |
3110 | CLK(NULL, "dss_tv_clk", &dss_tv_clk, CK_443X), | 3110 | CLK("omapdss_dss", "tv_clk", &dss_tv_clk, CK_443X), |
3111 | CLK(NULL, "dss_dss_clk", &dss_dss_clk, CK_443X), | 3111 | CLK("omapdss_dss", "dss_clk", &dss_dss_clk, CK_443X), |
3112 | CLK(NULL, "dss_48mhz_clk", &dss_48mhz_clk, CK_443X), | 3112 | CLK("omapdss_dss", "video_clk", &dss_48mhz_clk, CK_443X), |
3113 | CLK(NULL, "dss_fck", &dss_fck, CK_443X), | 3113 | CLK("omapdss_dss", "fck", &dss_fck, CK_443X), |
3114 | CLK(NULL, "efuse_ctrl_cust_fck", &efuse_ctrl_cust_fck, CK_443X), | 3114 | CLK(NULL, "efuse_ctrl_cust_fck", &efuse_ctrl_cust_fck, CK_443X), |
3115 | CLK(NULL, "emif1_fck", &emif1_fck, CK_443X), | 3115 | CLK(NULL, "emif1_fck", &emif1_fck, CK_443X), |
3116 | CLK(NULL, "emif2_fck", &emif2_fck, CK_443X), | 3116 | CLK(NULL, "emif2_fck", &emif2_fck, CK_443X), |
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c index c4ca005f8bb5..4ed48cab06fe 100644 --- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c | |||
@@ -1571,7 +1571,7 @@ static struct omap_hwmod_ocp_if *omap3xxx_dss_slaves[] = { | |||
1571 | 1571 | ||
1572 | static struct omap_hwmod_opt_clk dss_opt_clks[] = { | 1572 | static struct omap_hwmod_opt_clk dss_opt_clks[] = { |
1573 | { .role = "tv_clk", .clk = "dss_tv_fck" }, | 1573 | { .role = "tv_clk", .clk = "dss_tv_fck" }, |
1574 | { .role = "dssclk", .clk = "dss_96m_fck" }, | 1574 | { .role = "video_clk", .clk = "dss_96m_fck" }, |
1575 | { .role = "sys_clk", .clk = "dss2_alwon_fck" }, | 1575 | { .role = "sys_clk", .clk = "dss2_alwon_fck" }, |
1576 | }; | 1576 | }; |
1577 | 1577 | ||
diff --git a/drivers/video/omap2/dss/dss.c b/drivers/video/omap2/dss/dss.c index a00733d6436a..56d37bfefd4d 100644 --- a/drivers/video/omap2/dss/dss.c +++ b/drivers/video/omap2/dss/dss.c | |||
@@ -759,19 +759,19 @@ static int dss_get_clocks(void) | |||
759 | if (r) | 759 | if (r) |
760 | goto err; | 760 | goto err; |
761 | 761 | ||
762 | r = dss_get_clock(&dss.dss1_fck, "dss1_fck"); | 762 | r = dss_get_clock(&dss.dss1_fck, "fck"); |
763 | if (r) | 763 | if (r) |
764 | goto err; | 764 | goto err; |
765 | 765 | ||
766 | r = dss_get_clock(&dss.dss2_fck, "dss2_fck"); | 766 | r = dss_get_clock(&dss.dss2_fck, "sys_clk"); |
767 | if (r) | 767 | if (r) |
768 | goto err; | 768 | goto err; |
769 | 769 | ||
770 | r = dss_get_clock(&dss.dss_54m_fck, "tv_fck"); | 770 | r = dss_get_clock(&dss.dss_54m_fck, "tv_clk"); |
771 | if (r) | 771 | if (r) |
772 | goto err; | 772 | goto err; |
773 | 773 | ||
774 | r = dss_get_clock(&dss.dss_96m_fck, "video_fck"); | 774 | r = dss_get_clock(&dss.dss_96m_fck, "video_clk"); |
775 | if (r) | 775 | if (r) |
776 | goto err; | 776 | goto err; |
777 | 777 | ||