aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/image
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-11-20 05:21:19 +0000
committerLuka Perkov <luka@openwrt.org>2015-11-20 05:21:19 +0000
commit18b92bb9cbcfe0e3d6d562d5a5f5590927939947 (patch)
treee1279dd026cef601dce017e83bd2832676e1ad3c /target/linux/imx6/image
parent88f5e3517281a26874ffb507a2139cfa4370852e (diff)
downloadmaster-187ad058-18b92bb9cbcfe0e3d6d562d5a5f5590927939947.tar.gz
master-187ad058-18b92bb9cbcfe0e3d6d562d5a5f5590927939947.tar.bz2
master-187ad058-18b92bb9cbcfe0e3d6d562d5a5f5590927939947.zip
imx6: ventana: remove invalid video options from bootscript
Removed video related kernel params that are only appropriate for the Freescale downstream vendor kernel and not appriate for mainline linux. Signed-off-by: Tim Harvey <tharvey@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47532 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/imx6/image')
-rw-r--r--target/linux/imx6/image/bootscript-ventana76
1 files changed, 1 insertions, 75 deletions
diff --git a/target/linux/imx6/image/bootscript-ventana b/target/linux/imx6/image/bootscript-ventana
index 8c789e57c9..8775733698 100644
--- a/target/linux/imx6/image/bootscript-ventana
+++ b/target/linux/imx6/image/bootscript-ventana
@@ -9,80 +9,6 @@ setenv bootargs console=${console},${baudrate}
setenv loadaddr 10800000
setenv fdt_addr 18000000
-# detect displays in the following priority: HDMI, LVDS
-# setenv display to override detection for a single display
-# or setenv video if you want multiple displays
-if test -n "$video" ; then
- echo "using video config from env: $video"
- setenv bootargs "${bootargs}" "${video}"
-else
- if test -n "$display" ; then
- echo "using display from env: $display"
- elif test -n "$panel" ; then
- echo "using display from env: $panel"
- setenv display "$panel"
- else
- echo "Detecting displays..."
- i2c dev 2
- if hdmidet ; then
- echo " HDMI detected"
- setenv display "HDMI"
- elif i2c probe 0x04 ; then
- echo " Freescale MXC-LVDS1 detected"
- setenv display "LVDS"
- elif i2c probe 0x14 ; then
- echo " DLC800FIGT3 detected"
- setenv display "LVDS"
- elif i2c probe 0x38 ; then
- echo " DLC700JMGT4 detected"
- setenv display "LVDS"
- fi
- fi
-
- # configure displays
- echo "Configuring kernel bootargs for display(s): $display"
- for p in ${display}; do
- if itest.s "x${p}" == "xHannstar-XGA" ; then
- setenv ptype "LVDS"
- elif itest.s "x${p}" == "xDLC700JMGT4" ; then
- setenv ptype "LVDS"
- elif itest.s "x${p}" == "xDLC800FIGT3" ; then
- setenv ptype "LVDS"
- elif itest.s "x${p}" == "xLVDS" ; then
- setenv ptype "LVDS"
- elif itest.s "x${p}" == "xHDMI" ; then
- setenv ptype "HDMI"
- 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
- else
- echo "${p} not supported"
- fi
-
- if itest.s "x${ptype}" == "xLVDS" ; then
- echo " mxcfb${nextcon}: LVDS ($p)"
- setenv bootargs "${bootargs}" video=mxcfb${nextcon}:dev=ldb,bpp=32,if=RGB666
- setexpr nextcon $nextcon + 1
- elif itest.s "x${ptype}" == "xHDMI" ; then
- echo " mxcfb${nextcon}: HDMI ($hdmi)"
- setenv bootargs "${bootargs}" video=mxcfb${nextcon}:dev=hdmi,bpp=32,${hdmi},if=RGB24
- setexpr nextcon $nextcon + 1
- fi
-
- done
-
- # disable remaining mxcfb devices
- while test "4" -ne $nextcon ; do
- setenv bootargs "${bootargs}" video=mxcfb${nextcon}:off
- setexpr nextcon $nextcon + 1
- done
-fi
-
# detect dtype and bootdev by looking for kernel on media the bootloader
# has mounted (in order of preference: usb/mmc/sata)
#
@@ -131,7 +57,7 @@ else
setenv root "root=/dev/${bootdev}"
fi
-setenv bootargs "${bootargs}" "${root}" "${extra}"
+setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}"
if ${fsload} ${loadaddr} ${bootdir}/uImage; then
if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then
echo Loaded DTB from ${bootdir}/${fdt_file}