board: rpi: move uart deactivation to board_init
authorFabian Vogt <fvogt@suse.com>
Mon, 26 Sep 2016 12:26:50 +0000 (14:26 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 29 Nov 2016 01:09:51 +0000 (20:09 -0500)
commitd8396a3272edc4b8154d0c93ea9b40473b300739
tree71e709a639edcfa0ffd04ea2b1ef69bd146bb40e
parentcb97ad47bfa365128927438b94065fa900838770
board: rpi: move uart deactivation to board_init

When using OF_CONTROL, the disabled value of the mini UART platdata
gets reset after board_early_init_f. So move detection and disabling
to board_init and remove board_early_init_f.
This uses the first device using the mini uart driver, as this method
works reliably with different device trees or even no device tree at all.

Signed-off-by: Fabian Vogt <fvogt@suse.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
board/raspberrypi/rpi/rpi.c
include/configs/rpi.h