summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8186/gic.c
blob: ac077647af6efa199afb8d56930fdb836ebd33a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* SPDX-License-Identifier: GPL-2.0-only */

/*
 * This file is created based on MT8186 Functional Specification
 * Chapter number: 4.3
 */

#include <device/mmio.h>
#include <soc/addressmap.h>
#include <soc/gic.h>

void mtk_gic_preinit(void)
{
	int i;

	for (i = 3; i < 15; i++) {
		write32((void *)((uintptr_t)MCUSYS_BASE + 0xA600 + i * 4), 0);
		write32((void *)((uintptr_t)MCUSYS_BASE + 0xA650 + i * 4), 0xFFFFFFFF);
	}
}