diff options
Diffstat (limited to 'arch/arm/mm/cache-l2x0.c')
-rw-r--r-- | arch/arm/mm/cache-l2x0.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mm/cache-l2x0.c b/arch/arm/mm/cache-l2x0.c index 8f15f70622a6..e309c8f35af5 100644 --- a/arch/arm/mm/cache-l2x0.c +++ b/arch/arm/mm/cache-l2x0.c | |||
@@ -1647,6 +1647,7 @@ int __init l2x0_of_init(u32 aux_val, u32 aux_mask) | |||
1647 | struct device_node *np; | 1647 | struct device_node *np; |
1648 | struct resource res; | 1648 | struct resource res; |
1649 | u32 cache_id, old_aux; | 1649 | u32 cache_id, old_aux; |
1650 | u32 cache_level = 2; | ||
1650 | 1651 | ||
1651 | np = of_find_matching_node(NULL, l2x0_ids); | 1652 | np = of_find_matching_node(NULL, l2x0_ids); |
1652 | if (!np) | 1653 | if (!np) |
@@ -1679,6 +1680,12 @@ int __init l2x0_of_init(u32 aux_val, u32 aux_mask) | |||
1679 | if (!of_property_read_bool(np, "cache-unified")) | 1680 | if (!of_property_read_bool(np, "cache-unified")) |
1680 | pr_err("L2C: device tree omits to specify unified cache\n"); | 1681 | pr_err("L2C: device tree omits to specify unified cache\n"); |
1681 | 1682 | ||
1683 | if (of_property_read_u32(np, "cache-level", &cache_level)) | ||
1684 | pr_err("L2C: device tree omits to specify cache-level\n"); | ||
1685 | |||
1686 | if (cache_level != 2) | ||
1687 | pr_err("L2C: device tree specifies invalid cache level\n"); | ||
1688 | |||
1682 | /* Read back current (default) hardware configuration */ | 1689 | /* Read back current (default) hardware configuration */ |
1683 | if (data->save) | 1690 | if (data->save) |
1684 | data->save(l2x0_base); | 1691 | data->save(l2x0_base); |