diff options
author | Hal Feng <hal.feng@starfivetech.com> | 2023-08-09 09:18:33 +0300 |
---|---|---|
committer | Hal Feng <hal.feng@starfivetech.com> | 2023-11-29 05:46:35 +0300 |
commit | d5c8e632a1416092f93cfc3989d9969166292398 (patch) | |
tree | d231451b5a56ddab2aa974f2b28b4ff182f69c89 | |
parent | 93cc1e2b6d33b9fd588a640ba161f6db377d6181 (diff) | |
download | u-boot-d5c8e632a1416092f93cfc3989d9969166292398.tar.xz |
riscv: cpu: jh7110: Add EEPROM support
Add a header to easily use the EEPROM interface.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
-rw-r--r-- | arch/riscv/include/asm/arch-jh7110/eeprom.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/arch-jh7110/eeprom.h b/arch/riscv/include/asm/arch-jh7110/eeprom.h new file mode 100644 index 0000000000..bae918f153 --- /dev/null +++ b/arch/riscv/include/asm/arch-jh7110/eeprom.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * Copyright (C) 2021 StarFive Technology Co., Ltd. + * + * Author: Jianlong Huang <jianlong.huang@starfivetech.com> + */ + +#ifndef _ASM_RISCV_EEPROM_H +#define _ASM_RISCV_EEPROM_H + +u8 get_pcb_revision_from_eeprom(void); +int get_data_from_eeprom(int offset, int len, unsigned char *data); + +#endif /* _ASM_RISCV_EEPROM_H */ |