cpu.c 567 B

123456789101112131415161718192021222324
  1. #include <linux/kernel.h>
  2. #include <linux/init.h>
  3. #include <linux/io.h>
  4. #ifdef CONFIG_CACHE_L2X0
  5. #include <asm/hardware/cache-l2x0.h>
  6. static int __init meson_cache_init(void)
  7. {
  8. /*
  9. * Early BRESP, I/D prefetch enabled
  10. * Non-secure enabled
  11. * 128kb (16KB/way),
  12. * 8-way associativity,
  13. * evmon/parity/share disabled
  14. * Full Line of Zero enabled
  15. * Bits: .111 .... .100 0010 0000 .... .... ...1
  16. */
  17. l2x0_init((void __iomem *)IO_PL310_BASE, 0x7c420001, 0xff800fff);
  18. return 0;
  19. }
  20. early_initcall(meson_cache_init);
  21. #endif