cache.c 361 B

123456789101112131415161718
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2012 Michael Walle
  4. * Michael Walle <michael@walle.cc>
  5. */
  6. #include <common.h>
  7. #include <asm/arch/cpu.h>
  8. #define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22)
  9. void l2_cache_disable()
  10. {
  11. u32 ctrl;
  12. ctrl = readfr_extra_feature_reg();
  13. ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN;
  14. writefr_extra_feature_reg(ctrl);
  15. }