frecon: add monitor hotplug detection

When monitor is connected or disconnected, rescan all the connectors, pick
the best one and if it is different than before, reinit and resize appropriate
resources and change video mode and redraw the console.

BUG=chromium:480041,449633
TEST=run frecon on panther with DP monitor and plug, then unplug HDMI monitor

Change-Id: Ifa6fd51c1f37509fd882f6bba56ae2403a92bd2e
Signed-off-by: Dominik Behr <dbehr@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/324623
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
5 files changed