Skip to contentSkip to conversation

board: sifive: spl: Initialized the PWM setting in the SPL stage

PATCH In review Nylon Chen 2 participants 2 messages Jan 16, 2024 – Jan 31, 2024

Subsystems (2)
lore
Share & tools
lore

Nylon Chen

author
#0 lore raw

PATCH 1/1 board: sifive: spl: Initialized the PWM setting in the SPL stage

From: Vincent Chen <[email protected]>

LEDs and multiple fans can be controlled by SPL. This patch ensures that all fans have been enabled in the SPL stage. In addition, the LED's color will be set to yellow.

---
 arch/riscv/include/asm/arch-fu740/eeprom.h | 15 +++++++
 board/sifive/unmatched/spl.c               | 52 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 arch/riscv/include/asm/arch-fu740/eeprom.h
arch/riscv/include/asm/arch-fu740/eeprom.h new file +15 -0
new file mode 100644
index 0000000000..aaa02c6d2b
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (C) 2024 SiFive, Inc.
+ *
+ * Zong Li <[email protected]>
+ */
+
+#ifndef _ASM_RISCV_EEPROM_H
+#define _ASM_RISCV_EEPROM_H
+
+#define PCB_REVISION_REV3      0x3
+
+u8 get_pcb_revision_from_eeprom(void);
+
+#endif /* _ASM_RISCV_EEPROM_H */
board/sifive/unmatched/spl.c +52 -0

70 lines not on this page · raw message

Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Nylon Chen

From: Vincent Chen <[email protected]>

LEDs and multiple fans can be controlled by SPL. This patch ensures that all fans have been enabled in the SPL stage. In addition, the LED's color will be set to yellow.

Quoted 5 lines
---
 arch/riscv/include/asm/arch-fu740/eeprom.h | 15 +++++++
 board/sifive/unmatched/spl.c               | 52 ++++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 arch/riscv/include/asm/arch-fu740/eeprom.h