Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) #ifndef __ROMIMAGE_MACRO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) #define __ROMIMAGE_MACRO_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) /* The LIST command is used to include comments in the script */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) .macro	LIST comment
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) .endm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) /* The ED command is used to write a 32-bit word */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) .macro  ED, addr, data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	mov.l 1f, r1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	mov.l 2f, r0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	mov.l r0, @r1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	bra 3f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	 nop
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	.align 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 1 :	.long \addr
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 2 :	.long \data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 3 :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) .endm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) /* The EW command is used to write a 16-bit word */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) .macro  EW, addr, data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 	mov.l 1f, r1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	mov.l 2f, r0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	mov.w r0, @r1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	bra 3f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 	 nop
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	.align 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 1 :	.long \addr
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 2 :	.long \data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 3 :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) .endm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) /* The EB command is used to write an 8-bit word */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) .macro  EB, addr, data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	mov.l 1f, r1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	mov.l 2f, r0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 	mov.b r0, @r1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	bra 3f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	 nop
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 	.align 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 1 :	.long \addr
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 2 :	.long \data
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 3 :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) .endm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) /* The WAIT command is used to delay the execution */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) .macro  WAIT, time
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 	mov.l  2f, r3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 1 :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) 	nop
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53) 	tst     r3, r3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54) 	bf/s    1b
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55) 	dt      r3
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) 	bra	3f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) 	 nop
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) 	.align 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) 2 :	.long \time * 100
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) 3 :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) .endm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 63) /* The DD command is used to read a 32-bit word */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 64) .macro  DD, addr, addr2, nr
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 65) 	mov.l 1f, r1
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 66) 	mov.l @r1, r0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 67) 	bra 2f
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 68) 	 nop
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 69) 	.align 2
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 70) 1 :	.long \addr
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 71) 2 :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 72) .endm
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 73) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 74) #endif /* __ROMIMAGE_MACRO_H */