3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-23 23:55:54 +00:00
2022-04-02 18:17:33 +05:00

22 lines
440 B
C

// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2018 Linaro
*/
#include <asm/io.h>
#include <asm/arch/imx-regs.h>
#include <linux/bitops.h>
#define SNVS_HPCOMR 0x04
#define SNVS_HPCOMR_NPSWA_EN BIT(31)
void init_snvs(void)
{
u32 val;
/* Ensure SNVS HPCOMR sets NPSWA_EN to allow unpriv access to SNVS LP */
val = readl(SNVS_BASE_ADDR + SNVS_HPCOMR);
val |= SNVS_HPCOMR_NPSWA_EN;
writel(val, SNVS_BASE_ADDR + SNVS_HPCOMR);
}