Felipe Contreras <[email protected]> writes:

> On Tue, May 25, 2010 at 5:49 PM, Kevin Hilman
> <[email protected]> wrote:
>> Felipe Contreras <[email protected]> writes:
>>
>>> On Tue, May 25, 2010 at 3:00 AM, Kevin Hilman
>>> <[email protected]> wrote:
>>>> Felipe Contreras <[email protected]> writes:
>>>>

[...]

>>>>> -static struct platform_device mbox_device = {
>>>>> -     .name           = "omap-mailbox",
>>>>> -     .id             = -1,
>>>>> -};
>>>>> +     pdata.base_addr = hwmod->_rt_va;
>>>>
>>>> Shouldn't need the base address in pdata.  The driver should just do a
>>>> platform_get_resource() to get the physical address and then ioremap.
>>>
>>> But the hwmod code already did ioremap in _find_mpu_rt_base().
>>
>> Yes, but that's a hwmod-internal implementation detail that may
>> change, or may not be needed for some hwmods, or may be iounmapped
>> after hwmod init etc.
>
> So I have to do another ioremap()?

Yes.

But keep in mind that these L4 devices have static mappings, so there
really not an additional mapping created.

Kevin
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to