msm: camera: cpas: Fix TCSR Register programming

Fix TCSR Register programming to enable SAT.

CRs-Fixed: 2553475
Change-Id: Iaeae7cd06dcbccaa8bf1f98657efff734d048b9f
Signed-off-by: Mangalaram ARCHANA <mangar@codeaurora.org>
This commit is contained in:
Mangalaram ARCHANA 2019-10-25 11:55:18 +05:30 коммит произвёл Gerrit - the friendly Code Review server
Родитель 335b376e21
Коммит e2085ffb7f
1 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -514,7 +514,7 @@ done:
static int cam_cpastop_poweron(struct cam_hw_info *cpas_hw)
{
int i;
int i, reg_val;
struct cam_cpas_hw_errata_wa_list *errata_wa_list =
camnoc_info->errata_wa_list;
struct cam_cpas_hw_errata_wa *errata_wa =
@ -541,8 +541,9 @@ static int cam_cpastop_poweron(struct cam_hw_info *cpas_hw)
}
if (errata_wa->enable) {
scm_io_write(errata_wa->data.reg_info.offset,
errata_wa->data.reg_info.value);
reg_val = scm_io_read(errata_wa->data.reg_info.offset);
reg_val |= errata_wa->data.reg_info.value;
scm_io_write(errata_wa->data.reg_info.offset, reg_val);
}
return 0;