xref: /linux/drivers/staging/media/atomisp/pci/css_2401_system/host/isys_dma.c (revision c771600c6af14749609b49565ffb4cac2959710d) !
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  */
6 
7 #include "system_local.h"
8 #include "isys_dma_global.h"
9 #include "assert_support.h"
10 #include "isys_dma_private.h"
11 
12 const isys2401_dma_channel N_ISYS2401_DMA_CHANNEL_PROCS[N_ISYS2401_DMA_ID] = {
13 	N_ISYS2401_DMA_CHANNEL
14 };
15 
isys2401_dma_set_max_burst_size(const isys2401_dma_ID_t dma_id,uint32_t max_burst_size)16 void isys2401_dma_set_max_burst_size(
17     const isys2401_dma_ID_t	dma_id,
18     uint32_t		max_burst_size)
19 {
20 	assert(dma_id < N_ISYS2401_DMA_ID);
21 	assert((max_burst_size > 0x00) && (max_burst_size <= 0xFF));
22 
23 	isys2401_dma_reg_store(dma_id,
24 			       DMA_DEV_INFO_REG_IDX(_DMA_V2_DEV_INTERF_MAX_BURST_IDX, HIVE_DMA_BUS_DDR_CONN),
25 			       (max_burst_size - 1));
26 }
27