atomisp: Fix TERM_EN_COUNT and PCI revision to enable secondary camera for CLV+
authorBin Gao <bin.gao@intel.com>
Sat, 7 Apr 2012 00:52:13 +0000 (17:52 -0700)
committerbuildbot <buildbot@intel.com>
Fri, 13 Apr 2012 12:47:13 +0000 (05:47 -0700)
commit757333ce83802fb128e4ff2474a61e4b4fa34a7d
tree830c21308bd8b3d54f12b5f80d56d23230d6f1b8
parent16c0349d47b22b8385db11f6adc43b2fe5ac5153
atomisp: Fix TERM_EN_COUNT and PCI revision to enable secondary camera for CLV+

BZ: 30868

Previously the driver decides "Penwell B0" and "Non Penwell B0" simply by PCI
revision. Unfortunately CLV+ A0 has PCI revision 0x6 which is identical to
Penwell B0, thus the driver uses a wrong TERM_EN_COUNT bit definition.

This patch revised the PCI revision and TERM_EN_COUNT setting codes and make it
sure working for CLV+.

Change-Id: I6205d47fa8481eefde8584151f6da2ef55ca8299
Signed-off-by: Bin Gao <bin.gao@intel.com>
Reviewed-on: http://android.intel.com:8080/42729
Reviewed-by: Wang, Wen W <wen.w.wang@intel.com>
Reviewed-by: Kruger, Jozef <jozef.kruger@intel.com>
Reviewed-by: Lampila, KalleX <kallex.lampila@intel.com>
Tested-by: Lampila, KalleX <kallex.lampila@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/media/video/atomisp/atomisp_cmd.c