Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * Header for V4L2 SoC Camera driver for OMAP1 Camera Interface
4 *
5 * Copyright (C) 2010, Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
6 */
7
8#ifndef __MEDIA_OMAP1_CAMERA_H_
9#define __MEDIA_OMAP1_CAMERA_H_
10
11#include <linux/bitops.h>
12
13#define OMAP1_CAMERA_IOSIZE 0x1c
14
15enum omap1_cam_vb_mode {
16 OMAP1_CAM_DMA_CONTIG = 0,
17 OMAP1_CAM_DMA_SG,
18};
19
20#define OMAP1_CAMERA_MIN_BUF_COUNT(x) ((x) == OMAP1_CAM_DMA_CONTIG ? 3 : 2)
21
22struct omap1_cam_platform_data {
23 unsigned long camexclk_khz;
24 unsigned long lclk_khz_max;
25 unsigned long flags;
26};
27
28#define OMAP1_CAMERA_LCLK_RISING BIT(0)
29#define OMAP1_CAMERA_RST_LOW BIT(1)
30#define OMAP1_CAMERA_RST_HIGH BIT(2)
31
32#endif /* __MEDIA_OMAP1_CAMERA_H_ */