init.c 318 B

1234567891011121314151617181920212223
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * (C) Copyright 2012 Stephen Warren
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. */
  8. #include <common.h>
  9. int arch_cpu_init(void)
  10. {
  11. icache_enable();
  12. return 0;
  13. }
  14. #ifdef CONFIG_ARMV7_LPAE
  15. void enable_caches(void)
  16. {
  17. dcache_enable();
  18. }
  19. #endif