blob: 7e165d928132eb9f6fbe0f21b3d91afd62a3b596 [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 */
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00006
7#include <lib/mmio.h>
8
Bryan O'Donoghue4055aae2018-05-25 16:56:52 +01009#include <imx_csu.h>
10#include <imx_regs.h>
11
12void imx_csu_init(void)
13{
14 int i;
15 uintptr_t *csl_reg = (uintptr_t *)CSU_BASE;
16
17 for (i = 0; i < MXC_MAX_CSU_REGS; i++, csl_reg++)
18 mmio_write_32((uintptr_t)csl_reg, CSU_CSL_OPEN_ACCESS);
19}