soc/mediatek/mt8196: Move TX TRACKING from MT8196 to common folder

The configuration method of the reserved DRAM buffer used for HW TX
TRACING on MT8196 is also applicable to other SoCs, such as MT8189.

To facilitate reuse, we move the relevant files to the common directory.

BUG=b:379008996
BRANCH=none
TEST=Reserve memory ok
Firmware shows the following log with 12GB DDR board:
00000001ffff0000-00000001ffffffff: RESERVED
000000037fff0000-000000037fffffff: RESERVED

Change-Id: I3fdd9d2f7ab1bbdcc097510556929da2134f7d95
Signed-off-by: Mike Lin <mike.lin@mediatek.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/87036
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yidi Lin <yidilin@google.com>
This commit is contained in:
Mike Lin 2024-12-24 15:44:27 +08:00 committed by Matt DeVillier
commit af3076b1f9
4 changed files with 9 additions and 9 deletions

View file

@ -0,0 +1,8 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __SOC_MEDIATEK_COMMON_DRAMC_INFO_H__
#define __SOC_MEDIATEK_COMMON_DRAMC_INFO_H__
void reserve_buffer_for_dramc(void);
#endif /* __SOC_MEDIATEK_COMMON_DRAMC_INFO_H__ */

View file

@ -60,7 +60,7 @@ ramstage-y += ../common/display.c
ramstage-y += ../common/dpm_v2.c
ramstage-y += ../common/dp/dptx_common.c ../common/dp/dptx_hal_common.c
ramstage-y += dptx.c dptx_hal.c dp_intf.c
ramstage-y += dramc_info.c
ramstage-y += ../common/dramc_info.c
ramstage-y += ../common/early_init.c
ramstage-y += ../common/emi.c
ramstage-y += gpueb.c

View file

@ -1,8 +0,0 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __SOC_MEDIATEK_MT8196_DRAMC_INFO_H__
#define __SOC_MEDIATEK_MT8196_DRAMC_INFO_H__
void reserve_buffer_for_dramc(void);
#endif /* __SOC_MEDIATEK_MT8196_DRAMC_INFO_H__ */