mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
video: msm: Add revision check to calibration API
Add ability to check MDP revision to the calibration config API. Allows calibration tool to check specific MDP revision for proper tuning. Change-Id: I926ed21704507cb390c283e5c4383dcf7fbf8030 Signed-off-by: Carl Vanderlip <carlv@codeaurora.org>
This commit is contained in:
parent
fd50a7a472
commit
8ed6b6247d
1 changed files with 3 additions and 5 deletions
|
@ -3090,14 +3090,11 @@ static int is_valid_calib_addr(void *addr)
|
|||
int ret = 0;
|
||||
unsigned int ptr;
|
||||
|
||||
if (addr == NULL)
|
||||
goto end;
|
||||
|
||||
ptr = (unsigned int) addr;
|
||||
|
||||
if (mdp_rev >= MDP_REV_30 && mdp_rev < MDP_REV_40) {
|
||||
/* if request is outside the MDP reg-map or is not aligned 4 */
|
||||
if (ptr > 0xF0600 || ptr % 0x4)
|
||||
if (ptr == 0x0 || ptr > 0xF0600 || ptr % 0x4)
|
||||
goto end;
|
||||
|
||||
if (ptr >= 0x90000 && ptr < 0x94000) {
|
||||
|
@ -3122,7 +3119,8 @@ static int is_valid_calib_addr(void *addr)
|
|||
goto end;
|
||||
|
||||
if (ptr < 0x90000) {
|
||||
if (ptr == 0x4 || ptr == 0x28200 || ptr == 0x28204)
|
||||
if (ptr == 0x0 || ptr == 0x4 || ptr == 0x28200 ||
|
||||
ptr == 0x28204)
|
||||
ret = 1;
|
||||
} else if (ptr < 0x95000) {
|
||||
if (ptr == 0x90000 || ptr == 0x90070)
|
||||
|
|
Loading…
Reference in a new issue