Lines Matching refs:plat
355 struct broadwell_igd_plat *plat = dev_get_platdata(dev); in igd_setup_panel() local
360 reg32 = (plat->dp_hotplug[0] & 0x7) << 2; in igd_setup_panel()
361 reg32 |= (plat->dp_hotplug[1] & 0x7) << 10; in igd_setup_panel()
362 reg32 |= (plat->dp_hotplug[2] & 0x7) << 18; in igd_setup_panel()
366 reg32 = (plat->port_select & 0x3) << 30; in igd_setup_panel()
367 reg32 |= (plat->power_up_delay & 0x1fff) << 16; in igd_setup_panel()
368 reg32 |= (plat->power_backlight_on_delay & 0x1fff); in igd_setup_panel()
372 reg32 = (plat->power_down_delay & 0x1fff) << 16; in igd_setup_panel()
373 reg32 |= (plat->power_backlight_off_delay & 0x1fff); in igd_setup_panel()
377 if (plat->power_cycle_delay) { in igd_setup_panel()
380 reg32 |= plat->power_cycle_delay & 0xff; in igd_setup_panel()
385 if (plat->cpu_backlight) { in igd_setup_panel()
387 gtt_write(priv, BLC_PWM_CPU_CTL, plat->cpu_backlight); in igd_setup_panel()
389 if (plat->pch_backlight) { in igd_setup_panel()
391 gtt_write(priv, BLC_PWM_PCH_CTL2, plat->pch_backlight); in igd_setup_panel()
397 struct broadwell_igd_plat *plat = dev_get_platdata(dev); in igd_cdclk_init_haswell() local
399 int cdclk = plat->cdclk; in igd_cdclk_init_haswell()
471 struct broadwell_igd_plat *plat = dev_get_platdata(dev); in igd_cdclk_init_broadwell() local
473 int cdclk = plat->cdclk; in igd_cdclk_init_broadwell()
566 struct broadwell_igd_plat *plat = dev_get_platdata(dev); in igd_pre_init() local
571 mdelay(plat->pre_graphics_delay); in igd_pre_init()
660 struct video_uc_platdata *plat = dev_get_uclass_platdata(dev); in broadwell_igd_probe() local
689 ret = mtrr_add_request(MTRR_TYPE_WRCOMB, plat->base, 256 << 20); in broadwell_igd_probe()
697 debug("fb=%lx, size %x, display size=%d %d %d\n", plat->base, in broadwell_igd_probe()
698 plat->size, uc_priv->xsize, uc_priv->ysize, uc_priv->bpix); in broadwell_igd_probe()
705 struct broadwell_igd_plat *plat = dev_get_platdata(dev); in broadwell_igd_ofdata_to_platdata() local
711 plat->dp_hotplug, in broadwell_igd_ofdata_to_platdata()
712 ARRAY_SIZE(plat->dp_hotplug))) in broadwell_igd_ofdata_to_platdata()
714 plat->port_select = fdtdec_get_int(blob, node, "intel,port-select", 0); in broadwell_igd_ofdata_to_platdata()
715 plat->power_cycle_delay = fdtdec_get_int(blob, node, in broadwell_igd_ofdata_to_platdata()
717 plat->power_up_delay = fdtdec_get_int(blob, node, in broadwell_igd_ofdata_to_platdata()
719 plat->power_down_delay = fdtdec_get_int(blob, node, in broadwell_igd_ofdata_to_platdata()
721 plat->power_backlight_on_delay = fdtdec_get_int(blob, node, in broadwell_igd_ofdata_to_platdata()
723 plat->power_backlight_off_delay = fdtdec_get_int(blob, node, in broadwell_igd_ofdata_to_platdata()
725 plat->cpu_backlight = fdtdec_get_int(blob, node, in broadwell_igd_ofdata_to_platdata()
727 plat->pch_backlight = fdtdec_get_int(blob, node, in broadwell_igd_ofdata_to_platdata()
729 plat->pre_graphics_delay = fdtdec_get_int(blob, node, in broadwell_igd_ofdata_to_platdata()
733 debug("dp_hotplug %d %d %d\n", plat->dp_hotplug[0], plat->dp_hotplug[1], in broadwell_igd_ofdata_to_platdata()
734 plat->dp_hotplug[2]); in broadwell_igd_ofdata_to_platdata()
735 debug("port_select = %d\n", plat->port_select); in broadwell_igd_ofdata_to_platdata()
736 debug("power_up_delay = %d\n", plat->power_up_delay); in broadwell_igd_ofdata_to_platdata()
738 plat->power_backlight_on_delay); in broadwell_igd_ofdata_to_platdata()
739 debug("power_down_delay = %d\n", plat->power_down_delay); in broadwell_igd_ofdata_to_platdata()
741 plat->power_backlight_off_delay); in broadwell_igd_ofdata_to_platdata()
742 debug("power_cycle_delay = %d\n", plat->power_cycle_delay); in broadwell_igd_ofdata_to_platdata()
743 debug("cpu_backlight = %x\n", plat->cpu_backlight); in broadwell_igd_ofdata_to_platdata()
744 debug("pch_backlight = %x\n", plat->pch_backlight); in broadwell_igd_ofdata_to_platdata()
745 debug("cdclk = %d\n", plat->cdclk); in broadwell_igd_ofdata_to_platdata()
746 debug("pre_graphics_delay = %d\n", plat->pre_graphics_delay); in broadwell_igd_ofdata_to_platdata()