[PATCH v1 2/2] OMAP3: add platform devices for ETM and ETB

Linus Walleij linus.ml.walleij at gmail.com
Sun Oct 11 18:10:43 EDT 2009


2009/10/11 Alexander Shishkin <virtuoso at slind.org>:

> This enables debug components found in omap3xxx.
> (...)
> +static struct resource rx51_etb_resource = {
> +       .start = ETB_BASE,
> +       .end   = ETB_BASE + SZ_4K,

.end = ETB_BASE + SZ_4K - 1

This will play with the resource paradigm and resource_size() will
work correctly in the driver after this.

> +       .flags = IORESOURCE_MEM,
> +};
> +
>(...)
> +
> +static struct resource rx51_etm_resource = {
> +       .start = ETM_BASE,
> +       .end   = ETM_BASE + SZ_4K,

Ditto.

> +       .flags = IORESOURCE_MEM,
> +};

Linus Walleij



More information about the linux-arm-kernel mailing list