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