xref: /aosp_15_r20/external/coreboot/src/soc/mediatek/common/include/soc/mcu_common.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_MEDIATEK_MTLIB_COMMON_H
4 #define SOC_MEDIATEK_MTLIB_COMMON_H
5 
6 struct mtk_mcu {
7 	const char *firmware_name;	/* The firmware file name in CBFS */
8 	void *run_address;		/* The address for running the firmware */
9 	size_t run_size;		/* The buffer for loading the firmware */
10 	void *load_buffer;		/* The buffer size */
11 	size_t buffer_size;		/* The firmware real size */
12 	void *priv;			/* The additional data required by the reset callback */
13 	void (*reset)(struct mtk_mcu *mcu);	/* The reset callback */
14 };
15 
16 enum cb_err mtk_init_mcu(struct mtk_mcu *mcu);
17 
18 #endif /* SOC_MEDIATEK_MTLIB_COMMON_H */
19