media: dw9807-vcm: Add support for DW9817 bidirectional VCM driver 27/293327/1
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 3 Jan 2023 15:38:08 +0000 (15:38 +0000)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 22 May 2023 08:02:15 +0000 (17:02 +0900)
commit855879ae1726a016419b677257fc212ffbfb37b2
tree42f574818289f942dc7fb3a2a25c75bff859ddbd
parent8b159da74a5bd75c4906a5fd464d6694b0158517
media: dw9807-vcm: Add support for DW9817 bidirectional VCM driver

The DW9817 is effectively the same as DW9807 from a programming
interface, however it drives +/-100mA instead of 0-100mA. This means
that the power on ramp needs to take the lens from the midpoint, and
power off return it there. It also changes the default position for
the module.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
[sw0312.kim: cherry-pick raspberry pi kernel upstream to support rpi camera module v3]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ieafb4e02797a9556371a87f327d87adcc9b4d48d
drivers/media/i2c/dw9807-vcm.c