summaryrefstree
path: root/kernel/drivers/media/platform/exynos/fimc-is/fimc-is-companion.h
blob: dc8b170c2eb3919abafcb7305a3a7d5478c609e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * Samsung Exynos5 SoC series FIMC-IS driver
 *
 * exynos5 fimc-is core functions
 *
 * Copyright (c) 2011 Samsung Electronics Co., Ltd
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/vmalloc.h>
#include <linux/firmware.h>

#include "fimc-is-core.h"
#include "fimc-is-companion_address.h"
#include "fimc-is-interface.h"

#define I2C_RETRY_COUNT         5
#define CRC_RETRY_COUNT         40

#define FIMC_IS_ISP_CV	"/data/ISP_CV"
#ifdef CONFIG_SOC_EXYNOS5433
#define USE_SPI
#endif

int fimc_is_comp_is_valid(struct fimc_is_core *core);
int fimc_is_comp_loadfirm(struct fimc_is_core *core);
int fimc_is_comp_loadsetf(struct fimc_is_core *core);
int fimc_is_comp_loadcal(struct fimc_is_core *core);
u8 fimc_is_comp_is_compare_ver(struct fimc_is_core *core);
int fimc_is_power_binning(struct fimc_is_core *core);
void fimc_is_s_int_comb_isp(struct fimc_is_core *core,bool on, u32 ch);