blob: 7c6a63e8a28814c0643bf0646e386f8dabf9b70a [file] [log] [blame]
Bryan O'Donoghue4055aae2018-05-25 16:56:52 +01001/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6#include <mmio.h>
7#include <imx_csu.h>
8#include <imx_regs.h>
9
10void imx_csu_init(void)
11{
12 int i;
13 uintptr_t *csl_reg = (uintptr_t *)CSU_BASE;
14
15 for (i = 0; i < MXC_MAX_CSU_REGS; i++, csl_reg++)
16 mmio_write_32((uintptr_t)csl_reg, CSU_CSL_OPEN_ACCESS);
17}