xref: /aosp_15_r20/external/coreboot/src/soc/mediatek/common/include/soc/dfd.h (revision b9411a12aaaa7e1e6a6fb7c5e057f44ee179a49c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_MEDIATEK_DFD_COMMON_H
4 #define SOC_MEDIATEK_DFD_COMMON_H
5 
6 #define CPC_FLOW_CTRL_CFG	0x0C53A814
7 #define RESET_ON_KEEP_EN	BIT(17)
8 
9 /* DFD dump address and size need to be the same as defined in Kernel DTS. */
10 #define DFD_DUMP_ADDRESS        0x6A000000
11 #define DFD_DUMP_SIZE           (1 * MiB)
12 
13 static u32 *const dfd_cfg = (void *)CPC_FLOW_CTRL_CFG;
14 
15 void dfd_init(void);
16 
17 #endif
18