blob: 8c03a49ca991df31d603a6f5531899591e646b22 [file] [log] [blame]
Troy Kisky71a988a2013-01-18 16:14:24 +00001/*
2 * Copyright (C) 2011 Freescale Semiconductor, Inc.
3 * Jason Liu <r64343@freescale.com>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Troy Kisky71a988a2013-01-18 16:14:24 +00006 *
Anatolij Gustschinb1e6c4c2013-04-30 11:15:33 +00007 * Refer doc/README.imximage for more details about how-to configure
Troy Kisky71a988a2013-01-18 16:14:24 +00008 * and create imximage boot image
9 *
10 * The syntax is taken as close as possible with the kwbimage
11 */
Jason Liubc5833c2011-12-29 06:34:19 +000012
Troy Kisky71a988a2013-01-18 16:14:24 +000013/* image version */
Jason Liubc5833c2011-12-29 06:34:19 +000014IMAGE_VERSION 2
15
Troy Kisky71a988a2013-01-18 16:14:24 +000016/*
17 * Boot Device : one of
18 * spi, sd (the board has no nand neither onenand)
19 */
Jason Liubc5833c2011-12-29 06:34:19 +000020BOOT_FROM sd
21
Troy Kisky71a988a2013-01-18 16:14:24 +000022/*
23 * Device Configuration Data (DCD)
24 *
25 * Each entry must have the format:
26 * Addr-type Address Value
27 *
28 * where:
29 * Addr-type register length (1,2 or 4 bytes)
30 * Address absolute address of the register
31 * value value to be stored in the register
32 */
Otavio Salvadorf33abe32015-07-23 11:02:32 -030033DATA 4 0x020e0798 0x000C0000
34DATA 4 0x020e0758 0x00000000
35DATA 4 0x020e0588 0x00000030
36DATA 4 0x020e0594 0x00000030
37DATA 4 0x020e056c 0x00000030
38DATA 4 0x020e0578 0x00000030
39DATA 4 0x020e074c 0x00000030
40DATA 4 0x020e057c 0x000c0030
41DATA 4 0x020e058c 0x00000000
42DATA 4 0x020e059c 0x00003030
43DATA 4 0x020e05a0 0x00003030
44DATA 4 0x020e078c 0x00000030
45DATA 4 0x020e0750 0x00020000
Jason Liubc5833c2011-12-29 06:34:19 +000046DATA 4 0x020e05a8 0x00000030
47DATA 4 0x020e05b0 0x00000030
48DATA 4 0x020e0524 0x00000030
49DATA 4 0x020e051c 0x00000030
Jason Liubc5833c2011-12-29 06:34:19 +000050DATA 4 0x020e0518 0x00000030
51DATA 4 0x020e050c 0x00000030
52DATA 4 0x020e05b8 0x00000030
53DATA 4 0x020e05c0 0x00000030
Otavio Salvadorf33abe32015-07-23 11:02:32 -030054DATA 4 0x020e0774 0x00020000
Jason Liubc5833c2011-12-29 06:34:19 +000055DATA 4 0x020e0784 0x00000030
56DATA 4 0x020e0788 0x00000030
Jason Liubc5833c2011-12-29 06:34:19 +000057DATA 4 0x020e0794 0x00000030
58DATA 4 0x020e079c 0x00000030
59DATA 4 0x020e07a0 0x00000030
60DATA 4 0x020e07a4 0x00000030
Jason Liubc5833c2011-12-29 06:34:19 +000061DATA 4 0x020e07a8 0x00000030
62DATA 4 0x020e0748 0x00000030
Otavio Salvadorf33abe32015-07-23 11:02:32 -030063DATA 4 0x020e05ac 0x00000030
64DATA 4 0x020e05b4 0x00000030
65DATA 4 0x020e0528 0x00000030
66DATA 4 0x020e0520 0x00000030
67DATA 4 0x020e0514 0x00000030
68DATA 4 0x020e0510 0x00000030
69DATA 4 0x020e05bc 0x00000030
70DATA 4 0x020e05c4 0x00000030
71DATA 4 0x021b0800 0xa1390003
72DATA 4 0x021b4800 0xa1390003
73DATA 4 0x021b080c 0x00110019
74DATA 4 0x021b0810 0x00260019
75DATA 4 0x021b480c 0x001A0031
76DATA 4 0x021b4810 0x001A0021
77DATA 4 0x021b083c 0x43100316
78DATA 4 0x021b0840 0x0306027E
79DATA 4 0x021b483c 0x43250330
80DATA 4 0x021b4840 0x0322027B
81DATA 4 0x021b0848 0x47414146
82DATA 4 0x021b4848 0x41434048
83DATA 4 0x021b0850 0x41444A44
84DATA 4 0x021b4850 0x4B444C46
Jason Liubc5833c2011-12-29 06:34:19 +000085DATA 4 0x021b081c 0x33333333
86DATA 4 0x021b0820 0x33333333
87DATA 4 0x021b0824 0x33333333
88DATA 4 0x021b0828 0x33333333
Jason Liubc5833c2011-12-29 06:34:19 +000089DATA 4 0x021b481c 0x33333333
90DATA 4 0x021b4820 0x33333333
91DATA 4 0x021b4824 0x33333333
92DATA 4 0x021b4828 0x33333333
Jason Liubc5833c2011-12-29 06:34:19 +000093DATA 4 0x021b08b8 0x00000800
94DATA 4 0x021b48b8 0x00000800
Otavio Salvadorf33abe32015-07-23 11:02:32 -030095DATA 4 0x021b0004 0x00020036
96DATA 4 0x021b0008 0x09444040
97DATA 4 0x021b000c 0x555A79A4
98DATA 4 0x021b0010 0xDB538F64
99DATA 4 0x021b0014 0x01FF00DB
100DATA 4 0x021b0018 0x00081740
101DATA 4 0x021b001c 0x00008000
102DATA 4 0x021b002c 0x000026d2
103DATA 4 0x021b0030 0x005A0E21
104DATA 4 0x021b0040 0x00000027
105DATA 4 0x021b0000 0x831A0000
106DATA 4 0x021b001c 0x04888032
107DATA 4 0x021b001c 0x00008033
108DATA 4 0x021b001c 0x00428031
109DATA 4 0x021b001c 0x09308030
110DATA 4 0x021b001c 0x04008040
111DATA 4 0x021b001c 0x04008048
112DATA 4 0x021b0020 0x00005800
113DATA 4 0x021b0818 0x00011117
114DATA 4 0x021b4818 0x00011117
115DATA 4 0x021b0004 0x00025576
Jason Liubc5833c2011-12-29 06:34:19 +0000116DATA 4 0x021b0404 0x00011006
Otavio Salvadorf33abe32015-07-23 11:02:32 -0300117DATA 4 0x021b001c 0x00000000
Jason Liubc5833c2011-12-29 06:34:19 +0000118
Troy Kisky71a988a2013-01-18 16:14:24 +0000119/* set the default clock gate to save power */
Jason Liubc5833c2011-12-29 06:34:19 +0000120DATA 4 0x020c4068 0x00C03F3F
Eric Nelson373a1d82012-01-31 07:52:05 +0000121DATA 4 0x020c406c 0x0030FC03
Jason Liubc5833c2011-12-29 06:34:19 +0000122DATA 4 0x020c4070 0x0FFFC000
123DATA 4 0x020c4074 0x3FF00000
124DATA 4 0x020c4078 0x00FFF300
125DATA 4 0x020c407c 0x0F0000C3
126DATA 4 0x020c4080 0x000003FF
127
Troy Kisky71a988a2013-01-18 16:14:24 +0000128/* enable AXI cache for VDOA/VPU/IPU */
Vikram Narayananb29da172012-06-12 04:50:33 +0000129DATA 4 0x020e0010 0xF00000CF
Troy Kisky71a988a2013-01-18 16:14:24 +0000130/* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
Jason Liubc5833c2011-12-29 06:34:19 +0000131DATA 4 0x020e0018 0x007F007F
132DATA 4 0x020e001c 0x007F007F
Fabio Estevam7a56f172013-04-17 08:33:26 +0000133
134/*
135 * Setup CCM_CCOSR register as follows:
136 *
137 * cko1_en = 1 --> CKO1 enabled
138 * cko1_div = 111 --> divide by 8
139 * cko1_sel = 1011 --> ahb_clk_root
140 *
141 * This sets CKO1 at ahb_clk_root/8 = 132/8 = 16.5 MHz
142 */
143DATA 4 0x020c4060 0x000000fb