Lines Matching refs:config
78 struct hdmi_platform_config *config = pdev->dev.platform_data; in hdmi_init() local
89 hdmi->config = config; in hdmi_init()
92 if (config->phy_init) in hdmi_init()
93 hdmi->phy = config->phy_init(hdmi); in hdmi_init()
104 hdmi->mmio = msm_ioremap(pdev, config->mmio_name, "HDMI"); in hdmi_init()
111 config->hpd_reg_cnt, GFP_KERNEL); in hdmi_init()
116 for (i = 0; i < config->hpd_reg_cnt; i++) { in hdmi_init()
120 config->hpd_reg_names[i]); in hdmi_init()
124 config->hpd_reg_names[i], ret); in hdmi_init()
132 config->pwr_reg_cnt, GFP_KERNEL); in hdmi_init()
137 for (i = 0; i < config->pwr_reg_cnt; i++) { in hdmi_init()
141 config->pwr_reg_names[i]); in hdmi_init()
145 config->pwr_reg_names[i], ret); in hdmi_init()
153 config->hpd_clk_cnt, GFP_KERNEL); in hdmi_init()
158 for (i = 0; i < config->hpd_clk_cnt; i++) { in hdmi_init()
161 clk = devm_clk_get(&pdev->dev, config->hpd_clk_names[i]); in hdmi_init()
165 config->hpd_clk_names[i], ret); in hdmi_init()
173 config->pwr_clk_cnt, GFP_KERNEL); in hdmi_init()
178 for (i = 0; i < config->pwr_clk_cnt; i++) { in hdmi_init()
181 clk = devm_clk_get(&pdev->dev, config->pwr_clk_names[i]); in hdmi_init()
185 config->pwr_clk_names[i], ret); in hdmi_init()
387 static struct hdmi_platform_config config = {}; in hdmi_bind() local
393 config.phy_init = hdmi_phy_8960_init; in hdmi_bind()
394 config.mmio_name = "hdmi_msm_hdmi_addr"; in hdmi_bind()
395 config.hpd_reg_names = hpd_reg_names; in hdmi_bind()
396 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); in hdmi_bind()
397 config.hpd_clk_names = hpd_clk_names; in hdmi_bind()
398 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); in hdmi_bind()
399 config.ddc_clk_gpio = 70; in hdmi_bind()
400 config.ddc_data_gpio = 71; in hdmi_bind()
401 config.hpd_gpio = 72; in hdmi_bind()
402 config.mux_en_gpio = -1; in hdmi_bind()
403 config.mux_sel_gpio = -1; in hdmi_bind()
406 config.phy_init = hdmi_phy_8960_init; in hdmi_bind()
407 config.mmio_name = "hdmi_msm_hdmi_addr"; in hdmi_bind()
408 config.hpd_reg_names = hpd_reg_names; in hdmi_bind()
409 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); in hdmi_bind()
410 config.hpd_clk_names = hpd_clk_names; in hdmi_bind()
411 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); in hdmi_bind()
412 config.ddc_clk_gpio = 100; in hdmi_bind()
413 config.ddc_data_gpio = 101; in hdmi_bind()
414 config.hpd_gpio = 102; in hdmi_bind()
415 config.mux_en_gpio = -1; in hdmi_bind()
416 config.mux_sel_gpio = -1; in hdmi_bind()
421 config.phy_init = hdmi_phy_8x60_init; in hdmi_bind()
422 config.mmio_name = "hdmi_msm_hdmi_addr"; in hdmi_bind()
423 config.hpd_reg_names = hpd_reg_names; in hdmi_bind()
424 config.hpd_reg_cnt = ARRAY_SIZE(hpd_reg_names); in hdmi_bind()
425 config.hpd_clk_names = hpd_clk_names; in hdmi_bind()
426 config.hpd_clk_cnt = ARRAY_SIZE(hpd_clk_names); in hdmi_bind()
427 config.ddc_clk_gpio = 170; in hdmi_bind()
428 config.ddc_data_gpio = 171; in hdmi_bind()
429 config.hpd_gpio = 172; in hdmi_bind()
430 config.mux_en_gpio = -1; in hdmi_bind()
431 config.mux_sel_gpio = -1; in hdmi_bind()
433 hdmi_cfg = &config; in hdmi_bind()