Skip to content

Commit b1b182f

Browse files
committed
change(dsi): use DW_GDMA as the flow controller
previously the DSI_Bridge was set as the flow controller
1 parent 1129f08 commit b1b182f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/esp_lcd/dsi/esp_lcd_panel_dpi.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static esp_err_t dpi_panel_create_dma_link(esp_lcd_dpi_panel_t *dpi_panel)
118118
.handshake_type = DW_GDMA_HANDSHAKE_HW,
119119
.num_outstanding_requests = 2,
120120
},
121-
.flow_controller = DW_GDMA_FLOW_CTRL_DST, // the DSI bridge as the DMA flow controller
121+
.flow_controller = DW_GDMA_FLOW_CTRL_SELF, // DMA as the flow controller
122122
.chan_priority = 1,
123123
};
124124
ESP_RETURN_ON_ERROR(dw_gdma_new_channel(&dma_alloc_config, &dma_chan), TAG, "create DMA channel failed");
@@ -280,8 +280,8 @@ esp_err_t esp_lcd_new_panel_dpi(esp_lcd_dsi_bus_handle_t bus, const esp_lcd_dpi_
280280
panel_config->video_timing.vsync_front_porch);
281281
mipi_dsi_brg_ll_set_num_pixel_bits(hal->bridge, panel_config->video_timing.h_size * panel_config->video_timing.v_size * bits_per_pixel);
282282
mipi_dsi_brg_ll_set_underrun_discard_count(hal->bridge, panel_config->video_timing.h_size);
283-
// let the DSI bridge as the DMA flow controller
284-
mipi_dsi_brg_ll_set_flow_controller(hal->bridge, MIPI_DSI_LL_FLOW_CONTROLLER_BRIDGE);
283+
// use the DW_GDMA as the flow controller
284+
mipi_dsi_brg_ll_set_flow_controller(hal->bridge, MIPI_DSI_LL_FLOW_CONTROLLER_DMA);
285285
mipi_dsi_brg_ll_set_burst_len(hal->bridge, 256);
286286
mipi_dsi_brg_ll_set_empty_threshold(hal->bridge, 1024 - 256);
287287
// enable DSI bridge

0 commit comments

Comments
 (0)