blob: 9b3a737768197e64668051e938ffb34c8f5b99a2 [file] [log] [blame]
Bryan O'Donoghueda3df9c2018-05-25 16:52:03 +01001/*
2 * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaze0f90632018-12-14 00:18:21 +00007#include <lib/mmio.h>
8
Bryan O'Donoghueda3df9c2018-05-25 16:52:03 +01009#include <imx_regs.h>
10#include <imx_snvs.h>
11
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}