[PATCH] ARM l2x0: check whether l2x0 already enabled

Surinder P Singh srplsnh at gmail.com
Tue Nov 24 08:35:47 EST 2009


On Tue, Nov 24, 2009 at 6:05 AM, srinidhi kasagar
<srinidhi.kasagar at stericsson.com> wrote:

>> 2 points:
>>
>> 1. Since this code is also valid for devices based on pre-ARMv6, maybe
>> making this code conditional for >=ARMv6 would be cleaner ?
> rather it depends on l2 controller being used. L210 controllers
> do not have such restrictions whereas l220/pl310 have such kind
> of secure/non-secure restrictions. So would it be better to keep
> condition based on l2 controller being used?
>

Thats probably better. You can read the L2 cache ID register to figure
out if its a L210/220 or PL310 and so on. You can couple this check
with the cpu secure/non-secure state before deciding to write to the
registers.

Cheers,
sp



More information about the linux-arm-kernel mailing list