lowlevel_init.S 768 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Board specific setup info
  3. *
  4. * (C) Copyright 2010
  5. * Texas Instruments, <www.ti.com>
  6. *
  7. * Author :
  8. * Aneesh V <aneesh@ti.com>
  9. *
  10. * SPDX-License-Identifier: GPL-2.0+
  11. */
  12. #include <config.h>
  13. #include <asm/arch/omap.h>
  14. #include <asm/omap_common.h>
  15. #include <asm/arch/spl.h>
  16. #include <linux/linkage.h>
  17. #ifdef CONFIG_SPL
  18. ENTRY(save_boot_params)
  19. ldr r1, =OMAP_SRAM_SCRATCH_BOOT_PARAMS
  20. str r0, [r1]
  21. b save_boot_params_ret
  22. ENDPROC(save_boot_params)
  23. #endif
  24. ENTRY(omap_smc1)
  25. PUSH {r4-r12, lr} @ save registers - ROM code may pollute
  26. @ our registers
  27. MOV r12, r0 @ Service
  28. MOV r0, r1 @ Argument
  29. DSB
  30. DMB
  31. .word 0xe1600070 @ SMC #0 - hand assembled for GCC versions
  32. @ call ROM Code API for the service requested
  33. POP {r4-r12, pc}
  34. ENDPROC(omap_smc1)