From eeae70ddf3bf2dea5706445c38139ec1bd7f4316 Mon Sep 17 00:00:00 2001 From: morris Date: Wed, 20 Dec 2023 13:28:00 +0800 Subject: [PATCH] fix(dw_gdma): wrong master port setting for destination --- components/esp_hw_support/dma/dw_gdma.c | 2 +- components/hal/esp32p4/include/hal/mipi_dsi_brg_ll.h | 4 ++-- components/soc/esp32p4/include/soc/mipi_dsi_bridge_struct.h | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/components/esp_hw_support/dma/dw_gdma.c b/components/esp_hw_support/dma/dw_gdma.c index fc69c75d84..5d7755bd7d 100644 --- a/components/esp_hw_support/dma/dw_gdma.c +++ b/components/esp_hw_support/dma/dw_gdma.c @@ -465,7 +465,7 @@ esp_err_t dw_gdma_channel_config_transfer(dw_gdma_channel_handle_t chan, const d // [Ctrl0] register // set master port for the source and destination target dw_gdma_ll_channel_set_src_master_port(hal->dev, chan_id, config->src.addr); - dw_gdma_ll_channel_set_dst_master_port(hal->dev, chan_id, config->src.addr); + dw_gdma_ll_channel_set_dst_master_port(hal->dev, chan_id, config->dst.addr); // transfer width dw_gdma_ll_channel_set_src_trans_width(hal->dev, chan_id, config->src.width); dw_gdma_ll_channel_set_dst_trans_width(hal->dev, chan_id, config->dst.width); diff --git a/components/hal/esp32p4/include/hal/mipi_dsi_brg_ll.h b/components/hal/esp32p4/include/hal/mipi_dsi_brg_ll.h index faf84355d7..19aed7fb43 100644 --- a/components/hal/esp32p4/include/hal/mipi_dsi_brg_ll.h +++ b/components/hal/esp32p4/include/hal/mipi_dsi_brg_ll.h @@ -255,10 +255,10 @@ static inline void mipi_dsi_brg_ll_set_yuv_convert_std(dsi_brg_dev_t* dev, lcd_y { switch (std) { case LCD_YUV_CONV_STD_BT601: - dev->yuv_cfg.protocal = 0; + dev->yuv_cfg.protocol = 0; break; case LCD_YUV_CONV_STD_BT709: - dev->yuv_cfg.protocal = 1; + dev->yuv_cfg.protocol = 1; break; default: abort(); diff --git a/components/soc/esp32p4/include/soc/mipi_dsi_bridge_struct.h b/components/soc/esp32p4/include/soc/mipi_dsi_bridge_struct.h index 33d8beeef6..ca48076eb1 100644 --- a/components/soc/esp32p4/include/soc/mipi_dsi_bridge_struct.h +++ b/components/soc/esp32p4/include/soc/mipi_dsi_bridge_struct.h @@ -495,10 +495,10 @@ typedef union { */ typedef union { struct { - /** protocal : R/W; bitpos: [0]; default: 0; - * this bit configures yuv protoocl, 0: bt.601, 1: bt.709 + /** protocol : R/W; bitpos: [0]; default: 0; + * this bit configures yuv protocol, 0: bt.601, 1: bt.709 */ - uint32_t protocal:1; + uint32_t protocol:1; /** yuv_pix_endian : R/W; bitpos: [1]; default: 0; * this bit configures yuv pixel endian, 0: y0u0y1v1y2u2y3v3, 1: y3u3y2v2y1u1y0v0 */