Jaehyoung Choi [Mon, 30 Jul 2018 05:45:33 +0000 (14:45 +0900)]
Revert "[9610] fimc-is2: Modify a scenario for DVFS"
This reverts commit
2097f1078f5ceedcb2fd35a4d02311dd1e41f2bd.
Change-Id: I48fefb702ed190fcb041ff79ff12df86e4e9b787
Jaehyoung Choi [Mon, 30 Jul 2018 05:45:32 +0000 (14:45 +0900)]
Revert "[9610] dtsi: Change are DVFS levels match to scenarios"
This reverts commit
7770d276142164e6f7677edb9b4e20f6b8a95c55.
Change-Id: Ib8899b13c0c4353f574bd4208d16f527a7fcdc95
dan huh [Mon, 23 Jul 2018 07:59:09 +0000 (16:59 +0900)]
[9610] dtsi: Change are DVFS levels match to scenarios
PR JIRA ID: CPR-89
Change-Id: Ib85e2cd6ba527269fdf71a9a05094ce9efdc2158
Signed-off-by: dan huh <dan.huh@samsung.com>
dan huh [Fri, 20 Jul 2018 02:17:14 +0000 (11:17 +0900)]
[9610] fimc-is2: Modify a scenario for DVFS
PR JIRA ID: CPR-89
Change-Id: I5ebb2f68b94272aa9a91710bdd154877c0e46f72
Signed-off-by: dan huh <dan.huh@samsung.com>
Wooyeon Kim [Wed, 25 Jul 2018 05:08:00 +0000 (14:08 +0900)]
[HACK][9610] fimc-is2: add DISABLE_CHECK_PERFRAME_FMT_SIZE define
PR JIRA ID: CPR-90
Change-Id: Ida4f542b49b7f467a97b0a63b677588ce29fc2f2
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Wooyeon Kim [Wed, 25 Jul 2018 05:04:13 +0000 (14:04 +0900)]
[HACK][COMMON] fimc-is2: featured size check between per-frame and s_fmt size
- for support Full device reprocessing in 1x3 MC-SC
per-frame image format changing & buffer size changing is needed
- for not affect V4l2 limitation, s_fmt size need to set to smaller than
per-frame size. and feature size checking between per-frame and s_fmt
PR JIRA ID: CPR-90
Change-Id: Ib966612002265c908a169bebbb67abf7eb9d09db
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Jaejoon Yoo [Wed, 25 Jul 2018 05:05:55 +0000 (14:05 +0900)]
[9610] bcm: disable debug configuration
Change-Id: I21e0478ca60e10bed80829fad480aba3e4131b38
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
Jieun Yi [Mon, 23 Jul 2018 02:51:07 +0000 (11:51 +0900)]
[HACK] drivers: leds: disable s2mpb02 FLED1 fault shutdown control
Change-Id: I9a3f3e34d985dad0c04bda6b4cd9a8762d71513a
Signed-off-by: Jieun Yi <jieun.yi@samsung.com>
Wooyeon Kim [Mon, 23 Jul 2018 04:34:11 +0000 (13:34 +0900)]
[9610][ERD] dtsi: modify erd9610 Flash GPIO syntax
Change-Id: I97f8f6cb30b6d2af03092610fee26790a5aaef63
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Jieun Yi [Tue, 10 Jul 2018 06:34:54 +0000 (15:34 +0900)]
[9610] drivers: leds: modified leds-s2mpb02.c due to change of kernel version
Change-Id: Id1d5f538968f55ae94a6c66203ae4f85ab6c5ca7
Signed-off-by: Jieun Yi <jieun.yi@samsung.com>
Tae-Sik Lee [Wed, 25 Jul 2018 08:34:59 +0000 (17:34 +0900)]
[9610] vipx : adds driver files
Change-Id: Iafe587895d40ac68d131abce07fd5d056212e0bd
Signed-off-by: Tae-Sik Lee <zmin.yi@samsung.com>
Wanhyuk Seo [Tue, 24 Jul 2018 12:01:03 +0000 (21:01 +0900)]
Revert "[9610] media: radio: Modify clock management"
This reverts commit
a92d4ab30b96f292f17ae316c671f7568b601da6.
Change-Id: Ifaec3e608d2c1c459bb42497dc88b6115075ab75
Yunsu Kim [Fri, 13 Jul 2018 01:35:15 +0000 (10:35 +0900)]
[9610] media: radio: Modify clock management
Change-Id: Idb071669f52c5536c9b215803d706541b65354d5
Signed-off-by: Yunsu Kim <iamyunsu.kim@samsung.com>
Nick Oestergaard [Mon, 9 Jul 2018 14:17:04 +0000 (16:17 +0200)]
[9610] wlbt: Move /efs to /mnt/vendor/efs
In Android P, Google forced that a "RW dir" cannot be located in root.
This is a problem when using system-on-root.
SCSC-Bug-Id: SSB-41783
Change-Id: Id3abf12573ebf3f88bfb3b0c527dd0340d58637e
Signed-off-by: Nick Oestergaard <nick.oe@samsung.com>
Nick Oestergaard [Mon, 9 Jul 2018 14:17:30 +0000 (16:17 +0200)]
[9610] wlbt: Let kernel driver present a fallback bdaddr
A new kernel module parameter with a suggested address that the host
stack can use as a fallback. We use the SOC ID as is used if there is
no android stack, i.e. btcli. This will make sure we do not touch that
stack and the address will be the same in btcli as is used by the stack.
SCSC-Bug-Id: SSB-41759
Change-Id: Iff679b464622920e01fe617f32ee98ab23fdf1d8
Signed-off-by: Nick Oestergaard <nick.oe@samsung.com>
Soren Andersen [Fri, 3 Nov 2017 00:38:45 +0000 (01:38 +0100)]
[9610] wlbt: Added support for ANT recovery
Added support for recovery for the ANT driver
Change-Id: Ieed2671f71a44962a75d137478382eedc29b13c3
SCSC-Bug-Id: SSB-33203
Signed-off-by: Soren Andersen <s.andersen@samsung.com>
Albert Cano [Wed, 11 Jul 2018 14:44:14 +0000 (15:44 +0100)]
[9610] wlbt: move closing bracket in .wifiver.info
Move move closing bracket in .wifiver.info based on
customer requirements.
Change-Id: I513d857f6f64316781e75423ccd11934851970ef
SCSC-Bug-Id: SSB-41822
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Pragya Gupta [Thu, 12 Jul 2018 07:02:06 +0000 (12:32 +0530)]
[9609][7885] [7872] wlbt: Update skb length in roam vendor event
skb length updated for roam vendor event
SCSC-Bug-Id: SSB-41838
Change-Id: Ifa44d7062ccdb723dfa4b14e45713c9baaffe1a4
Signed-off-by: Pragya Gupta <pragya.gupta@samsung.com>
Roman Geller [Fri, 6 Jul 2018 14:32:10 +0000 (15:32 +0100)]
[9610][7885][7872][7570] wlbt: Reduce mifram min alloc block to 64 bytes
Reduced granularity of miframman allocator to 64 bytes,
as this is the Cortex R cache line size.
Change-Id: If9260e837750bd138cd19c3066fe4f0385154f4f
SCSC-Bug-Id: SSB-41587
Signed-off-by: Roman Geller <r.geller@samsung.com>
(cherry picked from commit
9f564e0ee5377eb55d2ce632f8e77d42b0d4b922)
scsc_gerrit [Tue, 17 Jul 2018 17:52:24 +0000 (18:52 +0100)]
[9610] wlbt: increment scsc_release to 6.36.2
Import FW for iteration 6.36.2
Change-Id: Ia96a8caebaf79ef6353980c5cd177e4bb73e3c85
SCSC-Bug-Id: scsc_iteration_6.36.2_p_ww
Signed-off-by: scsc_gerrit <scsc_gerrit@samsung.com>
Wooyeon Kim [Mon, 23 Jul 2018 05:22:46 +0000 (14:22 +0900)]
[COMMON] fimc-is2: fix a build error about tdnr using case
PR JIRA ID: CPR-78
Change-Id: I25b5f615bb0e9f5b2f8504e353858a309680046b
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Wooyeon Kim [Sat, 21 Jul 2018 11:16:57 +0000 (20:16 +0900)]
[COMMON] fimc-is2: add prototype function for mcsc v410 build error
- after code is synced, it need to fix it
PR JIRA ID: CPR-78
Change-Id: I0d51cdb5d16e4f267686b375a63bdd71e7a49240
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Sunmi Lee [Wed, 14 Jun 2017 07:28:08 +0000 (16:28 +0900)]
[COMMON] media: fimc-is2: Fix bugs of TDNR and enable YIC
PR JIRA ID: CPR-24
Change-Id: Ie01b8cf0b594db4d5c4c5d6e92e7fceca74f7309
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Wooyeon Kim [Fri, 1 Jun 2018 07:24:56 +0000 (16:24 +0900)]
[COMMON] fimc-is2: fix a TDNR wrong caculation bug
- when NI is set to same setfile NI value,
it is not applied to right value.
PR JIRA ID: CPR-40
Change-Id: Id1cae98d3731d2e874f71435eea4f49280e6971c
Signed-off-by: Wooyeon Kim <wooy88.kim@samsung.com>
Sunmi Lee [Fri, 6 Jul 2018 08:39:03 +0000 (17:39 +0900)]
[COMMON] fimc-is2: Fix a bug of devide by zero
There is a possiblity to execute of dividing by zero in CALC_LNR_INTRPL.
PR JIRA ID: CPR-39
Change-Id: Idb23bc03b5622b79dadc5ebac184a7bc8e4018c6
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 6 Jul 2018 02:10:12 +0000 (11:10 +0900)]
[COMMON] fimc-is2: Implementation of uvsp
UVSP function is controlled by noise_index (this value from ISP).
So it is needed to calculate the proper value with using linear interpolation by noise_index.
New functions were added to support uvsp.
PR JIRA ID: CPR-39
Change-Id: Id9b27ace9a2e663091f0901258b95b20a304bfbe
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 6 Jul 2018 06:54:13 +0000 (15:54 +0900)]
[COMMON] fimc-is2: Changed the name of variables related to UVSP
To increase the readability, name of variables was shortened.
PR JIRA ID: CPR-39
Change-Id: I46852d5ff8125c81669dd10c7471af6affa009bb
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 6 Jul 2018 02:12:50 +0000 (11:12 +0900)]
[COMMON] fimc-is2: Added debug log message in hw_mcsc_update_cac_register
To make debugging easily, the log message was added.
PR JIRA ID: CPR-39
Change-Id: Ib9500abb556d1b52353d1361fffd7056c98699aa
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 6 Jul 2018 02:03:13 +0000 (11:03 +0900)]
[COMMON] fimc-is2: Added debug log message in get_cal_data function
To make debugging easily, the log message was added.
PR JIRA ID: CPR-39
Change-Id: I99c51a498f445fa6aa53b6e53e8b45199a6a2ce9
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 6 Jul 2018 08:14:51 +0000 (17:14 +0900)]
[COMMON] fimc-is2: Implementation of newly added data in using shot_ext
In hw-3aa shot function, frame information for uvsp was written in shot_ext.
Also cal_data was saved in fimc_is_hardware in apply_setfile funciton.
PR JIRA ID: CPR-39
Change-Id: I19f79af152691aea5f1ddf73d75c7928145843e7
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Fri, 6 Jul 2018 01:58:29 +0000 (10:58 +0900)]
[COMMON] fimc-is2: Added new data in shot_ext
UVSP in MCSC needs the value of LSC_CENTER from CGRAS in 3AA and RADIAL_BIQUAD value in 3AA.
Driver calls the get_cal_info function to DDK, DDK fills the values in cal_info.
These values are need to be sync with frame. So the new data was added in shot_ext.
PR JIRA ID: CPR-39
Change-Id: I44e57317a30865733349f037298e49c69dd81fcd
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Wed, 4 Jul 2018 06:04:57 +0000 (15:04 +0900)]
[COMMON] fimc-is2: Implementation of setting scaler bchs_clamp by setfile
To support new method of setting scaler bchs_clamp.
PR JIRA ID: CPR-34
Change-Id: I585b9fecd1c450f3d85bc6cfead05f83c8da44c4
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Wed, 4 Jul 2018 05:56:55 +0000 (14:56 +0900)]
[COMMON] fimc-is2: Fix a compiling error
There was a compiling error when USE_YUV_RANGE_BY_ISP was turned off.
PR JIRA ID: CPR-34
Change-Id: I74ac4fb50d57a432b98d59493f7cfe565364b662
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Wed, 4 Jul 2018 05:47:51 +0000 (14:47 +0900)]
[COMMON] fimc-is2: Added a missing ';'
There was a compiling error when USE_YUV_RANGE_BY_ISP was turned off.
PR JIRA ID: CPR-34
Change-Id: I0cb0aab3662dd3a5d31937e9072c58367e0090c8
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Wed, 4 Jul 2018 05:41:06 +0000 (14:41 +0900)]
[COMMON] fimc-is2: Modified the implementation of hw_bchs_range/clamp
To increase the readability, hw_bchs_range/clamp function was changed.
From the MCSC setfile version 0x14027432, scaler_bchs_clamp should be controlled by setfile.
This patch is preparation for applying new method.
PR JIRA ID: CPR-34
Change-Id: If7b0efe91d02eb25cc0cfb1afee0f323e933b14e
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Wed, 4 Jul 2018 05:00:02 +0000 (14:00 +0900)]
[COMMON] fimc-is2: Implementation of setting scaler coefficient by setfile
To support new method of setting scaler coefficient.
PR JIRA ID: CPR-33
Change-Id: Iaabe0ac0e336c041c1a895b90904f40d6ed51a26
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Wed, 4 Jul 2018 04:59:17 +0000 (13:59 +0900)]
[COMMON] fimc-is2: Added new function to keep compatibility - set_scaler_coef
Added scaler_coef related function for mcsc v4.0 and v4.10.
PR JIRA ID: CPR-33
Change-Id: Id5b2408065fe25bb4fbc2aa03d15ef5d8b76187c
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Wed, 4 Jul 2018 04:57:42 +0000 (13:57 +0900)]
[COMMON] fimc-is2: Added new argument in set_poly/post_scaler_coef function
To support new method of setting scaler coefficient, new argumnet was added in function.
PR JIRA ID: CPR-33
Change-Id: I322ffcd9ebd60dfe28ef57af827c81cd54d4ab3a
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Wed, 4 Jul 2018 02:40:06 +0000 (11:40 +0900)]
[COMMON] fimc-is2: Modified the implementation of set_poly/post_scaler_coef
To increase the readability, set_poly/post_scaler_coef function was changed.
From the MCSC setfile version 0x14027432, scaler_coef should be controlled by setfile.
This patch is preparation for applying new method.
PR JIRA ID: CPR-33
Change-Id: I5a9812fd900bd37db8f9d4c26527cd221d996167
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Tue, 3 Jul 2018 11:13:51 +0000 (20:13 +0900)]
[COMMON] fimc-is2: Added new function to keep compatibility - djag_wb_thres
Added djag related function for mcsc v4.0 and v4.10.
PR JIRA ID: CPR-31
Change-Id: Ia3f53556a5b70f38a4a1ac00153206eafc50df37
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Tue, 3 Jul 2018 11:13:03 +0000 (20:13 +0900)]
[COMMON] fimc-is2: Added new hw-api functions to support djag_wb_thres
Implementation of api function for set_djag_wb_thres.
PR JIRA ID: CPR-31
Change-Id: Ib3878f929b37e8253b6ee18707e84b24cdc66b60
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Tue, 3 Jul 2018 11:01:59 +0000 (20:01 +0900)]
[COMMON] fimc-is2: Added new function for djag_wb_thres setting
The djab_wb_thres value is defined according to scale_index.
PR JIRA ID: CPR-31
Change-Id: I239a98959eb900bb99c0018df92a59d5d5fca50d
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Tue, 3 Jul 2018 10:42:46 +0000 (19:42 +0900)]
[COMMON] fimc-is2: Added new function to keep compatibility
Added cac related function for mcsc v4.0 and v4.10.
PR JIRA ID: CPR-25
Change-Id: If9d79014635214a5f185bbd822b42453bee532f1
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
Sunmi Lee [Tue, 3 Jul 2018 00:31:28 +0000 (09:31 +0900)]
[COMMON] fimc-is2: Added new file and functions to support cac
CAC function is controlled by noise_index (this value from ISP).
So it is needed to calculate the proper value with using linear interpolation by noise_index.
To support uvsp and cac function, new source file was added.
Of course, the Makefile and Kconfig is also modified.
PR JIRA ID: CPR-25
Change-Id: Iafe7e6631d2ba2a42942e9d4f0370ea571ae70c8
Signed-off-by: Sunmi Lee <carrotsm.lee@samsung.com>
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>