feat add xishutong-arm32 board for XiZi kernel

This commit is contained in:
Liu_Weichao
2023-11-20 10:22:08 +08:00
parent 50d8ff5488
commit 270d2b9ea3
222 changed files with 125247 additions and 5 deletions
@@ -229,11 +229,13 @@ static void SdCardAttach(void)
KPrintf("\r\nCard inserted.\r\n");
int err_code = LL_OK;
/* Reset and init SDIOC */
if (LL_OK != SDIOC_SWReset(sd_handle->SDIOCx, SDIOC_SW_RST_ALL)) {
KPrintf("Reset SDIOC failed!\r\n");
} else if (LL_OK != SD_Init(sd_handle)) {
KPrintf("SD card initialize failed!\r\n");
if (LL_OK != (err_code = SDIOC_SWReset(sd_handle->SDIOCx, SDIOC_SW_RST_ALL))) {
KPrintf("Reset SDIOC failed! error code: %d\r\n", err_code);
} else if (LL_OK != (err_code = SD_Init(sd_handle))) {
KPrintf("SD card initialize failed!, error code: %d\r\n", err_code);
} else {
KPrintf("SD card init done!\r\n");
}