[9610] fimc-is2: Modify a regs_start addr for 3AA1
authordan huh <dan.huh@samsung.com>
Mon, 9 Jul 2018 04:38:07 +0000 (13:38 +0900)
committerdan huh <dan.huh@samsung.com>
Tue, 10 Jul 2018 01:03:26 +0000 (10:03 +0900)
- not have a 3AA1 but internal use 3AA1 when front
- 3AA0 offset 0x0, 3AA1 offset 0x4000
- 3AA1 reg dump is out of range 3AA0 so invalid memory

PR JIRA ID: CPR-43

Change-Id: I3688c6c26751012b15c91e82c4c4f5f6aa195277
Signed-off-by: dan huh <dan.huh@samsung.com>
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_10_0/fimc-is-hw-chain.c

index 164e6b9457a98cb53a58044f01f3556464da9476..d622fb5891f20e726d0c6eab913a0034975c8d35 100644 (file)
@@ -823,7 +823,7 @@ int fimc_is_hw_get_address(void *itfc_data, void *pdev_data, int hw_id)
                        return -EINVAL;
                }
 
-               itf_hwip->hw_ip->regs_start = mem_res->start;
+               itf_hwip->hw_ip->regs_start = mem_res->start + LIC_3AA1_OFFSET_ADDR;
                itf_hwip->hw_ip->regs_end = mem_res->end;
                itf_hwip->hw_ip->regs = ioremap_nocache(mem_res->start, resource_size(mem_res)) + LIC_3AA1_OFFSET_ADDR;
                if (!itf_hwip->hw_ip->regs) {