Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2009 |
| 3 | * Stefano Babic DENX Software Engineering sbabic@denx.de. |
| 4 | * |
| 5 | * See file CREDITS for list of people who contributed to this |
| 6 | * project. |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or |
| 9 | * modify it under the terms of the GNU General Public License as |
| 10 | * published by the Free Software Foundation; either version 2 of |
| 11 | * the License or (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * Refer docs/README.imxmage for more details about how-to configure |
| 19 | * and create imximage boot image |
| 20 | * |
| 21 | * The syntax is taken as close as possible with the kwbimage |
| 22 | */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 23 | |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 24 | /* |
| 25 | * Boot Device : one of |
| 26 | * spi, sd (the board has no nand neither onenand) |
| 27 | */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 28 | BOOT_FROM sd |
| 29 | |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 30 | /* |
| 31 | * Device Configuration Data (DCD) |
| 32 | * |
| 33 | * Each entry must have the format: |
| 34 | * Addr-type Address Value |
| 35 | * |
| 36 | * where: |
| 37 | * Addr-type register length (1,2 or 4 bytes) |
| 38 | * Address absolute address of the register |
| 39 | * value value to be stored in the register |
| 40 | */ |
| 41 | /* EIM config-CS5 init -- CPLD */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 42 | DATA 4 0xB8002050 0x0000D843 |
| 43 | DATA 4 0xB8002054 0x22252521 |
| 44 | DATA 4 0xB8002058 0x22220A00 |
| 45 | |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 46 | /* DDR2 init */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 47 | DATA 4 0xB8001004 0x0076E83A |
| 48 | DATA 4 0xB8001010 0x00000204 |
| 49 | DATA 4 0xB8001000 0x92210000 |
| 50 | DATA 4 0x80000f00 0x12344321 |
| 51 | DATA 4 0xB8001000 0xB2210000 |
| 52 | DATA 1 0x82000000 0xda |
| 53 | DATA 1 0x83000000 0xda |
| 54 | DATA 1 0x81000400 0xda |
| 55 | DATA 1 0x80000333 0xda |
| 56 | |
| 57 | DATA 4 0xB8001000 0x92210000 |
| 58 | DATA 1 0x80000400 0x12345678 |
| 59 | |
| 60 | DATA 4 0xB8001000 0xA2210000 |
| 61 | DATA 4 0x80000000 0x87654321 |
| 62 | DATA 4 0x80000000 0x87654321 |
| 63 | |
| 64 | DATA 4 0xB8001000 0xB2210000 |
| 65 | DATA 1 0x80000233 0xda |
| 66 | DATA 1 0x81000780 0xda |
| 67 | DATA 1 0x81000400 0xda |
| 68 | DATA 4 0xB8001000 0x82216080 |
| 69 | DATA 4 0x43FAC454 0x00001000 |
| 70 | |
| 71 | DATA 4 0x53F80008 0x20034000 |
| 72 | |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 73 | /* Enable the clocks */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 74 | DATA 4 0x53f8000c 0x1fffffff |
| 75 | DATA 4 0x53f80010 0xffffffff |
| 76 | DATA 4 0x53f80014 0xfdfff |