disp: msm: sde: add support for WD timer on INTF
Watchdog timer is moving from TOP to INTF. This change adds support for movement and ensures backwards compatibility. Vsync select only needs to specify whether or not to use Timer 0 associated with the interface. It does not need to select between Timer 0-4. Signed-off-by: Samantha Tran <samtran@codeaurora.org> Change-Id: I9d89a8cb1ea607e9fc0bdbffa0a6a9acceff7f13
Šī revīzija ir iekļauta:
@@ -1,6 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
/*
|
||||
* Copyright (c) 2015-2020, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2015-2021, The Linux Foundation. All rights reserved.
|
||||
*/
|
||||
|
||||
#ifndef _SDE_HW_MDSS_H
|
||||
@@ -61,6 +61,13 @@ enum sde_format_flags {
|
||||
(((X)->fetch_mode == SDE_FETCH_UBWC) && \
|
||||
test_bit(SDE_FORMAT_FLAG_COMPRESSED_BIT, (X)->flag))
|
||||
|
||||
#define MDP_TICK_COUNT 16
|
||||
#define XO_CLK_RATE 19200
|
||||
#define MS_TICKS_IN_SEC 1000
|
||||
|
||||
#define CALCULATE_WD_LOAD_VALUE(fps) \
|
||||
((uint32_t)((MS_TICKS_IN_SEC * XO_CLK_RATE)/(MDP_TICK_COUNT * fps)))
|
||||
|
||||
#define SDE_BLEND_FG_ALPHA_FG_CONST (0 << 0)
|
||||
#define SDE_BLEND_FG_ALPHA_BG_CONST (1 << 0)
|
||||
#define SDE_BLEND_FG_ALPHA_FG_PIXEL (2 << 0)
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user