^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /* mt9t112 Camera
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright (C) 2009 Renesas Solutions Corp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) * Kuninori Morimoto <morimoto.kuninori@renesas.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #ifndef __MT9T112_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) #define __MT9T112_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct mt9t112_pll_divider {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) u8 m, n;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) u8 p1, p2, p3, p4, p5, p6, p7;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) /**
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) * mt9t112_platform_data - mt9t112 driver interface
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) * @flags: Sensor media bus configuration.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) * @divider: Sensor PLL configuration
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) struct mt9t112_platform_data {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define MT9T112_FLAG_PCLK_RISING_EDGE BIT(0)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) u32 flags;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) struct mt9t112_pll_divider divider;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #endif /* __MT9T112_H__ */