Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Michael Walle | 5ae3eec | 2012-02-06 22:42:10 +0530 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (c) 2012 Michael Walle |
| 4 | * Michael Walle <michael@walle.cc> |
Michael Walle | 5ae3eec | 2012-02-06 22:42:10 +0530 | [diff] [blame] | 5 | */ |
Michael Walle | 5ae3eec | 2012-02-06 22:42:10 +0530 | [diff] [blame] | 6 | #include <asm/arch/cpu.h> |
Simon Glass | 274e0b0 | 2020-05-10 11:39:56 -0600 | [diff] [blame] | 7 | #include <asm/cache.h> |
Michael Walle | 5ae3eec | 2012-02-06 22:42:10 +0530 | [diff] [blame] | 8 | |
| 9 | #define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22) |
| 10 | |
| 11 | void l2_cache_disable() |
| 12 | { |
| 13 | u32 ctrl; |
| 14 | |
| 15 | ctrl = readfr_extra_feature_reg(); |
| 16 | ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN; |
| 17 | writefr_extra_feature_reg(ctrl); |
| 18 | } |