kernel-brax3-ubuntu-touch/drivers/misc/mediatek/adsp/adsp_clk.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

27 lines
497 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef ADSP_CLK_H
#define ADSP_CLK_H
#include <linux/platform_device.h>
enum adsp_clk_mode {
CLK_LOW_POWER,
CLK_DEFAULT_INIT,
CLK_HIGH_PERFORM,
};
struct adsp_clk_operations {
void (*select)(enum adsp_clk_mode mode);
int (*enable)(void);
void (*disable)(void);
};
void adsp_select_clock_mode(enum adsp_clk_mode mode);
int adsp_enable_clock(void);
void adsp_disable_clock(void);
#endif /* ADSP_CLK_H */