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 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame^] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 6 | * |
Anatolij Gustschin | fd4b3d3 | 2013-04-30 11:15:33 +0000 | [diff] [blame] | 7 | * Refer doc/README.imximage for more details about how-to configure |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 8 | * and create imximage boot image |
| 9 | * |
| 10 | * The syntax is taken as close as possible with the kwbimage |
| 11 | */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 12 | |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 13 | /* |
| 14 | * Boot Device : one of |
| 15 | * spi, sd (the board has no nand neither onenand) |
| 16 | */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 17 | BOOT_FROM sd |
| 18 | |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 19 | /* |
| 20 | * Device Configuration Data (DCD) |
| 21 | * |
| 22 | * Each entry must have the format: |
| 23 | * Addr-type Address Value |
| 24 | * |
| 25 | * where: |
| 26 | * Addr-type register length (1,2 or 4 bytes) |
| 27 | * Address absolute address of the register |
| 28 | * value value to be stored in the register |
| 29 | */ |
| 30 | /* EIM config-CS5 init -- CPLD */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 31 | DATA 4 0xB8002050 0x0000D843 |
| 32 | DATA 4 0xB8002054 0x22252521 |
| 33 | DATA 4 0xB8002058 0x22220A00 |
| 34 | |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 35 | /* DDR2 init */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 36 | DATA 4 0xB8001004 0x0076E83A |
| 37 | DATA 4 0xB8001010 0x00000204 |
| 38 | DATA 4 0xB8001000 0x92210000 |
| 39 | DATA 4 0x80000f00 0x12344321 |
| 40 | DATA 4 0xB8001000 0xB2210000 |
| 41 | DATA 1 0x82000000 0xda |
| 42 | DATA 1 0x83000000 0xda |
| 43 | DATA 1 0x81000400 0xda |
| 44 | DATA 1 0x80000333 0xda |
| 45 | |
| 46 | DATA 4 0xB8001000 0x92210000 |
| 47 | DATA 1 0x80000400 0x12345678 |
| 48 | |
| 49 | DATA 4 0xB8001000 0xA2210000 |
| 50 | DATA 4 0x80000000 0x87654321 |
| 51 | DATA 4 0x80000000 0x87654321 |
| 52 | |
| 53 | DATA 4 0xB8001000 0xB2210000 |
| 54 | DATA 1 0x80000233 0xda |
| 55 | DATA 1 0x81000780 0xda |
| 56 | DATA 1 0x81000400 0xda |
| 57 | DATA 4 0xB8001000 0x82216080 |
| 58 | DATA 4 0x43FAC454 0x00001000 |
| 59 | |
| 60 | DATA 4 0x53F80008 0x20034000 |
| 61 | |
Troy Kisky | a18d786 | 2013-01-18 16:14:24 +0000 | [diff] [blame] | 62 | /* Enable the clocks */ |
Fabio Estevam | adac83a | 2011-09-06 09:05:43 +0000 | [diff] [blame] | 63 | DATA 4 0x53f8000c 0x1fffffff |
| 64 | DATA 4 0x53f80010 0xffffffff |
| 65 | DATA 4 0x53f80014 0xfdfff |