mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 14:23:00 +00:00
05e254862f
There are different DDR parameter settings for different board revisions. Add a new interface to get the PCB revision to determine which DT should be selected at runtime. Signed-off-by: Zong Li <zong.li@sifive.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
15 lines
277 B
C
15 lines
277 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Copyright (C) 2021 SiFive, Inc.
|
|
*
|
|
* Zong Li <zong.li@sifve.com>
|
|
*/
|
|
|
|
#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 */
|