CI: https://git.u-boot-project.org/u-boot/custodians/u-boot-riscv/-/pipelines/740 - some fixes - Add Yao Zi as a reviewer
This commit is contained in:
@@ -1576,6 +1576,7 @@ F: drivers/mtd/nand/raw/
|
||||
RISC-V
|
||||
M: Tim Ouyang <tim609@andestech.com>
|
||||
M: Leo Liang <leo.liang@sifive.com>
|
||||
R: Yao Zi <me@ziyao.cc>
|
||||
S: Maintained
|
||||
T: git https://git.u-boot-project.org/u-boot/custodians/u-boot-riscv.git
|
||||
F: arch/riscv/
|
||||
|
||||
+2
-2
@@ -378,7 +378,7 @@ config DMA_ADDR_T_64BIT
|
||||
default y if 64BIT
|
||||
|
||||
config RISCV_ACLINT
|
||||
bool
|
||||
bool "RISC-V ACLINT support"
|
||||
depends on RISCV_MMODE
|
||||
select REGMAP
|
||||
select SYSCON
|
||||
@@ -387,7 +387,7 @@ config RISCV_ACLINT
|
||||
associated with software and timer interrupts.
|
||||
|
||||
config SPL_RISCV_ACLINT
|
||||
bool
|
||||
bool "RISC-V ACLINT support in SPL"
|
||||
depends on SPL_RISCV_MMODE
|
||||
select SPL_REGMAP
|
||||
select SPL_SYSCON
|
||||
|
||||
@@ -638,6 +638,9 @@ int riscv_cpu_setup(void)
|
||||
const char *isa, **exts;
|
||||
struct udevice *dev;
|
||||
|
||||
if (!CONFIG_IS_ENABLED(CPU))
|
||||
return 0;
|
||||
|
||||
uclass_find_first_device(UCLASS_CPU, &dev);
|
||||
if (!dev) {
|
||||
debug("unable to find the RISC-V cpu device\n");
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
spif: spi-nor@10000000 {
|
||||
spif: spi@10000000 {
|
||||
compatible = "sophgo,cv1800b-spif";
|
||||
reg = <0x10000000 0x10000000>;
|
||||
#address-cells = <1>;
|
||||
|
||||
@@ -149,8 +149,6 @@ __weak int dcache_status(void)
|
||||
__weak void enable_caches(void)
|
||||
{
|
||||
zicbom_block_size = riscv_get_cbom_block_size();
|
||||
if (!zicbom_block_size)
|
||||
log_debug("Zicbom not initialized.\n");
|
||||
}
|
||||
|
||||
int __weak pgprot_set_attrs(phys_addr_t addr, size_t size, enum pgprot_attrs perm)
|
||||
|
||||
@@ -144,7 +144,12 @@ int board_fit_config_name_match(const char *name)
|
||||
!strncmp(get_product_id_from_eeprom(), "VF7110B", 7)) {
|
||||
return 0;
|
||||
} else if (!strcmp(name, "starfive/jh7110-starfive-visionfive-2-lite") &&
|
||||
!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8)) {
|
||||
!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8) &&
|
||||
!get_mmc_size_from_eeprom()) {
|
||||
return 0;
|
||||
} else if (!strcmp(name, "starfive/jh7110-starfive-visionfive-2-lite-emmc") &&
|
||||
!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8) &&
|
||||
get_mmc_size_from_eeprom()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -72,7 +72,11 @@ static void set_fdtfile(void)
|
||||
} else if (!strncmp(get_product_id_from_eeprom(), "VF7110B", 7)) {
|
||||
fdtfile = "starfive/jh7110-starfive-visionfive-2-v1.3b.dtb";
|
||||
} else if (!strncmp(get_product_id_from_eeprom(), "VF7110SL", 8)) {
|
||||
fdtfile = "starfive/jh7110-starfive-visionfive-2-lite.dtb";
|
||||
if (get_mmc_size_from_eeprom()) {
|
||||
fdtfile = "starfive/jh7110-starfive-visionfive-2-lite-emmc.dtb";
|
||||
} else {
|
||||
fdtfile = "starfive/jh7110-starfive-visionfive-2-lite.dtb";
|
||||
}
|
||||
} else {
|
||||
log_err("Unknown product\n");
|
||||
return;
|
||||
|
||||
@@ -80,7 +80,7 @@ CONFIG_WGET_HTTPS=y
|
||||
CONFIG_CMD_BOOTSTAGE=y
|
||||
CONFIG_OF_BOARD=y
|
||||
CONFIG_DEVICE_TREE_INCLUDES="starfive-visionfive2-u-boot.dtsi"
|
||||
CONFIG_OF_LIST="starfive/jh7110-deepcomputing-fml13v01 starfive/jh7110-milkv-mars starfive/jh7110-milkv-marscm-emmc starfive/jh7110-milkv-marscm-lite starfive/jh7110-orangepi-rv starfive/jh7110-pine64-star64 starfive/jh7110-starfive-visionfive-2-v1.2a starfive/jh7110-starfive-visionfive-2-v1.3b starfive/jh7110-starfive-visionfive-2-lite"
|
||||
CONFIG_OF_LIST="starfive/jh7110-deepcomputing-fml13v01 starfive/jh7110-milkv-mars starfive/jh7110-milkv-marscm-emmc starfive/jh7110-milkv-marscm-lite starfive/jh7110-orangepi-rv starfive/jh7110-pine64-star64 starfive/jh7110-starfive-visionfive-2-v1.2a starfive/jh7110-starfive-visionfive-2-v1.3b starfive/jh7110-starfive-visionfive-2-lite starfive/jh7110-starfive-visionfive-2-lite-emmc"
|
||||
CONFIG_MULTI_DTB_FIT=y
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_SPI_FLASH=y
|
||||
|
||||
@@ -17,6 +17,8 @@ CONFIG_SYS_CLK_FREQ=100000000
|
||||
CONFIG_BOOT_SCRIPT_OFFSET=0x0
|
||||
CONFIG_TARGET_XILINX_MBV=y
|
||||
# CONFIG_RISCV_ISA_F is not set
|
||||
# CONFIG_RISCV_ACLINT is not set
|
||||
# CONFIG_SPL_RISCV_ACLINT is not set
|
||||
# CONFIG_SPL_SMP is not set
|
||||
# CONFIG_AVAILABLE_HARTS is not set
|
||||
CONFIG_SPL_OPTIMIZE_INLINING=y
|
||||
|
||||
@@ -43,9 +43,9 @@ To run u-boot.bin on top of FSBL, follow these steps:
|
||||
FSBL, OpenSBI, and U-Boot.
|
||||
Note that you will have to use the file cv181x.bin as the FSBL.
|
||||
|
||||
2. Place the generated fip.bin file into the FAT partition of the SD card.
|
||||
4. Place the generated fip.bin file into the FAT partition of the SD card.
|
||||
|
||||
3. Insert the SD card into the board and power it on.
|
||||
5. Insert the SD card into the board and power it on.
|
||||
|
||||
The board will automatically execute the FSBL from the fip.bin file.
|
||||
Subsequently, it will transition to OpenSBI, and finally, OpenSBI will invoke
|
||||
|
||||
@@ -233,9 +233,9 @@ static int starfive_trng_of_to_plat(struct udevice *dev)
|
||||
{
|
||||
struct starfive_trng_plat *pdata = dev_get_plat(dev);
|
||||
|
||||
pdata->base = (void *)dev_read_addr(dev);
|
||||
pdata->base = dev_read_addr_ptr(dev);
|
||||
if (!pdata->base)
|
||||
return -ENODEV;
|
||||
return -EINVAL;
|
||||
|
||||
pdata->hclk = devm_clk_get(dev, "hclk");
|
||||
if (IS_ERR(pdata->hclk))
|
||||
|
||||
@@ -144,23 +144,16 @@ static int sifive_serial_probe(struct udevice *dev)
|
||||
|
||||
static int sifive_serial_getc(struct udevice *dev)
|
||||
{
|
||||
int c;
|
||||
struct sifive_uart_plat *plat = dev_get_plat(dev);
|
||||
struct uart_sifive *regs = plat->regs;
|
||||
|
||||
while ((c = _sifive_serial_getc(regs)) == -EAGAIN) ;
|
||||
|
||||
return c;
|
||||
return _sifive_serial_getc(plat->regs);
|
||||
}
|
||||
|
||||
static int sifive_serial_putc(struct udevice *dev, const char ch)
|
||||
{
|
||||
int rc;
|
||||
struct sifive_uart_plat *plat = dev_get_plat(dev);
|
||||
|
||||
while ((rc = _sifive_serial_putc(plat->regs, ch)) == -EAGAIN) ;
|
||||
|
||||
return rc;
|
||||
return _sifive_serial_putc(plat->regs, ch);
|
||||
}
|
||||
|
||||
static int sifive_serial_pending(struct udevice *dev, bool input)
|
||||
|
||||
Reference in New Issue
Block a user