Bryan O'Donoghue | 4055aae | 2018-05-25 16:56:52 +0100 | [diff] [blame] | 1 | /* |
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 | |||||
10 | void 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 | } |