soc.c 800 B

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