coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
id.h
Go to the documentation of this file.
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
#ifndef __SOC_NVIDIA_TEGRA210_INCLUDE_SOC_ID_H__
4
#define __SOC_NVIDIA_TEGRA210_INCLUDE_SOC_ID_H__
5
6
#include <
device/mmio.h
>
7
#include <soc/addressmap.h>
8
9
static
inline
int
context_avp
(
void
)
10
{
11
const
uint32_t
avp_id = 0xaaaaaaaa;
12
void
*
const
uptag = (
void
*)(
uintptr_t
)
TEGRA_PG_UP_BASE
;
13
14
return
read32
(uptag) == avp_id;
15
}
16
17
#endif
/* __SOC_NVIDIA_TEGRA210_INCLUDE_SOC_ID_H__ */
read32
static uint32_t read32(const void *addr)
Definition:
mmio.h:22
context_avp
static int context_avp(void)
Definition:
id.h:9
mmio.h
TEGRA_PG_UP_BASE
@ TEGRA_PG_UP_BASE
Definition:
addressmap.h:19
uint32_t
unsigned int uint32_t
Definition:
stdint.h:14
uintptr_t
unsigned long uintptr_t
Definition:
stdint.h:21
src
soc
nvidia
tegra210
include
soc
id.h
Generated by
1.9.1