gralloc: Fix inverted colors on BRGA

Don't assume any 32bpp mode is RGBX.
This is a forward-port of
commit f50b075a8b88eff482628e8ab62a04539117c7ea

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
gralloc: Allow overriding the framebuffer device

On some devices, different outputs use different
framebuffer devices - e.g. on iMX6, /dev/fb0 is
the LVDS display, and /dev/fb1 is the HDMI
output.

Simply opening the first device that exists may
not be what we want - allow overrides on the
bootargs line

Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
libhardware: Build fix for JB

Change-Id: I11e342693320038ba890bdb4e11ad4a0fb70e06e
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>