1/* 2 * Copyright (C) 2016 Freescale Semiconductor, Inc. 3 * 4 * SPDX-License-Identifier: GPL-2.0+ 5 */ 6 7#include <config.h> 8 9/* DDR script */ 10.macro imx6sll_evk_ddr_setting 11 ldr r0, =IOMUXC_BASE_ADDR 12 ldr r1, =0x00080000 13 str r1, [r0, #0x550] 14 ldr r1, =0x00000000 15 str r1, [r0, #0x534] 16 ldr r1, =0x00000030 17 str r1, [r0, #0x2AC] 18 str r1, [r0, #0x548] 19 str r1, [r0, #0x52C] 20 ldr r1, =0x00020000 21 str r1, [r0, #0x530] 22 ldr r1, =0x00003030 23 str r1, [r0, #0x2B0] 24 str r1, [r0, #0x2B4] 25 str r1, [r0, #0x2B8] 26 str r1, [r0, #0x2BC] 27 28 ldr r1, =0x00020000 29 str r1, [r0, #0x540] 30 ldr r1, =0x00000030 31 str r1, [r0, #0x544] 32 str r1, [r0, #0x54C] 33 str r1, [r0, #0x554] 34 str r1, [r0, #0x558] 35 str r1, [r0, #0x294] 36 str r1, [r0, #0x298] 37 str r1, [r0, #0x29C] 38 str r1, [r0, #0x2A0] 39 40 ldr r1, =0x00082030 41 str r1, [r0, #0x2C0] 42 43 ldr r0, =MMDC_P0_BASE_ADDR 44 ldr r1, =0x00008000 45 str r1, [r0, #0x1C] 46 ldr r1, =0xA1390003 47 str r1, [r0, #0x800] 48 ldr r1, =0x084700C7 49 str r1, [r0, #0x85C] 50 ldr r1, =0x00400000 51 str r1, [r0, #0x890] 52 53 ldr r1, =0x3F393B3C 54 str r1, [r0, #0x848] 55 ldr r1, =0x262C3826 56 str r1, [r0, #0x850] 57 58 ldr r1, =0x33333333 59 str r1, [r0, #0x81C] 60 str r1, [r0, #0x820] 61 str r1, [r0, #0x824] 62 str r1, [r0, #0x828] 63 64 ldr r1, =0xf3333333 65 str r1, [r0, #0x82C] 66 str r1, [r0, #0x830] 67 str r1, [r0, #0x834] 68 str r1, [r0, #0x838] 69 70 ldr r1, =0x24922492 71 str r1, [r0, #0x8C0] 72 ldr r1, =0x00000800 73 str r1, [r0, #0x8B8] 74 75 ldr r1, =0x00020052 76 str r1, [r0, #0x004] 77 ldr r1, =0x53574333 78 str r1, [r0, #0x00C] 79 ldr r1, =0x00100B22 80 str r1, [r0, #0x010] 81 ldr r1, =0x00170778 82 str r1, [r0, #0x038] 83 ldr r1, =0x00C700DB 84 str r1, [r0, #0x014] 85 ldr r1, =0x00201718 86 str r1, [r0, #0x018] 87 ldr r1, =0x0F9F26D2 88 str r1, [r0, #0x02C] 89 ldr r1, =0x009F0E10 90 str r1, [r0, #0x030] 91 ldr r1, =0x0000005F 92 str r1, [r0, #0x040] 93 ldr r1, =0xC4190000 94 str r1, [r0, #0x000] 95 ldr r1, =0x20000000 96 str r1, [r0, #0x83C] 97 98 ldr r1, =0x00008050 99 str r1, [r0, #0x01C] 100 ldr r1, =0x00008058 101 str r1, [r0, #0x01C] 102 ldr r1, =0x003F8030 103 str r1, [r0, #0x01C] 104 ldr r1, =0x003F8038 105 str r1, [r0, #0x01C] 106 ldr r1, =0xFF0A8030 107 str r1, [r0, #0x01C] 108 ldr r1, =0xFF0A8038 109 str r1, [r0, #0x01C] 110 ldr r1, =0x04028030 111 str r1, [r0, #0x01C] 112 ldr r1, =0x04028038 113 str r1, [r0, #0x01C] 114 ldr r1, =0x83018030 115 str r1, [r0, #0x01C] 116 ldr r1, =0x83018038 117 str r1, [r0, #0x01C] 118 ldr r1, =0x01038030 119 str r1, [r0, #0x01C] 120 ldr r1, =0x01038038 121 str r1, [r0, #0x01C] 122 123 ldr r1, =0x00001800 124 str r1, [r0, #0x020] 125 ldr r1, =0xA1390003 126 str r1, [r0, #0x800] 127 ldr r1, =0x00020052 128 str r1, [r0, #0x004] 129 ldr r1, =0x00011006 130 str r1, [r0, #0x404] 131 ldr r1, =0x00000000 132 str r1, [r0, #0x01C] 133.endm 134 135.macro imx6_clock_gating 136 ldr r0, =CCM_BASE_ADDR 137 ldr r1, =0xffffffff 138 str r1, [r0, #0x068] 139 str r1, [r0, #0x06c] 140 str r1, [r0, #0x070] 141 str r1, [r0, #0x074] 142 str r1, [r0, #0x078] 143 str r1, [r0, #0x07c] 144 str r1, [r0, #0x080] 145.endm 146 147.macro imx6_qos_setting 148.endm 149 150.macro imx6_ddr_setting 151 imx6sll_evk_ddr_setting 152.endm 153 154/* include the common plugin code here */ 155#include <asm/arch/mx6_plugin.S> 156