Lines Matching refs:rd

81 .macro emc_device_mask, rd, base
82 ldr \rd, [\base, #EMC_ADR_CFG]
83 tst \rd, #0x1
84 moveq \rd, #(0x1 << 8) @ just 1 device
85 movne \rd, #(0x3 << 8) @ 2 devices
88 .macro emc_timing_update, rd, base
89 mov \rd, #1
90 str \rd, [\base, #EMC_TIMING_CONTROL]
92 ldr \rd, [\base, #EMC_EMC_STATUS]
93 tst \rd, #(0x1<<23) @ wait EMC_STATUS_TIMING_UPDATE_STALLED is clear
97 .macro test_pll_state, rd, test_mask
98 ldr \rd, tegra_pll_state
99 tst \rd, #\test_mask
102 .macro store_pll_state, rd, tmp, r_car_base, pll_base, pll_mask
103 ldr \rd, [\r_car_base, #\pll_base]
104 tst \rd, #(1 << 30)
105 ldr \rd, tegra_pll_state
106 biceq \rd, \rd, #\pll_mask
107 orrne \rd, \rd, #\pll_mask
109 str \rd, [\tmp]
112 .macro store_pllm_pmc_state, rd, tmp, pmc_base
113 ldr \rd, [\pmc_base, #PMC_PLLP_WB0_OVERRIDE]
114 tst \rd, #(1 << 12)
115 ldr \rd, tegra_pll_state
116 biceq \rd, \rd, #PLLM_PMC_STORE_MASK
117 orrne \rd, \rd, #PLLM_PMC_STORE_MASK
119 str \rd, [\tmp]
122 .macro pllm_pmc_enable, rd, pmc_base
123 test_pll_state \rd, PLLM_PMC_STORE_MASK
125 ldrne \rd, [\pmc_base, #PMC_PLLP_WB0_OVERRIDE]
126 orrne \rd, \rd, #(1 << 12)
127 strne \rd, [\pmc_base, #PMC_PLLP_WB0_OVERRIDE]
130 .macro pll_enable, rd, r_car_base, pll_base, pll_misc, test_mask
131 test_pll_state \rd, \test_mask
134 ldr \rd, [\r_car_base, #\pll_base]
135 tst \rd, #(1 << 30)
136 orreq \rd, \rd, #(1 << 30)
137 streq \rd, [\r_car_base, #\pll_base]
140 ldr \rd, [\r_car_base, #\pll_misc]
141 bic \rd, \rd, #(1 << 18)
142 str \rd, [\r_car_base, #\pll_misc]
143 ldr \rd, [\r_car_base, #\pll_misc]
144 ldr \rd, [\r_car_base, #\pll_misc]
145 orr \rd, \rd, #(1 << 18)
146 str \rd, [\r_car_base, #\pll_misc]
151 .macro pll_locked, rd, r_car_base, pll_base, test_mask
152 test_pll_state \rd, \test_mask
155 ldr \rd, [\r_car_base, #\pll_base]
156 tst \rd, #(1 << 27)
161 .macro pll_iddq_exit, rd, car, iddq, iddq_bit
162 ldr \rd, [\car, #\iddq]
163 bic \rd, \rd, #(1<<\iddq_bit)
164 str \rd, [\car, #\iddq]
167 .macro pll_iddq_entry, rd, car, iddq, iddq_bit
168 ldr \rd, [\car, #\iddq]
169 orr \rd, \rd, #(1<<\iddq_bit)
170 str \rd, [\car, #\iddq]