spl: serial_bcm283x: set GPIO before enabling uart to remove rx 51/158251/3 accepted/tizen/4.0/unified/20171101.064818 accepted/tizen/unified/20171031.055649 submit/tizen/20171031.014243 submit/tizen_4.0/20171101.031710
authorr.tyminski <r.tyminski@partner.samsung.com>
Mon, 30 Oct 2017 11:56:18 +0000 (12:56 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 31 Oct 2017 01:38:29 +0000 (10:38 +0900)
commitd1dac2248ae24ba833069679734f966f0e481b5a
tree873a27d4db39921a3469677be671c01cc1019006
parent7fd43c18e8fc4905ef268345f296136f621ce224
spl: serial_bcm283x: set GPIO before enabling uart to remove rx

There was some garbage on uart input during boot, so if uart wasn't
connected, we end up in u-boot command line.
Set GPIO before enabling uart to remove uart Rx setup and this makes
SPL use only Tx.

Note: Chip documentation warns that order of commands is important.

Change-Id: I896d8b719c7b9170ad481767f8b27835d81f4af1
Signed-off-by: Rafal Tyminski <r.tyminski@partner.samsung.com>
[sw0312.kim: adjust commit-msg]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/serial/serial_bcm283x_mu.c