18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Driver header for M-5MOLS 8M Pixel camera sensor with ISP
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2011 Samsung Electronics Co., Ltd.
68c2ecf20Sopenharmony_ci * Author: HeungJun Kim <riverful.kim@samsung.com>
78c2ecf20Sopenharmony_ci *
88c2ecf20Sopenharmony_ci * Copyright (C) 2009 Samsung Electronics Co., Ltd.
98c2ecf20Sopenharmony_ci * Author: Dongsoo Nathaniel Kim <dongsoo45.kim@samsung.com>
108c2ecf20Sopenharmony_ci */
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#ifndef MEDIA_M5MOLS_H
138c2ecf20Sopenharmony_ci#define MEDIA_M5MOLS_H
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci/**
168c2ecf20Sopenharmony_ci * struct m5mols_platform_data - platform data for M-5MOLS driver
178c2ecf20Sopenharmony_ci * @gpio_reset:	GPIO driving the reset pin of M-5MOLS
188c2ecf20Sopenharmony_ci * @reset_polarity: active state for gpio_reset pin, 0 or 1
198c2ecf20Sopenharmony_ci * @set_power:	an additional callback to the board setup code
208c2ecf20Sopenharmony_ci *		to be called after enabling and before disabling
218c2ecf20Sopenharmony_ci *		the sensor's supply regulators
228c2ecf20Sopenharmony_ci */
238c2ecf20Sopenharmony_cistruct m5mols_platform_data {
248c2ecf20Sopenharmony_ci	int gpio_reset;
258c2ecf20Sopenharmony_ci	u8 reset_polarity;
268c2ecf20Sopenharmony_ci	int (*set_power)(struct device *dev, int on);
278c2ecf20Sopenharmony_ci};
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ci#endif	/* MEDIA_M5MOLS_H */
30