blob: 7874a6869078808c62d331a19c57aff5ae3631fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/*
* Copyright 2022-2023 NXP
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <lib/mmio.h>
#include <platform_def.h>
#define SNVS_HPCOMR U(0x04)
#define SNVS_NPSWA_EN BIT(31)
void enable_snvs_privileged_access(void)
{
unsigned int val;
val = mmio_read_32(IMX_SNVS_BASE + SNVS_HPCOMR);
mmio_write_32(IMX_SNVS_BASE + SNVS_HPCOMR, val | SNVS_NPSWA_EN);
}
|