1 /* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
3 * Copyright 2008-2016 Freescale Semiconductor Inc.
8 #ifndef __RTA_SIGNATURE_CMD_H__
9 #define __RTA_SIGNATURE_CMD_H__
12 rta_signature(struct program *program, uint32_t sign_type)
14 uint32_t opcode = CMD_SIGNATURE;
15 unsigned int start_pc = program->current_pc;
18 case (SIGN_TYPE_FINAL):
19 case (SIGN_TYPE_FINAL_RESTORE):
20 case (SIGN_TYPE_FINAL_NONZERO):
21 case (SIGN_TYPE_IMM_2):
22 case (SIGN_TYPE_IMM_3):
23 case (SIGN_TYPE_IMM_4):
27 pr_err("SIGNATURE Command: Invalid type selection\n");
31 __rta_out32(program, opcode);
32 program->current_instruction++;
37 program->first_error_pc = start_pc;
38 program->current_instruction++;
42 #endif /* __RTA_SIGNATURE_CMD_H__ */