[PATCH v3 1/2] ARM: EXYNOS4: Change System MMU device definition

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Oct 7 06:27:54 EDT 2011


On Fri, Oct 07, 2011 at 06:56:21PM +0900, Kukjin Kim wrote:
> +#define SYSMMU_RESOURCE(ipname, base, irq) \
> +static struct resource sysmmu_resource_##ipname[] =\
> +{\
> +	{\
> +		.start	= EXYNOS4_PA_SYSMMU_##base,\
> +		.end	= EXYNOS4_PA_SYSMMU_##base + SZ_4K - 1,\
> +		.flags	= IORESOURCE_MEM,\
> +	}, {\
> +		.start	= IRQ_SYSMMU_##irq##_0,\
> +		.end	= IRQ_SYSMMU_##irq##_0,\
> +		.flags	= IORESOURCE_IRQ,\
> +	},\
>  }

#define SYSMMU_RESOURCE(ipname, base, irq) \
static struct resource sysmmu_resource_##ipname[] = \
{ \
	DEFINE_RES_MEM(EXYNOS4_PA_SYSMMU_##base, SZ_4K), \
	DEFINE_RES_IRQ(IRQ_SYSMMU_##irq##_0), \
}




More information about the linux-arm-kernel mailing list