summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYanhong Wang <[email protected]>2023-06-15 17:36:48 +0800
committerLeo Yu-Chi Liang <[email protected]>2023-07-12 13:21:40 +0800
commitaea1bd95b61e5596000e2aa71b32b32801ac51d4 (patch)
tree9656ff3f10a494d4891be09ada83cd65f3cbeea9 /arch
parented430fe5e47c72bb665ce874405b46108229daea (diff)
eeprom: starfive: Enable ID EEPROM configuration
Enabled ID_EEPROM configuration for StarFive VisionFive2 board. Signed-off-by: Yanhong Wang <[email protected]> Reviewed-by: Leo Yu-Chi Liang <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/include/asm/arch-jh7110/eeprom.h13
1 files changed, 13 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 00000000000..f354d5c60cd
--- /dev/null
+++ b/arch/riscv/include/asm/arch-jh7110/eeprom.h
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (C) 2023 StarFive Technology Co., Ltd.
+ * Author: Yanhong Wang<[email protected]>
+ */
+
+#ifndef _ASM_RISCV_EEPROM_H
+#define _ASM_RISCV_EEPROM_H
+
+u8 get_pcb_revision_from_eeprom(void);
+u32 get_ddr_size_from_eeprom(void);
+
+#endif /* _ASM_RISCV_EEPROM_H */