diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-03-11 14:28:18 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-04 19:04:49 -0400 |
commit | da114376d325298cce4a7271c4de9bd41c712266 (patch) | |
tree | 1cef9405828eadbe7d3d9695a6ad03fd9bba22e8 /drivers/media/platform/exynos4-is/fimc-is-i2c.h | |
parent | 9a761e436843f228eaa2decda6d2c6dbd5ef1480 (diff) |
[media] exynos4-is: Add FIMC-IS ISP I2C bus driver
This patch adds the ISP I2C bus controller driver files.
Creating a standard I2C bus adapter, even if the driver doesn't
actually communicate with the hardware and it is instead
controlled by the ISP firmware running on the Cortex-A5, allows
to use standard hardware description in the device tree. As the
sensor would have actually had a standard V4L2 sub-device driver
run on the host CPU.
This approach allows to adapt the driver with a relatively small
effort should the Imaging Subsystem architecture change so that
the I2C bus is handled by the host's CPU OS, rather than the
internal FIMC-IS ARM CPU firmware. The image sensor driver could
be a standard I2C client driver, as in case of most existing
image sensors.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/platform/exynos4-is/fimc-is-i2c.h')
-rw-r--r-- | drivers/media/platform/exynos4-is/fimc-is-i2c.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-is-i2c.h b/drivers/media/platform/exynos4-is/fimc-is-i2c.h new file mode 100644 index 000000000000..0d38d6bb963b --- /dev/null +++ b/drivers/media/platform/exynos4-is/fimc-is-i2c.h | |||
@@ -0,0 +1,15 @@ | |||
1 | /* | ||
2 | * Samsung EXYNOS4x12 FIMC-IS (Imaging Subsystem) driver | ||
3 | * | ||
4 | * Copyright (C) 2013 Samsung Electronics Co., Ltd. | ||
5 | * Sylwester Nawrocki <s.nawrocki@samsung.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License version 2 as | ||
9 | * published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #define FIMC_IS_I2C_COMPATIBLE "samsung,exynos4212-i2c-isp" | ||
13 | |||
14 | int fimc_is_register_i2c_driver(void); | ||
15 | void fimc_is_unregister_i2c_driver(void); | ||