Eric Nelson | e5b3a50 | 2013-03-11 08:44:53 +0000 | [diff] [blame^] | 1 | ${dtype} dev ${disk} |
| 2 | |
| 3 | setenv bootargs enable_wait_mode=off |
| 4 | setenv nextcon 0; |
| 5 | setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 ; |
| 6 | |
| 7 | i2c dev 2 |
| 8 | |
| 9 | if i2c probe 0x04 ; then |
| 10 | setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,LDB-XGA,if=RGB666 |
| 11 | if test "0" -eq $nextcon; then |
| 12 | setenv fbcon "fbcon=10M"; |
| 13 | else |
| 14 | setenv fbcon ${fbcon},10M |
| 15 | fi |
| 16 | setexpr nextcon $nextcon + 1 |
| 17 | else |
| 18 | echo "------ no Freescale display"; |
| 19 | fi |
| 20 | |
| 21 | if i2c probe 0x38 ; then |
| 22 | setenv bootargs $bootargs video=mxcfb${nextcon}:dev=ldb,1024x600M@60,if=RGB666 |
| 23 | if test "0" -eq $nextcon; then |
| 24 | setenv fbcon "fbcon=10M"; |
| 25 | else |
| 26 | setenv fbcon ${fbcon},10M |
| 27 | fi |
| 28 | setexpr nextcon $nextcon + 1 |
| 29 | else |
| 30 | echo "------ no 1024x600 display"; |
| 31 | fi |
| 32 | |
| 33 | if i2c probe 0x48 ; then |
| 34 | setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,CLAA-WVGA,if=RGB666 tsdev=tsc2004 calibration |
| 35 | if test "0" -eq $nextcon; then |
| 36 | setenv fbcon "fbcon=10M"; |
| 37 | else |
| 38 | setenv fbcon ${fbcon},10M |
| 39 | fi |
| 40 | setexpr nextcon $nextcon + 1 |
| 41 | else |
| 42 | echo "------ no 800x480 display"; |
| 43 | fi |
| 44 | |
| 45 | if hdmidet ; then |
| 46 | setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24 |
| 47 | if test "0" -eq $nextcon; then |
| 48 | setenv fbcon "fbcon=28M"; |
| 49 | else |
| 50 | setenv fbcon ${fbcon},28M |
| 51 | fi |
| 52 | setexpr nextcon $nextcon + 1 |
| 53 | else |
| 54 | echo "------ no HDMI monitor"; |
| 55 | fi |
| 56 | |
| 57 | while test "3" -ne $nextcon ; do |
| 58 | setenv bootargs $bootargs video=mxcfb${nextcon}:off ; |
| 59 | setexpr nextcon $nextcon + 1 ; |
| 60 | done |
| 61 | |
| 62 | setenv bootargs $bootargs fbcon=$fbcon |
| 63 | ${fs}load ${dtype} ${disk}:1 10800000 uImage && ${fs}load ${dtype} ${disk}:1 12800000 uramdisk.img && bootm 10800000 12800000 |
| 64 | echo "Error loading kernel image" |