From 5017babb307122d8567ca78a5721e96c4d7ff8f2 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 6 Nov 2016 00:12:04 +0100 Subject: nwztools/plattools: fix black screen issue in dualboot, rework dualboot Sony added extensions to the frambuffer interface. It is important to take them into account since the OF uses them and might leave the framebuffer in an unusual state which would make the dualboot not display anything. Also rework the dualboot code so that it can boot rockbox (not doing anything at the moment), display all tools or boot the OF. Change-Id: Ia0f589c9ec8558f375270841503c0964aff07f0b --- utils/nwztools/plattools/nwz_lib.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils/nwztools/plattools/nwz_lib.h') diff --git a/utils/nwztools/plattools/nwz_lib.h b/utils/nwztools/plattools/nwz_lib.h index df0105a13d..9e7b8f16c2 100644 --- a/utils/nwztools/plattools/nwz_lib.h +++ b/utils/nwztools/plattools/nwz_lib.h @@ -85,6 +85,9 @@ void nwz_fb_close(int fb); int nwz_fb_get_brightness(int fd, struct nwz_fb_brightness *bl); /* set backlight brightness (return -1 on error, 1 on success) */ int nwz_fb_set_brightness(int fd, struct nwz_fb_brightness *bl); +/* setup framebuffer to its standard mode: LCD output, page 0, no transparency + * and no rotation, 2D only updates */ +int nwz_fb_set_standard_mode(int fd); /* open adc device */ int nwz_adc_open(void); -- cgit v1.2.3