pmu_fw.S 494 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2024, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. /* convoluted way to make sure that the define is pasted just the right way */
  7. .macro INCBIN file sym sec
  8. .section \sec
  9. .global \sym
  10. .type \sym, @object
  11. .align 4
  12. \sym :
  13. .incbin \file
  14. .size \sym , .-\sym
  15. .global \sym\()_end
  16. \sym\()_end :
  17. .endm
  18. INCBIN ""RK3399M0FW"", "rk3399m0_bin", ".sram.incbin"
  19. INCBIN ""RK3399M0PMUFW"", "rk3399m0pmu_bin", ".pmusram.incbin"