Lines Matching full:ldb

18 #include "imx-ldb-helper.h"
52 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_mode_set_helper() local
56 ldb->ldb_ctrl |= LDB_SPLIT_MODE_EN; in ldb_bridge_mode_set_helper()
63 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH0_24; in ldb_bridge_mode_set_helper()
65 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH1_24; in ldb_bridge_mode_set_helper()
69 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH0_24 | in ldb_bridge_mode_set_helper()
72 ldb->ldb_ctrl |= LDB_DATA_WIDTH_CH1_24 | in ldb_bridge_mode_set_helper()
82 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_enable_helper() local
88 regmap_write(ldb->regmap, ldb->ctrl_reg, ldb->ldb_ctrl); in ldb_bridge_enable_helper()
95 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_disable_helper() local
99 ldb->ldb_ctrl &= ~LDB_CH0_MODE_EN_MASK; in ldb_bridge_disable_helper()
101 ldb->ldb_ctrl &= ~LDB_CH1_MODE_EN_MASK; in ldb_bridge_disable_helper()
103 regmap_write(ldb->regmap, ldb->ctrl_reg, ldb->ldb_ctrl); in ldb_bridge_disable_helper()
111 struct ldb *ldb = ldb_ch->ldb; in ldb_bridge_attach_helper() local
114 DRM_DEV_ERROR(ldb->dev, in ldb_bridge_attach_helper()
125 int ldb_init_helper(struct ldb *ldb) in ldb_init_helper() argument
127 struct device *dev = ldb->dev; in ldb_init_helper()
133 ldb->regmap = syscon_node_to_regmap(np->parent); in ldb_init_helper()
134 if (IS_ERR(ldb->regmap)) { in ldb_init_helper()
135 ret = PTR_ERR(ldb->regmap); in ldb_init_helper()
153 ldb_ch = ldb->channel[i]; in ldb_init_helper()
154 ldb_ch->ldb = ldb; in ldb_init_helper()
159 ldb->available_ch_cnt++; in ldb_init_helper()
166 int ldb_find_next_bridge_helper(struct ldb *ldb) in ldb_find_next_bridge_helper() argument
168 struct device *dev = ldb->dev; in ldb_find_next_bridge_helper()
173 ldb_ch = ldb->channel[i]; in ldb_find_next_bridge_helper()
194 void ldb_add_bridge_helper(struct ldb *ldb, in ldb_add_bridge_helper() argument
201 ldb_ch = ldb->channel[i]; in ldb_add_bridge_helper()
215 void ldb_remove_bridge_helper(struct ldb *ldb) in ldb_remove_bridge_helper() argument
221 ldb_ch = ldb->channel[i]; in ldb_remove_bridge_helper()
231 MODULE_DESCRIPTION("i.MX8 LVDS Display Bridge(LDB)/Pixel Mapper bridge helper");