Lines Matching refs:v
182 unsigned int i, v, data; in fsx_init() local
198 v = mmio_read_32(fs4_idm_reset_control); in fsx_init()
199 v |= (1 << FS4_IDM_RESET_CONTROL__RESET); in fsx_init()
200 mmio_write_32(fs4_idm_reset_control, v); in fsx_init()
202 v = mmio_read_32(fs4_idm_reset_control); in fsx_init()
203 v &= ~(1 << FS4_IDM_RESET_CONTROL__RESET); in fsx_init()
204 mmio_write_32(fs4_idm_reset_control, v); in fsx_init()
210 v = mmio_read_32(FS6_SUB_TOP_BASE + FS6_PKI_DME_RESET); in fsx_init()
211 v &= ~(PKI_DME_RESET); in fsx_init()
212 mmio_write_32(FS6_SUB_TOP_BASE + FS6_PKI_DME_RESET, v); in fsx_init()
231 v = 0xffffffff; in fsx_init()
232 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_RING_SECURITY_SETTING, v); in fsx_init()
237 v = start_stream_id >> FSX_COMM_RM_SSID_CONTROL__RING_BITS; in fsx_init()
238 v &= FSX_COMM_RM_SSID_CONTROL__MASK; in fsx_init()
239 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_SSID_CONTROL, v); in fsx_init()
243 v = 0x0271 << FSX_COMM_RM_TIMER_CONTROL_0__MEDIUM; in fsx_init()
244 v |= (0x0138 << FSX_COMM_RM_TIMER_CONTROL_0__FAST); in fsx_init()
245 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_TIMER_CONTROL_0, v); in fsx_init()
246 v = 0x09c4 << FSX_COMM_RM_TIMER_CONTROL_1__IDLE; in fsx_init()
247 v |= (0x04e2 << FSX_COMM_RM_TIMER_CONTROL_1__SLOW); in fsx_init()
248 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_TIMER_CONTROL_1, v); in fsx_init()
249 v = 0x0000f424; in fsx_init()
250 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_RING_FLUSH_TIMEOUT, v); in fsx_init()
254 v = 0x0; in fsx_init()
255 v |= (0x8 << FSX_COMM_RM_BURST_LENGTH__FOR_DDR_ADDR_GEN); in fsx_init()
256 v |= (0x8 << FSX_COMM_RM_BURST_LENGTH__FOR_TOGGLE); in fsx_init()
257 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_BURST_LENGTH, v); in fsx_init()
258 v = 0x0; in fsx_init()
259 v |= (0x67 << FSX_COMM_RM_FIFO_THRESHOLD__BD_FIFO_FULL); in fsx_init()
260 v |= (0x18 << FSX_COMM_RM_FIFO_THRESHOLD__AE_FIFO_FULL); in fsx_init()
261 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_FIFO_THRESHOLD, v); in fsx_init()
262 v = 0x0; in fsx_init()
263 v |= (0x8 << FSX_COMM_RM_BURST_BD_THRESHOLD_LOW); in fsx_init()
264 v |= (0x8 << FSX_COMM_RM_BURST_BD_THRESHOLD_HIGH); in fsx_init()
265 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_BURST_BD_THRESHOLD, v); in fsx_init()
269 v = 0x0; in fsx_init()
270 v |= (1 << FSX_COMM_RM_MEMORY_CONFIGURATION__POWERONIN); in fsx_init()
271 v |= (1 << FSX_COMM_RM_MEMORY_CONFIGURATION__POWEROKIN); in fsx_init()
272 v |= (1 << FSX_COMM_RM_MEMORY_CONFIGURATION__ARRPOWERONIN); in fsx_init()
273 v |= (1 << FSX_COMM_RM_MEMORY_CONFIGURATION__ARRPOWEROKIN); in fsx_init()
274 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_MEMORY_CONFIGURATION, v); in fsx_init()
277 v = 0; in fsx_init()
278 v |= (0x1 << FSX_COMM_RM_AXI_CONTROL__WRITE_CHANNEL_EN); in fsx_init()
279 v |= (0x1 << FSX_COMM_RM_AXI_CONTROL__READ_CHANNEL_EN); in fsx_init()
280 v |= (0xe << FSX_COMM_RM_AXI_CONTROL__AWQOS); in fsx_init()
281 v |= (0xa << FSX_COMM_RM_AXI_CONTROL__ARQOS); in fsx_init()
282 v |= (0x2 << FSX_COMM_RM_AXI_CONTROL__AWPROT); in fsx_init()
283 v |= (0x2 << FSX_COMM_RM_AXI_CONTROL__ARPROT); in fsx_init()
284 v |= (0xf << FSX_COMM_RM_AXI_CONTROL__AWCACHE); in fsx_init()
285 v |= (0xf << FSX_COMM_RM_AXI_CONTROL__ARCACHE); in fsx_init()
286 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_AXI_CONTROL, v); in fsx_init()
289 v = 0x0; in fsx_init()
290 v |= (0x10 << FSX_COMM_RM_AXI_READ_BURST_THRESHOLD__MAX); in fsx_init()
291 v |= (0x10 << FSX_COMM_RM_AXI_READ_BURST_THRESHOLD__MIN); in fsx_init()
292 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_AXI_READ_BURST_THRESHOLD, v); in fsx_init()
300 v = (dme_count & 0xf) << 0; in fsx_init()
301 v |= (dme_count & 0xf) << 4; in fsx_init()
302 v |= (dme_count & 0xf) << 8; in fsx_init()
303 v |= (dme_count & 0xf) << 12; in fsx_init()
304 v |= (dme_count & 0xf) << 16; in fsx_init()
305 v |= (dme_count & 0xf) << 20; in fsx_init()
306 v |= (dme_count & 0xf) << 24; in fsx_init()
307 v |= (dme_count & 0xf) << 28; in fsx_init()
308 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_GROUP_RING_COUNT, v); in fsx_init()
321 v = mmio_read_32(fsx_comm_rm + FSX_COMM_RM_CONTROL_REGISTER); in fsx_init()
322 v |= (1 << FSX_COMM_RM_CONTROL_REGISTER__AE_LOCKING); in fsx_init()
323 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_CONTROL_REGISTER, v); in fsx_init()
324 v |= (1 << FSX_COMM_RM_CONTROL_REGISTER__CONFIG_DONE); in fsx_init()
325 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_CONTROL_REGISTER, v); in fsx_init()
329 v = 0x00003fff; in fsx_init()
330 mmio_write_32(fsx_comm_rm + FSX_COMM_RM_AE_TIMEOUT, v); in fsx_init()
335 v = (0x1 << FSX_AEx_CONTROL_REGISTER__ACTIVE); in fsx_init()
336 mmio_write_32(FSX_AEx_CONTROL_REGISTER(base, i), v); in fsx_init()
342 v = 0; in fsx_init()
343 v |= (0x1 << FSX_DMEx_AXI_CONTROL__WRITE_CHANNEL_EN); in fsx_init()
344 v |= (0x1 << FSX_DMEx_AXI_CONTROL__READ_CHANNEL_EN); in fsx_init()
345 v |= (0xe << FSX_DMEx_AXI_CONTROL__AWQOS); in fsx_init()
346 v |= (0xa << FSX_DMEx_AXI_CONTROL__ARQOS); in fsx_init()
347 v |= (0xf << FSX_DMEx_AXI_CONTROL__AWCACHE); in fsx_init()
348 v |= (0xf << FSX_DMEx_AXI_CONTROL__ARCACHE); in fsx_init()
349 mmio_write_32(FSX_DMEx_AXI_CONTROL(dme_base, i), v); in fsx_init()
352 v = 0; in fsx_init()
353 v |= (0x4 << FSX_DMEx_WR_FIFO_THRESHOLD__MIN); in fsx_init()
354 v |= (0x4 << FSX_DMEx_WR_FIFO_THRESHOLD__MAX); in fsx_init()
355 mmio_write_32(FSX_DMEx_WR_FIFO_THRESHOLD(dme_base, i), v); in fsx_init()
358 v = 0; in fsx_init()
359 v |= (0x4 << FSX_DMEx_RD_FIFO_THRESHOLD__MIN); in fsx_init()
360 v |= (0x4 << FSX_DMEx_RD_FIFO_THRESHOLD__MAX); in fsx_init()
361 mmio_write_32(FSX_DMEx_RD_FIFO_THRESHOLD(dme_base, i), v); in fsx_init()
372 v = 0; in fsx_init()
373 v |= ((i & FSX_COMM_RINGx_CONTROL__AXI_ID_MASK) << in fsx_init()
375 mmio_write_32(FSX_COMM_RINGx_CONTROL(base, i), v); in fsx_init()