hwinit-common.c 305 B

12345678910111213141516
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright 2014 Broadcom Corporation.
  4. */
  5. #include <common.h>
  6. #include <cpu_func.h>
  7. #include <asm/cache.h>
  8. #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
  9. void enable_caches(void)
  10. {
  11. /* Enable D-cache. I-cache is already enabled in start.S */
  12. dcache_enable();
  13. }
  14. #endif