board: sifive: spl: Initialized the PWM setting in the SPL stage
Subsystems (2)
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.
Signed-off-by Vincent Chen <[email protected]>
Co-developed-by Nylon Chen <[email protected]>
Signed-off-by Nylon Chen <[email protected]>
Co-developed-by Zong Li <[email protected]>
Signed-off-by Zong Li <[email protected]>
--- 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
@@ -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
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.
Signed-off-by Vincent Chen <[email protected]>Co-developed-by Nylon Chen <[email protected]>Signed-off-by Nylon Chen <[email protected]>Co-developed-by Zong Li <[email protected]>Signed-off-by Zong Li <[email protected]>
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
Reviewed-by Leo Yu-Chi Liang <[email protected]>