On 10/18/2012 07:47 AM, Rob Herring wrote:
...
> Here is what I mentioned previously. This removes the static mapping from 
> the platforms. This is untested and probably breaks on different DEBUG_LL 
> options. For now, platforms call debug_ll_io_init, but once all platforms 
> are converted, this can be called from devicemaps_init.

> diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c

> +void __init debug_ll_io_init(void)
> +{
> +     struct map_desc map;
> +
> +     if (!IS_ENABLED(CONFIG_DEBUG_LL))
> +             return;
> +
> +     debug_ll_addr(&map.pfn, &map.virtual);
> +     map.pfn = __phys_to_pfn(map.pfn);
> +     map.length = PAGE_SIZE;
> +     map.type = MT_DEVICE;
> +     create_mapping(&map);
> +}

OK, so I just call this new function from Tegra's tegra_map_common_io().
That looks pretty neat. I'll give it a try.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to