linux/drivers/pmdomain/mediatek/mtk-pm-domains.h

/* SPDX-License-Identifier: GPL-2.0-only */

#ifndef __SOC_MEDIATEK_MTK_PM_DOMAINS_H
#define __SOC_MEDIATEK_MTK_PM_DOMAINS_H

#define MTK_SCPD_ACTIVE_WAKEUP
#define MTK_SCPD_FWAIT_SRAM
#define MTK_SCPD_SRAM_ISO
#define MTK_SCPD_KEEP_DEFAULT_OFF
#define MTK_SCPD_DOMAIN_SUPPLY
/* can't set MTK_SCPD_KEEP_DEFAULT_OFF at the same time */
#define MTK_SCPD_ALWAYS_ON
#define MTK_SCPD_EXT_BUCK_ISO
#define MTK_SCPD_HAS_INFRA_NAO
#define MTK_SCPD_STRICT_BUS_PROTECTION
#define MTK_SCPD_CAPS(_scpd, _x)

#define SPM_VDE_PWR_CON
#define SPM_MFG_PWR_CON
#define SPM_VEN_PWR_CON
#define SPM_ISP_PWR_CON
#define SPM_DIS_PWR_CON
#define SPM_CONN_PWR_CON
#define SPM_VEN2_PWR_CON
#define SPM_AUDIO_PWR_CON
#define SPM_MFG_2D_PWR_CON
#define SPM_MFG_ASYNC_PWR_CON
#define SPM_USB_PWR_CON

#define SPM_PWR_STATUS
#define SPM_PWR_STATUS_2ND

#define PWR_STATUS_CONN
#define PWR_STATUS_DISP
#define PWR_STATUS_MFG
#define PWR_STATUS_ISP
#define PWR_STATUS_VDEC
#define PWR_STATUS_VENC_LT
#define PWR_STATUS_VENC
#define PWR_STATUS_MFG_2D
#define PWR_STATUS_MFG_ASYNC
#define PWR_STATUS_AUDIO
#define PWR_STATUS_USB

#define SPM_MAX_BUS_PROT_DATA

enum scpsys_bus_prot_flags {};

#define _BUS_PROT(_set_clr_mask, _set, _clr, _sta_mask, _sta, _flags)

#define BUS_PROT_WR(_hwip, _mask, _set, _clr, _sta)

#define BUS_PROT_WR_IGN(_hwip, _mask, _set, _clr, _sta)

#define BUS_PROT_UPDATE(_hwip, _mask, _set, _clr, _sta)

#define BUS_PROT_INFRA_UPDATE_TOPAXI(_mask)

struct scpsys_bus_prot_data {};

/**
 * struct scpsys_domain_data - scp domain data for power on/off flow
 * @name: The name of the power domain.
 * @sta_mask: The mask for power on/off status bit.
 * @ctl_offs: The offset for main power control register.
 * @sram_pdn_bits: The mask for sram power control bits.
 * @sram_pdn_ack_bits: The mask for sram power control acked bits.
 * @ext_buck_iso_offs: The offset for external buck isolation
 * @ext_buck_iso_mask: The mask for external buck isolation
 * @caps: The flag for active wake-up action.
 * @bp_cfg: bus protection configuration for any subsystem
 */
struct scpsys_domain_data {};

struct scpsys_soc_data {};

#endif /* __SOC_MEDIATEK_MTK_PM_DOMAINS_H */