1 /* 2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #include <lib/mmio.h> 8 9 #include <imx_regs.h> 10 #include <imx_snvs.h> 11 imx_snvs_init(void)12void imx_snvs_init(void) 13 { 14 struct snvs *snvs = (struct snvs *)SNVS_BASE; 15 uintptr_t addr; 16 uint32_t val; 17 18 addr = (uintptr_t)&snvs->hpcomr; 19 val = mmio_read_32(addr); 20 val |= HPCOMR_NPSWA_EN; 21 mmio_write_32(addr, val); 22 } 23