summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHal Feng <[email protected]>2025-10-24 16:59:27 +0800
committerLeo Yu-Chi Liang <[email protected]>2026-03-17 01:36:57 +0800
commit78253aeeecdfea4c71779905ff2b400fa7400b1c (patch)
tree60c02a55e2ccf0f4b97f0381a315cbe18e1bfe81 /arch
parent6015c98be50f2fc571c294d2f2b0768212fb7e99 (diff)
eeprom: starfive: Correct get_pcb_revision_from_eeprom()
pcb_revision is stored in the pcb_revision field of ATOM4. Correct it. Move the function description to the header file. Return 0 instead of 0xFF if read_eeprom() fails. Reviewed-by: Heinrich Schuchardt <[email protected]> Fixes: aea1bd95b61e ("eeprom: starfive: Enable ID EEPROM configuration") Signed-off-by: Hal Feng <[email protected]>
Diffstat (limited to 'arch')
-rw-r--r--arch/riscv/include/asm/arch-jh7110/eeprom.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/arch-jh7110/eeprom.h b/arch/riscv/include/asm/arch-jh7110/eeprom.h
index 1ae9f2b840a..8b689a75013 100644
--- a/arch/riscv/include/asm/arch-jh7110/eeprom.h
+++ b/arch/riscv/include/asm/arch-jh7110/eeprom.h
@@ -9,6 +9,11 @@
#include <linux/types.h>
+/**
+ * get_pcb_revision_from_eeprom() - get the PCB revision
+ *
+ * @return: the PCB revision or 0 on error.
+ */
u8 get_pcb_revision_from_eeprom(void);
/**