diff options
author | Tom Rini <trini@konsulko.com> | 2016-01-21 09:12:22 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-21 09:12:22 -0500 |
commit | 45fe3809b9923b92f221d70eb45ae071059fd5e0 (patch) | |
tree | 3fef5d23f6fcc53e06c79eaed76fcaa13a0b12b9 /arch/nds32/include/asm/macro.h | |
parent | 9d0826879e13e8139a7b169c2365225e848ff57e (diff) | |
parent | b19cc6bf2160e09607e141fe0fc571701070d1d6 (diff) | |
download | u-boot-imx-45fe3809b9923b92f221d70eb45ae071059fd5e0.zip u-boot-imx-45fe3809b9923b92f221d70eb45ae071059fd5e0.tar.gz u-boot-imx-45fe3809b9923b92f221d70eb45ae071059fd5e0.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-i2c; branch 'master' of git://git.denx.de/u-boot-nds32
Diffstat (limited to 'arch/nds32/include/asm/macro.h')
-rw-r--r-- | arch/nds32/include/asm/macro.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/arch/nds32/include/asm/macro.h b/arch/nds32/include/asm/macro.h index f5c8539..66be258 100644 --- a/arch/nds32/include/asm/macro.h +++ b/arch/nds32/include/asm/macro.h @@ -23,20 +23,20 @@ */ .macro write32, addr, data - li $r4, addr - li $r5, data + li $r4, \addr + li $r5, \data swi $r5, [$r4] .endm .macro write16, addr, data - li $r4, addr - li $r5, data + li $r4, \addr + li $r5, \data shi $r5, [$r4] .endm .macro write8, addr, data - li $r4, addr - li $r5, data + li $r4, \addr + li $r5, \data sbi $r5, [$r4] .endm @@ -46,17 +46,17 @@ * Note: Instruction 'ori' supports immediate value up to 15 bits. */ .macro setbf32, addr, data - li $r4, addr + li $r4, \addr lwi $r5, [$r4] - li $r6, data + li $r6, \data or $r5, $r5, $r6 swi $r5, [$r4] .endm .macro setbf15, addr, data - li $r4, addr + li $r4, \addr lwi $r5, [$r4] - ori $r5, $r5, data + ori $r5, $r5, \data swi $r5, [$r4] .endm @@ -69,7 +69,7 @@ */ .macro wait_timer, time - li $r4, time + li $r4, \time 1: nop addi $r4, $r4, -1 |