Sunmi Lee [Tue, 3 Jul 2018 02:30:44 +0000 (11:30 +0900)]
[COMMON] fimc-is2: Moved macro function declaration
To use simplified macro function to calculate of linear interpolation for CAC,
old version macro function was moved into tdnr header file.
PR JIRA ID: CPR-25
Change-Id: Id0463922876df9b9c3695c5a3f9f370820face04
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Tue, 3 Jul 2018 00:35:55 +0000 (09:35 +0900)]
[COMMON] fimc-is2: Changed the name of variables of noise_index
cur_noise_index -> cur_ni
PR JIRA ID: CPR-25
Change-Id: I97996e8612762cd4dc171d50cc4051b4866651ee
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 2 Jul 2018 06:37:35 +0000 (15:37 +0900)]
[COMMON] fimc-is2: Modified hw_mcsc_frame_done function
Increase the readability, hw_mcsc_frame_done function was changed.
- hw_mcsc_chk_frame_done function was separated from frame_done function.
PR JIRA ID: CPR-25
Change-Id: I9ec9df46015c765d2cd4f6e58ba369f972567095
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 08:38:07 +0000 (17:38 +0900)]
[COMMON] fimc-is2: Changed the scaler_set/get_wdma_addr function to suuport FRO
To support FRO function, followings are changed.
- get_wdma_addr_arr was added.
- fimc_is_scaler_set/get_wdma[0,1,2,3,4,ds]_addr was deleted.
PR JIRA ID: CPR-25
Change-Id: Ifcd1ffeb9d369ef8e58114b02b30de55a6cb3089
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 03:55:58 +0000 (12:55 +0900)]
[COMMON] fimc-is2: Modified the implementation of hw_mcsc_wdma_cfg
To increase the readability, hw_mcsc_wdma_cfg function was changed.
- check_shared_out_running was added as macro function
- hw_mcsc_set_wdma_addr function was separated from wdma_cfg function.
- i was substituted to out_id.
Change-Id: I3e68d5c6f5d836f55757f135d34acf7727961da9
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 03:49:57 +0000 (12:49 +0900)]
[COMMON] fimc-is2: Modified the implementation of hw_mcsc_rdma_cfg
To increase the readability, hw_mcsc_rdma_cfg function was changed.
The param_mcs_input was added as a argument of function.
Deleted a conditional sentence before calling this funciton.
This sentence is moved in hw_mcsc_rdma_cfg function.
Change-Id: Iee5c455daeff1fa07a7d555c751a2847c6e1e45d
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 06:36:46 +0000 (15:36 +0900)]
[COMMON] fimc-is2: Moved the position of assignment of variable
The hw_mcsc is moved to more proper position.
Change-Id: Id86e5181e9cc687913ae1f1078d8dc83aa79401d
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 03:55:37 +0000 (12:55 +0900)]
[COMMON] fimc-is2: Deleted unused variables in hw_mcsc_disable
The config and hw_mcsc were unused within the function.
So these were deleted.
Change-Id: I47339bd51926e34f179297c499cbacb25c2e39db
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 06:31:19 +0000 (15:31 +0900)]
[COMMON] fimc-is2: Moved the position of variable declaration
To keep that same type of variables were placed in same position
Change-Id: Ic04be935656be4a52256f9f5fa32c428c1df21e4
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 06:30:07 +0000 (15:30 +0900)]
[COMMON] fimc-is2: Added blank line in hw_mcsc_open
The blank line was added before the return
Change-Id: I6ce08edbe7bb07bcfc96a38011204a5c2ea21728
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 03:54:36 +0000 (12:54 +0900)]
[COMMON] fimc-is2: Deleted unused variable in deinit
output_id is not used.
Change-Id: Ia14eab9b7e65b90c0cb6e3c8cb21ed0cf0cfe183
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 06:50:37 +0000 (15:50 +0900)]
[COMMON] fimc-is2: Modified and separated the function related to tdnr
To increase the readability, hw_mcsc_tdnr_deinit function was added.
Also a conditonal sentence was added in tdnr_init function to check whether TDNR was supported or not.
Change-Id: Ie2317aae49a39311992e6280b518e999b0f5417d
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 01:43:32 +0000 (10:43 +0900)]
[COMMON] fimc-is2: Modified get_mcsc_hw_ip function related codes
To increase the readability, get_mcsc_hw_ip function was changed.
And check_sc_core_running function is introduced to check the state of hw_mcsc0 and hw_mcsc1 at the same time.
Also variables that have unclear name - hw_ip0 and hw_ip1 - were changed.
Change-Id: I5e471f0fdbaae01997ac27d9c817e0183bdfa599
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 00:42:01 +0000 (09:42 +0900)]
[COMMON] fimc-is2: Deleted needless codes in hw_mcsc_close
There is no need to clear_bit of variable in hw_mcsc.
The vfree function is called right after these codes.
Change-Id: Ib6473ad4d6e1ac7134bd77e3953e633e516aa085
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 00:41:36 +0000 (09:41 +0900)]
[COMMON] fimc-is2: Added deinit function of mcsc
To match with others like fimc_is_hw_3aa, isp, vra.
Change-Id: Id247295469b91f012f604f4ff9ee813b65309594
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Thu, 28 Jun 2018 12:21:48 +0000 (21:21 +0900)]
[COMMON] fimc-is2: Changed the name of variables in setfile structure
To increase the readability, the name of variables were changed.
- hw_api_scaler_setfile -> hw_mcsc_setfile
- applied_setfile -> cur_setfile
- yuv_range -> yuv (local variable)
- contents -> sc_base (sc means the SCaler)
Change-Id: Ia8a250b66c6f8c1655ca4b99321dff8dc82522c0
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Thu, 28 Jun 2018 11:59:32 +0000 (20:59 +0900)]
[COMMON] fimc-is2: Changed info_hw to sinfo_hw
To increase the readability, the log write macro function was changed.
Change-Id: Ib0687b3c2f24c5e7845acd9cad13610c16053341
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 06:05:02 +0000 (15:05 +0900)]
[COMMON] fimc-is2: Deleted redundant conditional sentence
There is no need to check dma input cmd is enabled or not.
A conditional setence to check this was also in rdma_cfg function.
Change-Id: I0bfa1a5332e9245e0407c392c69aa017d6d55753
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Thu, 28 Jun 2018 11:51:14 +0000 (20:51 +0900)]
[COMMON] fimc-is2: Changed name of variables in hw_mcsc_handle_interrupt
To increase the readability, the name of variables were changed.
- Use shorten name: flag_xx -> f_xx
- If variables has same type, that were placed in same position.
Change-Id: Ieb7e09845df2c6e9529d30b13235554ebf3f1e8e
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Thu, 28 Jun 2018 11:39:53 +0000 (20:39 +0900)]
[COMMON] fimc-is2: Changed name of global variables
To increase the readability, the name of global variables were changed.
- shared_output_slock -> mcsc_out_slock
- hw_mcsc_out_configured -> mcsc_out_st (st means the state)
- HW_MCSC_OUT_CLEARED_ALL -> MCSC_RST_CHK (RST means RESET, CHK means CHECK)
Change-Id: I1a8af2dd7f6a918892fea87781c6817a3dc7853e
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 11 Jun 2018 07:51:35 +0000 (16:51 +0900)]
[COMMON] fimc-is2: Added new features to support updated setfile
From the version of TUNING_PARAM_VER is 0x14027432, scaler setfile structures is going to changed.
- New features were added - UVSP and CAC of mc-scaler
- Scaler coefficients and clamp for bchs can be adjusted by setfile
Change-Id: I4eeabe5ccedfeb66eb2b2148c240f4e18b0c0946
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 05:48:15 +0000 (14:48 +0900)]
[COMMON] fimc-is2: Removed unused variable in hw-mcscaler-v2
- djag_tunecfg in hw_mcsc structure was deleted
Change-Id: Iace87576034c72ea5f69b30a5e8bce64b58a54b4
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 29 Jun 2018 05:44:48 +0000 (14:44 +0900)]
[COMMON] fimc-is2: Code cleanup - hw-mcscaler-v2 header file
- Indents and spacing were adjusted
- Position of variable was moved
Change-Id: I3a200098537f3da01dd7ae0c96defaa18a730b6f
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Thu, 28 Jun 2018 09:18:39 +0000 (18:18 +0900)]
[COMMON] fimc-is2: Simplified the name of variables related to djag
- djag_input_source -> djag_in
- djag_contents -> djag
Change-Id: I561132a5dd65eb7bdf166b339a739bad2ed0d4e0
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
SangHyun Sim [Thu, 28 Jun 2018 08:05:38 +0000 (17:05 +0900)]
[COMMON] fimc-is2: add to check PAFSTAT irq time for debugging
Change-Id: Ib6c371c552eceb73704d8916f192f58254b6e8c9
Signed-off-by: SangHyun Sim <sanghyun.sim@samsung.com>
SangHyun Sim [Thu, 28 Jun 2018 08:05:04 +0000 (17:05 +0900)]
[COMMON] fimc-is2: add to check CSI irq time for debugging
Change-Id: Ia60a0e9d24798fb50d75071053dee62528e1eecb
Signed-off-by: SangHyun Sim <sanghyun.sim@samsung.com>
Sanghoon Lee [Wed, 2 May 2018 05:33:26 +0000 (14:33 +0900)]
Revert "[HACK][COMMON] media: fimc-is2: set stream off call only vvalid region"
This reverts commit
2d06cbf9452772189daaacd0b91d8d25dee31569.
Change-Id: I41aa9e0ec8241c2eec7644636f4d5db7814a2b75
SangHyun Sim [Tue, 19 Jun 2018 08:57:21 +0000 (17:57 +0900)]
[COMMON] fimc-is2: add to check MCSC irq time for debugging
Change-Id: I1287b16e21ecb1ff22d1345beec77da7f2e7e0eb
Signed-off-by: SangHyun Sim <sanghyun.sim@samsung.com>
SangHyun Sim [Tue, 19 Jun 2018 08:57:04 +0000 (17:57 +0900)]
[COMMON] fimc-is2: add to check VRA irq time for debugging
Change-Id: Ia6f484eeaf2087d11ceeac4ba655f6525fb9eac5
Signed-off-by: SangHyun Sim <sanghyun.sim@samsung.com>
SangHyun Sim [Tue, 19 Jun 2018 08:56:28 +0000 (17:56 +0900)]
[COMMON] fimc-is2: add to check hw irq time for debugging
Change-Id: Ib4afb7aeac8d95cf9c74cf148657d723bba57a3d
Signed-off-by: SangHyun Sim <sanghyun.sim@samsung.com>
Jeongtae Park [Tue, 3 Jul 2018 09:34:49 +0000 (18:34 +0900)]
[COMMON] fimc-is2: remove 32bit operation for kernel virtual
Prevent Defect ID: CID 214855
PR JIRA ID: CPR-32
Change-Id: I32bb089994cb95cc001d6d76744979934b32a1d9
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 3 Jul 2018 09:15:33 +0000 (18:15 +0900)]
[COMMON] fimc-is2: remove dead-code at resource_put
Prevent Defect ID: CID 232651
PR JIRA ID: CPR-32
Change-Id: I09eb8450b415ab6e74a3c4c3195ad71cbc8ae56b
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 3 Jul 2018 08:57:48 +0000 (17:57 +0900)]
[COMMON] fimc-is2: use 32bit variables for pattern generator control
Prevent Defect ID: CID 233701
PR JIRA ID: CPR-32
Change-Id: I114817bbc96282fc4bd10993ca9b1f3982bdc215
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 3 Jul 2018 07:16:04 +0000 (16:16 +0900)]
[COMMON] fimc-is2: fix invalid assignment: max
PR JIRA ID: CPR-32
Change-Id: I7d49b7ea96ed386ae592d770035ec820e6e78ccd
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 3 Jul 2018 06:58:13 +0000 (15:58 +0900)]
[9610] fimc-is2: fix null pointer dereferences: tmp_format
Prevent Defect ID: CID 232755
PR JIRA ID: CPR-32
Change-Id: Iff8a0645595043cd9d62128caf66752d49c47782
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 3 Jul 2018 06:01:46 +0000 (15:01 +0900)]
[COMMON] fimc-is2: remove unnecessary null check: buf
Prevent Defect ID: CID 232737, 232738
PR JIRA ID: CPR-32
Change-Id: I013cc0c5dee26c958424f91ea14d71832123c637
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 3 Jul 2018 05:40:22 +0000 (14:40 +0900)]
[COMMON] fimc-is2: fix resource leak: fw_blob
Prevent Defect ID: CID 172170
PR JIRA ID: CPR-32
Change-Id: I03939f06f158c3fe972df7335daa9c74d416cce8
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Sunmi Lee [Mon, 2 Jul 2018 05:41:42 +0000 (14:41 +0900)]
[COMMON] fimc-is2: Fix a bug from prevent in hw-control
The condition in FIMC_BUG macro function is always true.
This condition is already checked above conditional sentence.
Prevent ID: 232655
PR JIRA ID: CPR-24
Change-Id: I3058439864b49df4236dea6698689609f62fb9f8
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 2 Jul 2018 05:37:28 +0000 (14:37 +0900)]
[COMMON] fimc-is2: Fix a bug from prevent - no_effect
The type of "mode" in sensor_2l3_cis_is_wdr_mode_on is unsigned int.
So it is no use to check the value of mode is less than zero.
Prevent ID: 233013
PR JIRA ID: CPR-24
Change-Id: I4e83edb0f69c14cc783372453b4ed7dda8e15b4f
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 2 Jul 2018 05:30:21 +0000 (14:30 +0900)]
[COMMON] fimc-is2: Fix bugs from prevent - overrun
Prevent ID: 233146, 233147, 233162, 233167, 233207
PR JIRA ID: CPR-24
Change-Id: I167e84ba82a6195836ec0864074925be9246e0d5
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Eunyoung Lee [Thu, 5 Jul 2018 07:57:40 +0000 (16:57 +0900)]
[9610] fimc-is2: change power sequence for 2P6
PR JIRA ID : CPR-38
Change-Id: Iabae0349d1f52f2c88fee34baece0aa13b1aecc6
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
Eunyoung Lee [Fri, 6 Jul 2018 00:58:42 +0000 (09:58 +0900)]
[COMMON] fimc-is2: changed 2P6 sensor_cfg
PR JIRA ID : CPR-38
Change-Id: I41eff5d76aff13e94c745f9c8b7e81e1a74ebcad
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
Eunyoung Lee [Fri, 6 Jul 2018 00:37:01 +0000 (09:37 +0900)]
[COMMON] fimc-is2: code cleanup - cis-2p6 files
PR JIRA ID : CPR-38
Change-Id: I54fad60aa9ee3a641e3d255bfed01b8a123e9334
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
Eunyoung Lee [Fri, 6 Jul 2018 00:33:41 +0000 (09:33 +0900)]
[COMMON] fimc-is2: deleted unused code in 2P6 sensor files
- deleted S5K2P6_USE_COMPACK_PLL_INFO option
PR JIRA ID : CPR-38
Change-Id: I648d6ceaf2535b4a4c2f57cf93fef8e6b8e7f5ba
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
Eunyoung Lee [Thu, 5 Jul 2018 09:47:03 +0000 (18:47 +0900)]
[COMMON] fimc-is2: updated 2P6 sensor files (code sync)
PR JIRA ID : CPR-38
Change-Id: I5473c467a4c04d69e65ccc5d9f850185e1b901e9
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
dan huh [Mon, 19 Jun 2017 05:12:02 +0000 (14:12 +0900)]
[COMMON] media: fimc-is2: Setting a long values for 2P6(code sync)
PR JIRA ID : CPR-38
Change-Id: Ia6cca2b4f41f1009f8fdf6e159b90c80a0a50176
Signed-off-by: dan huh <dan.huh@samsung.com>
dan huh [Thu, 15 Jun 2017 05:32:37 +0000 (14:32 +0900)]
[COMMON] media: fimc-is2: Change size 2p6 sensor mode(code sync)
PR JIRA ID : CPR-38
Change-Id: Ia4ff4852da2cdcf1ac23514dc7ed9bdd8fd91234
Signed-off-by: dan huh <dan.huh@samsung.com>
Jeongtae Park [Sat, 3 Jun 2017 05:20:34 +0000 (14:20 +0900)]
[COMMON] media: fimc-is2: don't control a regulator for univ7885(code sync)
PR JIRA ID : CPR-38
Change-Id: I527c684b3532aa75a5fb102e25027339da7bdaa2
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 2 Jun 2017 02:07:19 +0000 (11:07 +0900)]
[COMMON] media: fimc-is2: update the configuration of VC1 for 2P6(code sync)
PR JIRA ID : CPR-38
Change-Id: I2eafbcb8217496807121b0fca3da95294616a1bf
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Hyeonmyeong Choi [Thu, 1 Jun 2017 03:13:37 +0000 (12:13 +0900)]
[7885] media: fimc-is2: 2p6: Support vision(code sync)
PR JIRA ID : CPR-38
Change-Id: I209b9222779c9a2b5db9bafd41ba4b88eced7ce2
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
Hyeonmyeong Choi [Thu, 1 Jun 2017 02:10:38 +0000 (11:10 +0900)]
[7885] media: fimc-is2: Power sequence for 2P6(code sync)
PR JIRA ID : CPR-38
Change-Id: I987431621e8c13b85c755c8a054d663a567dca61
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
Hyeonmyeong Choi [Sat, 27 May 2017 07:34:31 +0000 (16:34 +0900)]
[COMMON] media: fimc-is2: sensor: Add 2P6 sensor driver(code sync)
PR JIRA ID : CPR-38
Change-Id: I3a997ba62116432181f24038ec9061b594965258
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
Hyeonmyeong Choi [Sat, 27 May 2017 05:11:52 +0000 (14:11 +0900)]
[7885] media: fimc-is2: sensor: Create base file for 2P6(code sync)
PR JIRA ID : CPR-38
Change-Id: I7cf45a21af97a6c91b974af422408eec9a4cbe89
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
Hyeonmyeong Choi [Sat, 27 May 2017 07:35:41 +0000 (16:35 +0900)]
[COMMON] media: fimc-is2: Add S5K2P6 module ID (code sync)
PR JIRA ID : CPR-38
Change-Id: I510bfae4ad5a10ea469a33db82f3eb5169993afb
Signed-off-by: Hyeonmyeong Choi <hyeon.choi@samsung.com>
Eunyoung Lee [Tue, 3 Jul 2018 07:11:28 +0000 (16:11 +0900)]
[9610] arm64: dtsi: add child node for ch. mode to sensor
Change-Id: Ic062c2fda007f7fe2671640a0ca9b6191b0b8859
Signed-off-by: Eunyoung Lee <ey470.lee@samsung.com>
Sanghoon Lee [Tue, 26 Jun 2018 07:40:36 +0000 (16:40 +0900)]
[COMMON] fimc-is2: DO NOT use 'FIMC_IS_STREAM_COUNT' mingled with 'FIMC_IS_SENSOR_COUNT'
To traverse the sensor device structure,
sensor count define should be used to check the array length or to declare the related array.
Change-Id: Iea9094ff143eedb7fff11b0c4e426d418240d0eb
Signed-off-by: Sanghoon Lee <shoon114.lee@samsung.com>
Sanghoon Lee [Tue, 26 Jun 2018 07:50:59 +0000 (16:50 +0900)]
[COMMON] fimc-is2: Skip the vertical down-scaling scenario for DJAG
DJAG should not be enabled for the purpose of down-scaling, even for vertical direction.
Change-Id: I6167aa6a5e976358d694810ea7f98369edc703e2
Signed-off-by: Sanghoon Lee <shoon114.lee@samsung.com>
Sanghoon Lee [Fri, 22 Jun 2018 02:05:45 +0000 (11:05 +0900)]
[COMMON] fimc-is2: Fix GCC build error
Change-Id: I450562d2062b120d43b9b88ea51915827a6da418
Signed-off-by: Sanghoon Lee <shoon114.lee@samsung.com>
Sunmi Lee [Wed, 20 Jun 2018 11:21:52 +0000 (20:21 +0900)]
[COMMON] fimc-is2: Fix a typo
Change-Id: Ibd1fb5b0613e7a488822ba631974fced7f6d9444
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sanghoon Lee [Tue, 19 Jun 2018 07:45:44 +0000 (16:45 +0900)]
[HACK][COMMON] fimc-is2: Skip to select DVFS scenario for VRA in reprocessing instance
When user opens VRA within reprocessing stream,
it should not trigger the DVFS level change because DVFS level is decided by ischain scenario that is before VRA.
Change-Id: I5dd1484fe4e1f87ae2935dd9bfff703f1c02a3ba
Signed-off-by: Sanghoon Lee <shoon114.lee@samsung.com>
Sunmi Lee [Mon, 18 Jun 2018 10:04:38 +0000 (19:04 +0900)]
[COMMON] fimc-is2: Removed redundant local variables and log message in frame_done
Change-Id: Idc8744eed2e8e07317f2852ca47a13ac01de011a
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 18 Jun 2018 11:37:06 +0000 (20:37 +0900)]
[COMMON] fimc-is2: Removed the redundant variable - hw_mcsc->blk_set_ctrl
Change-Id: I9e136fc9667bd31d21263e5d6485e0cd4acfa247
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 09:11:57 +0000 (18:11 +0900)]
[COMMON] fimc-is2: Code cleanup of ysum in mcsc
Change-Id: I491a3646f02e573f8b91ad30af09408540d12dfb
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 09:04:57 +0000 (18:04 +0900)]
[COMMON] fimc-is2: Code cleanup of tdnr in mcsc
Change-Id: I8cfd832f6e6007bfd33179f91deb35e61ebc6d8a
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 08:47:29 +0000 (17:47 +0900)]
[COMMON] fimc-is2: Code cleanup of ds for vra
Change-Id: I7c0e131676d5f5abdf849cec2ddc20253ee23045
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 08:18:54 +0000 (17:18 +0900)]
[COMMON] fimc-is2: Code cleanup of hw-djag
Change-Id: I302f923ef12888de48b37f66c662910c13fbe492
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 07:52:35 +0000 (16:52 +0900)]
[COMMON] fimc-is2: Code cleanup of indent in hw-mcscaler-v2.h
Change-Id: Ibe5b2cfcfefeca9e8a4e7fb56d686ad8defee8bf
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 07:43:55 +0000 (16:43 +0900)]
[COMMON] fimc-is2: Removed unused code - HACK from previous hardware
Change-Id: I514f36739fcc730d3c93108b726bc9724c62abb4
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 07:19:20 +0000 (16:19 +0900)]
[COMMON] fimc-is2: Separated the function of DJAG
Change-Id: Iecb71bdf4490bc2b13fcb46a8c40cd64cc1601c7
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 06:08:19 +0000 (15:08 +0900)]
[COMMON] fimc-is2: Unified the function that has same functionality - mcsc_wdma_cfg
Change-Id: I139f8bae730a55848a7a1a5789508b5e1a74673c
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Sun, 17 Jun 2018 05:52:43 +0000 (14:52 +0900)]
[COMMON] fimc-is2: Code cleanup of mcsc_wdma_cfg_fro
Change-Id: I2621f247813f5a370eb49107923fd15bf6134ed9
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 11 Jun 2018 11:36:06 +0000 (20:36 +0900)]
[COMMON] fimc-is2: Code cleanup of indent in interface-vra.h
Change-Id: I85269ee8b7093e1f188017ba5ae8fc99902f5931
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 11 Jun 2018 11:27:46 +0000 (20:27 +0900)]
[COMMON] fimc-is2: Code cleanup related to ENABLE_HYBRID_FD
Change-Id: I76052de73f7f35083f5bcb9659c200c2b66b76ac
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 11 Jun 2018 07:22:08 +0000 (16:22 +0900)]
[COMMON] fimc-is2: Separated djag header file from mcscaler
Change-Id: I37af85a1e0fd58c9c0d355d3bb9691f6946486bf
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 11 Jun 2018 07:05:44 +0000 (16:05 +0900)]
[COMMON] fimc-is2: Separated tdnr header file from mcscaler
Change-Id: I8298cb597971702c6c9bd03944ead593e5826da6
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 11 Jun 2018 07:01:09 +0000 (16:01 +0900)]
[COMMON] fimc-is2: Code cleanup before adding new feature - hw-mcsc
Change-Id: I46a857df3be5d9dc200b8797b6b140542b7e31f0
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 08:07:27 +0000 (17:07 +0900)]
[COMMON] fimc-is2: remove unused code for permanent mapping
Change-Id: Iabdfd8aa69def40dab7f55c4312bd3096fa04569
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 08:05:03 +0000 (17:05 +0900)]
[COMMON] fimc-is2: remvoe 'vb2_plane_cookie' operation
Change-Id: Ie955cbaa9eb934db4545234192c4e55689ee6d44
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 07:56:38 +0000 (16:56 +0900)]
[COMMON] fimc-is2: remove 'cookie_shot' from a frame
Change-Id: Iab17d88e997a335336c839fb8361bc044814f0d5
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 07:50:50 +0000 (16:50 +0900)]
[COMMON] fimc-is2: remove explicit cache maintanence for meta
Change-Id: Ic7fa6246721583a6af71c27f9d3daff35403eb2d
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Sun, 17 Jun 2018 07:46:19 +0000 (16:46 +0900)]
[COMMON] fimc-is2: remove 'buf_box' in our quque
Change-Id: I0182be2713807ecfa7b786bc3e92b74a35321484
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 12 Jun 2018 12:36:15 +0000 (21:36 +0900)]
[COMMON] fimc-is2: use valid frame pointer for internal subdevs
Change-Id: If3e2ef8ef676d6b7baa0dac2f36e3dc50a29f8a1
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Tue, 8 May 2018 06:49:46 +0000 (15:49 +0900)]
[COMMON] fimc-is2: clean-up csi_stream_on/off()
Change-Id: I325f4cd804c1aaa134bfccff0587e91c6f61dc4d
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 7 May 2018 02:58:21 +0000 (11:58 +0900)]
[COMMON] fimc-is2: clean-up csi_dma_probe()
Change-Id: I4b758d3a8954d4cfe48745230b7776de2d2b129b
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 7 May 2018 02:54:52 +0000 (11:54 +0900)]
[COMMON] fimc-is2: clean-up csi_probe() and support sub-device ch. mode
Change-Id: I92223707a2efc4cde4f3c76bfbc4ad91b2da6489
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 7 May 2018 02:11:46 +0000 (11:11 +0900)]
[COMMON] fimc-is2: move 'the number of sub-device channel mode' to sensor
Change-Id: I96738e3b1876642d0a12519de912e7b1bac17dcc
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 01:20:30 +0000 (10:20 +0900)]
[COMMON] fimc-is2: change sub-device ch. assignment for each VC
Change-Id: I48874561b1eff7c44d791ba0bd244142941be2ad
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 01:16:34 +0000 (10:16 +0900)]
[COMMON] fimc-is2: add sanity checking for selected sub-device ch. mode
Change-Id: I521143efe488005578e93e3b7f2b625ce3d79c43
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 01:08:56 +0000 (10:08 +0900)]
[COMMON] fimc-is2: add the maximum of sub-device ch. mode to CSI
Change-Id: If453aff6b5adf672191e8d3118c28928772f83d6
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 00:28:02 +0000 (09:28 +0900)]
[COMMON] fimc-is2: read channel mode properties as a bunch (Max VC Ch.)
Change-Id: I1b5fb8880d52616bf43d19e1a471a4a810ed2c62
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Mon, 30 Apr 2018 00:25:11 +0000 (09:25 +0900)]
[COMMON] fimc-is2: use sub-device ch. mode to access each HW resources
Change-Id: I5e1b2a9a477a3987ec6bdf8d2641527c85b15b02
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Fri, 27 Apr 2018 07:32:03 +0000 (16:32 +0900)]
[COMMON] fimc-is2: add sub-device channel mode to represent logical VC
Change-Id: I3baae756c4495e281664ae51920b9d87d7d23f4d
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:57:54 +0000 (11:57 +0900)]
phy: apply 2+2 lane mode, CLK2 selection for 0502/0001
Change-Id: I7f831bd58e369288a24716efb5f4351d7b286698
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:55:59 +0000 (11:55 +0900)]
phy: some SFRs exist in the COMBO lane only
Change-Id: Ide7b7dab6dcf34cdb3328558e21f05d7dcf08bed
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:54:43 +0000 (11:54 +0900)]
phy: add operation 'mode' to PHY type
Change-Id: I66d1a2157c1b337d8eec934906a2625edf7c3781
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:53:27 +0000 (11:53 +0900)]
[COMMON] fimc-is2: add operation 'mode' to PHY type
Change-Id: I31f33fa35263fff94b68b466f032c77b475057bc
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Jeongtae Park [Thu, 26 Apr 2018 02:50:37 +0000 (11:50 +0900)]
[COMMON] fimc-is2: simplify getting .drvdata
We should get drvdata from struct device directly.
Going via platform_device is an unneeded step back and forth.
Change-Id: I76cd504d46b1f19a71d14b7a729652166f7f5c6d
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
Sunmi Lee [Fri, 15 Jun 2018 01:58:24 +0000 (10:58 +0900)]
[COMMON] fimc-is2: Fix a bug of calling get_meta function in case of NDONE frame
Change-Id: I69b67190199790cf38ce825773926c2a9482fb6b
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Mon, 11 Jun 2018 10:03:40 +0000 (19:03 +0900)]
[COMMON] fimc-is2: Fix a bug of getting the 3AAG (MRG_OUT) subdev
Change-Id: Icd9a4e67e40359675ebbc4b806b6f980bbb3e8a9
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 8 Jun 2018 04:52:45 +0000 (13:52 +0900)]
[COMMON] fimc-is2: Code cleanup related to ENABLE_REPROCESSING_FD
Change-Id: I7b06ef08fd4e14ee85330185295b565b9280aa55
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>