mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-23 07:31:27 +02:00
Export a function get_product_id_from_eeprom() to read the product ID. This value can be used for fixing up the device-tree on JH7110 based products. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
25 lines
555 B
C
25 lines
555 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2023 StarFive Technology Co., Ltd.
|
|
* Author: Yanhong Wang<yanhong.wang@starfivetech.com>
|
|
*/
|
|
|
|
#ifndef _ASM_RISCV_EEPROM_H
|
|
#define _ASM_RISCV_EEPROM_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
u8 get_pcb_revision_from_eeprom(void);
|
|
u32 get_ddr_size_from_eeprom(void);
|
|
|
|
/**
|
|
* get_product_id_from_eeprom - get product ID string
|
|
*
|
|
* A string like "VF7110A1-2228-D008E000-00000001" is returned.
|
|
*
|
|
* Return: product ID string
|
|
*/
|
|
const char *get_product_id_from_eeprom(void);
|
|
|
|
#endif /* _ASM_RISCV_EEPROM_H */
|