Lines Matching refs:config
94 struct hdmi_platform_config *config = pdev->dev.platform_data; in hdmi_init() local
106 hdmi->config = config; in hdmi_init()
110 if (config->phy_init) { in hdmi_init()
111 hdmi->phy = config->phy_init(hdmi); in hdmi_init()
121 hdmi->mmio = msm_ioremap(pdev, config->mmio_name, "HDMI"); in hdmi_init()
129 config->mmio_name); in hdmi_init()
133 config->qfprom_mmio_name, "HDMI_QFPROM"); in hdmi_init()
140 config->hpd_reg_cnt, GFP_KERNEL); in hdmi_init()
145 for (i = 0; i < config->hpd_reg_cnt; i++) { in hdmi_init()
149 config->hpd_reg_names[i]); in hdmi_init()
153 config->hpd_reg_names[i], ret); in hdmi_init()
161 config->pwr_reg_cnt, GFP_KERNEL); in hdmi_init()
166 for (i = 0; i < config->pwr_reg_cnt; i++) { in hdmi_init()
170 config->pwr_reg_names[i]); in hdmi_init()
174 config->pwr_reg_names[i], ret); in hdmi_init()
182 config->hpd_clk_cnt, GFP_KERNEL); in hdmi_init()
187 for (i = 0; i < config->hpd_clk_cnt; i++) { in hdmi_init()
190 clk = devm_clk_get(&pdev->dev, config->hpd_clk_names[i]); in hdmi_init()
194 config->hpd_clk_names[i], ret); in hdmi_init()
202 config->pwr_clk_cnt, GFP_KERNEL); in hdmi_init()
207 for (i = 0; i < config->pwr_clk_cnt; i++) { in hdmi_init()
210 clk = devm_clk_get(&pdev->dev, config->pwr_clk_names[i]); in hdmi_init()
214 config->pwr_clk_names[i], ret); in hdmi_init()
447 static struct hdmi_platform_config config = {}; in hdmi_bind() local
453 config.phy_init = hdmi_phy_8960_init; in hdmi_bind()
454 config.hpd_reg_names = hpd_reg_names; in hdmi_bind()
455 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); in hdmi_bind()
456 config.hpd_clk_names = hpd_clk_names; in hdmi_bind()
457 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); in hdmi_bind()
458 config.ddc_clk_gpio = 70; in hdmi_bind()
459 config.ddc_data_gpio = 71; in hdmi_bind()
460 config.hpd_gpio = 72; in hdmi_bind()
461 config.mux_en_gpio = -1; in hdmi_bind()
462 config.mux_sel_gpio = -1; in hdmi_bind()
465 config.phy_init = hdmi_phy_8960_init; in hdmi_bind()
466 config.hpd_reg_names = hpd_reg_names; in hdmi_bind()
467 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); in hdmi_bind()
468 config.hpd_clk_names = hpd_clk_names; in hdmi_bind()
469 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); in hdmi_bind()
470 config.ddc_clk_gpio = 100; in hdmi_bind()
471 config.ddc_data_gpio = 101; in hdmi_bind()
472 config.hpd_gpio = 102; in hdmi_bind()
473 config.mux_en_gpio = -1; in hdmi_bind()
474 config.mux_sel_gpio = -1; in hdmi_bind()
479 config.phy_init = hdmi_phy_8x60_init; in hdmi_bind()
480 config.hpd_reg_names = hpd_reg_names; in hdmi_bind()
481 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); in hdmi_bind()
482 config.hpd_clk_names = hpd_clk_names; in hdmi_bind()
483 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); in hdmi_bind()
484 config.ddc_clk_gpio = 170; in hdmi_bind()
485 config.ddc_data_gpio = 171; in hdmi_bind()
486 config.hpd_gpio = 172; in hdmi_bind()
487 config.mux_en_gpio = -1; in hdmi_bind()
488 config.mux_sel_gpio = -1; in hdmi_bind()
490 config.mmio_name = "hdmi_msm_hdmi_addr"; in hdmi_bind()
491 config.qfprom_mmio_name = "hdmi_msm_qfprom_addr"; in hdmi_bind()
493 hdmi_cfg = &config; in hdmi_bind()