Lines Matching refs:id
211 #define IRQ_CONFIGURE_FUNC(id) \ argument
212 static void mipi_dsi_ra_configure_func_##id(void) \
214 R_ICU->IELSR[DT_INST_IRQ_BY_NAME(id, sq0, irq)] = ELC_EVENT_MIPIDSI_SEQ0; \
215 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(id, sq0, irq), \
216 DT_INST_IRQ_BY_NAME(id, sq0, priority), mipi_dsi_seq0, \
217 DEVICE_DT_INST_GET(id), 0); \
218 irq_enable(DT_INST_IRQ_BY_NAME(id, sq0, irq)); \
219 R_ICU->IELSR[DT_INST_IRQ_BY_NAME(id, ferr, irq)] = ELC_EVENT_MIPIDSI_FERR; \
220 IRQ_CONNECT(DT_INST_IRQ_BY_NAME(id, ferr, irq), \
221 DT_INST_IRQ_BY_NAME(id, ferr, priority), mipi_dsi_ferr, \
222 DEVICE_DT_INST_GET(id), 0); \
223 irq_enable(DT_INST_IRQ_BY_NAME(id, ferr, irq)); \
226 #define IRQ_CONFIGURE_DEFINE(id) .irq_configure = mipi_dsi_ra_configure_func_##id argument
228 #define RENESAS_MIPI_DSI_DEVICE(id) \ argument
229 IRQ_CONFIGURE_FUNC(id) \
230 mipi_phy_ctrl_t mipi_phy_##id##_ctrl; \
231 static const mipi_phy_timing_t mipi_phy_##id##_timing = { \
244 static const mipi_phy_cfg_t mipi_phy_##id##_cfg = { \
247 .p_timing = &mipi_phy_##id##_timing, \
249 static const mipi_phy_instance_t mipi_phy##id = { \
250 .p_ctrl = &mipi_phy_##id##_ctrl, \
251 .p_cfg = &mipi_phy_##id##_cfg, \
254 static const mipi_dsi_extended_cfg_t mipi_dsi_##id##_extended_cfg = { \
255 .dsi_seq0.ipl = DT_INST_IRQ_BY_NAME(id, sq0, priority), \
256 .dsi_seq0.irq = DT_INST_IRQ_BY_NAME(id, sq0, irq), \
257 .dsi_seq1.ipl = DT_INST_IRQ_BY_NAME(id, sq1, priority), \
258 .dsi_seq1.irq = DT_INST_IRQ_BY_NAME(id, sq1, irq), \
259 .dsi_vin1.ipl = DT_INST_IRQ_BY_NAME(id, vm, priority), \
260 .dsi_vin1.irq = DT_INST_IRQ_BY_NAME(id, vm, irq), \
261 .dsi_rcv.ipl = DT_INST_IRQ_BY_NAME(id, rcv, priority), \
262 .dsi_rcv.irq = DT_INST_IRQ_BY_NAME(id, rcv, irq), \
263 .dsi_ferr.ipl = DT_INST_IRQ_BY_NAME(id, ferr, priority), \
264 .dsi_ferr.irq = DT_INST_IRQ_BY_NAME(id, ferr, irq), \
265 .dsi_ppi.ipl = DT_INST_IRQ_BY_NAME(id, ppi, priority), \
266 .dsi_ppi.irq = DT_INST_IRQ_BY_NAME(id, ppi, irq), \
294 static const mipi_dsi_timing_t mipi_dsi_##id##_timing = { \
300 static const struct mipi_dsi_renesas_ra_config ra_config_##id = { \
301 .clock_dev = DEVICE_DT_GET(DT_INST_CLOCKS_CTLR(id)), \
302 IRQ_CONFIGURE_DEFINE(id), \
303 .clock_dsi_subsys = {.mstp = (uint32_t)DT_INST_CLOCKS_CELL_BY_IDX(id, 0, mstp), \
304 .stop_bit = DT_INST_CLOCKS_CELL_BY_IDX(id, 0, stop_bit)}}; \
305 static struct mipi_dsi_renesas_ra_data ra_data_##id = { \
308 .p_mipi_phy_instance = &mipi_phy##id, \
309 .p_timing = &mipi_dsi_##id##_timing, \
334 .p_extend = &mipi_dsi_##id##_extended_cfg, \
339 DEVICE_DT_INST_DEFINE(id, &mipi_dsi_renesas_ra_init, NULL, &ra_data_##id, &ra_config_##id, \