cache.c 384 B

12345678910111213141516171819
  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. #include <asm/cache.h>
  9. #define FEROCEON_EXTRA_FEATURE_L2C_EN (1<<22)
  10. void l2_cache_disable()
  11. {
  12. u32 ctrl;
  13. ctrl = readfr_extra_feature_reg();
  14. ctrl &= ~FEROCEON_EXTRA_FEATURE_L2C_EN;
  15. writefr_extra_feature_reg(ctrl);
  16. }