2 * Copyright 2014 Freescale Semiconductor
4 * SPDX-License-Identifier: GPL-2.0+
9 #include <asm/arch/ns_access.h>
11 void enable_devices_ns_access(struct csu_ns_dev *ns_dev, uint32_t num)
13 u32 *base = (u32 *)CONFIG_SYS_FSL_CSU_ADDR;
18 for (i = 0; i < num; i++) {
19 reg = base + ns_dev[i].ind / 2;
21 if (ns_dev[i].ind % 2 == 0) {
23 val |= ns_dev[i].val << 16;