xref: /arm-trusted-firmware/plat/rockchip/rk3399/drivers/pmu/pmu_fw.c (revision 91f16700b400a8c0651d24a598fc48ee2997a0d7)
1*91f16700Schasinglulu /*
2*91f16700Schasinglulu  * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3*91f16700Schasinglulu  *
4*91f16700Schasinglulu  * SPDX-License-Identifier: BSD-3-Clause
5*91f16700Schasinglulu  */
6*91f16700Schasinglulu 
7*91f16700Schasinglulu /* convoluted way to make sure that the define is pasted just the right way */
8*91f16700Schasinglulu #define INCBIN(file, sym, sec) \
9*91f16700Schasinglulu 	__asm__( \
10*91f16700Schasinglulu 		".section " sec "\n" \
11*91f16700Schasinglulu 		".global " sym "\n" \
12*91f16700Schasinglulu 		".type " sym ", %object\n" \
13*91f16700Schasinglulu 		".align 4\n" \
14*91f16700Schasinglulu 		sym ":\n" \
15*91f16700Schasinglulu 		".incbin \"" file "\"\n" \
16*91f16700Schasinglulu 		".size " sym ", .-" sym "\n" \
17*91f16700Schasinglulu 		".global " sym "_end\n" \
18*91f16700Schasinglulu 		sym "_end:\n" \
19*91f16700Schasinglulu 	)
20*91f16700Schasinglulu 
21*91f16700Schasinglulu INCBIN(RK3399M0FW, "rk3399m0_bin", ".sram.incbin");
22*91f16700Schasinglulu INCBIN(RK3399M0PMUFW, "rk3399m0pmu_bin", ".pmusram.incbin");
23