Michael Walle | 6795302 | 2012-02-06 22:42:10 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2012 Michael Walle |
| 3 | * Michael Walle <michael@walle.cc> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Michael Walle | 6795302 | 2012-02-06 22:42:10 +0530 | [diff] [blame] | 6 | */ |
| 7 | #include <common.h> |
| 8 | #include <asm/arch/cpu.h> |
| 9 | |
| 10 | #define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22) |
| 11 | |
| 12 | void l2_cache_disable() |
| 13 | { |
| 14 | u32 ctrl; |
| 15 | |
| 16 | ctrl = readfr_extra_feature_reg(); |
| 17 | ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN; |
| 18 | writefr_extra_feature_reg(ctrl); |
| 19 | } |