From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A2766E009C8; Tue, 2 Jun 2015 09:06:21 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [193.201.172.118 listed in list.dnswl.org] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (picmaster[at]mail.bg) * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mx2.mail.bg (mx2.mail.bg [193.201.172.118]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id EFBF2E007B6 for ; Tue, 2 Jun 2015 09:06:11 -0700 (PDT) Received: from [192.168.0.62] (unknown [93.152.143.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx2.mail.bg (Postfix) with ESMTPSA id B95B96001042; Tue, 2 Jun 2015 19:06:09 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mail.bg; s=default; t=1433261169; bh=7UqkFrm167ARMe0I8FLkeP0wFRQUj266T6d8/iQ5VHQ=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=mACHRmxb18/U30l1wlIXC+Zzjq5eJj3q/ynCWQg7A/VeraB2kjSnrzk4JYXh+jI7F 2YZzY4UlKI62zqERWQZwkynEQNB0dyFwqKbmVbZXnYh9AVGyyrMsb85/au1q3RD7iY efhjdj7hpgjk/CkF6ms72i1b+skB3ubWpOST2n9o= Message-ID: <556DD471.1000006@mail.bg> Date: Tue, 02 Jun 2015 19:06:09 +0300 From: Nikolay Dimitrov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org, Fabio Estevam , Otavio Salvador References: <1433106098-7683-1-git-send-email-picmaster@mail.bg> <556CB6AD.5060807@mail.bg> In-Reply-To: <556CB6AD.5060807@mail.bg> Subject: Re: [meta-fsl-arm][PATCH] u-boot-fslc: mx6sabresd: Enable HDMI video in bootargs X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Jun 2015 16:06:21 -0000 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi guys, On 06/01/2015 10:46 PM, Nikolay Dimitrov wrote: > Hi Fabio, > > On 06/01/2015 05:01 PM, Fabio Estevam wrote: >> On Sun, May 31, 2015 at 6:01 PM, Nikolay Dimitrov >> wrote: >> >>> ++#define VIDEO_ARGS "video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24 " \ >> >> What if the user wants to use LVDS as fb0? >> >> Not sure if we should really hardcode this kernel command line. > > What do you think about this: > > > video_args_hdmi=setenv video_args $video_args > video=mxcfb${fbid}:dev=hdmi,1280x720M@60,if=RGB24\0 > video_args_lvds=setenv video_args $video_args > video=mxcfb${fbid}:dev=ldb,LDB-XGA,if=RGB666\0 > video_args_lcd=setenv video_args $video_args > video=mxcfb${fbid}:dev=lcd,CLAA-WVGA,if=RGB666\0 > fb=0\0 > video_interfaces=hdmi lvds lcd\0 > > config_video=for v in ${video_interfaces}; do \ > run video_args_${v}; \ > setexpr fb $fb + 1; \ > done\0 > > mmcargs=setenv bootargs console=${console},${baudrate} \ > root=${mmcroot} \ > ${video_args}\0 > ... > mmcboot=echo Booting from mmc ...; \ > run config_video; \ > run mmcargs; \ > ... > > > Now video interfaces can be selected and reordered at will just by > editing video_interfaces env-var. I've cleaned-up the code and sent a pull-request for you to review: https://github.com/Freescale/u-boot-fslc/pull/8 Regards, Nikolay