soc.c 798 B

12345678910111213141516171819202122232425262728293031323334
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (c) 2010 Samsung Electronics.
  4. * Minkyu Kang <mk7.kang@samsung.com>
  5. */
  6. #include <common.h>
  7. #include <asm/io.h>
  8. #include <asm/system.h>
  9. #ifdef CONFIG_TARGET_ESPRESSO7420
  10. /*
  11. * Exynos7420 uses CPU0 of Cluster-1 as boot CPU. Due to this, branch_if_master
  12. * fails to identify as the boot CPU as the master CPU. As temporary workaround,
  13. * setup the slave CPU boot address as "_main".
  14. */
  15. extern void _main(void);
  16. void *secondary_boot_addr = (void *)_main;
  17. #endif /* CONFIG_TARGET_ESPRESSO7420 */
  18. void reset_cpu(ulong addr)
  19. {
  20. #ifdef CONFIG_CPU_V7A
  21. writel(0x1, samsung_get_base_swreset());
  22. #endif
  23. }
  24. #ifndef CONFIG_SYS_DCACHE_OFF
  25. void enable_caches(void)
  26. {
  27. /* Enable D-cache. I-cache is already enabled in start.S */
  28. dcache_enable();
  29. }
  30. #endif