kernel_samsung_a34x-permissive/drivers/clk/mediatek/clk-mt6765-pg.h
2024-04-28 15:51:13 +02:00

50 lines
1,021 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2020 MediaTek Inc.
* Author: Owen Chen <owen.chen@mediatek.com>
*/
#ifndef __DRV_CLK_MT6765_PG_H
#define __DRV_CLK_MT6765_PG_H
enum subsys_id {
SYS_MD1 = 0,
SYS_CONN = 1,
SYS_DPY = 2,
SYS_DIS = 3,
SYS_MFG = 4,
SYS_ISP = 5,
SYS_IFR = 6,
SYS_MFG_CORE0 = 7,
SYS_MFG_ASYNC = 8,
SYS_CAM = 9,
SYS_VCODEC = 10,
NR_SYSS = 11,
};
enum mtcmos_op {
MTCMOS_BUS_PROT = 0,
MTCMOS_PWR = 1,
};
struct pg_callbacks {
struct list_head list;
void (*before_off)(enum subsys_id sys);
void (*after_on)(enum subsys_id sys);
void (*debug_dump)(enum subsys_id sys);
};
/* register new pg_callbacks and return previous pg_callbacks. */
extern struct pg_callbacks *register_pg_callback(struct pg_callbacks *pgcb);
/*ram console api*/
#ifdef CONFIG_MTK_RAM_CONSOLE
extern void aee_rr_rec_clk(int id, u32 val);
#endif
#ifdef CONFIG_DEBUG_FS
extern void print_enabled_clks_once(void);
#endif
extern int mtk_is_mtcmos_enable(void);
#endif/* __DRV_CLK_MT6758_PG_H */