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