Bryan O'Donoghue | da3df9c | 2018-05-25 16:52:03 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 7 | #include <lib/mmio.h> |
| 8 | |
Bryan O'Donoghue | da3df9c | 2018-05-25 16:52:03 +0100 | [diff] [blame] | 9 | #include <imx_regs.h> |
| 10 | #include <imx_snvs.h> |
| 11 | |
| 12 | void 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 | } |