blob: 62d184aeb5719e91b1a6e39f223b3fffa56575a3 [file] [log] [blame]
Yanhong Wang39331e42023-06-15 17:36:48 +08001/* SPDX-License-Identifier: GPL-2.0+ */
2/*
3 * Copyright (C) 2023 StarFive Technology Co., Ltd.
4 * Author: Yanhong Wang<yanhong.wang@starfivetech.com>
5 */
6
7#ifndef _ASM_RISCV_EEPROM_H
8#define _ASM_RISCV_EEPROM_H
9
Tom Rinib6b99002023-10-12 19:03:59 -040010#include <linux/types.h>
11
Yanhong Wang39331e42023-06-15 17:36:48 +080012u8 get_pcb_revision_from_eeprom(void);
13u32 get_ddr_size_from_eeprom(void);
14
Heinrich Schuchardtf560f0f2024-04-02 10:49:08 +020015/**
16 * get_product_id_from_eeprom - get product ID string
17 *
18 * A string like "VF7110A1-2228-D008E000-00000001" is returned.
19 *
20 * Return: product ID string
21 */
22const char *get_product_id_from_eeprom(void);
23
Yanhong Wang39331e42023-06-15 17:36:48 +080024#endif /* _ASM_RISCV_EEPROM_H */