mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
Blackfin: bf51x/bf52x: fix 16/32bit SPORT MMR helpers
The RX/TX address is always the same regardless of the size of the access. That means there is no dedicated "16bit" or "32bit" MMR. Trying to use these currently leads to compile errors. So change everything to use the right MMR define. Signed-off-by: Bob Liu <lliubbo@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
parent
e5c1721894
commit
c5b77b450a
2 changed files with 32 additions and 32 deletions
|
@ -262,14 +262,14 @@
|
||||||
#define bfin_write_SPORT0_TX(val) bfin_write32(SPORT0_TX, val)
|
#define bfin_write_SPORT0_TX(val) bfin_write32(SPORT0_TX, val)
|
||||||
#define bfin_read_SPORT0_RX() bfin_read32(SPORT0_RX)
|
#define bfin_read_SPORT0_RX() bfin_read32(SPORT0_RX)
|
||||||
#define bfin_write_SPORT0_RX(val) bfin_write32(SPORT0_RX, val)
|
#define bfin_write_SPORT0_RX(val) bfin_write32(SPORT0_RX, val)
|
||||||
#define bfin_read_SPORT0_TX32() bfin_read32(SPORT0_TX32)
|
#define bfin_read_SPORT0_TX32() bfin_read32(SPORT0_TX)
|
||||||
#define bfin_write_SPORT0_TX32(val) bfin_write32(SPORT0_TX32, val)
|
#define bfin_write_SPORT0_TX32(val) bfin_write32(SPORT0_TX, val)
|
||||||
#define bfin_read_SPORT0_RX32() bfin_read32(SPORT0_RX32)
|
#define bfin_read_SPORT0_RX32() bfin_read32(SPORT0_RX)
|
||||||
#define bfin_write_SPORT0_RX32(val) bfin_write32(SPORT0_RX32, val)
|
#define bfin_write_SPORT0_RX32(val) bfin_write32(SPORT0_RX, val)
|
||||||
#define bfin_read_SPORT0_TX16() bfin_read16(SPORT0_TX16)
|
#define bfin_read_SPORT0_TX16() bfin_read16(SPORT0_TX)
|
||||||
#define bfin_write_SPORT0_TX16(val) bfin_write16(SPORT0_TX16, val)
|
#define bfin_write_SPORT0_TX16(val) bfin_write16(SPORT0_TX, val)
|
||||||
#define bfin_read_SPORT0_RX16() bfin_read16(SPORT0_RX16)
|
#define bfin_read_SPORT0_RX16() bfin_read16(SPORT0_RX)
|
||||||
#define bfin_write_SPORT0_RX16(val) bfin_write16(SPORT0_RX16, val)
|
#define bfin_write_SPORT0_RX16(val) bfin_write16(SPORT0_RX, val)
|
||||||
#define bfin_read_SPORT0_RCR1() bfin_read16(SPORT0_RCR1)
|
#define bfin_read_SPORT0_RCR1() bfin_read16(SPORT0_RCR1)
|
||||||
#define bfin_write_SPORT0_RCR1(val) bfin_write16(SPORT0_RCR1, val)
|
#define bfin_write_SPORT0_RCR1(val) bfin_write16(SPORT0_RCR1, val)
|
||||||
#define bfin_read_SPORT0_RCR2() bfin_read16(SPORT0_RCR2)
|
#define bfin_read_SPORT0_RCR2() bfin_read16(SPORT0_RCR2)
|
||||||
|
@ -317,14 +317,14 @@
|
||||||
#define bfin_write_SPORT1_TX(val) bfin_write32(SPORT1_TX, val)
|
#define bfin_write_SPORT1_TX(val) bfin_write32(SPORT1_TX, val)
|
||||||
#define bfin_read_SPORT1_RX() bfin_read32(SPORT1_RX)
|
#define bfin_read_SPORT1_RX() bfin_read32(SPORT1_RX)
|
||||||
#define bfin_write_SPORT1_RX(val) bfin_write32(SPORT1_RX, val)
|
#define bfin_write_SPORT1_RX(val) bfin_write32(SPORT1_RX, val)
|
||||||
#define bfin_read_SPORT1_TX32() bfin_read32(SPORT1_TX32)
|
#define bfin_read_SPORT1_TX32() bfin_read32(SPORT1_TX)
|
||||||
#define bfin_write_SPORT1_TX32(val) bfin_write32(SPORT1_TX32, val)
|
#define bfin_write_SPORT1_TX32(val) bfin_write32(SPORT1_TX, val)
|
||||||
#define bfin_read_SPORT1_RX32() bfin_read32(SPORT1_RX32)
|
#define bfin_read_SPORT1_RX32() bfin_read32(SPORT1_RX)
|
||||||
#define bfin_write_SPORT1_RX32(val) bfin_write32(SPORT1_RX32, val)
|
#define bfin_write_SPORT1_RX32(val) bfin_write32(SPORT1_RX, val)
|
||||||
#define bfin_read_SPORT1_TX16() bfin_read16(SPORT1_TX16)
|
#define bfin_read_SPORT1_TX16() bfin_read16(SPORT1_TX)
|
||||||
#define bfin_write_SPORT1_TX16(val) bfin_write16(SPORT1_TX16, val)
|
#define bfin_write_SPORT1_TX16(val) bfin_write16(SPORT1_TX, val)
|
||||||
#define bfin_read_SPORT1_RX16() bfin_read16(SPORT1_RX16)
|
#define bfin_read_SPORT1_RX16() bfin_read16(SPORT1_RX)
|
||||||
#define bfin_write_SPORT1_RX16(val) bfin_write16(SPORT1_RX16, val)
|
#define bfin_write_SPORT1_RX16(val) bfin_write16(SPORT1_RX, val)
|
||||||
#define bfin_read_SPORT1_RCR1() bfin_read16(SPORT1_RCR1)
|
#define bfin_read_SPORT1_RCR1() bfin_read16(SPORT1_RCR1)
|
||||||
#define bfin_write_SPORT1_RCR1(val) bfin_write16(SPORT1_RCR1, val)
|
#define bfin_write_SPORT1_RCR1(val) bfin_write16(SPORT1_RCR1, val)
|
||||||
#define bfin_read_SPORT1_RCR2() bfin_read16(SPORT1_RCR2)
|
#define bfin_read_SPORT1_RCR2() bfin_read16(SPORT1_RCR2)
|
||||||
|
|
|
@ -279,14 +279,14 @@
|
||||||
#define bfin_write_SPORT0_TX(val) bfin_write32(SPORT0_TX, val)
|
#define bfin_write_SPORT0_TX(val) bfin_write32(SPORT0_TX, val)
|
||||||
#define bfin_read_SPORT0_RX() bfin_read32(SPORT0_RX)
|
#define bfin_read_SPORT0_RX() bfin_read32(SPORT0_RX)
|
||||||
#define bfin_write_SPORT0_RX(val) bfin_write32(SPORT0_RX, val)
|
#define bfin_write_SPORT0_RX(val) bfin_write32(SPORT0_RX, val)
|
||||||
#define bfin_read_SPORT0_TX32() bfin_read32(SPORT0_TX32)
|
#define bfin_read_SPORT0_TX32() bfin_read32(SPORT0_TX)
|
||||||
#define bfin_write_SPORT0_TX32(val) bfin_write32(SPORT0_TX32, val)
|
#define bfin_write_SPORT0_TX32(val) bfin_write32(SPORT0_TX, val)
|
||||||
#define bfin_read_SPORT0_RX32() bfin_read32(SPORT0_RX32)
|
#define bfin_read_SPORT0_RX32() bfin_read32(SPORT0_RX)
|
||||||
#define bfin_write_SPORT0_RX32(val) bfin_write32(SPORT0_RX32, val)
|
#define bfin_write_SPORT0_RX32(val) bfin_write32(SPORT0_RX, val)
|
||||||
#define bfin_read_SPORT0_TX16() bfin_read16(SPORT0_TX16)
|
#define bfin_read_SPORT0_TX16() bfin_read16(SPORT0_TX)
|
||||||
#define bfin_write_SPORT0_TX16(val) bfin_write16(SPORT0_TX16, val)
|
#define bfin_write_SPORT0_TX16(val) bfin_write16(SPORT0_TX, val)
|
||||||
#define bfin_read_SPORT0_RX16() bfin_read16(SPORT0_RX16)
|
#define bfin_read_SPORT0_RX16() bfin_read16(SPORT0_RX)
|
||||||
#define bfin_write_SPORT0_RX16(val) bfin_write16(SPORT0_RX16, val)
|
#define bfin_write_SPORT0_RX16(val) bfin_write16(SPORT0_RX, val)
|
||||||
#define bfin_read_SPORT0_RCR1() bfin_read16(SPORT0_RCR1)
|
#define bfin_read_SPORT0_RCR1() bfin_read16(SPORT0_RCR1)
|
||||||
#define bfin_write_SPORT0_RCR1(val) bfin_write16(SPORT0_RCR1, val)
|
#define bfin_write_SPORT0_RCR1(val) bfin_write16(SPORT0_RCR1, val)
|
||||||
#define bfin_read_SPORT0_RCR2() bfin_read16(SPORT0_RCR2)
|
#define bfin_read_SPORT0_RCR2() bfin_read16(SPORT0_RCR2)
|
||||||
|
@ -334,14 +334,14 @@
|
||||||
#define bfin_write_SPORT1_TX(val) bfin_write32(SPORT1_TX, val)
|
#define bfin_write_SPORT1_TX(val) bfin_write32(SPORT1_TX, val)
|
||||||
#define bfin_read_SPORT1_RX() bfin_read32(SPORT1_RX)
|
#define bfin_read_SPORT1_RX() bfin_read32(SPORT1_RX)
|
||||||
#define bfin_write_SPORT1_RX(val) bfin_write32(SPORT1_RX, val)
|
#define bfin_write_SPORT1_RX(val) bfin_write32(SPORT1_RX, val)
|
||||||
#define bfin_read_SPORT1_TX32() bfin_read32(SPORT1_TX32)
|
#define bfin_read_SPORT1_TX32() bfin_read32(SPORT1_TX)
|
||||||
#define bfin_write_SPORT1_TX32(val) bfin_write32(SPORT1_TX32, val)
|
#define bfin_write_SPORT1_TX32(val) bfin_write32(SPORT1_TX, val)
|
||||||
#define bfin_read_SPORT1_RX32() bfin_read32(SPORT1_RX32)
|
#define bfin_read_SPORT1_RX32() bfin_read32(SPORT1_RX)
|
||||||
#define bfin_write_SPORT1_RX32(val) bfin_write32(SPORT1_RX32, val)
|
#define bfin_write_SPORT1_RX32(val) bfin_write32(SPORT1_RX, val)
|
||||||
#define bfin_read_SPORT1_TX16() bfin_read16(SPORT1_TX16)
|
#define bfin_read_SPORT1_TX16() bfin_read16(SPORT1_TX)
|
||||||
#define bfin_write_SPORT1_TX16(val) bfin_write16(SPORT1_TX16, val)
|
#define bfin_write_SPORT1_TX16(val) bfin_write16(SPORT1_TX, val)
|
||||||
#define bfin_read_SPORT1_RX16() bfin_read16(SPORT1_RX16)
|
#define bfin_read_SPORT1_RX16() bfin_read16(SPORT1_RX)
|
||||||
#define bfin_write_SPORT1_RX16(val) bfin_write16(SPORT1_RX16, val)
|
#define bfin_write_SPORT1_RX16(val) bfin_write16(SPORT1_RX, val)
|
||||||
#define bfin_read_SPORT1_RCR1() bfin_read16(SPORT1_RCR1)
|
#define bfin_read_SPORT1_RCR1() bfin_read16(SPORT1_RCR1)
|
||||||
#define bfin_write_SPORT1_RCR1(val) bfin_write16(SPORT1_RCR1, val)
|
#define bfin_write_SPORT1_RCR1(val) bfin_write16(SPORT1_RCR1, val)
|
||||||
#define bfin_read_SPORT1_RCR2() bfin_read16(SPORT1_RCR2)
|
#define bfin_read_SPORT1_RCR2() bfin_read16(SPORT1_RCR2)
|
||||||
|
|
Loading…
Reference in a new issue