Resguardo inicial

This commit is contained in:
lastdragon
2026-09-06 12:53:21 -06:00
parent 662efe3c2a
commit ad2088d178
94853 changed files with 43200404 additions and 0 deletions
@@ -0,0 +1,25 @@
// SPDX-License-Identifier: MIT
//
// Copyright 2026 Advanced Micro Devices, Inc.
#include "dcn35/dcn35_mmhubbub.h"
#include "dcn42_mmhubbub.h"
#include "reg_helper.h"
#define REG(reg) \
((const struct dcn35_mmhubbub_registers *)(mcif_wb30->mcif_wb_regs)) \
->reg
#define CTX mcif_wb30->base.ctx
#undef FN
#define FN(reg_name, field_name) \
((const struct dcn35_mmhubbub_shift *)(mcif_wb30->mcif_wb_shift)) \
->field_name, \
((const struct dcn35_mmhubbub_mask *)(mcif_wb30->mcif_wb_mask)) \
->field_name
void dcn42_mmhubbub_set_fgcg(struct dcn30_mmhubbub *mcif_wb30, bool enabled)
{
REG_UPDATE(MMHUBBUB_CLOCK_CNTL, MMHUBBUB_FGCG_REP_DIS, !enabled);
}
@@ -0,0 +1,13 @@
/* SPDX-License-Identifier: MIT */
/* Copyright 2026 Advanced Micro Devices, Inc. */
#ifndef __DCN42_MMHUBBUB_H
#define __DCN42_MMHUBBUB_H
#include "mcif_wb.h"
#include "dcn32/dcn32_mmhubbub.h"
#include "dcn35/dcn35_mmhubbub.h"
void dcn42_mmhubbub_set_fgcg(struct dcn30_mmhubbub *mcif_wb30, bool enabled);
#endif // __DCN42_MMHUBBUB_H