Browse Source

!135 修复 SDIF 描述符计算

pull/136/head
zhugengyu 7 months ago
parent
commit
c7067d1279
  1. 12
      doc/ChangeLog.md
  2. 2
      drivers/mmc/fsdif/fsdif_dma.c
  3. 2
      example/peripherals/sd/inc/sdif/sdif_common.h
  4. 2
      example/peripherals/sd/makefile

12
doc/ChangeLog.md

@ -1,3 +1,15 @@
# Phytium Standalone SDK 2024-04-08 ChangeLog
Change Log since 2024-04-07
## drivers
- fix sdif descriptor num calculation
## example
- put more blocks in sdif read-write test
# Phytium Standalone SDK 2024-04-07 ChangeLog
Change Log since 2024-04-03

2
drivers/mmc/fsdif/fsdif_dma.c

@ -106,7 +106,7 @@ static FError FSdifSetupDMADescriptor(FSdif *const instance_p, FSdifData *data_p
if (data_p->datalen > instance_p->desc_list.desc_trans_sz)
{
desc_num = ((data_p->datalen / instance_p->desc_list.desc_trans_sz) +
(data_p->datalen % instance_p->desc_list.desc_trans_sz) ? 1 : 0);
((data_p->datalen % instance_p->desc_list.desc_trans_sz) ? 1 : 0));
}
if (desc_num > desc_list->desc_num)

2
example/peripherals/sd/inc/sdif/sdif_common.h

@ -58,7 +58,7 @@ extern "C"
#define SDIO_BLOCK_SIZE 256UL /* most tested sdio cards have 256 block size by default */
#define SD_START_BLOCK 0 /* assing start block index \
at least start from 500M address to protect firmware */
#define SD_USE_BLOCK 3
#define SD_USE_BLOCK 10
#define SD_TOTAL_BLOCKS (SD_BENCH_SIZE / SD_BLOCK_SIZE)
/**************************** Type Definitions *******************************/

2
example/peripherals/sd/makefile

@ -19,7 +19,7 @@ endif
include $(SDK_DIR)/tools/build/makeall.mk
USR_BOOT_DIR ?= /mnt/d/tftboot
USR_BOOT_DIR ?= /mnt/d/tftpboot
image:
make clean
make all -j

Loading…
Cancel
Save