[PATCH 02/16] ARM: l2c: add platform independent core L2 cache initialisation

Rob Herring robherring2 at gmail.com
Mon Apr 28 11:50:33 PDT 2014


On Mon, Apr 28, 2014 at 1:23 PM, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
> On Mon, Apr 28, 2014 at 12:54:58PM -0500, Rob Herring wrote:
>> This function should be a nop if there is no DT node matching, so we
>> don't really need to trigger calling it based on machine_desc values.
>> If we do that, then we can have aux_mask and aux_val values of 0 for
>> both also mean don't do any aux ctrl setup. That would help minimize
>> the machine_desc for many platforms.
>
> Calling it with both set to zero results in the auxiliary control register
> being cleared to zero.  We don't want that to happen.

Right, but we can make the core L2 init code only write aux ctrl if
(aux_val && ~aux_mask). Then you don't have to add the values on a
bunch of platforms.

Rob



More information about the linux-arm-kernel mailing list