1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Support for Intel Camera Imaging ISP subsystem.
4  * Copyright (c) 2015, Intel Corporation.
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms and conditions of the GNU General Public License,
8  * version 2, as published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  */
15 
16 #include "system_local.h"
17 #include "isys_dma_global.h"
18 #include "assert_support.h"
19 #include "isys_dma_private.h"
20 
21 const isys2401_dma_channel N_ISYS2401_DMA_CHANNEL_PROCS[N_ISYS2401_DMA_ID] = {
22 	N_ISYS2401_DMA_CHANNEL
23 };
24 
isys2401_dma_set_max_burst_size(const isys2401_dma_ID_t dma_id,uint32_t max_burst_size)25 void isys2401_dma_set_max_burst_size(
26     const isys2401_dma_ID_t	dma_id,
27     uint32_t		max_burst_size)
28 {
29 	assert(dma_id < N_ISYS2401_DMA_ID);
30 	assert((max_burst_size > 0x00) && (max_burst_size <= 0xFF));
31 
32 	isys2401_dma_reg_store(dma_id,
33 			       DMA_DEV_INFO_REG_IDX(_DMA_V2_DEV_INTERF_MAX_BURST_IDX, HIVE_DMA_BUS_DDR_CONN),
34 			       (max_burst_size - 1));
35 }
36