mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 23:53:52 +02:00
The tegra_camera device includes all clock and regulator functionality needed to support camera on tegra. Change-Id: I281f1cb5f360276af832309e35dbe17c98b62bb3 Signed-off-by: Dima Zavin <dima@android.com>
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
/*
|
|
* include/linux/tegra_camera.h
|
|
*
|
|
* Copyright (C) 2010 Google, Inc.
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
enum {
|
|
TEGRA_CAMERA_MODULE_ISP = 0,
|
|
TEGRA_CAMERA_MODULE_VI,
|
|
TEGRA_CAMERA_MODULE_CSI,
|
|
};
|
|
|
|
enum {
|
|
TEGRA_CAMERA_VI_CLK,
|
|
TEGRA_CAMERA_VI_SENSOR_CLK,
|
|
};
|
|
|
|
struct tegra_camera_clk_info {
|
|
uint id;
|
|
uint clk_id;
|
|
unsigned long rate;
|
|
};
|
|
|
|
#define TEGRA_CAMERA_IOCTL_ENABLE _IOWR('i', 1, uint)
|
|
#define TEGRA_CAMERA_IOCTL_DISABLE _IOWR('i', 2, uint)
|
|
#define TEGRA_CAMERA_IOCTL_CLK_SET_RATE \
|
|
_IOWR('i', 3, struct tegra_camera_clk_info)
|
|
#define TEGRA_CAMERA_IOCTL_RESET _IOWR('i', 4, uint)
|