coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
otp.c File Reference
#include <delay.h>
#include <device/mmio.h>
#include <console/console.h>
#include <console/uart.h>
#include <soc/addressmap.h>
#include <soc/otp.h>
Include dependency graph for otp.c:

Go to the source code of this file.

Data Structures

struct  sifive_otp_registers
 

Functions

u32 otp_read_word (u16 idx)
 
u32 otp_read_serial (void)
 

Variables

struct sifive_otp_registers __packed
 

Function Documentation

◆ otp_read_serial()

u32 otp_read_serial ( void  )

Definition at line 79 of file otp.c.

References otp_read_word(), and serial.

Referenced by do_fixup_mac().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ otp_read_word()

u32 otp_read_word ( u16  idx)

Definition at line 41 of file otp.c.

References die(), FU540_OTP, mdelay(), read32(), and write32().

Referenced by otp_read_serial().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ __packed