Lines Matching refs:ldb

25 #include "imx-ldb-helper.h"
40 #define DRIVER_NAME "imx8qm-ldb"
48 struct ldb base;
62 static inline struct imx8qm_ldb *base_to_imx8qm_ldb(struct ldb *base)
84 struct ldb *ldb = ldb_ch->ldb;
87 struct imx8qm_ldb *imx8qm_ldb = base_to_imx8qm_ldb(ldb);
131 struct ldb *ldb = ldb_ch->ldb;
134 struct imx8qm_ldb *imx8qm_ldb = base_to_imx8qm_ldb(ldb);
172 ldb->ldb_ctrl |= LDB_DI0_VS_POL_ACT_LOW;
174 ldb->ldb_ctrl |= LDB_DI1_VS_POL_ACT_LOW;
182 ldb->ldb_ctrl |= LDB_CH0_DATA_WIDTH_24BIT;
184 ldb->ldb_ctrl |= LDB_CH1_DATA_WIDTH_24BIT;
191 regmap_update_bits(ldb->regmap, SS_CTRL, CH_VSYNC_M(chno), 0);
193 regmap_update_bits(ldb->regmap, SS_CTRL,
197 regmap_update_bits(ldb->regmap, SS_CTRL, CH_HSYNC_M(chno), 0);
199 regmap_update_bits(ldb->regmap, SS_CTRL,
208 struct ldb *ldb = ldb_ch->ldb;
211 struct imx8qm_ldb *imx8qm_ldb = base_to_imx8qm_ldb(ldb);
221 ldb->ldb_ctrl &= ~LDB_CH0_MODE_EN_MASK;
222 ldb->ldb_ctrl |= LDB_CH0_MODE_EN_TO_DI0;
225 ldb->ldb_ctrl &= ~LDB_CH1_MODE_EN_MASK;
226 ldb->ldb_ctrl |= LDB_CH1_MODE_EN_TO_DI0;
255 struct ldb *ldb = ldb_ch->ldb;
258 struct imx8qm_ldb *imx8qm_ldb = base_to_imx8qm_ldb(ldb);
443 struct ldb *ldb;
473 ldb = &imx8qm_ldb->base;
474 ldb->dev = dev;
475 ldb->ctrl_reg = 0xe0;
478 ldb->channel[i] = &imx8qm_ldb->channel[i].base;
480 ret = ldb_init_helper(ldb);
484 if (ldb->available_ch_cnt == 0) {
489 if (ldb->available_ch_cnt == 2) {
490 port1 = of_graph_get_port_by_id(ldb->channel[0]->np, 1);
491 port2 = of_graph_get_port_by_id(ldb->channel[1]->np, 1);
523 ret = ldb_find_next_bridge_helper(ldb);
530 ldb_add_bridge_helper(ldb, &imx8qm_ldb_bridge_funcs);
538 struct ldb *ldb = &imx8qm_ldb->base;
540 ldb_remove_bridge_helper(ldb);
553 struct ldb *ldb = &imx8qm_ldb->base;
556 regmap_write(ldb->regmap, ldb->ctrl_reg, 0);
567 { .compatible = "fsl,imx8qm-ldb" },