serial: mvebu-uart: add suspend/resume support
authorMiquel Raynal <miquel.raynal@bootlin.com>
Sat, 21 Apr 2018 14:07:33 +0000 (16:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2018 15:38:01 +0000 (17:38 +0200)
commit394e835145414f8633303b46fe938e10fda697c4
treef4181eeecf9623e62375ef134862f9167dd4c9ec
parent7a91e382974c2d75c8a49022c361113c7d8f4935
serial: mvebu-uart: add suspend/resume support

Add suspend and resume hooks to save/restore the registers content
during S2RAM operation.

Also save/restore the oversampling rate register (OSAMP) as earlier
stages already tuned that register to get a precise UART clock.

Suggested-by: Allen Yan <yanwei@marvell.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mvebu-uart.c