修改喂狗芯片为100ms

This commit is contained in:
2026-04-26 15:54:52 +08:00
parent 9af585b664
commit f27cebde4d
12 changed files with 103 additions and 26 deletions

View File

@@ -272,7 +272,7 @@ static int sdrv_hyperbus_wait_idle(struct spi_nor *nor)
}
// ssdk_printf(SSDK_INFO, "flash_status = 0x%x \r\n", flash_status);
ssdk_printf(SSDK_INFO, "flash_status = 0x%x \r\n", flash_status);
if ((flash_status & BIT(7)))
break;

View File

@@ -624,7 +624,7 @@ static int sdrv_spibus_wait_idle(struct spi_nor *nor)
}
}
// ssdk_printf(SSDK_INFO, "flash_status = 0x%x \r\n", flash_status);
ssdk_printf(SSDK_INFO, "flash_status = 0x%x \r\n", flash_status);
if (!(flash_status & BIT(0)))
break;
@@ -1123,7 +1123,7 @@ static int sdrv_spibus_write(struct spi_nor *nor, flash_addr_t addr,
{
int ret;
if (!IS_ALIGNED(addr, 4) || !IS_ALIGNED(buf, 4)) {
if (!IS_ALIGNED(addr, 4) || !IS_ALIGNED(buf, 4)) {
return SPI_NOR_ERR_STATUS(SPI_NOR_WRITE, SPI_NOR_ADDRESS_INVALID);
} else if (!IS_ALIGNED(size, 4)) {
return SPI_NOR_ERR_STATUS(SPI_NOR_WRITE, SPI_NOR_LENGTH_INVALID);

View File

@@ -1098,9 +1098,9 @@ static void sdrv_xspi_polling_handler(void *arg)
}
nor->xfer_info_bottom.opt_result = ret ? FLASH_OPT_FAILED : FLASH_OPT_PENDING;
// ssdk_printf(SSDK_DEBUG, "xfer_type = %d, xfer size = %lld, xfer result = %d\r\n",
// nor->xfer_info_bottom.opt_type == FLASH_OPT_READ, nor->xfer_info_bottom.size,
// nor->xfer_info_bottom.opt_result);
ssdk_printf(SSDK_DEBUG, "xfer_type = %d, xfer size = %lld, xfer result = %d\r\n",
nor->xfer_info_bottom.opt_type == FLASH_OPT_READ, nor->xfer_info_bottom.size,
nor->xfer_info_bottom.opt_result);
if ((nor->xfer_info_bottom.size == 0 || nor->xfer_info_bottom.buf == NULL) &&
nor->xfer_info_bottom.opt_result == FLASH_OPT_PENDING) {