Lines Matching refs:fsl_dev
21 int fsl_dcu_drm_encoder_create(struct fsl_dcu_drm_device *fsl_dev, in fsl_dcu_drm_encoder_create() argument
24 struct drm_encoder *encoder = &fsl_dev->encoder; in fsl_dcu_drm_encoder_create()
30 if (fsl_dev->tcon) in fsl_dcu_drm_encoder_create()
31 fsl_tcon_bypass_enable(fsl_dev->tcon); in fsl_dcu_drm_encoder_create()
33 ret = drm_simple_encoder_init(fsl_dev->drm, encoder, in fsl_dcu_drm_encoder_create()
78 static int fsl_dcu_attach_panel(struct fsl_dcu_drm_device *fsl_dev, in fsl_dcu_attach_panel() argument
81 struct drm_encoder *encoder = &fsl_dev->encoder; in fsl_dcu_attach_panel()
82 struct drm_connector *connector = &fsl_dev->connector.base; in fsl_dcu_attach_panel()
85 fsl_dev->connector.encoder = encoder; in fsl_dcu_attach_panel()
87 ret = drm_connector_init(fsl_dev->drm, connector, in fsl_dcu_attach_panel()
111 int fsl_dcu_create_outputs(struct fsl_dcu_drm_device *fsl_dev) in fsl_dcu_create_outputs() argument
119 panel_node = of_parse_phandle(fsl_dev->np, "fsl,panel", 0); in fsl_dcu_create_outputs()
121 fsl_dev->connector.panel = of_drm_find_panel(panel_node); in fsl_dcu_create_outputs()
123 if (IS_ERR(fsl_dev->connector.panel)) in fsl_dcu_create_outputs()
124 return PTR_ERR(fsl_dev->connector.panel); in fsl_dcu_create_outputs()
126 return fsl_dcu_attach_panel(fsl_dev, fsl_dev->connector.panel); in fsl_dcu_create_outputs()
129 ret = drm_of_find_panel_or_bridge(fsl_dev->np, 0, 0, &panel, &bridge); in fsl_dcu_create_outputs()
134 fsl_dev->connector.panel = panel; in fsl_dcu_create_outputs()
135 return fsl_dcu_attach_panel(fsl_dev, panel); in fsl_dcu_create_outputs()
138 return drm_bridge_attach(&fsl_dev->encoder, bridge, NULL, 0); in fsl_dcu_create_outputs()