Marek Vasut | d591401 | 2011-01-19 04:40:37 +0000 | [diff] [blame] | 1 | # |
Matt Sealey | ff9ab7c | 2012-08-22 09:25:39 +0000 | [diff] [blame] | 2 | # Copyright (C) 2009 Pegatron Corporation |
Marek Vasut | d591401 | 2011-01-19 04:40:37 +0000 | [diff] [blame] | 3 | # Copyright (C) 2010 Marek Vasut <marek.vasut@gmail.com> |
Matt Sealey | ff9ab7c | 2012-08-22 09:25:39 +0000 | [diff] [blame] | 4 | # Copyright (C) 2009-2012 Genesi USA, Inc. |
Marek Vasut | d591401 | 2011-01-19 04:40:37 +0000 | [diff] [blame] | 5 | # |
| 6 | # BASED ON: imx51evk |
| 7 | # |
| 8 | # (C) Copyright 2009 |
| 9 | # Stefano Babic DENX Software Engineering sbabic@denx.de. |
| 10 | # |
| 11 | # See file CREDITS for list of people who contributed to this |
| 12 | # project. |
| 13 | # |
| 14 | # This program is free software; you can redistribute it and/or |
| 15 | # modify it under the terms of the GNU General Public License as |
| 16 | # published by the Free Software Foundation; either version 2 of |
| 17 | # the License or (at your option) any later version. |
| 18 | # |
| 19 | # This program is distributed in the hope that it will be useful, |
| 20 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | # GNU General Public License for more details. |
| 23 | # |
| 24 | # You should have received a copy of the GNU General Public License |
| 25 | # along with this program; if not write to the Free Software |
| 26 | # Foundation Inc. 51 Franklin Street Fifth Floor Boston, |
| 27 | # MA 02110-1301 USA |
| 28 | # |
| 29 | # Refer docs/README.imxmage for more details about how-to configure |
| 30 | # and create imximage boot image |
| 31 | # |
| 32 | # The syntax is taken as close as possible with the kwbimage |
| 33 | |
| 34 | # Boot Device : one of |
| 35 | # spi, sd (the board has no nand neither onenand) |
| 36 | BOOT_FROM spi |
| 37 | |
| 38 | # Device Configuration Data (DCD) |
| 39 | # |
| 40 | # Each entry must have the format: |
| 41 | # Addr-type Address Value |
| 42 | # |
| 43 | # where: |
| 44 | # Addr-type register length (1,2 or 4 bytes) |
| 45 | # Address absolute address of the register |
| 46 | # value value to be stored in the register |
| 47 | |
Matt Sealey | 0001c9f | 2012-08-22 09:25:40 +0000 | [diff] [blame^] | 48 | # Essential GPIO settings to be done as early as possible |
| 49 | # PCBIDn pad settings are all the defaults except #2 which needs HVE off |
| 50 | DATA 4 0x73fa8134 0x3 # PCBID0 ALT3 GPIO 3_16 |
| 51 | DATA 4 0x73fa8130 0x3 # PCBID1 ALT3 GPIO 3_17 |
| 52 | DATA 4 0x73fa8128 0x3 # PCBID2 ALT3 GPIO 3_11 |
| 53 | DATA 4 0x73fa8504 0xe4 # PCBID2 PAD ~HVE |
| 54 | DATA 4 0x73fa8198 0x3 # LED0 ALT3 GPIO 3_13 |
| 55 | DATA 4 0x73fa81c4 0x3 # LED1 ALT3 GPIO 3_14 |
| 56 | DATA 4 0x73fa81c8 0x3 # LED2 ALT3 GPIO 3_15 |
| 57 | |
Matt Sealey | ff9ab7c | 2012-08-22 09:25:39 +0000 | [diff] [blame] | 58 | # DDR bus IOMUX PAD settings |
| 59 | DATA 4 0x73fa850c 0x20c5 # SDODT1 |
| 60 | DATA 4 0x73fa8510 0x20c5 # SDODT0 |
| 61 | DATA 4 0x73fa84ac 0xc5 # SDWE |
| 62 | DATA 4 0x73fa84b0 0xc5 # SDCKE0 |
| 63 | DATA 4 0x73fa84b4 0xc5 # SDCKE1 |
| 64 | DATA 4 0x73fa84cc 0xc5 # DRAM_CS0 |
| 65 | DATA 4 0x73fa84d0 0xc5 # DRAM_CS1 |
| 66 | DATA 4 0x73fa882c 0x2 # DRAM_B4 |
| 67 | DATA 4 0x73fa88a4 0x2 # DRAM_B0 |
| 68 | DATA 4 0x73fa88ac 0x2 # DRAM_B1 |
| 69 | DATA 4 0x73fa88b8 0x2 # DRAM_B2 |
| 70 | DATA 4 0x73fa84d4 0xc5 # DRAM_DQM0 |
| 71 | DATA 4 0x73fa84d8 0xc5 # DRAM_DQM1 |
| 72 | DATA 4 0x73fa84dc 0xc5 # DRAM_DQM2 |
| 73 | DATA 4 0x73fa84e0 0xc5 # DRAM_DQM3 |
Marek Vasut | d591401 | 2011-01-19 04:40:37 +0000 | [diff] [blame] | 74 | |
| 75 | # Setting DDR for micron |
| 76 | # 13 Rows, 10 Cols, 32 bit, SREF=4 Micron Model |
| 77 | # CAS=3 BL=4 |
| 78 | # ESDCTL_ESDCTL0 |
| 79 | DATA 4 0x83fd9000 0x82a20000 |
| 80 | # ESDCTL_ESDCTL1 |
| 81 | DATA 4 0x83fd9008 0x82a20000 |
| 82 | # ESDCTL_ESDMISC |
| 83 | DATA 4 0x83fd9010 0xcaaaf6d0 |
| 84 | # ESDCTL_ESDCFG0 |
| 85 | DATA 4 0x83fd9004 0x3f3574aa |
| 86 | # ESDCTL_ESDCFG1 |
| 87 | DATA 4 0x83fd900c 0x3f3574aa |
| 88 | |
| 89 | # Init DRAM on CS0 |
| 90 | # ESDCTL_ESDSCR |
| 91 | DATA 4 0x83fd9014 0x04008008 |
| 92 | DATA 4 0x83fd9014 0x0000801a |
| 93 | DATA 4 0x83fd9014 0x0000801b |
| 94 | DATA 4 0x83fd9014 0x00448019 |
| 95 | DATA 4 0x83fd9014 0x07328018 |
| 96 | DATA 4 0x83fd9014 0x04008008 |
| 97 | DATA 4 0x83fd9014 0x00008010 |
| 98 | DATA 4 0x83fd9014 0x00008010 |
| 99 | DATA 4 0x83fd9014 0x06328018 |
| 100 | DATA 4 0x83fd9014 0x03808019 |
| 101 | DATA 4 0x83fd9014 0x00408019 |
| 102 | DATA 4 0x83fd9014 0x00008000 |
| 103 | |
| 104 | # Init DRAM on CS1 |
| 105 | DATA 4 0x83fd9014 0x0400800c |
| 106 | DATA 4 0x83fd9014 0x0000801e |
| 107 | DATA 4 0x83fd9014 0x0000801f |
| 108 | DATA 4 0x83fd9014 0x0000801d |
| 109 | DATA 4 0x83fd9014 0x0732801c |
| 110 | DATA 4 0x83fd9014 0x0400800c |
| 111 | DATA 4 0x83fd9014 0x00008014 |
| 112 | DATA 4 0x83fd9014 0x00008014 |
| 113 | DATA 4 0x83fd9014 0x0632801c |
| 114 | DATA 4 0x83fd9014 0x0380801d |
| 115 | DATA 4 0x83fd9014 0x0040801d |
| 116 | DATA 4 0x83fd9014 0x00008004 |
| 117 | |
| 118 | # Write to CTL0 |
| 119 | DATA 4 0x83fd9000 0xb2a20000 |
| 120 | # Write to CTL1 |
| 121 | DATA 4 0x83fd9008 0xb2a20000 |
| 122 | # ESDMISC |
| 123 | DATA 4 0x83fd9010 0x000ad6d0 |
| 124 | #ESDCTL_ESDCDLYGD |
| 125 | DATA 4 0x83fd9034 0x90000000 |
| 126 | DATA 4 0x83fd9014 0x00000000 |