/* This internal function performs run-time sanity check for PMA region start address and size.  */
static int pma_region_is_valid(const struct pma_region *region)
/* This internal function performs run-time sanity check for PMA region start address and size.  */
static int pma_region_is_valid(const struct pma_region *region)
{
	if (region->size < CONFIG_SOC_ANDES_V5_PMA_REGION_MIN_ALIGN_AND_SIZE) {
		return -EINVAL;
	}
	if (region->size & (region->size - 1)) {
		return -EINVAL;
	}
	if (region->start & (region->size - 1)) {
		return -EINVAL;
	}
	return 0;
}