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 | */ |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 6 | |
| 7 | #include <lib/mmio.h> |
| 8 | |
Bryan O'Donoghue | 4055aae | 2018-05-25 16:56:52 +0100 | [diff] [blame] | 9 | #include <imx_csu.h> |
| 10 | #include <imx_regs.h> |
| 11 | |
| 12 | void 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 | } |