[PATCH V3 4/4] CS89x0 : add CS89x0 platform device to the iMX31ADS board

Fabio Estevam festevam at gmail.com
Mon Jan 23 21:37:50 EST 2012


On Sat, Jan 14, 2012 at 5:58 PM, Jaccon Bastiaansen
<jaccon.bastiaansen at gmail.com> wrote:

> +static const struct resource mx31ads_cs8900_resources[] __initconst = {
> +       {
> +               .start = MX31_CS4_BASE_ADDR + CS4_CS8900_MMIO_START,
> +               .end = MX31_CS4_BASE_ADDR + CS4_CS8900_MMIO_END,
> +               .flags = IORESOURCE_MEM
> +       },

You can use DEFINE_RES_MEM(MX31_CS4_BASE_ADDR, SZ_64K);
> +       {
> +               .start = EXPIO_INT_ENET_INT,
> +               .end = EXPIO_INT_ENET_INT,
> +               .flags = IORESOURCE_IRQ
> +       }

And here DEFINE_RES_IRQ(EXPIO_INT_ENET_INT);

Regards,

Fabio Estevam



More information about the linux-arm-kernel mailing list