1/* SPDX-License-Identifier: BSD-2-Clause */ 2/* 3 * Copyright (c) 2014, STMicroelectronics International N.V. 4 */ 5 6#include <generated/arm32_sysreg.S> 7 8 .macro mov_imm reg, val 9 .if ((\val) & 0xffff0000) == 0 10 movw \reg, #(\val) 11 .else 12 movw \reg, #((\val) & 0xffff) 13 movt \reg, #((\val) >> 16) 14 .endif 15 .endm 16 17