serial: ns16550: Add reset ctrl to driver
authorLey Foon Tan <[email protected]>
Thu, 14 Jun 2018 10:45:22 +0000 (18:45 +0800)
committerTom Rini <[email protected]>
Mon, 9 Jul 2018 19:28:28 +0000 (15:28 -0400)
commitb051eecbda1567f6795c7d127a68dd55573d8fa0
tree75e08e8bc271246d5d0b8e418fb36eab83782aa4
parent2d4d6937720ba4cb4c8593b802d06ccb716a2002
serial: ns16550: Add reset ctrl to driver

Add code to reset all reset signals as in serial DT node. A reset
property is an optional feature, so do not fail if a reset property is
not present.

If a reset property is discovered, then use it to deassert, thus
bringing the IP out of reset.

Signed-off-by: Ley Foon Tan <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
drivers/serial/ns16550.c