mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
rockchip: Enable building a SPI ROM image on bob
Add a simple binman config and enable CONFIG_HAS_ROM so that U-Boot produces a ROM for bob. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
9b312e26fc
commit
c4cea2bbf9
4 changed files with 34 additions and 1 deletions
|
@ -4,3 +4,7 @@
|
|||
*/
|
||||
|
||||
#include "rk3399-u-boot.dtsi"
|
||||
|
||||
&spi_flash {
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
|
|
@ -537,7 +537,7 @@ ap_i2c_audio: &i2c8 {
|
|||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-1 = <&spi1_sleep>;
|
||||
|
||||
spiflash@0 {
|
||||
spi_flash: spiflash@0 {
|
||||
compatible = "jedec,spi-nor";
|
||||
reg = <0>;
|
||||
|
||||
|
|
|
@ -4,11 +4,14 @@
|
|||
*/
|
||||
#define USB_CLASS_HUB 9
|
||||
|
||||
#include "rockchip-u-boot.dtsi"
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
mmc0 = &sdhci;
|
||||
mmc1 = &sdmmc;
|
||||
pci0 = &pcie0;
|
||||
spi1 = &spi1;
|
||||
};
|
||||
|
||||
cic: syscon@ff620000 {
|
||||
|
@ -57,6 +60,30 @@
|
|||
|
||||
};
|
||||
|
||||
#ifdef CONFIG_ROCKCHIP_SPI_IMAGE
|
||||
&binman {
|
||||
rom {
|
||||
filename = "u-boot.rom";
|
||||
size = <0x400000>;
|
||||
pad-byte = <0xff>;
|
||||
|
||||
mkimage {
|
||||
args = "-n rk3399 -T rkspi";
|
||||
u-boot-spl {
|
||||
};
|
||||
};
|
||||
u-boot-img {
|
||||
offset = <0x40000>;
|
||||
};
|
||||
u-boot {
|
||||
offset = <0x300000>;
|
||||
};
|
||||
fdtmap {
|
||||
};
|
||||
};
|
||||
};
|
||||
#endif
|
||||
|
||||
&cru {
|
||||
u-boot,dm-pre-reloc;
|
||||
};
|
||||
|
|
|
@ -5,6 +5,8 @@ choice
|
|||
|
||||
config TARGET_CHROMEBOOK_BOB
|
||||
bool "Asus Flip C101PA Chromebook (RK3399)"
|
||||
select HAS_ROM
|
||||
select ROCKCHIP_SPI_IMAGE
|
||||
help
|
||||
Bob is a small RK3299-based device similar in apperance to Minnie.
|
||||
It has two USB 3.0 type-C ports, 4GB of SDRAM, WiFi and a 10.1",
|
||||
|
|
Loading…
Reference in a new issue