/* Return the io register to perform required cache action like clean or clean & invalidate by adddress or range.  */
static u32* get_action_reg_range(enum cache_action action)
/* Return the io register to perform required cache action like clean or clean & invalidate by adddress or range.  */
static u32* get_action_reg_range(enum cache_action action)
{
	switch (action) {
	case INVALIDATE_POU:
		return V7M_CACHE_REG_ICIMVALU;
	case INVALIDATE_POC:
		return V7M_CACHE_REG_DCIMVAC;
	case FLUSH_POU:
		return V7M_CACHE_REG_DCCMVAU;
	case FLUSH_POC:
		return V7M_CACHE_REG_DCCMVAC;
	case FLUSH_INVAL_POC:
		return V7M_CACHE_REG_DCCIMVAC;
	default:
		break;
	}
	return NULL;
}