projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e125a5
)
tty: amba-pl011: add .get_fifosize for ZTE device
author
Shawn Guo
<shawn.guo@linaro.org>
Fri, 8 Jul 2016 09:00:40 +0000
(17:00 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 13:24:23 +0000
(15:24 +0200)
ZTE PL011 device has a fixed FIFO size 16. Let's add a .get_fifosize
hook for it.
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/amba-pl011.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/amba-pl011.c
b/drivers/tty/serial/amba-pl011.c
index 3914ad0c2c26fccab03857ff8ae1593da54e260b..055fe27e364f23de5509fe8ce7c4a4ab2d4516f4 100644
(file)
--- a/
drivers/tty/serial/amba-pl011.c
+++ b/
drivers/tty/serial/amba-pl011.c
@@
-204,6
+204,11
@@
static const u16 pl011_zte_offsets[REG_ARRAY_SIZE] = {
[REG_DMACR] = ZX_UART011_DMACR,
};
+static unsigned int get_fifosize_zte(struct amba_device *dev)
+{
+ return 16;
+}
+
static struct vendor_data vendor_zte __maybe_unused = {
.reg_offset = pl011_zte_offsets,
.access_32b = true,
@@
-212,7
+217,7
@@
static struct vendor_data vendor_zte __maybe_unused = {
.fr_dsr = ZX_UART01x_FR_DSR,
.fr_cts = ZX_UART01x_FR_CTS,
.fr_ri = ZX_UART011_FR_RI,
- .get_fifosize = get_fifosize_
arm
,
+ .get_fifosize = get_fifosize_
zte
,
};
/* Deals with DMA transactions */