blob: 12888113fbf63d1fcdc451d35b9958a32769c42e [file] [log] [blame]
Fabio Estevamf22d7592014-01-03 15:55:58 -02001/*
2 * Copyright (C) 2013 Boundary Devices
3 * Copyright (C) 2013 SolidRun ltd.
4 * Copyright (C) 2013 Jon Nettleton <jon.nettleton@gmail.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0+
7 */
8
9/* set the default clock gate to save power */
10DATA 4, CCM_CCGR0, 0x00C03F3F
11DATA 4, CCM_CCGR1, 0x0030FC03
12DATA 4, CCM_CCGR2, 0x0FFFC000
13DATA 4, CCM_CCGR3, 0x3FF00000
14DATA 4, CCM_CCGR4, 0x00FFF300
15DATA 4, CCM_CCGR5, 0x0F0000C3
16DATA 4, CCM_CCGR6, 0x000003FF
17
18/* enable AXI cache for VDOA/VPU/IPU */
19DATA 4, MX6_IOMUXC_GPR4, 0xF00000CF
20/* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */
21DATA 4, MX6_IOMUXC_GPR6, 0x007F007F
22DATA 4, MX6_IOMUXC_GPR7, 0x007F007F
23
24/*
25 * Setup CCM_CCOSR register as follows:
26 *
27 * cko1_en = 1 --> CKO1 enabled
28 * cko1_div = 111 --> divide by 8
29 * cko1_sel = 1011 --> ahb_clk_root
30 *
31 * This sets CKO1 at ahb_clk_root/8 = 132/8 = 16.5 MHz
32 */
33DATA 4, CCM_CCOSR, 0x000000fb