hwinit-common.c 330 B

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