Skip to content

Commit

Permalink
ARM: l2c: add decode for L2C-220 cache ways
Browse files Browse the repository at this point in the history
Rather than assuming these are always 8-way, it can be decoded from the
auxillary register in the same manner as L2C-210.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Russell King committed May 29, 2014
1 parent 051334b commit 5f47c38
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mm/cache-l2x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -701,6 +701,7 @@ static void __init __l2c_init(const struct l2c_init_data *data,
break;

case L2X0_CACHE_ID_PART_L210:
case L2X0_CACHE_ID_PART_L220:
ways = (aux >> 13) & 0xf;
break;

Expand Down

0 comments on commit 5f47c38

Please sign in to comment.