imx_csu.c 384 Bytes
Newer Older
1
2
3
4
5
/*
 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */
6
7
8

#include <lib/mmio.h>

9
10
11
12
13
14
15
16
17
18
19
#include <imx_csu.h>
#include <imx_regs.h>

void imx_csu_init(void)
{
	int i;
	uintptr_t *csl_reg = (uintptr_t *)CSU_BASE;

	for (i = 0; i < MXC_MAX_CSU_REGS; i++, csl_reg++)
		mmio_write_32((uintptr_t)csl_reg, CSU_CSL_OPEN_ACCESS);
}