1${dtype} dev ${disk}
2
3setenv bootargs enable_wait_mode=off
4setenv nextcon 0;
5setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 ;
6
7i2c dev 2
8
9if 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
17else
18	echo "------ no Freescale display";
19fi
20
21if 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
29else
30	echo "------ no 1024x600 display";
31fi
32
33if 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
41else
42	echo "------ no 800x480 display";
43fi
44
45if 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
53else
54	echo "------ no HDMI monitor";
55fi
56
57while test "3" -ne $nextcon ; do
58	setenv bootargs $bootargs video=mxcfb${nextcon}:off ;
59	setexpr nextcon $nextcon + 1 ;
60done
61
62setenv bootargs $bootargs fbcon=$fbcon
63${fs}load ${dtype} ${disk}:1 10800000 uImage && ${fs}load ${dtype} ${disk}:1 12800000 uramdisk.img && bootm 10800000 12800000
64echo "Error loading kernel image"
65