cpu.c 373 B

123456789101112131415161718192021222324
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2018 MediaTek Inc.
  4. */
  5. #include <common.h>
  6. #include <cpu_func.h>
  7. #include <dm.h>
  8. #include <init.h>
  9. #include <wdt.h>
  10. #include <dm/uclass-internal.h>
  11. int arch_cpu_init(void)
  12. {
  13. icache_enable();
  14. return 0;
  15. }
  16. void enable_caches(void)
  17. {
  18. /* Enable D-cache. I-cache is already enabled in start.S */
  19. dcache_enable();
  20. }