mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-17 18:28:55 +00:00
6a863894ad
Configure SPI flash devices into SPL. Add SPI boot option to spl.c. Document how to format flash for booting. Signed-off-by: Thomas Skibo <thomas-git@skibo.net> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
52 lines
584 B
Text
52 lines
584 B
Text
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
/*
|
|
* Copyright (C) 2020-2021 SiFive, Inc
|
|
*/
|
|
|
|
#include "binman.dtsi"
|
|
#include "fu740-c000-u-boot.dtsi"
|
|
#include "fu740-hifive-unmatched-a00-ddr.dtsi"
|
|
|
|
/ {
|
|
aliases {
|
|
spi0 = &spi0;
|
|
};
|
|
|
|
memory@80000000 {
|
|
u-boot,dm-spl;
|
|
};
|
|
|
|
config {
|
|
u-boot,spl-payload-offset = <0x105000>; /* loader2 @1044KB */
|
|
};
|
|
|
|
hfclk {
|
|
u-boot,dm-spl;
|
|
};
|
|
|
|
rtcclk {
|
|
u-boot,dm-spl;
|
|
};
|
|
|
|
};
|
|
|
|
&clint {
|
|
clocks = <&rtcclk>;
|
|
};
|
|
|
|
&qspi0 {
|
|
u-boot,dm-spl;
|
|
flash@0 {
|
|
u-boot,dm-spl;
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
mmc@0 {
|
|
u-boot,dm-spl;
|
|
};
|
|
};
|
|
|
|
&gpio {
|
|
u-boot,dm-spl;
|
|
};
|