/linux-master/drivers/video/fbdev/ |
H A D | fsl-diu-fb.c | 25 #include <linux/clk.h>
|
H A D | au1200fb.c | 33 #include <linux/clk.h> 823 struct clk *c = clk_get(NULL, "lcd_intclk");
|
/linux-master/drivers/staging/media/tegra-video/ |
H A D | vi.c | 7 #include <linux/clk.h> 1429 ret = clk_set_rate(vi->clk, vi->soc->vi_max_clk_hz); 1435 ret = clk_prepare_enable(vi->clk); 1452 clk_disable_unprepare(vi->clk); 1893 vi->clk = devm_clk_get(&pdev->dev, NULL); 1894 if (IS_ERR(vi->clk)) { 1895 ret = PTR_ERR(vi->clk);
|
/linux-master/drivers/staging/media/sunxi/sun6i-isp/ |
H A D | sun6i_isp.c | 7 #include <linux/clk.h>
|
/linux-master/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_gmin_platform.c | 8 #include <linux/clk.h> 72 struct clk *pmc_clk; 632 dev_err(dev, "Failed to get clk from %s: %d\n", gmin_pmc_clk_name, ret);
|
/linux-master/drivers/pmdomain/renesas/ |
H A D | rcar-sysc.c | 9 #include <linux/clk/renesas.h>
|
/linux-master/drivers/pmdomain/mediatek/ |
H A D | mtk-scpsys.c | 5 #include <linux/clk.h> 138 struct clk *clk[MAX_CLKS]; member in struct:scp_domain 210 static void scpsys_clk_disable(struct clk *clk[], int max_num) argument 215 clk_disable_unprepare(clk[i]); 218 static int scpsys_clk_enable(struct clk *clk[], int max_num) argument 222 for (i = 0; i < max_num && clk[i]; i++) { 223 ret = clk_prepare_enable(clk[ 414 init_clks(struct platform_device *pdev, struct clk **clk) argument 430 struct clk *clk[CLK_MAX]; local [all...] |
/linux-master/drivers/phy/qualcomm/ |
H A D | phy-qcom-edp.c | 7 #include <linux/clk.h> 8 #include <linux/clk-provider.h> 600 clk_set_rate(edp->dp_link_hw.clk, edp->dp_opts.link_rate * 100000); 601 clk_set_rate(edp->dp_pixel_hw.clk, pixel_freq); 672 * for link clk, crypto clk |
|
/linux-master/drivers/mmc/host/ |
H A D | sdhci_am654.c | 8 #include <linux/clk.h> 857 struct clk *clk_xin; 885 pltfm_host->clk = clk_xin; 918 ret = clk_prepare_enable(pltfm_host->clk); 934 clk_disable_unprepare(pltfm_host->clk); 956 clk_disable_unprepare(pltfm_host->clk); 1025 clk_disable_unprepare(pltfm_host->clk); 1036 ret = clk_prepare_enable(pltfm_host->clk);
|
H A D | sdhci.h | 648 /* get_timeout_clock should return clk rate in unit of Hz */ 782 void sdhci_enable_clk(struct sdhci_host *host, u16 clk);
|
H A D | sdhci.c | 1891 u16 clk = 0; local 1898 clk = sdhci_readw(host, SDHCI_CLOCK_CONTROL); 1903 clk = SDHCI_PROG_CLOCK_MODE; 1927 clk = SDHCI_PROG_CLOCK_MODE; 1970 clk |= (div & SDHCI_DIV_MASK) << SDHCI_DIVIDER_SHIFT; 1971 clk |= ((div & SDHCI_DIV_HI_MASK) >> SDHCI_DIV_MASK_LEN) 1974 return clk; 1978 void sdhci_enable_clk(struct sdhci_host *host, u16 clk) argument 1982 clk |= SDHCI_CLOCK_INT_EN; 1983 sdhci_writew(host, clk, SDHCI_CLOCK_CONTRO 2034 u16 clk; local 2409 u16 clk, ctrl_2; local [all...] |
H A D | sdhci-sprd.c | 83 struct clk *clk_sdio; 84 struct clk *clk_enable; 85 struct clk *clk_2x_enable; 205 static inline u32 sdhci_sprd_calc_div(u32 base_clk, u32 clk) argument 210 if (base_clk <= clk * 2) 213 div = (u32) (base_clk / (clk * 2)); 215 if ((base_clk / div) > (clk * 2)) 230 unsigned int clk) 237 div = sdhci_sprd_calc_div(sprd_host->base_rate, clk); 244 if (clk > 40000 229 _sdhci_sprd_set_clock(struct sdhci_host *host, unsigned int clk) argument 736 struct clk *clk; local [all...] |
H A D | sdhci-s3c.c | 18 #include <linux/clk.h> 122 struct clk *clk_io; 123 struct clk *clk_bus[MAX_BUS_CLK]; 182 struct clk *clksrc = ourhost->clk_bus[src]; 206 "clk %d: rate %ld, min rate %lu > wanted %u\n", 211 dev_dbg(&ourhost->pdev->dev, "clk %d: rate %ld, want %d, got %ld\n", 256 struct clk *clk = ourhost->clk_bus[best_src]; local 258 clk_prepare_enable(clk); 330 struct clk *cl local 352 struct clk *clk; local 372 u16 clk = 0; local [all...] |
H A D | sdhci-pci-gli.c | 318 /* disable tuned clk */ 338 /* clear tuned clk */ 511 u16 clk; local 521 clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock); 531 sdhci_enable_clk(host, clk); 710 u16 clk; local 721 clk = sdhci_calc_clk(host, clock, &host->mmc->actual_clock); 731 sdhci_enable_clk(host, clk); 901 u16 clk; local 918 clk [all...] |
H A D | sdhci-omap.c | 672 dsor = DIV_ROUND_UP(clk_get_rate(host->clk), clock); 761 return clk_get_rate(pltfm_host->clk) / SYSCTL_CLKD_MAX; 1276 pltfm_host->clk = devm_clk_get(dev, "fck"); 1277 if (IS_ERR(pltfm_host->clk)) { 1278 ret = PTR_ERR(pltfm_host->clk); 1282 ret = clk_set_rate(pltfm_host->clk, mmc->f_max);
|
H A D | sdhci-of-dwcmshc.c | 12 #include <linux/clk.h> 210 struct clk *bus_clk; 246 if (pltfm_host->clk) 256 return clk_round_rate(pltfm_host->clk, ULONG_MAX); 577 err = clk_set_rate(pltfm_host->clk, clock); 791 u16 clk; local 794 clk = sdhci_readw(host, SDHCI_CLOCK_CONTROL); 795 clk &= ~SDHCI_CLOCK_CARD_EN; 796 sdhci_writew(host, clk, SDHCI_CLOCK_CONTROL); 809 clk | 982 u16 clk; local [all...] |
H A D | sdhci-esdhc-mcf.c | 26 struct clk *clk_ipg; 27 struct clk *clk_ahb; 28 struct clk *clk_per; 446 pltfm_host->clk = mcf_data->clk_per; 447 pltfm_host->clock = clk_get_rate(pltfm_host->clk);
|
H A D | renesas_sdhi_core.c | 21 #include <linux/clk.h> 110 mmc->f_max = clk_get_rate(priv->clk); 116 mmc->f_min = max(clk_round_rate(priv->clk, 1) / 512, 1L); 128 struct clk *ref_clk = priv->clk; 140 return clk_get_rate(priv->clk); 159 * clk rate jumping to lower rate due to rounding error (eg: RZ/G2L has 160 * 3 clk sources 533.333333 MHz, 400 MHz and 266.666666 MHz. The request 184 clk_set_rate(priv->clk, best_freq >> clkh_shift); 186 return clk_get_rate(priv->clk); 193 u32 clk = 0, clock; local [all...] |
H A D | mtk-sd.c | 9 #include <linux/clk.h> 453 struct clk *src_clk; /* msdc source clock */ 454 struct clk *h_clk; /* msdc h_clk */ 455 struct clk *bus_clk; /* bus clock which used to access register */ 456 struct clk *src_clk_cg; /* msdc source clock control gate */ 457 struct clk *sys_clk_cg; /* msdc subsys clock control gate */ 458 struct clk *crypto_clk; /* msdc crypto clock control gate */ 817 /*DDR mode will double the clk cycles for data timeout */ 911 sclk = host->src_clk_freq >> 2; /* sclk = clk / 4 */ 937 sclk = host->src_clk_freq >> 1; /* sclk = clk / [all...] |
H A D | dw_mmc-hi3798mv200.c | 9 #include <linux/clk.h> 29 struct clk *sample_clk; 30 struct clk *drive_clk;
|
H A D | dw_mmc-hi3798cv200.c | 6 #include <linux/clk.h> 22 struct clk *sample_clk; 23 struct clk *drive_clk;
|
H A D | davinci_mmc.c | 13 #include <linux/clk.h> 171 struct clk *clk; member in struct:mmc_davinci_host 1064 mmc_pclk = clk_get_rate(host->clk); 1218 host->clk = devm_clk_get(&pdev->dev, NULL); 1219 if (IS_ERR(host->clk)) { 1220 ret = PTR_ERR(host->clk); 1223 ret = clk_prepare_enable(host->clk); 1227 host->mmc_input_clk = clk_get_rate(host->clk); 1331 clk_disable_unprepare(host->clk); [all...] |
H A D | atmel-mci.c | 8 #include <linux/clk.h> 368 struct clk *mck;
|
/linux-master/drivers/memory/ |
H A D | pl353-smc.c | 10 #include <linux/clk.h> 24 struct clk *memclk; 25 struct clk *aclk;
|
/linux-master/drivers/media/usb/dvb-usb/ |
H A D | dw2102.c | 1660 m88ds3103_pdata.clk = 27000000;
|