Skip to content

Commit

Permalink
tty: amba-pl011: add .get_fifosize for ZTE device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Guo authored and Greg Kroah-Hartman committed Aug 31, 2016
1 parent 0e125a5 commit 9c267dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/tty/serial/amba-pl011.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 */
Expand Down

0 comments on commit 9c267dd

Please sign in to comment.