Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D357AE00ADB; Mon, 17 Apr 2017 11:18:36 -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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [74.125.83.46 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 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 mail-pg0-f46.google.com (mail-pg0-f46.google.com [74.125.83.46]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 4482EE00985 for ; Mon, 17 Apr 2017 11:18:28 -0700 (PDT) Received: by mail-pg0-f46.google.com with SMTP id 63so15458844pgh.0 for ; Mon, 17 Apr 2017 11:18:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=sV6b/tdrRbKlAw2uIQA4HFS3x6cgvCnVmchB64UdfTY=; b=y4BC3QU3Zu8WpyXnjLk69+iyL4IRM+1HdYpCYmzN/tqXSBWwuNr8pyb3nSBGaNmiV9 yBpNN4EKZUSR33VIK5nyxfGOx7XNs3yffuGwHswpCWaHEUw2HHHGoiiWBP1kWZ3WVd3U NYjLWhB3j1fl7rbJ8ww3m7ytc9nf/ggBc9IcsB8E3ZnGtiKg/wBit9reKG91sLQXBhY/ /Z+Bzw9WM0wSuKCHGxw8BSaJoexaNfkA779d+nG8dzYNyxzSwBy2ILi4NPOWt2rzHYim GVTg9/wpPMlW1RuvJjCqeM63WupUUkKiaF8HSAEmkOcwdO7V2mAEG/2+rE0AO2Uj35J8 U/jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=sV6b/tdrRbKlAw2uIQA4HFS3x6cgvCnVmchB64UdfTY=; b=KNin4XnFJYXZuAmQWU4Cofu1juF+pdAPI53wK9GudWnhBlKkC4I1r9/pw7Yh05LkbC R2gTx3aBC9NQeDXn8mOw/hkgLjWo/LTdLOChG4/OQDVd3Uu9cSbWRolnHQr1EV+tHz5w ASULIb36S1vOTBtdfTtzszQ8zFDIEiEIBlv4gyDNlE/EFaD5B43djuGCB0o0u35neaDZ 28Px+byeynbGDqx2MTIQtkbiByjOsqAy478rUMCnXGykQZuhECKqe1HNQ8Q7bgpFkJ8K wSx5p0uM0pNIpXMEualx199FrVFLcd+gcZy9JpgFMZG34+RjlulEmUmnUHhJk36Vtt15 9zGw== X-Gm-Message-State: AN3rC/40+v8YjZIexxuUHtxajWIr8itDdtvKOyAe1DGMCOW9vfD7VQ4z AQRZ+61//+b5MXre X-Received: by 10.84.230.131 with SMTP id e3mr18043954plk.100.1492453107950; Mon, 17 Apr 2017 11:18:27 -0700 (PDT) Received: from tharvey.pdc.gateworks.com (68-189-91-139.static.snlo.ca.charter.com. [68.189.91.139]) by smtp.gmail.com with ESMTPSA id n85sm19405298pfi.101.2017.04.17.11.18.26 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Apr 2017 11:18:27 -0700 (PDT) From: Tim Harvey To: meta-freescale@yoctoproject.org Date: Mon, 17 Apr 2017 11:22:58 -0700 Message-Id: <1492453378-5356-1-git-send-email-tharvey@gateworks.com> X-Mailer: git-send-email 2.7.4 Subject: [3rdparty][PATCH] u-boot-script-gateworks-imx: bump to v1.07 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: Mon, 17 Apr 2017 18:18:36 -0000 Signed-off-by: Tim Harvey --- .../6x_bootscript-yocto.txt | 197 +++++++++++---------- 1 file changed, 100 insertions(+), 97 deletions(-) diff --git a/recipes-bsp/u-boot/u-boot-script-gateworks-imx/6x_bootscript-yocto.txt b/recipes-bsp/u-boot/u-boot-script-gateworks-imx/6x_bootscript-yocto.txt index b7478f0..df6f621 100644 --- a/recipes-bsp/u-boot/u-boot-script-gateworks-imx/6x_bootscript-yocto.txt +++ b/recipes-bsp/u-boot/u-boot-script-gateworks-imx/6x_bootscript-yocto.txt @@ -1,4 +1,4 @@ -setenv _bscriptver "v1.01" +setenv _bscriptver "v1.07" echo "## Gateworks Ventana Yocto Bootscript ${_bscriptver} ####################" @@ -10,18 +10,11 @@ if test -z "${mem}" ; then # it using following formula (please customize mem to your own req's): # cma=min(((${mem_mb}/2) - round(${mem_mb}*.125))M, 384M) if itest.s "x${mem_mb}" == "x256" ; then - setenv mem "cma=96M" + setenv mem "cma=96M" elif itest.s "x${mem_mb}" == "x512" ; then - setenv mem "cma=192M" - elif itest.s "x${mem_mb}" == "x1024" ; then - setenv mem "cma=384M" - elif itest.s "x${mem_mb}" == "x2048" ; then - setenv mem "cma=384M" - elif itest.s "x${mem_mb}" == "x4096" ; then - setenv mem "cma=384M" + setenv mem "cma=192M" else - echo "Unable to pigeonhole memory. Defaulting CMA to 96M." - setenv mem "cma=96M" + setenv mem "cma=384M" fi fi @@ -41,101 +34,111 @@ if test -z "${video}" ; then setenv cvbs_flag setenv max_disp 3 # 0-3 displays - # Detect displays if req'd (HDMI->LVDS->CVBS) - if test -z "$display" ; then - if test -z "$panel" ; then - # Start detection scheme - i2c dev 2 - if hdmidet ; then # HDMI - setenv display "$display" "HDMI" - echo "HDMI Detected" - fi - if i2c probe 0x04 ; then # Freescale MXC-LVDS1 - setenv display "$display" "LVDS" - echo "LVDS Detected" - fi - if i2c probe 0x14 ; then # DLC800FIGT3 - setenv display "$display" "LVDS" - echo "LVDS Detected" - fi - if i2c probe 0x38 ; then # DLC700JMGT4 - setenv display "$display" "LVDS" - echo "LVDS Detected" - fi - fi + # Default displays to display if displays is empty + if test -z "${displays}"; then + setenv displays "${display}" fi - echo "Display(s) to configure: ${display}" + # Detect HDMI if displays is empty (HDMI) + if test -z "${displays}" ; then + i2c dev 2 + if hdmidet ; then # HDMI + setenv displays "HDMI" + echo "HDMI Detected" + fi + fi + + echo "Display(s) to configure: ${displays}" # Configure displays - for disp in ${display} ; do - if itest.s "x${disp}" == "xHDMI" ; then - if test -z "$hdmi_flag" ; then # Only allow one HDMI display - setenv hdmi_flag 1 - test -n "$hdmi" || hdmi=1080p - if itest.s "x${hdmi}" == "x1080p" ; then - setenv hdmi "1920x1080M@60" - elif itest.s "x${hdmi}" == "x720p" ; then - setenv hdmi "1280x720M@60" - elif itest.s "x${hdmi}" == "x480p" ; then - setenv hdmi "720x480M@60" - fi - setenv video "$video" "video=mxcfb${fb_num}:dev=hdmi,${hdmi},if=RGB24,bpp=32" - - echo "Setting HDMI Display to mxcfb${fb_num}" - setexpr fb_num $fb_num + 1 - fi - elif itest.s "x${disp}" == "xLVDS" ; then - if test -z "$lvds_flag" ; then # Only allow one LVDS display - setenv lvds_flag 1 - setenv video "$video" "video=mxcfb${fb_num}:dev=ldb,bpp=32,if=RGB666" - - echo "Setting LVDS Display to mxcfb${fb_num}" - setexpr fb_num $fb_num + 1 - fi - elif itest.s "x${disp}" == "xCVBS" ; then - if test -z "$cvbs_flag" ; then # Only allow one CVBS display - setenv cvbs_flag 1 - setenv video "$video" "video=mxcfb${fb_num}:dev=adv739x,BT656-NTSC,if=BT656,fbpix=RGB565,bpp=32" - - echo "Setting CVBS Display to mxcfb${fb_num}" - setexpr fb_num $fb_num + 1 - fi - else - echo "${disp} is an unsupported display type (HDMI|LVDS|CVBS)." - fi + for disp in ${displays} ; do + if itest.s "x${disp}" == "xHDMI" ; then + if test -z "${hdmi_flag}" ; then # Only allow one HDMI display + setenv hdmi_flag 1 + test -n "${hdmi}" || hdmi=1080p + if itest.s "x${hdmi}" == "x1080p" ; then + setenv hdmi "1920x1080M@60" + elif itest.s "x${hdmi}" == "x720p" ; then + setenv hdmi "1280x720M@60" + elif itest.s "x${hdmi}" == "x480p" ; then + setenv hdmi "720x480M@60" + fi + setenv video "${video}" "video=mxcfb${fb_num}:dev=hdmi,${hdmi},if=RGB24,bpp=32" + + echo "Setting HDMI Display to mxcfb${fb_num}" + setexpr fb_num ${fb_num} + 1 + fi + + # Freescale MCIMX-LVDS1 10" XGA Touchscreen Display + elif itest.s "x${disp}" == "xHannstar-XGA" ; then + if test -z "${lvds_flag}" ; then # Only allow one LVDS display + setenv lvds_flag 1 + setenv video "${video}" "video=mxcfb${fb_num}:dev=ldb,bpp=32,LDB-XGA,if=RGB666" + + # Configure timings + setenv display "Hannstar-XGA" + + echo "Setting Hannstar-XGA Display to mxcfb${fb_num}" + setexpr fb_num ${fb_num} + 1 + fi + + # GW17029 DLC700JMGT4 7" WSVGA Touchscreen Display + elif itest.s "x${disp}" == "xDLC700JMGT4" ; then + if test -z "${lvds_flag}" ; then # Only allow one LVDS display + setenv lvds_flag 1 + setenv video "${video}" "video=mxcfb${fb_num}:dev=ldb,bpp=32,LDB-WSVGA,if=RGB666" + + # Configure timings + setenv display "DLC700JMGT4" + + echo "Setting DLC700JMGT4 Display to mxcfb${fb_num}" + setexpr fb_num ${fb_num} + 1 + fi + + # GW17030 DLC800FIGT3 8" XGA Touchscreen Display" + elif itest.s "x${disp}" == "xDLC800FIGT3" ; then + if test -z "${lvds_flag}" ; then # Only allow one LVDS display + setenv lvds_flag 1 + setenv video "${video}" "video=mxcfb${fb_num}:dev=ldb,bpp=32,LDB-XGA,if=RGB666" + + # Configure timings + setenv display "DLC800FIGT3" + + echo "Setting DLC800FIGT3 Display to mxcfb${fb_num}" + setexpr fb_num ${fb_num} + 1 + fi + + elif itest.s "x${disp}" == "xCVBS" ; then + if test -z "${cvbs_flag}" ; then # Only allow one CVBS display + setenv cvbs_flag 1 + setenv video "${video}" "video=mxcfb${fb_num}:dev=adv739x,BT656-NTSC,if=BT656,fbpix=RGB565,bpp=32" + + echo "Setting CVBS Display to mxcfb${fb_num}" + setexpr fb_num ${fb_num} + 1 + fi + + elif itest.s "x${disp}" == "xnone" ; then + # Reset fb_num to mark all displays to 'off' + setenv fb_num 0 + + else + echo "${disp} is an unsupported display type" + echo "Valid Displays: HDMI|Hannstar-XGA|DLC700JMGT4|DLC800FIGT3|CVBS" + fi done - # Add CVBS display if !(HDMI || LVDS || CVBS || DISPLAY || PANEL) - if test -z "$hdmi_flag" ; then - if test -z "$lvds_flag" ; then - if test -z "$cvbs_flag" ; then - if test -z "$display" ; then - if test -z "$panel" ; then - setenv cvbs_flag 1 - setenv video "$video" "video=mxcfb${fb_num}:dev=adv739x,BT656-NTSC,if=BT656,fbpix=RGB565,bpp=32" - - echo "Defaulting CVBS Display to mxcfb${fb_num}" - setexpr fb_num $fb_num + 1 - fi - fi - fi - fi - fi - - # Mark the rest of the displays to 'off' if panel is not set - if test -z "$panel" ; then - while test "$fb_num" -le "$max_disp" ; do - setenv video "$video" "video=mxcfb${fb_num}:off" - setexpr fb_num $fb_num + 1 - done - fi + # Mark the rest of the displays to 'off' + while test "${fb_num}" -le "${max_disp}" ; do + setenv video "${video}" "video=mxcfb${fb_num}:off" + setexpr fb_num ${fb_num} + 1 + done # Set only if video is set - if test -n "$video" ; then - setenv video "${video}" + if test -n "${video}" ; then + setenv video "${video}" fi fi -echo "Video configuration used from env video: $video" +setenv extra "${extra}" galcore.initgpu3DMinClock=3 +echo "Video configuration used from env video: ${video}" echo "## End Gateworks Ventana Yocto Bootscript ${_bscriptver} ################" -- 2.7.4