tty: serial: 8250_mtk: set regshift for mmio32
To use mmio32, we also need to set regshift. Signed-off-by: Hsin-Yi Wang <hsinyi@chromium.org> Acked-by: Eddie Huang <eddie.huang@mediatek.com> Link: https://lore.kernel.org/r/20200915054825.3289105-2-hsinyi@chromium.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f28295cc8c
commit
ea4de367e5
1 changed files with 1 additions and 0 deletions
|
@ -669,6 +669,7 @@ static int __init early_mtk8250_setup(struct earlycon_device *device,
|
|||
return -ENODEV;
|
||||
|
||||
device->port.iotype = UPIO_MEM32;
|
||||
device->port.regshift = 2;
|
||||
|
||||
return early_serial8250_setup(device, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue