diff options
author | Eric Nelson <eric.nelson@boundarydevices.com> | 2013-05-03 11:18:12 -0700 |
---|---|---|
committer | Robert Winkler <robert.winkler@boundarydevices.com> | 2013-06-17 13:15:27 -0700 |
commit | 8ed84cc9a7418ba8cbed60f5595b8bd93521bcda (patch) | |
tree | 73454d029814a734b8d43342397eaa2ba2c381a5 /board/boundary | |
parent | e9d8a1ce6a9edc8d792dacce5b40adf81df7e4c9 (diff) |
nit6xlite android bootscript: Allow override for common panels
Diffstat (limited to 'board/boundary')
-rw-r--r-- | board/boundary/nit6xlite/6x_bootscript_android.txt | 89 |
1 files changed, 58 insertions, 31 deletions
diff --git a/board/boundary/nit6xlite/6x_bootscript_android.txt b/board/boundary/nit6xlite/6x_bootscript_android.txt index c9500bd9d09..ea667e463ff 100644 --- a/board/boundary/nit6xlite/6x_bootscript_android.txt +++ b/board/boundary/nit6xlite/6x_bootscript_android.txt @@ -2,53 +2,80 @@ setenv bootargs enable_wait_mode=off setenv nextcon 0; setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 ; +echo "-------------bootargs $bootargs" + if test -n "$tempfuse" ; then setenv bootargs $bootargs thermal.fusedata=$tempfuse fi -i2c dev 2 -if i2c probe 0x04 ; then - setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,LDB-XGA,if=RGB666 - if test "0" -eq $nextcon; then - setenv fbmem "fbmem=10M"; +echo "--------- testing panel" ; + +if test "x" = "x$panel" ; then + echo '-------------no panel set... auto-detect' + i2c dev 2 + if i2c probe 0x04 ; then + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,LDB-XGA,if=RGB666 + if test "0" -eq $nextcon; then + setenv fbmem "fbmem=10M"; + else + setenv fbmem ${fbmem},10M + fi + setexpr nextcon $nextcon + 1 else - setenv fbmem ${fbmem},10M + echo "------ no Freescale display"; + fi + + if i2c probe 0x38 ; then + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,1024x600M@60,if=RGB666 + if test "0" -eq $nextcon; then + setenv fbmem "fbmem=10M"; + else + setenv fbmem ${fbmem},10M + fi + setexpr nextcon $nextcon + 1 + else + echo "------ no 1024x600 display"; fi - setexpr nextcon $nextcon + 1 -else - echo "------ no Freescale display"; -fi -if i2c probe 0x38 ; then - setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,1024x600M@60,if=RGB666 if test "0" -eq $nextcon; then + echo "Default to wqvga (480x272) display"; + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,wqvga-lcd,if=RGB24 calibration tsdev=tsc2004 setenv fbmem "fbmem=10M"; + setexpr nextcon $nextcon + 1 + fi + + if hdmidet ; then + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24 + if test "0" -eq $nextcon; then + setenv fbmem "fbmem=28M"; + else + setenv fbmem ${fbmem},28M + fi + setexpr nextcon $nextcon + 1 else - setenv fbmem ${fbmem},10M + echo "------ no HDMI monitor"; fi +else if test "HDMI" = "$panel" ; then + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24 + setenv fbmem "fbmem=28M"; setexpr nextcon $nextcon + 1 -else - echo "------ no 1024x600 display"; -fi - -if test "0" -eq $nextcon; then - echo "Default to wqvga (480x272) display"; +else if test "Hannstar-XGA" = "$panel" ; then + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,LDB-XGA,if=RGB666 + setenv fbmem "fbmem=10M"; + setexpr nextcon $nextcon + 1 +else if test "wqvga-rgb" = "$panel" ; then setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,wqvga-lcd,if=RGB24 calibration tsdev=tsc2004 setenv fbmem "fbmem=10M"; setexpr nextcon $nextcon + 1 -fi - -if hdmidet ; then - setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24 - if test "0" -eq $nextcon; then - setenv fbmem "fbmem=28M"; - else - setenv fbmem ${fbmem},28M - fi +else if test "wsvga-lvds" = "$panel" ; then + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,1024x600M@60,if=RGB666 + setenv fbmem "fbmem=10M"; setexpr nextcon $nextcon + 1 -else - echo "------ no HDMI monitor"; -fi +else if test "wvga-rgb" = "$panel" ; then + setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,CLAA-WVGA,if=RGB666 tsdev=tsc2004 calibration + setenv fbmem "fbmem=10M"; + setexpr nextcon $nextcon + 1 +fi ; fi ; fi ; fi ; fi ; fi while test "3" -ne $nextcon ; do setenv bootargs $bootargs video=mxcfb${nextcon}:off ; |