/* Return QMSPI unit size of the number of units field in QMSPI control/descriptor register. Input: power of 2 unit size 4, 2, or 0(default) corresponding to 16, 4, or 1 byte units.  */
static uint32_t get_qunits(uint32_t qshift)
/* Return QMSPI unit size of the number of units field in QMSPI control/descriptor register. Input: power of 2 unit size 4, 2, or 0(default) corresponding to 16, 4, or 1 byte units.  */
static uint32_t get_qunits(uint32_t qshift)
{
	if (qshift == 4) {
		return MCHP_QMSPI_C_XFR_UNITS_16;
	} else if (qshift == 2) {
		return MCHP_QMSPI_C_XFR_UNITS_4;
	} else {
		return MCHP_QMSPI_C_XFR_UNITS_1;
	}
}