/* Retrieve the status of a specific thread in the Cadence NAND controller. */
static uint32_t cdns_nand_get_thrd_status(uintptr_t base_address, uint8_t thread)
/* Retrieve the status of a specific thread in the Cadence NAND controller. */
static uint32_t cdns_nand_get_thrd_status(uintptr_t base_address, uint8_t thread)
{
	uint32_t status;
	sys_write32(THREAD_VAL(thread), (base_address + CMD_STATUS_PTR_ADDR));
	status = sys_read32((base_address + CMD_STAT_CMD_STATUS));
	return status;
}