imx_csu.c 384 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #include <lib/mmio.h>
  7. #include <imx_csu.h>
  8. #include <imx_regs.h>
  9. void imx_csu_init(void)
  10. {
  11. int i;
  12. uintptr_t *csl_reg = (uintptr_t *)CSU_BASE;
  13. for (i = 0; i < MXC_MAX_CSU_REGS; i++, csl_reg++)
  14. mmio_write_32((uintptr_t)csl_reg, CSU_CSL_OPEN_ACCESS);
  15. }