serial: ns16550: omap: set register shift from code
The upstream dts files do not contain the register shift. As we have Omap specific init code anyway we can just set the register shift from there instead of relying on the devicetree properties. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
00ce25c6dc
commit
a115d5f943
|
@ -194,6 +194,10 @@ static void ns16450_serial_init_port(struct console_device *cdev)
|
|||
|
||||
static void ns16550_omap_init_port(struct console_device *cdev)
|
||||
{
|
||||
struct ns16550_priv *priv = to_ns16550_priv(cdev);
|
||||
|
||||
priv->plat.shift = 2;
|
||||
|
||||
ns16550_serial_init_port(cdev);
|
||||
|
||||
ns16550_write(cdev, 0x07, omap_mdr1); /* Disable */
|
||||
|
|
Loading…
Reference in New Issue