diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-02-24 12:27:03 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2019-04-19 07:28:32 +0200 |
commit | 9336324d34e36623589fe9856a5ee100b3b9631a (patch) | |
tree | 1d4836303db8ee1c06c7819d929d9c81e2d89611 | |
parent | 26a9823b3c702809abf812b63f181c70aa8e795c (diff) | |
download | openfirmware-9336324d34e36623589fe9856a5ee100b3b9631a.tar.gz |
mmp2/uart: specify reg-shift property
This makes the Linux's 8250_of driver happy. It is broken: there are two
more drivers (yes...) that claim mrvl,mmp-uart compatibility and both assume
register shift of 2 bits. The third one should do the same.
However, we can't really tell or decide which driver is going to be
bound, so let's just add the property before 8250_of gets fixed. It
doesn't hurt to be a little bit more explicit anyway.
-rw-r--r-- | cpu/arm/mmp2/uart.fth | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpu/arm/mmp2/uart.fth b/cpu/arm/mmp2/uart.fth index 18df276e..09078ef3 100644 --- a/cpu/arm/mmp2/uart.fth +++ b/cpu/arm/mmp2/uart.fth @@ -2,6 +2,8 @@ " mrvl,mmp-uart" +compatible my-space h# 20 reg + 2 " reg-shift" integer-property + : write ( adr len -- actual ) 0 max tuck ( actual adr actual ) bounds ?do i c@ uemit loop ( actual ) |