From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Sun, 02 Aug 2015 10:53:39 +0200 Subject: [U-Boot] [PATCH 03/12] arm: mx6: cm-fx6: add support for displaytype env var In-Reply-To: <1437661179-32128-4-git-send-email-nikita@compulab.co.il> References: <1437661179-32128-1-git-send-email-nikita@compulab.co.il> <1437661179-32128-4-git-send-email-nikita@compulab.co.il> Message-ID: <55BDDA93.50208@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 23/07/2015 16:19, Nikita Kiryanov wrote: > Add support for selecting display preset using the environment variable > "displaytype". This is a preparation for future merging of compulab > omap3_display.c display selection code with the cm-fx6 display selection code. > > The "panel" environment variable is retained for backwards compatibility. > > Cc: Stefano Babic > Cc: Igor Grinberg > Signed-off-by: Nikita Kiryanov > --- > board/compulab/cm_fx6/cm_fx6.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c > index 2fb8db5..3e518c1 100644 > --- a/board/compulab/cm_fx6/cm_fx6.c > +++ b/board/compulab/cm_fx6/cm_fx6.c > @@ -95,7 +95,10 @@ int board_video_skip(void) > { > int ret; > struct display_info_t *preset; > - char const *panel = getenv("panel"); > + char const *panel = getenv("displaytype"); > + > + if (!panel) /* Also accept panel for backward compatibility */ > + panel = getenv("panel"); > > if (!panel) > return -ENOENT; > Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================