commit d1edce71135cc6d98c0a4b5729774542b676e769 Author: sophgo-forum-service <forum_service@sophgo.com> Date: Fri Mar 15 16:07:33 2024 +0800 [fix] recommend using ssh method to clone repo. [fix] fix sensor driver repo branch name.
31 lines
594 B
ArmAsm
31 lines
594 B
ArmAsm
/*
|
|
* Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#ifndef __ASM_MACROS_S__
|
|
#define __ASM_MACROS_S__
|
|
|
|
#include <cpu.h>
|
|
#include <platform.h>
|
|
|
|
.macro atf_state_set _regv, _rega, _val
|
|
li \_regv, \_val
|
|
li \_rega, ATF_STATE_REG
|
|
sw \_regv, (\_rega)
|
|
.endm
|
|
|
|
.macro atf_err_set _regv, _rega, _val
|
|
li \_regv, \_val
|
|
li \_rega, ATF_ERR_REG
|
|
sw \_regv, (\_rega)
|
|
.endm
|
|
|
|
.macro reg_write _regv, _rega, _addr, _val
|
|
li \_regv, \_val
|
|
li \_rega, \_addr
|
|
sw \_regv, (\_rega)
|
|
.endm
|
|
|
|
#endif /* __ASM_MACROS_S__ */
|