Browse Source

QSPI flash clk only woking in DIV_128

Signed-off-by: surenyi <surenyi82@163.com>
master
surenyi 2 weeks ago
parent
commit
2654ce26d6
  1. 2
      hwconf.c
  2. 3
      vxbLfsLib.c

2
hwconf.c

@ -248,7 +248,7 @@ struct vxbSpiDevInfo qspiDevTbl[] = {
struct hcfResource qspiResources[] = {
{ "regBase", HCF_RES_INT, { (void *)(0x28014000) } },
{ "capacity", HCF_RES_INT, { (void *)(QSPI_FLASH_CAP_32MB) } },
{ "clkDiv", HCF_RES_INT, { (void *)(QSPI_SCK_DIV_32) } },
{ "clkDiv", HCF_RES_INT, { (void *)(QSPI_SCK_DIV_128) } },
{ "transMode", HCF_RES_INT, { (void *)(QSPI_TRANSFER_1_1_1) } },
{ "addrMode", HCF_RES_INT, { (void *)(QSPI_ADDR_SEL_4) } },
{ "spiDev", HCF_RES_ADDR, { (void *)&qspiDevTbl[0]} },

3
vxbLfsLib.c

@ -531,6 +531,9 @@ LOCAL void lfsDevShow(VXB_DEVICE_ID pDev, int verbose)
printf(" read_size: %d\n", pDrvCtrl->lfsConfig.read_size);
printf(" prog_size: %d\n", pDrvCtrl->lfsConfig.prog_size);
printf(" block_size: %d\n", pDrvCtrl->lfsConfig.block_size);
printf(" flashOffset: 0x%x\n", pDrvCtrl->flashOffset);
printf(" partSize: 0x%x\n", pDrvCtrl->flashSize);
printf(" blkNum: 0x%x\n", pDrvCtrl->blkNum);
if (pDrvCtrl->mtd) {
printf(" flashChip: %s\n", pDrvCtrl->mtd->chipName);
}

Loading…
Cancel
Save