-
Notifications
You must be signed in to change notification settings - Fork 176
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Boundary Devices Nitrogen6X boards
Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
- Loading branch information
Showing
24 changed files
with
2,338 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright (C) 2013 Boundary Devices | ||
* | ||
* See file CREDITS for list of people who contributed to this | ||
* project. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as | ||
* published by the Free Software Foundation; either version 2 of | ||
* the License or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not write to the Free Software | ||
* Foundation Inc. 51 Franklin Street Fifth Floor Boston, | ||
* MA 02110-1301 USA | ||
* | ||
*/ | ||
DATA 4, MX6_MMDC_P0_MDPDC, 0x00020036 | ||
DATA 4, MX6_MMDC_P0_MDCFG0, 0x555A7974 | ||
DATA 4, MX6_MMDC_P0_MDCFG1, 0xDB538F64 | ||
DATA 4, MX6_MMDC_P0_MDCFG2, 0x01FF00DB | ||
DATA 4, MX6_MMDC_P0_MDRWD, 0x000026D2 | ||
DATA 4, MX6_MMDC_P0_MDOR, 0x005A1023 | ||
DATA 4, MX6_MMDC_P0_MDOTC, 0x09444040 | ||
DATA 4, MX6_MMDC_P0_MDPDC, 0x00025576 | ||
DATA 4, MX6_MMDC_P0_MDASP, 0x00000027 | ||
DATA 4, MX6_MMDC_P0_MDCTL, 0x831A0000 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x04088032 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x00008033 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x00428031 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x19308030 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x04008040 | ||
DATA 4, MX6_MMDC_P0_MPZQHWCTRL, 0xA1390003 | ||
DATA 4, MX6_MMDC_P1_MPZQHWCTRL, 0xA1390003 | ||
DATA 4, MX6_MMDC_P0_MDREF, 0x00005800 | ||
DATA 4, MX6_MMDC_P0_MPODTCTRL, 0x00022227 | ||
DATA 4, MX6_MMDC_P1_MPODTCTRL, 0x00022227 | ||
DATA 4, MX6_MMDC_P0_MPDGCTRL0, 0x42720306 | ||
DATA 4, MX6_MMDC_P0_MPDGCTRL1, 0x026F0266 | ||
DATA 4, MX6_MMDC_P1_MPDGCTRL0, 0x4273030A | ||
DATA 4, MX6_MMDC_P1_MPDGCTRL1, 0x02740240 | ||
DATA 4, MX6_MMDC_P0_MPRDDLCTL, 0x45393B3E | ||
DATA 4, MX6_MMDC_P1_MPRDDLCTL, 0x403A3747 | ||
DATA 4, MX6_MMDC_P0_MPWRDLCTL, 0x40434541 | ||
DATA 4, MX6_MMDC_P1_MPWRDLCTL, 0x473E4A3B | ||
DATA 4, MX6_MMDC_P0_MPWLDECTRL0, 0x0011000E | ||
DATA 4, MX6_MMDC_P0_MPWLDECTRL1, 0x000E001B | ||
DATA 4, MX6_MMDC_P1_MPWLDECTRL0, 0x00190015 | ||
DATA 4, MX6_MMDC_P1_MPWLDECTRL1, 0x00070018 | ||
DATA 4, MX6_MMDC_P0_MPMUR0, 0x00000800 | ||
DATA 4, MX6_MMDC_P1_MPMUR0, 0x00000800 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x00000000 | ||
DATA 4, MX6_MMDC_P0_MAPSR, 0x00011006 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/* | ||
* Copyright (C) 2013 Boundary Devices | ||
* | ||
* See file CREDITS for list of people who contributed to this | ||
* project. | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License as | ||
* published by the Free Software Foundation; either version 2 of | ||
* the License or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program; if not write to the Free Software | ||
* Foundation Inc. 51 Franklin Street Fifth Floor Boston, | ||
* MA 02110-1301 USA | ||
* | ||
*/ | ||
DATA 4, MX6_MMDC_P0_MDPDC, 0x00020036 | ||
DATA 4, MX6_MMDC_P0_MDCFG0, 0x898E7974 | ||
DATA 4, MX6_MMDC_P0_MDCFG1, 0xDB538F64 | ||
DATA 4, MX6_MMDC_P0_MDCFG2, 0x01FF00DB | ||
DATA 4, MX6_MMDC_P0_MDRWD, 0x000026D2 | ||
DATA 4, MX6_MMDC_P0_MDOR, 0x008E1023 | ||
DATA 4, MX6_MMDC_P0_MDOTC, 0x09444040 | ||
DATA 4, MX6_MMDC_P0_MDPDC, 0x00025576 | ||
DATA 4, MX6_MMDC_P0_MDASP, 0x00000047 | ||
DATA 4, MX6_MMDC_P0_MDCTL, 0x841A0000 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x04088032 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x00008033 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x00428031 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x19308030 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x04008040 | ||
DATA 4, MX6_MMDC_P0_MPZQHWCTRL, 0xA1390003 | ||
DATA 4, MX6_MMDC_P1_MPZQHWCTRL, 0xA1390003 | ||
DATA 4, MX6_MMDC_P0_MDREF, 0x00007800 | ||
DATA 4, MX6_MMDC_P0_MPODTCTRL, 0x00022227 | ||
DATA 4, MX6_MMDC_P1_MPODTCTRL, 0x00022227 | ||
DATA 4, MX6_MMDC_P0_MPDGCTRL0, 0x43040319 | ||
DATA 4, MX6_MMDC_P0_MPDGCTRL1, 0x03040279 | ||
DATA 4, MX6_MMDC_P1_MPDGCTRL0, 0x43040321 | ||
DATA 4, MX6_MMDC_P1_MPDGCTRL1, 0x03030251 | ||
DATA 4, MX6_MMDC_P0_MPRDDLCTL, 0x4d434248 | ||
DATA 4, MX6_MMDC_P1_MPRDDLCTL, 0x42413c4d | ||
DATA 4, MX6_MMDC_P0_MPWRDLCTL, 0x34424543 | ||
DATA 4, MX6_MMDC_P1_MPWRDLCTL, 0x49324933 | ||
DATA 4, MX6_MMDC_P0_MPWLDECTRL0, 0x001a0017 | ||
DATA 4, MX6_MMDC_P0_MPWLDECTRL1, 0x001F001F | ||
DATA 4, MX6_MMDC_P1_MPWLDECTRL0, 0x00170027 | ||
DATA 4, MX6_MMDC_P1_MPWLDECTRL1, 0x000a001f | ||
DATA 4, MX6_MMDC_P0_MPMUR0, 0x00000800 | ||
DATA 4, MX6_MMDC_P1_MPMUR0, 0x00000800 | ||
DATA 4, MX6_MMDC_P0_MDSCR, 0x00000000 | ||
DATA 4, MX6_MMDC_P0_MAPSR, 0x00011006 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
setenv bootargs enable_wait_mode=off | ||
setenv nextcon 0; | ||
|
||
if hdmidet ; then | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24 | ||
setenv fbmem "fbmem=28M"; | ||
setexpr nextcon $nextcon + 1 | ||
else | ||
echo "------ no HDMI monitor"; | ||
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"; | ||
else | ||
setenv fbmem ${fbmem},10M | ||
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 | ||
setenv fbmem "fbmem=10M"; | ||
else | ||
setenv fbmem ${fbmem},10M | ||
fi | ||
setexpr nextcon $nextcon + 1 | ||
else | ||
echo "------ no 1024x600 display"; | ||
fi | ||
|
||
if i2c probe 0x48 ; then | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,CLAA-WVGA,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 800x480 display"; | ||
fi | ||
|
||
while test "3" -ne $nextcon ; do | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:off ; | ||
setexpr nextcon $nextcon + 1 ; | ||
done | ||
|
||
setenv bootargs $bootargs $fbmem | ||
setenv bootargs "$bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 rootwait" | ||
|
||
if test "sata" = "${dtype}" ; then | ||
setenv bootargs "$bootargs root=/dev/sda1" ; | ||
else | ||
setenv "bootargs $bootargs root=/dev/mmcblk0p1" ; | ||
fi | ||
${fs}load ${dtype} ${disk}:1 10800000 /boot/uImage && bootm 10800000 ; | ||
echo "Error loading kernel image" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
${dtype} dev ${disk} | ||
|
||
setenv bootargs enable_wait_mode=off | ||
setenv nextcon 0; | ||
setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 ; | ||
|
||
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 fbcon "fbcon=10M"; | ||
else | ||
setenv fbcon ${fbcon},10M | ||
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 | ||
setenv fbcon "fbcon=10M"; | ||
else | ||
setenv fbcon ${fbcon},10M | ||
fi | ||
setexpr nextcon $nextcon + 1 | ||
else | ||
echo "------ no 1024x600 display"; | ||
fi | ||
|
||
if i2c probe 0x48 ; then | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,CLAA-WVGA,if=RGB666 tsdev=tsc2004 calibration | ||
if test "0" -eq $nextcon; then | ||
setenv fbcon "fbcon=10M"; | ||
else | ||
setenv fbcon ${fbcon},10M | ||
fi | ||
setexpr nextcon $nextcon + 1 | ||
else | ||
echo "------ no 800x480 display"; | ||
fi | ||
|
||
if hdmidet ; then | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24 | ||
if test "0" -eq $nextcon; then | ||
setenv fbcon "fbcon=28M"; | ||
else | ||
setenv fbcon ${fbcon},28M | ||
fi | ||
setexpr nextcon $nextcon + 1 | ||
else | ||
echo "------ no HDMI monitor"; | ||
fi | ||
|
||
while test "3" -ne $nextcon ; do | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:off ; | ||
setexpr nextcon $nextcon + 1 ; | ||
done | ||
|
||
setenv bootargs $bootargs fbcon=$fbcon | ||
${fs}load ${dtype} ${disk}:1 10800000 uImage && ${fs}load ${dtype} ${disk}:1 12800000 uramdisk.img && bootm 10800000 12800000 | ||
echo "Error loading kernel image" |
64 changes: 64 additions & 0 deletions
64
board/boundary/nitrogen6x/6x_bootscript_android_recovery.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
${dtype} dev ${disk} | ||
|
||
setenv bootargs enable_wait_mode=off | ||
setenv nextcon 0; | ||
setenv bootargs $bootargs console=ttymxc1,115200 vmalloc=400M consoleblank=0 ; | ||
|
||
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 fbcon "fbcon=10M"; | ||
else | ||
setenv fbcon ${fbcon},10M | ||
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 | ||
setenv fbcon "fbcon=10M"; | ||
else | ||
setenv fbcon ${fbcon},10M | ||
fi | ||
setexpr nextcon $nextcon + 1 | ||
else | ||
echo "------ no 1024x600 display"; | ||
fi | ||
|
||
if i2c probe 0x48 ; then | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=lcd,CLAA-WVGA,if=RGB666 tsdev=tsc2004 calibration | ||
if test "0" -eq $nextcon; then | ||
setenv fbcon "fbcon=10M"; | ||
else | ||
setenv fbcon ${fbcon},10M | ||
fi | ||
setexpr nextcon $nextcon + 1 | ||
else | ||
echo "------ no 800x480 display"; | ||
fi | ||
|
||
if hdmidet ; then | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:dev=hdmi,1280x720M@60,if=RGB24 | ||
if test "0" -eq $nextcon; then | ||
setenv fbcon "fbcon=28M"; | ||
else | ||
setenv fbcon ${fbcon},28M | ||
fi | ||
setexpr nextcon $nextcon + 1 | ||
else | ||
echo "------ no HDMI monitor"; | ||
fi | ||
|
||
while test "3" -ne $nextcon ; do | ||
setenv bootargs $bootargs video=mxcfb${nextcon}:off ; | ||
setexpr nextcon $nextcon + 1 ; | ||
done | ||
|
||
setenv bootargs $bootargs fbcon=$fbcon | ||
${fs}load ${dtype} ${disk}:1 10800000 uImage && ${fs}load ${dtype} ${disk}:1 12800000 uramdisk.img && bootm 10800000 12800000 | ||
echo "Error loading kernel image" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
setenv stdout serial,vga | ||
echo "check U-Boot" ; | ||
setenv offset 0x400 | ||
if ${fs}load ${dtype} ${disk}:1 12000000 u-boot.imx || ${fs}load ${dtype} ${disk}:1 12000000 u-boot.nopadding ; then | ||
echo "read $filesize bytes from SD card" ; | ||
if sf probe || sf probe || \ | ||
sf probe 1 27000000 || sf probe 1 27000000 ; then | ||
echo "probed SPI ROM" ; | ||
if sf read 0x12400000 $offset $filesize ; then | ||
if cmp.b 0x12000000 0x12400000 $filesize ; then | ||
echo "------- U-Boot versions match" ; | ||
else | ||
echo "Need U-Boot upgrade" ; | ||
echo "Program in 5 seconds" ; | ||
for n in 5 4 3 2 1 ; do | ||
echo $n ; | ||
sleep 1 ; | ||
done | ||
echo "erasing" ; | ||
sf erase 0 0x50000 ; | ||
# two steps to prevent bricking | ||
echo "programming" ; | ||
sf write 0x12000000 $offset $filesize ; | ||
echo "verifying" ; | ||
if sf read 0x12400000 $offset $filesize ; then | ||
if cmp.b 0x12000000 0x12400000 $filesize ; then | ||
while echo "---- U-Boot upgraded. reset" ; do | ||
sleep 120 | ||
done | ||
else | ||
echo "Read verification error" ; | ||
fi | ||
else | ||
echo "Error re-reading EEPROM" ; | ||
fi | ||
fi | ||
else | ||
echo "Error reading boot loader from EEPROM" ; | ||
fi | ||
else | ||
echo "Error initializing EEPROM" ; | ||
fi ; | ||
else | ||
echo "No U-Boot image found on SD card" ; | ||
fi |
Oops, something went wrong.