Eric Nelson | d67b0d9 | 2013-03-11 08:44:53 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2013 Boundary Devices |
| 3 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 4 | * SPDX-License-Identifier: GPL-2.0+ |
Eric Nelson | d67b0d9 | 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 | /* |
| 18 | * DDR3 settings |
| 19 | * MX6Q ddr is limited to 1066 Mhz currently 1056 MHz(528 MHz clock), |
| 20 | * memory bus width: 64 bits x16/x32/x64 |
| 21 | * MX6DL ddr is limited to 800 MHz(400 MHz clock) |
| 22 | * memory bus width: 64 bits x16/x32/x64 |
| 23 | * MX6SOLO ddr is limited to 800 MHz(400 MHz clock) |
| 24 | * memory bus width: 32 bits x16/x32 |
| 25 | */ |
| 26 | DATA 4, MX6_IOM_DRAM_SDQS0, 0x00000030 |
| 27 | DATA 4, MX6_IOM_DRAM_SDQS1, 0x00000030 |
| 28 | DATA 4, MX6_IOM_DRAM_SDQS2, 0x00000030 |
| 29 | DATA 4, MX6_IOM_DRAM_SDQS3, 0x00000030 |
| 30 | DATA 4, MX6_IOM_DRAM_SDQS4, 0x00000030 |
| 31 | DATA 4, MX6_IOM_DRAM_SDQS5, 0x00000030 |
| 32 | DATA 4, MX6_IOM_DRAM_SDQS6, 0x00000030 |
| 33 | DATA 4, MX6_IOM_DRAM_SDQS7, 0x00000030 |
| 34 | |
| 35 | DATA 4, MX6_IOM_GRP_B0DS, 0x00000030 |
| 36 | DATA 4, MX6_IOM_GRP_B1DS, 0x00000030 |
| 37 | DATA 4, MX6_IOM_GRP_B2DS, 0x00000030 |
| 38 | DATA 4, MX6_IOM_GRP_B3DS, 0x00000030 |
| 39 | DATA 4, MX6_IOM_GRP_B4DS, 0x00000030 |
| 40 | DATA 4, MX6_IOM_GRP_B5DS, 0x00000030 |
| 41 | DATA 4, MX6_IOM_GRP_B6DS, 0x00000030 |
| 42 | DATA 4, MX6_IOM_GRP_B7DS, 0x00000030 |
| 43 | DATA 4, MX6_IOM_GRP_ADDDS, 0x00000030 |
| 44 | /* 40 Ohm drive strength for cs0/1,sdba2,cke0/1,sdwe */ |
| 45 | DATA 4, MX6_IOM_GRP_CTLDS, 0x00000030 |
| 46 | |
| 47 | DATA 4, MX6_IOM_DRAM_DQM0, 0x00020030 |
| 48 | DATA 4, MX6_IOM_DRAM_DQM1, 0x00020030 |
| 49 | DATA 4, MX6_IOM_DRAM_DQM2, 0x00020030 |
| 50 | DATA 4, MX6_IOM_DRAM_DQM3, 0x00020030 |
| 51 | DATA 4, MX6_IOM_DRAM_DQM4, 0x00020030 |
| 52 | DATA 4, MX6_IOM_DRAM_DQM5, 0x00020030 |
| 53 | DATA 4, MX6_IOM_DRAM_DQM6, 0x00020030 |
| 54 | DATA 4, MX6_IOM_DRAM_DQM7, 0x00020030 |
| 55 | |
| 56 | DATA 4, MX6_IOM_DRAM_CAS, 0x00020030 |
| 57 | DATA 4, MX6_IOM_DRAM_RAS, 0x00020030 |
| 58 | DATA 4, MX6_IOM_DRAM_SDCLK_0, 0x00020030 |
| 59 | DATA 4, MX6_IOM_DRAM_SDCLK_1, 0x00020030 |
| 60 | |
Troy Kisky | fdf86c2 | 2013-07-17 12:46:15 -0700 | [diff] [blame] | 61 | DATA 4, MX6_IOM_DRAM_RESET, 0x00020030 |
Eric Nelson | d67b0d9 | 2013-03-11 08:44:53 +0000 | [diff] [blame] | 62 | DATA 4, MX6_IOM_DRAM_SDCKE0, 0x00003000 |
| 63 | DATA 4, MX6_IOM_DRAM_SDCKE1, 0x00003000 |
| 64 | |
| 65 | DATA 4, MX6_IOM_DRAM_SDODT0, 0x00003030 |
| 66 | DATA 4, MX6_IOM_DRAM_SDODT1, 0x00003030 |
| 67 | |
| 68 | /* (differential input) */ |
| 69 | DATA 4, MX6_IOM_DDRMODE_CTL, 0x00020000 |
| 70 | /* (differential input) */ |
| 71 | DATA 4, MX6_IOM_GRP_DDRMODE, 0x00020000 |
| 72 | /* disable ddr pullups */ |
| 73 | DATA 4, MX6_IOM_GRP_DDRPKE, 0x00000000 |
| 74 | DATA 4, MX6_IOM_DRAM_SDBA2, 0x00000000 |
| 75 | /* 40 Ohm drive strength for cs0/1,sdba2,cke0/1,sdwe */ |
| 76 | DATA 4, MX6_IOM_GRP_DDR_TYPE, 0x000C0000 |
| 77 | |
| 78 | /* Read data DQ Byte0-3 delay */ |
| 79 | DATA 4, MX6_MMDC_P0_MPRDDQBY0DL, 0x33333333 |
| 80 | DATA 4, MX6_MMDC_P0_MPRDDQBY1DL, 0x33333333 |
| 81 | DATA 4, MX6_MMDC_P0_MPRDDQBY2DL, 0x33333333 |
| 82 | DATA 4, MX6_MMDC_P0_MPRDDQBY3DL, 0x33333333 |
| 83 | DATA 4, MX6_MMDC_P1_MPRDDQBY0DL, 0x33333333 |
| 84 | DATA 4, MX6_MMDC_P1_MPRDDQBY1DL, 0x33333333 |
| 85 | DATA 4, MX6_MMDC_P1_MPRDDQBY2DL, 0x33333333 |
| 86 | DATA 4, MX6_MMDC_P1_MPRDDQBY3DL, 0x33333333 |
| 87 | |
| 88 | /* |
| 89 | * MDMISC mirroring interleaved (row/bank/col) |
| 90 | */ |
| 91 | DATA 4, MX6_MMDC_P0_MDMISC, 0x00081740 |
| 92 | |
| 93 | /* |
| 94 | * MDSCR con_req |
| 95 | */ |
| 96 | DATA 4, MX6_MMDC_P0_MDSCR, 0x00008000 |