diff options
author | Qinggang Zhou <qzhou@nvidia.com> | 2011-08-29 13:52:15 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-09-01 19:47:55 -0700 |
commit | df90cc25a7ba438b3785aed1b6af4a67ccec7101 (patch) | |
tree | a453b5e54de3453b9969afc2da2db2d5ab5166be /drivers/media | |
parent | 9075f7559b212cb89db69d8854b48124751e6f80 (diff) |
media: video: tegra: sh532u: add get_rom_info()
get_rom_info() retrieves precalibrated INF and MAC, and stores
them for ODM to use. This function is added back.
bug 866141
Change-Id: Ibe4ca3751b2dacc83c2483e9eec80f340ebc7d7d
Reviewed-on: http://git-master/r/48812
Reviewed-by: Qinggang Zhou <qzhou@nvidia.com>
Tested-by: Qinggang Zhou <qzhou@nvidia.com>
Reviewed-by: Gary Zhang <garyz@nvidia.com>
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/tegra/sh532u.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/media/video/tegra/sh532u.c b/drivers/media/video/tegra/sh532u.c index ee3e67f66914..6775fac430e8 100644 --- a/drivers/media/video/tegra/sh532u.c +++ b/drivers/media/video/tegra/sh532u.c @@ -300,19 +300,6 @@ get_rom_info_error: info->config.pos_low = POS_LOW; } -static void init_hvca_pos(struct sh532u_sensor *info) -{ - struct i2c_client *client = info->i2c_client; - short sBottomLimit, sTopLimit; - - get_rom_info(info); - sBottomLimit = (((int)info->config.limit_low * 5) >> 3) & 0xFFC0; - lens_move_pulse(client, sBottomLimit); - sTopLimit = (((int)info->config.limit_high * 5) >> 3) & 0xFFC0; - lens_move_pulse(client, sTopLimit); - lens_move_pulse(client, info->config.pos_high); -} - static unsigned int a2buf[] = { 0x0018019c, 0x0018019d, @@ -476,9 +463,8 @@ static void init_driver(struct sh532u_sensor *info) } } } - msleep(300); - init_hvca_pos(info); + get_rom_info(info); } |