tf-a/tf-a-stm32mp-2.2.r1/plat/imx/common/imx_snvs.c

23 lines
416 B
C
Raw Normal View History

2024-01-10 05:21:13 +00:00
/*
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <lib/mmio.h>
#include <imx_regs.h>
#include <imx_snvs.h>
void imx_snvs_init(void)
{
struct snvs *snvs = (struct snvs *)SNVS_BASE;
uintptr_t addr;
uint32_t val;
addr = (uintptr_t)&snvs->hpcomr;
val = mmio_read_32(addr);
val |= HPCOMR_NPSWA_EN;
mmio_write_32(addr, val);
}