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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* /include/media/exynos_fimc_is_sensor.h
*
* Copyright (C) 2012 Samsung Electronics, Co. Ltd
*
* Exynos series exynos_fimc_is_sensor device support
*
* 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.
*/
#ifndef MEDIA_EXYNOS_COMPANION_H
#define MEDIA_EXYNOS_COMPANION_H
#include <linux/platform_device.h>
struct exynos_platform_fimc_is_companion {
int (*iclk_cfg)(struct platform_device *pdev, u32 scenario, u32 channel);
int (*iclk_on)(struct platform_device *pdev,u32 scenario, u32 channel);
int (*iclk_off)(struct platform_device *pdev, u32 scenario, u32 channel);
int (*mclk_on)(struct platform_device *pdev, u32 scenario, u32 channel);
int (*mclk_off)(struct platform_device *pdev, u32 scenario, u32 channel);
u32 scenario;
u32 mclk_ch;
u32 id;
char *comp_int_pin; /* Companion PAF INT */
char *comp_int_pinctrl;
#ifdef CONFIG_COMPANION_STANDBY_USE
u8 standby_state;
#endif
};
extern int exynos_fimc_is_companion_iclk_cfg(struct platform_device *pdev,
u32 scenario,
u32 channel);
extern int exynos_fimc_is_companion_iclk_on(struct platform_device *pdev,
u32 scenario,
u32 channel);
extern int exynos_fimc_is_companion_iclk_off(struct platform_device *pdev,
u32 scenario,
u32 channel);
extern int exynos_fimc_is_companion_mclk_on(struct platform_device *pdev,
u32 scenario,
u32 channel);
extern int exynos_fimc_is_companion_mclk_off(struct platform_device *pdev,
u32 scenario,
u32 channel);
#endif /* MEDIA_EXYNOS_COMPANION_H */
|