coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
infracfg.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 
3 #ifndef SOC_MEDIATEK_MT8195_INFRACFG_H
4 #define SOC_MEDIATEK_MT8195_INFRACFG_H
5 
6 #include <soc/addressmap.h>
7 #include <types.h>
8 
13  u32 infra_bus_dcm_ctrl; /* 0x0070 */
30  u32 dramc_wbr; /* 0x00b4 */
32  u32 module_sw_cg_3_set; /* 0x00c0 */
36  u32 module_sw_cg_4_set; /* 0x00e0 */
40  u32 i2c_dbtool_misc; /* 0x0100 */
76  u32 infra_apb_async_sta; /* 0x0230 */
145  u32 md2_bank4_map0; /* 0x0350 */
153  u32 ap2md_dummy; /* 0x0370 */
155  u32 conn_map0; /* 0x0380 */
177  u32 infra_pwm_cksw_ctrl; /* 0x0410 */
179  u32 infra_ao_dbg_con0; /* 0x0500 */
186  u32 mfg_misc_con; /* 0x0600 */
188  u32 infracfg_ao_iommu_0; /* 0x0610 */
191  u32 infra_rsvd0; /* 0x0700 */
207  u32 mcu2emi_m0_parity; /* 0x0780 */
225  u32 gcpu_aor_ctrl; /* 0x0830 */
241  u32 infra_bonding; /* 0x0900 */
261  u32 infra_mem_26m_cksel; /* 0x0a60 */
263  u32 pll_ulposc_con0; /* 0x0b00 */
266  u32 pll_auxadc_con0; /* 0x0b10 */
293  u32 cldma_ctrl; /* 0x0c00 */
295  u32 infrabus_dbg0; /* 0x0d00 */
348  u32 infrabus_dbg_mask2; /* 0x0df0 */
350  u32 infra_misc; /* 0x0f00 */
356  u32 infra_ao_sec_con; /* 0x0f80 */
363  u32 infra_ao_sec_cg_con2; /* 0x0f9c */
367  u32 infra_ao_sec_hyp; /* 0x0fb0 */
369 };
370 
371 check_member(mt8195_infracfg_ao_regs, infra_globalcon_dcmctl, 0x0050);
372 check_member(mt8195_infracfg_ao_regs, infra_bus_dcm_ctrl, 0x0070);
373 check_member(mt8195_infracfg_ao_regs, module_sw_cg_0_clr, 0x0084);
374 check_member(mt8195_infracfg_ao_regs, module_sw_cg_1_clr, 0x008c);
375 check_member(mt8195_infracfg_ao_regs, module_sw_cg_2_clr, 0x00a8);
376 check_member(mt8195_infracfg_ao_regs, module_sw_cg_3_set, 0x00c0);
377 check_member(mt8195_infracfg_ao_regs, module_sw_cg_4_set, 0x00e0);
378 check_member(mt8195_infracfg_ao_regs, i2c_dbtool_misc, 0x0100);
379 check_member(mt8195_infracfg_ao_regs, infra_globalcon_rst0_set, 0x0120);
380 check_member(mt8195_infracfg_ao_regs, infra_nna0_slave_gals_ctrl, 0x01f0);
381 check_member(mt8195_infracfg_ao_regs, md2_bank4_map0, 0x0350);
383 check_member(mt8195_infracfg_ao_regs, peri_cci_sideband_con, 0x0400);
384 check_member(mt8195_infracfg_ao_regs, infra_pwm_cksw_ctrl, 0x0410);
385 check_member(mt8195_infracfg_ao_regs, infra_ao_dbg_con0, 0x0500);
386 check_member(mt8195_infracfg_ao_regs, mfg_misc_con, 0x0600);
387 check_member(mt8195_infracfg_ao_regs, infracfg_ao_iommu_0, 0x0610);
388 check_member(mt8195_infracfg_ao_regs, infra_rsvd0, 0x0700);
389 check_member(mt8195_infracfg_ao_regs, infra_globalcon_rst4_set, 0x0730);
390 check_member(mt8195_infracfg_ao_regs, mcu2emi_m0_parity, 0x0780);
391 check_member(mt8195_infracfg_ao_regs, gcpu_aor_ctrl, 0x0830);
392 check_member(mt8195_infracfg_ao_regs, gcpu_aor_sbc_pubk_hv0, 0x0840);
393 check_member(mt8195_infracfg_ao_regs, infra_bonding, 0x0900);
394 check_member(mt8195_infracfg_ao_regs, infra_ao_scpsys_apb_async_sta, 0x0a00);
395 check_member(mt8195_infracfg_ao_regs, infra_mem_26m_cksel, 0x0a60);
396 check_member(mt8195_infracfg_ao_regs, pll_ulposc_con0, 0x0b00);
397 check_member(mt8195_infracfg_ao_regs, pll_auxadc_con0, 0x0b10);
398 check_member(mt8195_infracfg_ao_regs, infra_topaxi_protecten_vdnr, 0x0b80);
399 check_member(mt8195_infracfg_ao_regs, infra_topaxi_protecten_vdnr_1, 0x0ba0);
401 check_member(mt8195_infracfg_ao_regs, infrabus_dbg0, 0x0d00);
402 check_member(mt8195_infracfg_ao_regs, infra_topaxi_protecten_mm_2, 0x0dc8);
403 check_member(mt8195_infracfg_ao_regs, infrabus_dbg_mask2, 0x0df0);
405 check_member(mt8195_infracfg_ao_regs, infra_ao_sec_con, 0x0f80);
406 check_member(mt8195_infracfg_ao_regs, infra_ao_sec_hyp, 0x0fb0);
407 check_member(mt8195_infracfg_ao_regs, infra_ao_sec_mfg_hyp, 0x0fb4);
408 
410  (void *)INFRACFG_AO_BASE;
411 
412 #endif /* SOC_MEDIATEK_MT8195_INFRACFG_H */
check_member(mt8173_infracfg_regs, infra_pdn0, 0x40)
static struct mt8195_infracfg_ao_regs *const mt8195_infracfg_ao
Definition: infracfg.h:409
@ INFRACFG_AO_BASE
Definition: addressmap.h:15
uint32_t u32
Definition: stdint.h:51
u32 infra_topaxi_protecten_mm_sta0
Definition: infracfg.h:122
u32 infra_topaxi_protecten_vdnr_sta0_2
Definition: infracfg.h:285
u32 infra_topaxi_protecten_mm_clr_2
Definition: infracfg.h:344
u32 infra_topaxi_protecten_vdnr_sta0_1
Definition: infracfg.h:280
u32 infra_topaxi_protecten_vdnr_set_1
Definition: infracfg.h:278
u32 infra_topaxi_protecten_vdnr_set
Definition: infracfg.h:272
u32 infra_topaxi_cbip_aslice_ctrl
Definition: infracfg.h:93
u32 infra_topaxi_protecten_mm_set_2
Definition: infracfg.h:343
u32 infra_topaxi_protecten_mm_sta1_2
Definition: infracfg.h:346
u32 infra_topaxi_protecten_sub_infra_vdnr_sta1
Definition: infracfg.h:291
u32 infra_topaxi_protecten_sta1_1
Definition: infracfg.h:86
u32 infra_topaxi_protecten_sta0_1
Definition: infracfg.h:85
u32 infra_topaxi_protecten_vdnr_sta1
Definition: infracfg.h:275
u32 infra_topaxi_protecten_vdnr_clr
Definition: infracfg.h:273
u32 infra_topaxi_protecten_mcu_clr
Definition: infracfg.h:114
u32 infra_topaxi_emi_gmc_l2c_ctrl
Definition: infracfg.h:98
u32 infra_topaxi_cbip_slice_ctrl
Definition: infracfg.h:94
u32 infra_topaxi_protecten_sub_infra_vdnr_sta0
Definition: infracfg.h:290
u32 infra_topaxi_protecten_vdnr_clr_2
Definition: infracfg.h:284
u32 infra_topaxi_protecten_sub_infra_vdnr_set
Definition: infracfg.h:288
u32 infra_topaxi_protecten_sub_infra_vdnr
Definition: infracfg.h:287
u32 infra_topaxi_protecten_mcu_sta1
Definition: infracfg.h:121
u32 infra_topaxi_protecten_mm_sta1
Definition: infracfg.h:123
u32 infra_topaxi_protecten_vdnr_sta1_2
Definition: infracfg.h:286
u32 infra_topaxi_protecten_vdnr_set_2
Definition: infracfg.h:283
u32 infra_ao_pmic_wrap_tx_apb_async_sta
Definition: infracfg.h:247
u32 infra_topaxi_protecten_mcu_set
Definition: infracfg.h:113
u32 infra_topaxi_protecten_vdnr_sta0
Definition: infracfg.h:274
u32 infra_topaxi_cbip_slice_ctrl_2
Definition: infracfg.h:108
u32 infra_topaxi_protecten_vdnr_sta1_1
Definition: infracfg.h:281
u32 infra_topaxi_protecten_mcu_sta0
Definition: infracfg.h:120
u32 infra_topaxi_cbip_slice_ctrl_1
Definition: infracfg.h:99
u32 infra_ao_md32_tx_apb_async_sta
Definition: infracfg.h:244
u32 infra_ao_md32_rx_apb_async_sta
Definition: infracfg.h:245
u32 infra_topaxi_protecten_mm_sta0_2
Definition: infracfg.h:345
u32 infra_topaxi_protecten_sub_infra_vdnr_clr
Definition: infracfg.h:289
u32 infra_topaxi_protecten_vdnr_clr_1
Definition: infracfg.h:279