diff options
author | Rajendra Nayak <rnayak@ti.com> | 2012-09-22 04:24:16 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2012-09-22 12:50:01 -0400 |
commit | 6ea74cb9853e923f8945586cd9ccdd42e6f00ba9 (patch) | |
tree | dc0bdc6011cf84b69111baaa5552db065693328a | |
parent | 4d7cb45ee823541632a3d50f57031ce9fd60e13f (diff) |
ARM: OMAP2+: hwmod: get rid of all omap_clk_get_by_name usage
Moving to Common clk framework for OMAP would mean we no longer use
internal lookup mechanism like omap_clk_get_by_name().
get rid of all its usage mostly from hwmod and omap_device
code.
Moving to clk_get() also means the respective platforms
need the clkdev tables updated with an entry for all clocks
used by hwmod to have clock name same as the alias.
Based on original changes from Mike Turquette.
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Cc: Russell King - ARM Linux <linux@arm.linux.org.uk>
[paul@pwsan.com: removed IS_ERR_OR_NULL() conversion (rmk comment);
restricted omap_96m_alwon_fck_3630 to OMAP36xx; added missing AM35xx
clock aliases for emac_fck, emac_ick, vpfe_ick, vpfe_fck; added
aliases rng_ick and several emulation clocks]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r-- | arch/arm/mach-omap2/clock2420_data.c | 17 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock2430_data.c | 22 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock3xxx_data.c | 31 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock44xx_data.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 12 | ||||
-rw-r--r-- | arch/arm/plat-omap/clock.c | 27 | ||||
-rw-r--r-- | arch/arm/plat-omap/omap_device.c | 4 |
7 files changed, 84 insertions, 35 deletions
diff --git a/arch/arm/mach-omap2/clock2420_data.c b/arch/arm/mach-omap2/clock2420_data.c index 8c3bd2a62881..c3cde1a2b6de 100644 --- a/arch/arm/mach-omap2/clock2420_data.c +++ b/arch/arm/mach-omap2/clock2420_data.c | |||
@@ -1804,6 +1804,7 @@ static struct omap_clk omap2420_clks[] = { | |||
1804 | CLK(NULL, "gfx_ick", &gfx_ick, CK_242X), | 1804 | CLK(NULL, "gfx_ick", &gfx_ick, CK_242X), |
1805 | /* DSS domain clocks */ | 1805 | /* DSS domain clocks */ |
1806 | CLK("omapdss_dss", "ick", &dss_ick, CK_242X), | 1806 | CLK("omapdss_dss", "ick", &dss_ick, CK_242X), |
1807 | CLK(NULL, "dss_ick", &dss_ick, CK_242X), | ||
1807 | CLK(NULL, "dss1_fck", &dss1_fck, CK_242X), | 1808 | CLK(NULL, "dss1_fck", &dss1_fck, CK_242X), |
1808 | CLK(NULL, "dss2_fck", &dss2_fck, CK_242X), | 1809 | CLK(NULL, "dss2_fck", &dss2_fck, CK_242X), |
1809 | CLK(NULL, "dss_54m_fck", &dss_54m_fck, CK_242X), | 1810 | CLK(NULL, "dss_54m_fck", &dss_54m_fck, CK_242X), |
@@ -1843,12 +1844,16 @@ static struct omap_clk omap2420_clks[] = { | |||
1843 | CLK(NULL, "gpt12_ick", &gpt12_ick, CK_242X), | 1844 | CLK(NULL, "gpt12_ick", &gpt12_ick, CK_242X), |
1844 | CLK(NULL, "gpt12_fck", &gpt12_fck, CK_242X), | 1845 | CLK(NULL, "gpt12_fck", &gpt12_fck, CK_242X), |
1845 | CLK("omap-mcbsp.1", "ick", &mcbsp1_ick, CK_242X), | 1846 | CLK("omap-mcbsp.1", "ick", &mcbsp1_ick, CK_242X), |
1847 | CLK(NULL, "mcbsp1_ick", &mcbsp1_ick, CK_242X), | ||
1846 | CLK(NULL, "mcbsp1_fck", &mcbsp1_fck, CK_242X), | 1848 | CLK(NULL, "mcbsp1_fck", &mcbsp1_fck, CK_242X), |
1847 | CLK("omap-mcbsp.2", "ick", &mcbsp2_ick, CK_242X), | 1849 | CLK("omap-mcbsp.2", "ick", &mcbsp2_ick, CK_242X), |
1850 | CLK(NULL, "mcbsp2_ick", &mcbsp2_ick, CK_242X), | ||
1848 | CLK(NULL, "mcbsp2_fck", &mcbsp2_fck, CK_242X), | 1851 | CLK(NULL, "mcbsp2_fck", &mcbsp2_fck, CK_242X), |
1849 | CLK("omap2_mcspi.1", "ick", &mcspi1_ick, CK_242X), | 1852 | CLK("omap2_mcspi.1", "ick", &mcspi1_ick, CK_242X), |
1853 | CLK(NULL, "mcspi1_ick", &mcspi1_ick, CK_242X), | ||
1850 | CLK(NULL, "mcspi1_fck", &mcspi1_fck, CK_242X), | 1854 | CLK(NULL, "mcspi1_fck", &mcspi1_fck, CK_242X), |
1851 | CLK("omap2_mcspi.2", "ick", &mcspi2_ick, CK_242X), | 1855 | CLK("omap2_mcspi.2", "ick", &mcspi2_ick, CK_242X), |
1856 | CLK(NULL, "mcspi2_ick", &mcspi2_ick, CK_242X), | ||
1852 | CLK(NULL, "mcspi2_fck", &mcspi2_fck, CK_242X), | 1857 | CLK(NULL, "mcspi2_fck", &mcspi2_fck, CK_242X), |
1853 | CLK(NULL, "uart1_ick", &uart1_ick, CK_242X), | 1858 | CLK(NULL, "uart1_ick", &uart1_ick, CK_242X), |
1854 | CLK(NULL, "uart1_fck", &uart1_fck, CK_242X), | 1859 | CLK(NULL, "uart1_fck", &uart1_fck, CK_242X), |
@@ -1859,12 +1864,15 @@ static struct omap_clk omap2420_clks[] = { | |||
1859 | CLK(NULL, "gpios_ick", &gpios_ick, CK_242X), | 1864 | CLK(NULL, "gpios_ick", &gpios_ick, CK_242X), |
1860 | CLK(NULL, "gpios_fck", &gpios_fck, CK_242X), | 1865 | CLK(NULL, "gpios_fck", &gpios_fck, CK_242X), |
1861 | CLK("omap_wdt", "ick", &mpu_wdt_ick, CK_242X), | 1866 | CLK("omap_wdt", "ick", &mpu_wdt_ick, CK_242X), |
1867 | CLK(NULL, "mpu_wdt_ick", &mpu_wdt_ick, CK_242X), | ||
1862 | CLK(NULL, "mpu_wdt_fck", &mpu_wdt_fck, CK_242X), | 1868 | CLK(NULL, "mpu_wdt_fck", &mpu_wdt_fck, CK_242X), |
1863 | CLK(NULL, "sync_32k_ick", &sync_32k_ick, CK_242X), | 1869 | CLK(NULL, "sync_32k_ick", &sync_32k_ick, CK_242X), |
1864 | CLK(NULL, "wdt1_ick", &wdt1_ick, CK_242X), | 1870 | CLK(NULL, "wdt1_ick", &wdt1_ick, CK_242X), |
1865 | CLK(NULL, "omapctrl_ick", &omapctrl_ick, CK_242X), | 1871 | CLK(NULL, "omapctrl_ick", &omapctrl_ick, CK_242X), |
1866 | CLK("omap24xxcam", "fck", &cam_fck, CK_242X), | 1872 | CLK("omap24xxcam", "fck", &cam_fck, CK_242X), |
1873 | CLK(NULL, "cam_fck", &cam_fck, CK_242X), | ||
1867 | CLK("omap24xxcam", "ick", &cam_ick, CK_242X), | 1874 | CLK("omap24xxcam", "ick", &cam_ick, CK_242X), |
1875 | CLK(NULL, "cam_ick", &cam_ick, CK_242X), | ||
1868 | CLK(NULL, "mailboxes_ick", &mailboxes_ick, CK_242X), | 1876 | CLK(NULL, "mailboxes_ick", &mailboxes_ick, CK_242X), |
1869 | CLK(NULL, "wdt4_ick", &wdt4_ick, CK_242X), | 1877 | CLK(NULL, "wdt4_ick", &wdt4_ick, CK_242X), |
1870 | CLK(NULL, "wdt4_fck", &wdt4_fck, CK_242X), | 1878 | CLK(NULL, "wdt4_fck", &wdt4_fck, CK_242X), |
@@ -1873,16 +1881,22 @@ static struct omap_clk omap2420_clks[] = { | |||
1873 | CLK(NULL, "mspro_ick", &mspro_ick, CK_242X), | 1881 | CLK(NULL, "mspro_ick", &mspro_ick, CK_242X), |
1874 | CLK(NULL, "mspro_fck", &mspro_fck, CK_242X), | 1882 | CLK(NULL, "mspro_fck", &mspro_fck, CK_242X), |
1875 | CLK("mmci-omap.0", "ick", &mmc_ick, CK_242X), | 1883 | CLK("mmci-omap.0", "ick", &mmc_ick, CK_242X), |
1884 | CLK(NULL, "mmc_ick", &mmc_ick, CK_242X), | ||
1876 | CLK("mmci-omap.0", "fck", &mmc_fck, CK_242X), | 1885 | CLK("mmci-omap.0", "fck", &mmc_fck, CK_242X), |
1886 | CLK(NULL, "mmc_fck", &mmc_fck, CK_242X), | ||
1877 | CLK(NULL, "fac_ick", &fac_ick, CK_242X), | 1887 | CLK(NULL, "fac_ick", &fac_ick, CK_242X), |
1878 | CLK(NULL, "fac_fck", &fac_fck, CK_242X), | 1888 | CLK(NULL, "fac_fck", &fac_fck, CK_242X), |
1879 | CLK(NULL, "eac_ick", &eac_ick, CK_242X), | 1889 | CLK(NULL, "eac_ick", &eac_ick, CK_242X), |
1880 | CLK(NULL, "eac_fck", &eac_fck, CK_242X), | 1890 | CLK(NULL, "eac_fck", &eac_fck, CK_242X), |
1881 | CLK("omap_hdq.0", "ick", &hdq_ick, CK_242X), | 1891 | CLK("omap_hdq.0", "ick", &hdq_ick, CK_242X), |
1892 | CLK(NULL, "hdq_ick", &hdq_ick, CK_242X), | ||
1882 | CLK("omap_hdq.0", "fck", &hdq_fck, CK_242X), | 1893 | CLK("omap_hdq.0", "fck", &hdq_fck, CK_242X), |
1894 | CLK(NULL, "hdq_fck", &hdq_fck, CK_242X), | ||
1883 | CLK("omap_i2c.1", "ick", &i2c1_ick, CK_242X), | 1895 | CLK("omap_i2c.1", "ick", &i2c1_ick, CK_242X), |
1896 | CLK(NULL, "i2c1_ick", &i2c1_ick, CK_242X), | ||
1884 | CLK(NULL, "i2c1_fck", &i2c1_fck, CK_242X), | 1897 | CLK(NULL, "i2c1_fck", &i2c1_fck, CK_242X), |
1885 | CLK("omap_i2c.2", "ick", &i2c2_ick, CK_242X), | 1898 | CLK("omap_i2c.2", "ick", &i2c2_ick, CK_242X), |
1899 | CLK(NULL, "i2c2_ick", &i2c2_ick, CK_242X), | ||
1886 | CLK(NULL, "i2c2_fck", &i2c2_fck, CK_242X), | 1900 | CLK(NULL, "i2c2_fck", &i2c2_fck, CK_242X), |
1887 | CLK(NULL, "gpmc_fck", &gpmc_fck, CK_242X), | 1901 | CLK(NULL, "gpmc_fck", &gpmc_fck, CK_242X), |
1888 | CLK(NULL, "sdma_fck", &sdma_fck, CK_242X), | 1902 | CLK(NULL, "sdma_fck", &sdma_fck, CK_242X), |
@@ -1892,8 +1906,11 @@ static struct omap_clk omap2420_clks[] = { | |||
1892 | CLK(NULL, "vlynq_fck", &vlynq_fck, CK_242X), | 1906 | CLK(NULL, "vlynq_fck", &vlynq_fck, CK_242X), |
1893 | CLK(NULL, "des_ick", &des_ick, CK_242X), | 1907 | CLK(NULL, "des_ick", &des_ick, CK_242X), |
1894 | CLK("omap-sham", "ick", &sha_ick, CK_242X), | 1908 | CLK("omap-sham", "ick", &sha_ick, CK_242X), |
1909 | CLK(NULL, "sha_ick", &sha_ick, CK_242X), | ||
1895 | CLK("omap_rng", "ick", &rng_ick, CK_242X), | 1910 | CLK("omap_rng", "ick", &rng_ick, CK_242X), |
1911 | CLK(NULL, "rng_ick", &rng_ick, CK_242X), | ||
1896 | CLK("omap-aes", "ick", &aes_ick, CK_242X), | 1912 | CLK("omap-aes", "ick", &aes_ick, CK_242X), |
1913 | CLK(NULL, "aes_ick", &aes_ick, CK_242X), | ||
1897 | CLK(NULL, "pka_ick", &pka_ick, CK_242X), | 1914 | CLK(NULL, "pka_ick", &pka_ick, CK_242X), |
1898 | CLK(NULL, "usb_fck", &usb_fck, CK_242X), | 1915 | CLK(NULL, "usb_fck", &usb_fck, CK_242X), |
1899 | CLK("musb-hdrc", "fck", &osc_ck, CK_242X), | 1916 | CLK("musb-hdrc", "fck", &osc_ck, CK_242X), |
diff --git a/arch/arm/mach-omap2/clock2430_data.c b/arch/arm/mach-omap2/clock2430_data.c index 0c8503d7033f..22404fe435e7 100644 --- a/arch/arm/mach-omap2/clock2430_data.c +++ b/arch/arm/mach-omap2/clock2430_data.c | |||
@@ -1888,6 +1888,7 @@ static struct omap_clk omap2430_clks[] = { | |||
1888 | CLK(NULL, "mdm_osc_ck", &mdm_osc_ck, CK_243X), | 1888 | CLK(NULL, "mdm_osc_ck", &mdm_osc_ck, CK_243X), |
1889 | /* DSS domain clocks */ | 1889 | /* DSS domain clocks */ |
1890 | CLK("omapdss_dss", "ick", &dss_ick, CK_243X), | 1890 | CLK("omapdss_dss", "ick", &dss_ick, CK_243X), |
1891 | CLK(NULL, "dss_ick", &dss_ick, CK_243X), | ||
1891 | CLK(NULL, "dss1_fck", &dss1_fck, CK_243X), | 1892 | CLK(NULL, "dss1_fck", &dss1_fck, CK_243X), |
1892 | CLK(NULL, "dss2_fck", &dss2_fck, CK_243X), | 1893 | CLK(NULL, "dss2_fck", &dss2_fck, CK_243X), |
1893 | CLK(NULL, "dss_54m_fck", &dss_54m_fck, CK_243X), | 1894 | CLK(NULL, "dss_54m_fck", &dss_54m_fck, CK_243X), |
@@ -1927,20 +1928,28 @@ static struct omap_clk omap2430_clks[] = { | |||
1927 | CLK(NULL, "gpt12_ick", &gpt12_ick, CK_243X), | 1928 | CLK(NULL, "gpt12_ick", &gpt12_ick, CK_243X), |
1928 | CLK(NULL, "gpt12_fck", &gpt12_fck, CK_243X), | 1929 | CLK(NULL, "gpt12_fck", &gpt12_fck, CK_243X), |
1929 | CLK("omap-mcbsp.1", "ick", &mcbsp1_ick, CK_243X), | 1930 | CLK("omap-mcbsp.1", "ick", &mcbsp1_ick, CK_243X), |
1931 | CLK(NULL, "mcbsp1_ick", &mcbsp1_ick, CK_243X), | ||
1930 | CLK(NULL, "mcbsp1_fck", &mcbsp1_fck, CK_243X), | 1932 | CLK(NULL, "mcbsp1_fck", &mcbsp1_fck, CK_243X), |
1931 | CLK("omap-mcbsp.2", "ick", &mcbsp2_ick, CK_243X), | 1933 | CLK("omap-mcbsp.2", "ick", &mcbsp2_ick, CK_243X), |
1934 | CLK(NULL, "mcbsp2_ick", &mcbsp2_ick, CK_243X), | ||
1932 | CLK(NULL, "mcbsp2_fck", &mcbsp2_fck, CK_243X), | 1935 | CLK(NULL, "mcbsp2_fck", &mcbsp2_fck, CK_243X), |
1933 | CLK("omap-mcbsp.3", "ick", &mcbsp3_ick, CK_243X), | 1936 | CLK("omap-mcbsp.3", "ick", &mcbsp3_ick, CK_243X), |
1937 | CLK(NULL, "mcbsp3_ick", &mcbsp3_ick, CK_243X), | ||
1934 | CLK(NULL, "mcbsp3_fck", &mcbsp3_fck, CK_243X), | 1938 | CLK(NULL, "mcbsp3_fck", &mcbsp3_fck, CK_243X), |
1935 | CLK("omap-mcbsp.4", "ick", &mcbsp4_ick, CK_243X), | 1939 | CLK("omap-mcbsp.4", "ick", &mcbsp4_ick, CK_243X), |
1940 | CLK(NULL, "mcbsp4_ick", &mcbsp4_ick, CK_243X), | ||
1936 | CLK(NULL, "mcbsp4_fck", &mcbsp4_fck, CK_243X), | 1941 | CLK(NULL, "mcbsp4_fck", &mcbsp4_fck, CK_243X), |
1937 | CLK("omap-mcbsp.5", "ick", &mcbsp5_ick, CK_243X), | 1942 | CLK("omap-mcbsp.5", "ick", &mcbsp5_ick, CK_243X), |
1943 | CLK(NULL, "mcbsp5_ick", &mcbsp5_ick, CK_243X), | ||
1938 | CLK(NULL, "mcbsp5_fck", &mcbsp5_fck, CK_243X), | 1944 | CLK(NULL, "mcbsp5_fck", &mcbsp5_fck, CK_243X), |
1939 | CLK("omap2_mcspi.1", "ick", &mcspi1_ick, CK_243X), | 1945 | CLK("omap2_mcspi.1", "ick", &mcspi1_ick, CK_243X), |
1946 | CLK(NULL, "mcspi1_ick", &mcspi1_ick, CK_243X), | ||
1940 | CLK(NULL, "mcspi1_fck", &mcspi1_fck, CK_243X), | 1947 | CLK(NULL, "mcspi1_fck", &mcspi1_fck, CK_243X), |
1941 | CLK("omap2_mcspi.2", "ick", &mcspi2_ick, CK_243X), | 1948 | CLK("omap2_mcspi.2", "ick", &mcspi2_ick, CK_243X), |
1949 | CLK(NULL, "mcspi2_ick", &mcspi2_ick, CK_243X), | ||
1942 | CLK(NULL, "mcspi2_fck", &mcspi2_fck, CK_243X), | 1950 | CLK(NULL, "mcspi2_fck", &mcspi2_fck, CK_243X), |
1943 | CLK("omap2_mcspi.3", "ick", &mcspi3_ick, CK_243X), | 1951 | CLK("omap2_mcspi.3", "ick", &mcspi3_ick, CK_243X), |
1952 | CLK(NULL, "mcspi3_ick", &mcspi3_ick, CK_243X), | ||
1944 | CLK(NULL, "mcspi3_fck", &mcspi3_fck, CK_243X), | 1953 | CLK(NULL, "mcspi3_fck", &mcspi3_fck, CK_243X), |
1945 | CLK(NULL, "uart1_ick", &uart1_ick, CK_243X), | 1954 | CLK(NULL, "uart1_ick", &uart1_ick, CK_243X), |
1946 | CLK(NULL, "uart1_fck", &uart1_fck, CK_243X), | 1955 | CLK(NULL, "uart1_fck", &uart1_fck, CK_243X), |
@@ -1951,13 +1960,16 @@ static struct omap_clk omap2430_clks[] = { | |||
1951 | CLK(NULL, "gpios_ick", &gpios_ick, CK_243X), | 1960 | CLK(NULL, "gpios_ick", &gpios_ick, CK_243X), |
1952 | CLK(NULL, "gpios_fck", &gpios_fck, CK_243X), | 1961 | CLK(NULL, "gpios_fck", &gpios_fck, CK_243X), |
1953 | CLK("omap_wdt", "ick", &mpu_wdt_ick, CK_243X), | 1962 | CLK("omap_wdt", "ick", &mpu_wdt_ick, CK_243X), |
1963 | CLK(NULL, "mpu_wdt_ick", &mpu_wdt_ick, CK_243X), | ||
1954 | CLK(NULL, "mpu_wdt_fck", &mpu_wdt_fck, CK_243X), | 1964 | CLK(NULL, "mpu_wdt_fck", &mpu_wdt_fck, CK_243X), |
1955 | CLK(NULL, "sync_32k_ick", &sync_32k_ick, CK_243X), | 1965 | CLK(NULL, "sync_32k_ick", &sync_32k_ick, CK_243X), |
1956 | CLK(NULL, "wdt1_ick", &wdt1_ick, CK_243X), | 1966 | CLK(NULL, "wdt1_ick", &wdt1_ick, CK_243X), |
1957 | CLK(NULL, "omapctrl_ick", &omapctrl_ick, CK_243X), | 1967 | CLK(NULL, "omapctrl_ick", &omapctrl_ick, CK_243X), |
1958 | CLK(NULL, "icr_ick", &icr_ick, CK_243X), | 1968 | CLK(NULL, "icr_ick", &icr_ick, CK_243X), |
1959 | CLK("omap24xxcam", "fck", &cam_fck, CK_243X), | 1969 | CLK("omap24xxcam", "fck", &cam_fck, CK_243X), |
1970 | CLK(NULL, "cam_fck", &cam_fck, CK_243X), | ||
1960 | CLK("omap24xxcam", "ick", &cam_ick, CK_243X), | 1971 | CLK("omap24xxcam", "ick", &cam_ick, CK_243X), |
1972 | CLK(NULL, "cam_ick", &cam_ick, CK_243X), | ||
1961 | CLK(NULL, "mailboxes_ick", &mailboxes_ick, CK_243X), | 1973 | CLK(NULL, "mailboxes_ick", &mailboxes_ick, CK_243X), |
1962 | CLK(NULL, "wdt4_ick", &wdt4_ick, CK_243X), | 1974 | CLK(NULL, "wdt4_ick", &wdt4_ick, CK_243X), |
1963 | CLK(NULL, "wdt4_fck", &wdt4_fck, CK_243X), | 1975 | CLK(NULL, "wdt4_fck", &wdt4_fck, CK_243X), |
@@ -1966,10 +1978,14 @@ static struct omap_clk omap2430_clks[] = { | |||
1966 | CLK(NULL, "fac_ick", &fac_ick, CK_243X), | 1978 | CLK(NULL, "fac_ick", &fac_ick, CK_243X), |
1967 | CLK(NULL, "fac_fck", &fac_fck, CK_243X), | 1979 | CLK(NULL, "fac_fck", &fac_fck, CK_243X), |
1968 | CLK("omap_hdq.0", "ick", &hdq_ick, CK_243X), | 1980 | CLK("omap_hdq.0", "ick", &hdq_ick, CK_243X), |
1981 | CLK(NULL, "hdq_ick", &hdq_ick, CK_243X), | ||
1969 | CLK("omap_hdq.1", "fck", &hdq_fck, CK_243X), | 1982 | CLK("omap_hdq.1", "fck", &hdq_fck, CK_243X), |
1983 | CLK(NULL, "hdq_fck", &hdq_fck, CK_243X), | ||
1970 | CLK("omap_i2c.1", "ick", &i2c1_ick, CK_243X), | 1984 | CLK("omap_i2c.1", "ick", &i2c1_ick, CK_243X), |
1985 | CLK(NULL, "i2c1_ick", &i2c1_ick, CK_243X), | ||
1971 | CLK(NULL, "i2chs1_fck", &i2chs1_fck, CK_243X), | 1986 | CLK(NULL, "i2chs1_fck", &i2chs1_fck, CK_243X), |
1972 | CLK("omap_i2c.2", "ick", &i2c2_ick, CK_243X), | 1987 | CLK("omap_i2c.2", "ick", &i2c2_ick, CK_243X), |
1988 | CLK(NULL, "i2c2_ick", &i2c2_ick, CK_243X), | ||
1973 | CLK(NULL, "i2chs2_fck", &i2chs2_fck, CK_243X), | 1989 | CLK(NULL, "i2chs2_fck", &i2chs2_fck, CK_243X), |
1974 | CLK(NULL, "gpmc_fck", &gpmc_fck, CK_243X), | 1990 | CLK(NULL, "gpmc_fck", &gpmc_fck, CK_243X), |
1975 | CLK(NULL, "sdma_fck", &sdma_fck, CK_243X), | 1991 | CLK(NULL, "sdma_fck", &sdma_fck, CK_243X), |
@@ -1978,19 +1994,25 @@ static struct omap_clk omap2430_clks[] = { | |||
1978 | CLK(NULL, "des_ick", &des_ick, CK_243X), | 1994 | CLK(NULL, "des_ick", &des_ick, CK_243X), |
1979 | CLK("omap-sham", "ick", &sha_ick, CK_243X), | 1995 | CLK("omap-sham", "ick", &sha_ick, CK_243X), |
1980 | CLK("omap_rng", "ick", &rng_ick, CK_243X), | 1996 | CLK("omap_rng", "ick", &rng_ick, CK_243X), |
1997 | CLK(NULL, "rng_ick", &rng_ick, CK_243X), | ||
1981 | CLK("omap-aes", "ick", &aes_ick, CK_243X), | 1998 | CLK("omap-aes", "ick", &aes_ick, CK_243X), |
1982 | CLK(NULL, "pka_ick", &pka_ick, CK_243X), | 1999 | CLK(NULL, "pka_ick", &pka_ick, CK_243X), |
1983 | CLK(NULL, "usb_fck", &usb_fck, CK_243X), | 2000 | CLK(NULL, "usb_fck", &usb_fck, CK_243X), |
1984 | CLK("musb-omap2430", "ick", &usbhs_ick, CK_243X), | 2001 | CLK("musb-omap2430", "ick", &usbhs_ick, CK_243X), |
2002 | CLK(NULL, "usbhs_ick", &usbhs_ick, CK_243X), | ||
1985 | CLK("omap_hsmmc.0", "ick", &mmchs1_ick, CK_243X), | 2003 | CLK("omap_hsmmc.0", "ick", &mmchs1_ick, CK_243X), |
2004 | CLK(NULL, "mmchs1_ick", &mmchs1_ick, CK_243X), | ||
1986 | CLK(NULL, "mmchs1_fck", &mmchs1_fck, CK_243X), | 2005 | CLK(NULL, "mmchs1_fck", &mmchs1_fck, CK_243X), |
1987 | CLK("omap_hsmmc.1", "ick", &mmchs2_ick, CK_243X), | 2006 | CLK("omap_hsmmc.1", "ick", &mmchs2_ick, CK_243X), |
2007 | CLK(NULL, "mmchs2_ick", &mmchs2_ick, CK_243X), | ||
1988 | CLK(NULL, "mmchs2_fck", &mmchs2_fck, CK_243X), | 2008 | CLK(NULL, "mmchs2_fck", &mmchs2_fck, CK_243X), |
1989 | CLK(NULL, "gpio5_ick", &gpio5_ick, CK_243X), | 2009 | CLK(NULL, "gpio5_ick", &gpio5_ick, CK_243X), |
1990 | CLK(NULL, "gpio5_fck", &gpio5_fck, CK_243X), | 2010 | CLK(NULL, "gpio5_fck", &gpio5_fck, CK_243X), |
1991 | CLK(NULL, "mdm_intc_ick", &mdm_intc_ick, CK_243X), | 2011 | CLK(NULL, "mdm_intc_ick", &mdm_intc_ick, CK_243X), |
1992 | CLK("omap_hsmmc.0", "mmchsdb_fck", &mmchsdb1_fck, CK_243X), | 2012 | CLK("omap_hsmmc.0", "mmchsdb_fck", &mmchsdb1_fck, CK_243X), |
2013 | CLK(NULL, "mmchsdb1_fck", &mmchsdb1_fck, CK_243X), | ||
1993 | CLK("omap_hsmmc.1", "mmchsdb_fck", &mmchsdb2_fck, CK_243X), | 2014 | CLK("omap_hsmmc.1", "mmchsdb_fck", &mmchsdb2_fck, CK_243X), |
2015 | CLK(NULL, "mmchsdb2_fck", &mmchsdb2_fck, CK_243X), | ||
1994 | CLK(NULL, "timer_32k_ck", &func_32k_ck, CK_243X), | 2016 | CLK(NULL, "timer_32k_ck", &func_32k_ck, CK_243X), |
1995 | CLK(NULL, "timer_sys_ck", &sys_ck, CK_243X), | 2017 | CLK(NULL, "timer_sys_ck", &sys_ck, CK_243X), |
1996 | CLK(NULL, "timer_ext_ck", &alt_ck, CK_243X), | 2018 | CLK(NULL, "timer_ext_ck", &alt_ck, CK_243X), |
diff --git a/arch/arm/mach-omap2/clock3xxx_data.c b/arch/arm/mach-omap2/clock3xxx_data.c index f1ee4ec53d4a..1f42c9d5ecf3 100644 --- a/arch/arm/mach-omap2/clock3xxx_data.c +++ b/arch/arm/mach-omap2/clock3xxx_data.c | |||
@@ -3242,11 +3242,13 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3242 | CLK(NULL, "dpll3_m2x2_ck", &dpll3_m2x2_ck, CK_3XXX), | 3242 | CLK(NULL, "dpll3_m2x2_ck", &dpll3_m2x2_ck, CK_3XXX), |
3243 | CLK(NULL, "dpll3_m3_ck", &dpll3_m3_ck, CK_3XXX), | 3243 | CLK(NULL, "dpll3_m3_ck", &dpll3_m3_ck, CK_3XXX), |
3244 | CLK(NULL, "dpll3_m3x2_ck", &dpll3_m3x2_ck, CK_3XXX), | 3244 | CLK(NULL, "dpll3_m3x2_ck", &dpll3_m3x2_ck, CK_3XXX), |
3245 | CLK(NULL, "emu_core_alwon_ck", &emu_core_alwon_ck, CK_3XXX), | ||
3245 | CLK("etb", "emu_core_alwon_ck", &emu_core_alwon_ck, CK_3XXX), | 3246 | CLK("etb", "emu_core_alwon_ck", &emu_core_alwon_ck, CK_3XXX), |
3246 | CLK(NULL, "dpll4_ck", &dpll4_ck, CK_3XXX), | 3247 | CLK(NULL, "dpll4_ck", &dpll4_ck, CK_3XXX), |
3247 | CLK(NULL, "dpll4_x2_ck", &dpll4_x2_ck, CK_3XXX), | 3248 | CLK(NULL, "dpll4_x2_ck", &dpll4_x2_ck, CK_3XXX), |
3248 | CLK(NULL, "omap_192m_alwon_fck", &omap_192m_alwon_fck, CK_36XX), | 3249 | CLK(NULL, "omap_192m_alwon_fck", &omap_192m_alwon_fck, CK_36XX), |
3249 | CLK(NULL, "omap_96m_alwon_fck", &omap_96m_alwon_fck, CK_3XXX), | 3250 | CLK(NULL, "omap_96m_alwon_fck", &omap_96m_alwon_fck, CK_3XXX), |
3251 | CLK(NULL, "omap_96m_alwon_fck_3630", &omap_96m_alwon_fck_3630, CK_36XX), | ||
3250 | CLK(NULL, "omap_96m_fck", &omap_96m_fck, CK_3XXX), | 3252 | CLK(NULL, "omap_96m_fck", &omap_96m_fck, CK_3XXX), |
3251 | CLK(NULL, "cm_96m_fck", &cm_96m_fck, CK_3XXX), | 3253 | CLK(NULL, "cm_96m_fck", &cm_96m_fck, CK_3XXX), |
3252 | CLK(NULL, "omap_54m_fck", &omap_54m_fck, CK_3XXX), | 3254 | CLK(NULL, "omap_54m_fck", &omap_54m_fck, CK_3XXX), |
@@ -3262,6 +3264,7 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3262 | CLK(NULL, "dpll4_m5x2_ck", &dpll4_m5x2_ck, CK_3XXX), | 3264 | CLK(NULL, "dpll4_m5x2_ck", &dpll4_m5x2_ck, CK_3XXX), |
3263 | CLK(NULL, "dpll4_m6_ck", &dpll4_m6_ck, CK_3XXX), | 3265 | CLK(NULL, "dpll4_m6_ck", &dpll4_m6_ck, CK_3XXX), |
3264 | CLK(NULL, "dpll4_m6x2_ck", &dpll4_m6x2_ck, CK_3XXX), | 3266 | CLK(NULL, "dpll4_m6x2_ck", &dpll4_m6x2_ck, CK_3XXX), |
3267 | CLK(NULL, "emu_per_alwon_ck", &emu_per_alwon_ck, CK_3XXX), | ||
3265 | CLK("etb", "emu_per_alwon_ck", &emu_per_alwon_ck, CK_3XXX), | 3268 | CLK("etb", "emu_per_alwon_ck", &emu_per_alwon_ck, CK_3XXX), |
3266 | CLK(NULL, "dpll5_ck", &dpll5_ck, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | 3269 | CLK(NULL, "dpll5_ck", &dpll5_ck, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), |
3267 | CLK(NULL, "dpll5_m2_ck", &dpll5_m2_ck, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | 3270 | CLK(NULL, "dpll5_m2_ck", &dpll5_m2_ck, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), |
@@ -3271,6 +3274,7 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3271 | CLK(NULL, "dpll1_fck", &dpll1_fck, CK_3XXX), | 3274 | CLK(NULL, "dpll1_fck", &dpll1_fck, CK_3XXX), |
3272 | CLK(NULL, "mpu_ck", &mpu_ck, CK_3XXX), | 3275 | CLK(NULL, "mpu_ck", &mpu_ck, CK_3XXX), |
3273 | CLK(NULL, "arm_fck", &arm_fck, CK_3XXX), | 3276 | CLK(NULL, "arm_fck", &arm_fck, CK_3XXX), |
3277 | CLK(NULL, "emu_mpu_alwon_ck", &emu_mpu_alwon_ck, CK_3XXX), | ||
3274 | CLK("etb", "emu_mpu_alwon_ck", &emu_mpu_alwon_ck, CK_3XXX), | 3278 | CLK("etb", "emu_mpu_alwon_ck", &emu_mpu_alwon_ck, CK_3XXX), |
3275 | CLK(NULL, "dpll2_fck", &dpll2_fck, CK_34XX | CK_36XX), | 3279 | CLK(NULL, "dpll2_fck", &dpll2_fck, CK_34XX | CK_36XX), |
3276 | CLK(NULL, "iva2_ck", &iva2_ck, CK_34XX | CK_36XX), | 3280 | CLK(NULL, "iva2_ck", &iva2_ck, CK_34XX | CK_36XX), |
@@ -3315,6 +3319,7 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3315 | CLK(NULL, "fshostusb_fck", &fshostusb_fck, CK_3430ES1), | 3319 | CLK(NULL, "fshostusb_fck", &fshostusb_fck, CK_3430ES1), |
3316 | CLK(NULL, "core_12m_fck", &core_12m_fck, CK_3XXX), | 3320 | CLK(NULL, "core_12m_fck", &core_12m_fck, CK_3XXX), |
3317 | CLK("omap_hdq.0", "fck", &hdq_fck, CK_3XXX), | 3321 | CLK("omap_hdq.0", "fck", &hdq_fck, CK_3XXX), |
3322 | CLK(NULL, "hdq_fck", &hdq_fck, CK_3XXX), | ||
3318 | CLK(NULL, "ssi_ssr_fck", &ssi_ssr_fck_3430es1, CK_3430ES1), | 3323 | CLK(NULL, "ssi_ssr_fck", &ssi_ssr_fck_3430es1, CK_3430ES1), |
3319 | CLK(NULL, "ssi_ssr_fck", &ssi_ssr_fck_3430es2, CK_3430ES2PLUS | CK_36XX), | 3324 | CLK(NULL, "ssi_ssr_fck", &ssi_ssr_fck_3430es2, CK_3430ES2PLUS | CK_36XX), |
3320 | CLK(NULL, "ssi_sst_fck", &ssi_sst_fck_3430es1, CK_3430ES1), | 3325 | CLK(NULL, "ssi_sst_fck", &ssi_sst_fck_3430es1, CK_3430ES1), |
@@ -3322,6 +3327,8 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3322 | CLK(NULL, "core_l3_ick", &core_l3_ick, CK_3XXX), | 3327 | CLK(NULL, "core_l3_ick", &core_l3_ick, CK_3XXX), |
3323 | CLK("musb-omap2430", "ick", &hsotgusb_ick_3430es1, CK_3430ES1), | 3328 | CLK("musb-omap2430", "ick", &hsotgusb_ick_3430es1, CK_3430ES1), |
3324 | CLK("musb-omap2430", "ick", &hsotgusb_ick_3430es2, CK_3430ES2PLUS | CK_36XX), | 3329 | CLK("musb-omap2430", "ick", &hsotgusb_ick_3430es2, CK_3430ES2PLUS | CK_36XX), |
3330 | CLK(NULL, "hsotgusb_ick", &hsotgusb_ick_3430es1, CK_3430ES1), | ||
3331 | CLK(NULL, "hsotgusb_ick", &hsotgusb_ick_3430es2, CK_3430ES2PLUS | CK_36XX), | ||
3325 | CLK(NULL, "sdrc_ick", &sdrc_ick, CK_3XXX), | 3332 | CLK(NULL, "sdrc_ick", &sdrc_ick, CK_3XXX), |
3326 | CLK(NULL, "gpmc_fck", &gpmc_fck, CK_3XXX), | 3333 | CLK(NULL, "gpmc_fck", &gpmc_fck, CK_3XXX), |
3327 | CLK(NULL, "security_l3_ick", &security_l3_ick, CK_34XX | CK_36XX), | 3334 | CLK(NULL, "security_l3_ick", &security_l3_ick, CK_34XX | CK_36XX), |
@@ -3331,27 +3338,40 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3331 | CLK("usbhs_omap", "usbtll_ick", &usbtll_ick, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | 3338 | CLK("usbhs_omap", "usbtll_ick", &usbtll_ick, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), |
3332 | CLK("usbhs_tll", "usbtll_ick", &usbtll_ick, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | 3339 | CLK("usbhs_tll", "usbtll_ick", &usbtll_ick, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), |
3333 | CLK("omap_hsmmc.2", "ick", &mmchs3_ick, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | 3340 | CLK("omap_hsmmc.2", "ick", &mmchs3_ick, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), |
3341 | CLK(NULL, "mmchs3_ick", &mmchs3_ick, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | ||
3334 | CLK(NULL, "icr_ick", &icr_ick, CK_34XX | CK_36XX), | 3342 | CLK(NULL, "icr_ick", &icr_ick, CK_34XX | CK_36XX), |
3335 | CLK("omap-aes", "ick", &aes2_ick, CK_34XX | CK_36XX), | 3343 | CLK("omap-aes", "ick", &aes2_ick, CK_34XX | CK_36XX), |
3336 | CLK("omap-sham", "ick", &sha12_ick, CK_34XX | CK_36XX), | 3344 | CLK("omap-sham", "ick", &sha12_ick, CK_34XX | CK_36XX), |
3337 | CLK(NULL, "des2_ick", &des2_ick, CK_34XX | CK_36XX), | 3345 | CLK(NULL, "des2_ick", &des2_ick, CK_34XX | CK_36XX), |
3338 | CLK("omap_hsmmc.1", "ick", &mmchs2_ick, CK_3XXX), | 3346 | CLK("omap_hsmmc.1", "ick", &mmchs2_ick, CK_3XXX), |
3339 | CLK("omap_hsmmc.0", "ick", &mmchs1_ick, CK_3XXX), | 3347 | CLK("omap_hsmmc.0", "ick", &mmchs1_ick, CK_3XXX), |
3348 | CLK(NULL, "mmchs2_ick", &mmchs2_ick, CK_3XXX), | ||
3349 | CLK(NULL, "mmchs1_ick", &mmchs1_ick, CK_3XXX), | ||
3340 | CLK(NULL, "mspro_ick", &mspro_ick, CK_34XX | CK_36XX), | 3350 | CLK(NULL, "mspro_ick", &mspro_ick, CK_34XX | CK_36XX), |
3341 | CLK("omap_hdq.0", "ick", &hdq_ick, CK_3XXX), | 3351 | CLK("omap_hdq.0", "ick", &hdq_ick, CK_3XXX), |
3352 | CLK(NULL, "hdq_ick", &hdq_ick, CK_3XXX), | ||
3342 | CLK("omap2_mcspi.4", "ick", &mcspi4_ick, CK_3XXX), | 3353 | CLK("omap2_mcspi.4", "ick", &mcspi4_ick, CK_3XXX), |
3343 | CLK("omap2_mcspi.3", "ick", &mcspi3_ick, CK_3XXX), | 3354 | CLK("omap2_mcspi.3", "ick", &mcspi3_ick, CK_3XXX), |
3344 | CLK("omap2_mcspi.2", "ick", &mcspi2_ick, CK_3XXX), | 3355 | CLK("omap2_mcspi.2", "ick", &mcspi2_ick, CK_3XXX), |
3345 | CLK("omap2_mcspi.1", "ick", &mcspi1_ick, CK_3XXX), | 3356 | CLK("omap2_mcspi.1", "ick", &mcspi1_ick, CK_3XXX), |
3357 | CLK(NULL, "mcspi4_ick", &mcspi4_ick, CK_3XXX), | ||
3358 | CLK(NULL, "mcspi3_ick", &mcspi3_ick, CK_3XXX), | ||
3359 | CLK(NULL, "mcspi2_ick", &mcspi2_ick, CK_3XXX), | ||
3360 | CLK(NULL, "mcspi1_ick", &mcspi1_ick, CK_3XXX), | ||
3346 | CLK("omap_i2c.3", "ick", &i2c3_ick, CK_3XXX), | 3361 | CLK("omap_i2c.3", "ick", &i2c3_ick, CK_3XXX), |
3347 | CLK("omap_i2c.2", "ick", &i2c2_ick, CK_3XXX), | 3362 | CLK("omap_i2c.2", "ick", &i2c2_ick, CK_3XXX), |
3348 | CLK("omap_i2c.1", "ick", &i2c1_ick, CK_3XXX), | 3363 | CLK("omap_i2c.1", "ick", &i2c1_ick, CK_3XXX), |
3364 | CLK(NULL, "i2c3_ick", &i2c3_ick, CK_3XXX), | ||
3365 | CLK(NULL, "i2c2_ick", &i2c2_ick, CK_3XXX), | ||
3366 | CLK(NULL, "i2c1_ick", &i2c1_ick, CK_3XXX), | ||
3349 | CLK(NULL, "uart2_ick", &uart2_ick, CK_3XXX), | 3367 | CLK(NULL, "uart2_ick", &uart2_ick, CK_3XXX), |
3350 | CLK(NULL, "uart1_ick", &uart1_ick, CK_3XXX), | 3368 | CLK(NULL, "uart1_ick", &uart1_ick, CK_3XXX), |
3351 | CLK(NULL, "gpt11_ick", &gpt11_ick, CK_3XXX), | 3369 | CLK(NULL, "gpt11_ick", &gpt11_ick, CK_3XXX), |
3352 | CLK(NULL, "gpt10_ick", &gpt10_ick, CK_3XXX), | 3370 | CLK(NULL, "gpt10_ick", &gpt10_ick, CK_3XXX), |
3353 | CLK("omap-mcbsp.5", "ick", &mcbsp5_ick, CK_3XXX), | 3371 | CLK("omap-mcbsp.5", "ick", &mcbsp5_ick, CK_3XXX), |
3354 | CLK("omap-mcbsp.1", "ick", &mcbsp1_ick, CK_3XXX), | 3372 | CLK("omap-mcbsp.1", "ick", &mcbsp1_ick, CK_3XXX), |
3373 | CLK(NULL, "mcbsp5_ick", &mcbsp5_ick, CK_3XXX), | ||
3374 | CLK(NULL, "mcbsp1_ick", &mcbsp1_ick, CK_3XXX), | ||
3355 | CLK(NULL, "fac_ick", &fac_ick, CK_3430ES1), | 3375 | CLK(NULL, "fac_ick", &fac_ick, CK_3430ES1), |
3356 | CLK(NULL, "mailboxes_ick", &mailboxes_ick, CK_34XX | CK_36XX), | 3376 | CLK(NULL, "mailboxes_ick", &mailboxes_ick, CK_34XX | CK_36XX), |
3357 | CLK(NULL, "omapctrl_ick", &omapctrl_ick, CK_3XXX), | 3377 | CLK(NULL, "omapctrl_ick", &omapctrl_ick, CK_3XXX), |
@@ -3370,7 +3390,9 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3370 | CLK(NULL, "dss_96m_fck", &dss_96m_fck, CK_3XXX), | 3390 | CLK(NULL, "dss_96m_fck", &dss_96m_fck, CK_3XXX), |
3371 | CLK(NULL, "dss2_alwon_fck", &dss2_alwon_fck, CK_3XXX), | 3391 | CLK(NULL, "dss2_alwon_fck", &dss2_alwon_fck, CK_3XXX), |
3372 | CLK("omapdss_dss", "ick", &dss_ick_3430es1, CK_3430ES1), | 3392 | CLK("omapdss_dss", "ick", &dss_ick_3430es1, CK_3430ES1), |
3393 | CLK(NULL, "dss_ick", &dss_ick_3430es1, CK_3430ES1), | ||
3373 | CLK("omapdss_dss", "ick", &dss_ick_3430es2, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | 3394 | CLK("omapdss_dss", "ick", &dss_ick_3430es2, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), |
3395 | CLK(NULL, "dss_ick", &dss_ick_3430es2, CK_3430ES2PLUS | CK_AM35XX | CK_36XX), | ||
3374 | CLK(NULL, "cam_mclk", &cam_mclk, CK_34XX | CK_36XX), | 3396 | CLK(NULL, "cam_mclk", &cam_mclk, CK_34XX | CK_36XX), |
3375 | CLK(NULL, "cam_ick", &cam_ick, CK_34XX | CK_36XX), | 3397 | CLK(NULL, "cam_ick", &cam_ick, CK_34XX | CK_36XX), |
3376 | CLK(NULL, "csi2_96m_fck", &csi2_96m_fck, CK_34XX | CK_36XX), | 3398 | CLK(NULL, "csi2_96m_fck", &csi2_96m_fck, CK_34XX | CK_36XX), |
@@ -3397,6 +3419,7 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3397 | CLK(NULL, "wkup_l4_ick", &wkup_l4_ick, CK_34XX | CK_36XX), | 3419 | CLK(NULL, "wkup_l4_ick", &wkup_l4_ick, CK_34XX | CK_36XX), |
3398 | CLK(NULL, "usim_ick", &usim_ick, CK_3430ES2PLUS | CK_36XX), | 3420 | CLK(NULL, "usim_ick", &usim_ick, CK_3430ES2PLUS | CK_36XX), |
3399 | CLK("omap_wdt", "ick", &wdt2_ick, CK_3XXX), | 3421 | CLK("omap_wdt", "ick", &wdt2_ick, CK_3XXX), |
3422 | CLK(NULL, "wdt2_ick", &wdt2_ick, CK_3XXX), | ||
3400 | CLK(NULL, "wdt1_ick", &wdt1_ick, CK_3XXX), | 3423 | CLK(NULL, "wdt1_ick", &wdt1_ick, CK_3XXX), |
3401 | CLK(NULL, "gpio1_ick", &gpio1_ick, CK_3XXX), | 3424 | CLK(NULL, "gpio1_ick", &gpio1_ick, CK_3XXX), |
3402 | CLK(NULL, "omap_32ksync_ick", &omap_32ksync_ick, CK_3XXX), | 3425 | CLK(NULL, "omap_32ksync_ick", &omap_32ksync_ick, CK_3XXX), |
@@ -3442,9 +3465,13 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3442 | CLK("omap-mcbsp.2", "ick", &mcbsp2_ick, CK_3XXX), | 3465 | CLK("omap-mcbsp.2", "ick", &mcbsp2_ick, CK_3XXX), |
3443 | CLK("omap-mcbsp.3", "ick", &mcbsp3_ick, CK_3XXX), | 3466 | CLK("omap-mcbsp.3", "ick", &mcbsp3_ick, CK_3XXX), |
3444 | CLK("omap-mcbsp.4", "ick", &mcbsp4_ick, CK_3XXX), | 3467 | CLK("omap-mcbsp.4", "ick", &mcbsp4_ick, CK_3XXX), |
3468 | CLK(NULL, "mcbsp4_ick", &mcbsp2_ick, CK_3XXX), | ||
3469 | CLK(NULL, "mcbsp3_ick", &mcbsp3_ick, CK_3XXX), | ||
3470 | CLK(NULL, "mcbsp2_ick", &mcbsp4_ick, CK_3XXX), | ||
3445 | CLK(NULL, "mcbsp2_fck", &mcbsp2_fck, CK_3XXX), | 3471 | CLK(NULL, "mcbsp2_fck", &mcbsp2_fck, CK_3XXX), |
3446 | CLK(NULL, "mcbsp3_fck", &mcbsp3_fck, CK_3XXX), | 3472 | CLK(NULL, "mcbsp3_fck", &mcbsp3_fck, CK_3XXX), |
3447 | CLK(NULL, "mcbsp4_fck", &mcbsp4_fck, CK_3XXX), | 3473 | CLK(NULL, "mcbsp4_fck", &mcbsp4_fck, CK_3XXX), |
3474 | CLK(NULL, "emu_src_ck", &emu_src_ck, CK_3XXX), | ||
3448 | CLK("etb", "emu_src_ck", &emu_src_ck, CK_3XXX), | 3475 | CLK("etb", "emu_src_ck", &emu_src_ck, CK_3XXX), |
3449 | CLK(NULL, "pclk_fck", &pclk_fck, CK_3XXX), | 3476 | CLK(NULL, "pclk_fck", &pclk_fck, CK_3XXX), |
3450 | CLK(NULL, "pclkx2_fck", &pclkx2_fck, CK_3XXX), | 3477 | CLK(NULL, "pclkx2_fck", &pclkx2_fck, CK_3XXX), |
@@ -3460,8 +3487,12 @@ static struct omap_clk omap3xxx_clks[] = { | |||
3460 | CLK(NULL, "ipss_ick", &ipss_ick, CK_AM35XX), | 3487 | CLK(NULL, "ipss_ick", &ipss_ick, CK_AM35XX), |
3461 | CLK(NULL, "rmii_ck", &rmii_ck, CK_AM35XX), | 3488 | CLK(NULL, "rmii_ck", &rmii_ck, CK_AM35XX), |
3462 | CLK(NULL, "pclk_ck", &pclk_ck, CK_AM35XX), | 3489 | CLK(NULL, "pclk_ck", &pclk_ck, CK_AM35XX), |
3490 | CLK(NULL, "emac_ick", &emac_ick, CK_AM35XX), | ||
3491 | CLK(NULL, "emac_fck", &emac_fck, CK_AM35XX), | ||
3463 | CLK("davinci_emac.0", NULL, &emac_ick, CK_AM35XX), | 3492 | CLK("davinci_emac.0", NULL, &emac_ick, CK_AM35XX), |
3464 | CLK("davinci_mdio.0", NULL, &emac_fck, CK_AM35XX), | 3493 | CLK("davinci_mdio.0", NULL, &emac_fck, CK_AM35XX), |
3494 | CLK(NULL, "vpfe_ick", &emac_ick, CK_AM35XX), | ||
3495 | CLK(NULL, "vpfe_fck", &emac_fck, CK_AM35XX), | ||
3465 | CLK("vpfe-capture", "master", &vpfe_ick, CK_AM35XX), | 3496 | CLK("vpfe-capture", "master", &vpfe_ick, CK_AM35XX), |
3466 | CLK("vpfe-capture", "slave", &vpfe_fck, CK_AM35XX), | 3497 | CLK("vpfe-capture", "slave", &vpfe_fck, CK_AM35XX), |
3467 | CLK(NULL, "hsotgusb_ick", &hsotgusb_ick_am35xx, CK_AM35XX), | 3498 | CLK(NULL, "hsotgusb_ick", &hsotgusb_ick_am35xx, CK_AM35XX), |
diff --git a/arch/arm/mach-omap2/clock44xx_data.c b/arch/arm/mach-omap2/clock44xx_data.c index 506506f714a8..d661d138f270 100644 --- a/arch/arm/mach-omap2/clock44xx_data.c +++ b/arch/arm/mach-omap2/clock44xx_data.c | |||
@@ -3156,6 +3156,7 @@ static struct omap_clk omap44xx_clks[] = { | |||
3156 | CLK(NULL, "dss_tv_clk", &dss_tv_clk, CK_443X), | 3156 | CLK(NULL, "dss_tv_clk", &dss_tv_clk, CK_443X), |
3157 | CLK(NULL, "dss_48mhz_clk", &dss_48mhz_clk, CK_443X), | 3157 | CLK(NULL, "dss_48mhz_clk", &dss_48mhz_clk, CK_443X), |
3158 | CLK(NULL, "dss_dss_clk", &dss_dss_clk, CK_443X), | 3158 | CLK(NULL, "dss_dss_clk", &dss_dss_clk, CK_443X), |
3159 | CLK(NULL, "dss_fck", &dss_fck, CK_443X), | ||
3159 | CLK("omapdss_dss", "ick", &dss_fck, CK_443X), | 3160 | CLK("omapdss_dss", "ick", &dss_fck, CK_443X), |
3160 | CLK(NULL, "efuse_ctrl_cust_fck", &efuse_ctrl_cust_fck, CK_443X), | 3161 | CLK(NULL, "efuse_ctrl_cust_fck", &efuse_ctrl_cust_fck, CK_443X), |
3161 | CLK(NULL, "emif1_fck", &emif1_fck, CK_443X), | 3162 | CLK(NULL, "emif1_fck", &emif1_fck, CK_443X), |
@@ -3212,6 +3213,7 @@ static struct omap_clk omap44xx_clks[] = { | |||
3212 | CLK(NULL, "ocp2scp_usb_phy_phy_48m", &ocp2scp_usb_phy_phy_48m, CK_443X), | 3213 | CLK(NULL, "ocp2scp_usb_phy_phy_48m", &ocp2scp_usb_phy_phy_48m, CK_443X), |
3213 | CLK(NULL, "ocp2scp_usb_phy_ick", &ocp2scp_usb_phy_ick, CK_443X), | 3214 | CLK(NULL, "ocp2scp_usb_phy_ick", &ocp2scp_usb_phy_ick, CK_443X), |
3214 | CLK(NULL, "ocp_wp_noc_ick", &ocp_wp_noc_ick, CK_443X), | 3215 | CLK(NULL, "ocp_wp_noc_ick", &ocp_wp_noc_ick, CK_443X), |
3216 | CLK(NULL, "rng_ick", &rng_ick, CK_443X), | ||
3215 | CLK("omap_rng", "ick", &rng_ick, CK_443X), | 3217 | CLK("omap_rng", "ick", &rng_ick, CK_443X), |
3216 | CLK(NULL, "sha2md5_fck", &sha2md5_fck, CK_443X), | 3218 | CLK(NULL, "sha2md5_fck", &sha2md5_fck, CK_443X), |
3217 | CLK(NULL, "sl2if_ick", &sl2if_ick, CK_443X), | 3219 | CLK(NULL, "sl2if_ick", &sl2if_ick, CK_443X), |
@@ -3243,6 +3245,7 @@ static struct omap_clk omap44xx_clks[] = { | |||
3243 | CLK(NULL, "uart3_fck", &uart3_fck, CK_443X), | 3245 | CLK(NULL, "uart3_fck", &uart3_fck, CK_443X), |
3244 | CLK(NULL, "uart4_fck", &uart4_fck, CK_443X), | 3246 | CLK(NULL, "uart4_fck", &uart4_fck, CK_443X), |
3245 | CLK("usbhs_omap", "fs_fck", &usb_host_fs_fck, CK_443X), | 3247 | CLK("usbhs_omap", "fs_fck", &usb_host_fs_fck, CK_443X), |
3248 | CLK(NULL, "usb_host_fs_fck", &usb_host_fs_fck, CK_443X), | ||
3246 | CLK(NULL, "utmi_p1_gfclk", &utmi_p1_gfclk, CK_443X), | 3249 | CLK(NULL, "utmi_p1_gfclk", &utmi_p1_gfclk, CK_443X), |
3247 | CLK(NULL, "usb_host_hs_utmi_p1_clk", &usb_host_hs_utmi_p1_clk, CK_443X), | 3250 | CLK(NULL, "usb_host_hs_utmi_p1_clk", &usb_host_hs_utmi_p1_clk, CK_443X), |
3248 | CLK(NULL, "utmi_p2_gfclk", &utmi_p2_gfclk, CK_443X), | 3251 | CLK(NULL, "utmi_p2_gfclk", &utmi_p2_gfclk, CK_443X), |
@@ -3253,14 +3256,17 @@ static struct omap_clk omap44xx_clks[] = { | |||
3253 | CLK(NULL, "usb_host_hs_hsic60m_p2_clk", &usb_host_hs_hsic60m_p2_clk, CK_443X), | 3256 | CLK(NULL, "usb_host_hs_hsic60m_p2_clk", &usb_host_hs_hsic60m_p2_clk, CK_443X), |
3254 | CLK(NULL, "usb_host_hs_hsic480m_p2_clk", &usb_host_hs_hsic480m_p2_clk, CK_443X), | 3257 | CLK(NULL, "usb_host_hs_hsic480m_p2_clk", &usb_host_hs_hsic480m_p2_clk, CK_443X), |
3255 | CLK(NULL, "usb_host_hs_func48mclk", &usb_host_hs_func48mclk, CK_443X), | 3258 | CLK(NULL, "usb_host_hs_func48mclk", &usb_host_hs_func48mclk, CK_443X), |
3259 | CLK(NULL, "usb_host_hs_fck", &usb_host_hs_fck, CK_443X), | ||
3256 | CLK("usbhs_omap", "hs_fck", &usb_host_hs_fck, CK_443X), | 3260 | CLK("usbhs_omap", "hs_fck", &usb_host_hs_fck, CK_443X), |
3257 | CLK(NULL, "otg_60m_gfclk", &otg_60m_gfclk, CK_443X), | 3261 | CLK(NULL, "otg_60m_gfclk", &otg_60m_gfclk, CK_443X), |
3258 | CLK(NULL, "usb_otg_hs_xclk", &usb_otg_hs_xclk, CK_443X), | 3262 | CLK(NULL, "usb_otg_hs_xclk", &usb_otg_hs_xclk, CK_443X), |
3263 | CLK(NULL, "usb_otg_hs_ick", &usb_otg_hs_ick, CK_443X), | ||
3259 | CLK("musb-omap2430", "ick", &usb_otg_hs_ick, CK_443X), | 3264 | CLK("musb-omap2430", "ick", &usb_otg_hs_ick, CK_443X), |
3260 | CLK(NULL, "usb_phy_cm_clk32k", &usb_phy_cm_clk32k, CK_443X), | 3265 | CLK(NULL, "usb_phy_cm_clk32k", &usb_phy_cm_clk32k, CK_443X), |
3261 | CLK(NULL, "usb_tll_hs_usb_ch2_clk", &usb_tll_hs_usb_ch2_clk, CK_443X), | 3266 | CLK(NULL, "usb_tll_hs_usb_ch2_clk", &usb_tll_hs_usb_ch2_clk, CK_443X), |
3262 | CLK(NULL, "usb_tll_hs_usb_ch0_clk", &usb_tll_hs_usb_ch0_clk, CK_443X), | 3267 | CLK(NULL, "usb_tll_hs_usb_ch0_clk", &usb_tll_hs_usb_ch0_clk, CK_443X), |
3263 | CLK(NULL, "usb_tll_hs_usb_ch1_clk", &usb_tll_hs_usb_ch1_clk, CK_443X), | 3268 | CLK(NULL, "usb_tll_hs_usb_ch1_clk", &usb_tll_hs_usb_ch1_clk, CK_443X), |
3269 | CLK(NULL, "usb_tll_hs_ick", &usb_tll_hs_ick, CK_443X), | ||
3264 | CLK("usbhs_omap", "usbtll_ick", &usb_tll_hs_ick, CK_443X), | 3270 | CLK("usbhs_omap", "usbtll_ick", &usb_tll_hs_ick, CK_443X), |
3265 | CLK("usbhs_tll", "usbtll_ick", &usb_tll_hs_ick, CK_443X), | 3271 | CLK("usbhs_tll", "usbtll_ick", &usb_tll_hs_ick, CK_443X), |
3266 | CLK(NULL, "usim_ck", &usim_ck, CK_443X), | 3272 | CLK(NULL, "usim_ck", &usim_ck, CK_443X), |
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index 99fd3bb3c432..428dca631e12 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -679,8 +679,8 @@ static int _init_main_clk(struct omap_hwmod *oh) | |||
679 | if (!oh->main_clk) | 679 | if (!oh->main_clk) |
680 | return 0; | 680 | return 0; |
681 | 681 | ||
682 | oh->_clk = omap_clk_get_by_name(oh->main_clk); | 682 | oh->_clk = clk_get(NULL, oh->main_clk); |
683 | if (!oh->_clk) { | 683 | if (IS_ERR(oh->_clk)) { |
684 | pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n", | 684 | pr_warning("omap_hwmod: %s: cannot clk_get main_clk %s\n", |
685 | oh->name, oh->main_clk); | 685 | oh->name, oh->main_clk); |
686 | return -EINVAL; | 686 | return -EINVAL; |
@@ -724,8 +724,8 @@ static int _init_interface_clks(struct omap_hwmod *oh) | |||
724 | if (!os->clk) | 724 | if (!os->clk) |
725 | continue; | 725 | continue; |
726 | 726 | ||
727 | c = omap_clk_get_by_name(os->clk); | 727 | c = clk_get(NULL, os->clk); |
728 | if (!c) { | 728 | if (IS_ERR(c)) { |
729 | pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n", | 729 | pr_warning("omap_hwmod: %s: cannot clk_get interface_clk %s\n", |
730 | oh->name, os->clk); | 730 | oh->name, os->clk); |
731 | ret = -EINVAL; | 731 | ret = -EINVAL; |
@@ -760,8 +760,8 @@ static int _init_opt_clks(struct omap_hwmod *oh) | |||
760 | int ret = 0; | 760 | int ret = 0; |
761 | 761 | ||
762 | for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) { | 762 | for (i = oh->opt_clks_cnt, oc = oh->opt_clks; i > 0; i--, oc++) { |
763 | c = omap_clk_get_by_name(oc->clk); | 763 | c = clk_get(NULL, oc->clk); |
764 | if (!c) { | 764 | if (IS_ERR(c)) { |
765 | pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n", | 765 | pr_warning("omap_hwmod: %s: cannot clk_get opt_clk %s\n", |
766 | oh->name, oc->clk); | 766 | oh->name, oc->clk); |
767 | ret = -EINVAL; | 767 | ret = -EINVAL; |
diff --git a/arch/arm/plat-omap/clock.c b/arch/arm/plat-omap/clock.c index 706b7e29397f..9d7ac20ef8f9 100644 --- a/arch/arm/plat-omap/clock.c +++ b/arch/arm/plat-omap/clock.c | |||
@@ -312,33 +312,6 @@ void clk_enable_init_clocks(void) | |||
312 | } | 312 | } |
313 | } | 313 | } |
314 | 314 | ||
315 | /** | ||
316 | * omap_clk_get_by_name - locate OMAP struct clk by its name | ||
317 | * @name: name of the struct clk to locate | ||
318 | * | ||
319 | * Locate an OMAP struct clk by its name. Assumes that struct clk | ||
320 | * names are unique. Returns NULL if not found or a pointer to the | ||
321 | * struct clk if found. | ||
322 | */ | ||
323 | struct clk *omap_clk_get_by_name(const char *name) | ||
324 | { | ||
325 | struct clk *c; | ||
326 | struct clk *ret = NULL; | ||
327 | |||
328 | mutex_lock(&clocks_mutex); | ||
329 | |||
330 | list_for_each_entry(c, &clocks, node) { | ||
331 | if (!strcmp(c->name, name)) { | ||
332 | ret = c; | ||
333 | break; | ||
334 | } | ||
335 | } | ||
336 | |||
337 | mutex_unlock(&clocks_mutex); | ||
338 | |||
339 | return ret; | ||
340 | } | ||
341 | |||
342 | int omap_clk_enable_autoidle_all(void) | 315 | int omap_clk_enable_autoidle_all(void) |
343 | { | 316 | { |
344 | struct clk *c; | 317 | struct clk *c; |
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index c490240bb82c..46480fb762e5 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c | |||
@@ -266,10 +266,10 @@ static void _add_clkdev(struct omap_device *od, const char *clk_alias, | |||
266 | return; | 266 | return; |
267 | } | 267 | } |
268 | 268 | ||
269 | r = omap_clk_get_by_name(clk_name); | 269 | r = clk_get(NULL, clk_name); |
270 | if (IS_ERR(r)) { | 270 | if (IS_ERR(r)) { |
271 | dev_err(&od->pdev->dev, | 271 | dev_err(&od->pdev->dev, |
272 | "omap_clk_get_by_name for %s failed\n", clk_name); | 272 | "clk_get for %s failed\n", clk_name); |
273 | return; | 273 | return; |
274 | } | 274 | } |
275 | 275 | ||