cpu.c 355 B

1234567891011121314151617181920212223
  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 <wdt.h>
  9. #include <dm/uclass-internal.h>
  10. int arch_cpu_init(void)
  11. {
  12. icache_enable();
  13. return 0;
  14. }
  15. void enable_caches(void)
  16. {
  17. /* Enable D-cache. I-cache is already enabled in start.S */
  18. dcache_enable();
  19. }