Eric Nelson | e5b3a50 | 2013-03-11 08:44:53 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Boundary Devices |
| 3 | * |
Wolfgang Denk | d79de1d | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Eric Nelson | e5b3a50 | 2013-03-11 08:44:53 +0000 | [diff] [blame] | 5 | * |
| 6 | * Device Configuration Data (DCD) |
| 7 | * |
| 8 | * Each entry must have the format: |
| 9 | * Addr-type Address Value |
| 10 | * |
| 11 | * where: |
| 12 | * Addr-type register length (1,2 or 4 bytes) |
| 13 | * Address absolute address of the register |
| 14 | * value value to be stored in the register |
| 15 | */ |
| 16 | |
| 17 | /* set the default clock gate to save power */ |
| 18 | DATA 4, CCM_CCGR0, 0x00C03F3F |
| 19 | DATA 4, CCM_CCGR1, 0x0030FC03 |
| 20 | DATA 4, CCM_CCGR2, 0x0FFFC000 |
| 21 | DATA 4, CCM_CCGR3, 0x3FF00000 |
| 22 | DATA 4, CCM_CCGR4, 0x00FFF300 |
| 23 | DATA 4, CCM_CCGR5, 0x0F0000C3 |
| 24 | DATA 4, CCM_CCGR6, 0x000003FF |
| 25 | |
| 26 | /* enable AXI cache for VDOA/VPU/IPU */ |
| 27 | DATA 4, MX6_IOMUXC_GPR4, 0xF00000CF |
| 28 | /* set IPU AXI-id0 Qos=0xf(bypass) AXI-id1 Qos=0x7 */ |
| 29 | DATA 4, MX6_IOMUXC_GPR6, 0x007F007F |
| 30 | DATA 4, MX6_IOMUXC_GPR7, 0x007F007F |
Fabio Estevam | d92fe0e | 2013-04-17 13:09:56 +0000 | [diff] [blame] | 31 | |
| 32 | /* |
| 33 | * Setup CCM_CCOSR register as follows: |
| 34 | * |
| 35 | * cko1_en = 1 --> CKO1 enabled |
| 36 | * cko1_div = 111 --> divide by 8 |
| 37 | * cko1_sel = 1011 --> ahb_clk_root |
| 38 | * |
| 39 | * This sets CKO1 at ahb_clk_root/8 = 132/8 = 16.5 MHz |
| 40 | */ |
| 41 | DATA 4, CCM_CCOSR, 0x000000fb |