[PATCH 3/4] ARM: pmu: add OF probing support

Rob Herring robherring2 at gmail.com
Mon Jun 13 09:40:27 EDT 2011


Mark,

On 06/13/2011 04:35 AM, Mark Rutland wrote:
> This is based on an earlier patch from Rob Herring <rob.herring at calxeda.com>
> 
>> Add OF match table to enable OF style driver binding. The dts entry is like
>> this:
>>
>> pmu {
>> 	compatible = "arm,cortex-a9-pmu";
>> 	interrupts = <100 101>;
>> };
>>
>> The use of pdev->id as an index breaks with OF device binding, so set the type
>> based on the OF compatible string.
> 
> This modification sets the PMU hardware type based on data embedded in the
> binding, allowing easy addition of new PMU types in future.
> 
> Support for new PMU types not provided by devicetree can be added later using
> platform_device_id tables in a similar fashion.
> 
> Cc: Jamie Iles <jamie at jamieiles.com>
> Cc: Rob Herring <rob.herring at calxeda.com>
> Cc: Will Deacon <will.deacon at arm.com>
> ---
>  
>  Rob: would you be happy to merge this into your tree? or would you
>  rather I sent it through Russell?

Looks good to me. I'm happy for you to take it.

Rob



More information about the linux-arm-kernel mailing list