2013-01-18 16:14:24 +00:00
|
|
|
/*
|
|
|
|
* (C) Copyright 2009
|
|
|
|
* Stefano Babic DENX Software Engineering sbabic@denx.de.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
2013-04-30 11:15:33 +00:00
|
|
|
* Refer doc/README.imximage for more details about how-to configure
|
2013-01-18 16:14:24 +00:00
|
|
|
* and create imximage boot image
|
|
|
|
*
|
|
|
|
* The syntax is taken as close as possible with the kwbimage
|
|
|
|
*/
|
2011-09-06 09:05:43 +00:00
|
|
|
|
2013-01-18 16:14:24 +00:00
|
|
|
/*
|
|
|
|
* Boot Device : one of
|
|
|
|
* spi, sd (the board has no nand neither onenand)
|
|
|
|
*/
|
2011-09-06 09:05:43 +00:00
|
|
|
BOOT_FROM sd
|
|
|
|
|
2013-01-18 16:14:24 +00:00
|
|
|
/*
|
|
|
|
* Device Configuration Data (DCD)
|
|
|
|
*
|
|
|
|
* Each entry must have the format:
|
|
|
|
* Addr-type Address Value
|
|
|
|
*
|
|
|
|
* where:
|
|
|
|
* Addr-type register length (1,2 or 4 bytes)
|
|
|
|
* Address absolute address of the register
|
|
|
|
* value value to be stored in the register
|
|
|
|
*/
|
|
|
|
/* EIM config-CS5 init -- CPLD */
|
2011-09-06 09:05:43 +00:00
|
|
|
DATA 4 0xB8002050 0x0000D843
|
|
|
|
DATA 4 0xB8002054 0x22252521
|
|
|
|
DATA 4 0xB8002058 0x22220A00
|
|
|
|
|
2013-01-18 16:14:24 +00:00
|
|
|
/* DDR2 init */
|
2011-09-06 09:05:43 +00:00
|
|
|
DATA 4 0xB8001004 0x0076E83A
|
|
|
|
DATA 4 0xB8001010 0x00000204
|
|
|
|
DATA 4 0xB8001000 0x92210000
|
|
|
|
DATA 4 0x80000f00 0x12344321
|
|
|
|
DATA 4 0xB8001000 0xB2210000
|
|
|
|
DATA 1 0x82000000 0xda
|
|
|
|
DATA 1 0x83000000 0xda
|
|
|
|
DATA 1 0x81000400 0xda
|
|
|
|
DATA 1 0x80000333 0xda
|
|
|
|
|
|
|
|
DATA 4 0xB8001000 0x92210000
|
|
|
|
DATA 1 0x80000400 0x12345678
|
|
|
|
|
|
|
|
DATA 4 0xB8001000 0xA2210000
|
|
|
|
DATA 4 0x80000000 0x87654321
|
|
|
|
DATA 4 0x80000000 0x87654321
|
|
|
|
|
|
|
|
DATA 4 0xB8001000 0xB2210000
|
|
|
|
DATA 1 0x80000233 0xda
|
|
|
|
DATA 1 0x81000780 0xda
|
|
|
|
DATA 1 0x81000400 0xda
|
|
|
|
DATA 4 0xB8001000 0x82216080
|
|
|
|
DATA 4 0x43FAC454 0x00001000
|
|
|
|
|
|
|
|
DATA 4 0x53F80008 0x20034000
|
|
|
|
|
2013-01-18 16:14:24 +00:00
|
|
|
/* Enable the clocks */
|
2011-09-06 09:05:43 +00:00
|
|
|
DATA 4 0x53f8000c 0x1fffffff
|
|
|
|
DATA 4 0x53f80010 0xffffffff
|
|
|
|
DATA 4 0x53f80014 0xfdfff
|