forked from OERV-BSP/u-boot
This was only used on RK3288 Chromebooks and the EVB. If it follows the same pattern as for RK3399 Chromebooks where their maintainer (Simon) agreed[1] to removal of u-boot.rom on the basis that the generic u-boot-rockchip-spi.bin is now enough, let's do the same for RK3288 and remove the last Rockchip users of u-boot.rom (and HAS_ROM symbol). At the same time, remove HAS_ROM symbol from the RK3288 Chromebooks and EVB configs since they were used only for that. SYS_SPI_U_BOOT_OFFS offset in rockchip-u-boot.dtsi for the u-boot-img node of simple-bin-spi binman image matches the one used in u-boot.rom except for the EVB. The EVB doesn't have ROCKCHIP_SPI_IMAGE symbol enabled, so HAS_ROM had no effect anyway. Even if it had, this would not have been enough considering that SPL_SPI_LOAD symbol is not set, so U-Boot proper could not be loaded from SPI even if SPL/TPL does. Make sure u-boot-rockchip-spi.bin has the same size of u-boot.rom for Chromebooks as that seems to be important. [1] https://lore.kernel.org/u-boot/CAFLszTh-SewFod8dEOF3+e-wCE1qFF0CyxxR8CbQwy3BRW3k6w@mail.gmail.com/ Reviewed-by: Jonas Karlman <jonas@kwiboo.se> Reviewed-by: Kever Yang <kever.yang@rock-chips.com> Tested-by: Simon Glass <sjg@chromium.org> # chromebook-kevin Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
108 lines
1.6 KiB
Plaintext
108 lines
1.6 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0+
|
|
/*
|
|
* Copyright (C) 2019 Rockchip Electronics Co., Ltd
|
|
*/
|
|
|
|
#include "rockchip-u-boot.dtsi"
|
|
|
|
/ {
|
|
aliases {
|
|
mmc0 = &emmc;
|
|
mmc1 = &sdmmc;
|
|
mmc2 = &sdio0;
|
|
mmc3 = &sdio1;
|
|
};
|
|
|
|
chosen {
|
|
u-boot,spl-boot-order = \
|
|
"same-as-spl", &emmc, &sdmmc;
|
|
};
|
|
|
|
dmc: dmc@ff610000 {
|
|
compatible = "rockchip,rk3288-dmc", "syscon";
|
|
reg = <0x0 0xff610000 0x0 0x3fc
|
|
0x0 0xff620000 0x0 0x294
|
|
0x0 0xff630000 0x0 0x3fc
|
|
0x0 0xff640000 0x0 0x294>;
|
|
clocks = <&cru PCLK_DDRUPCTL0>, <&cru PCLK_PUBL0>,
|
|
<&cru PCLK_DDRUPCTL1>, <&cru PCLK_PUBL1>,
|
|
<&cru ARMCLK>;
|
|
clock-names = "pclk_ddrupctl0", "pclk_publ0",
|
|
"pclk_ddrupctl1", "pclk_publ1",
|
|
"arm_clk";
|
|
rockchip,cru = <&cru>;
|
|
rockchip,grf = <&grf>;
|
|
rockchip,noc = <&noc>;
|
|
rockchip,pmu = <&pmu>;
|
|
rockchip,sgrf = <&sgrf>;
|
|
rockchip,sram = <&ddr_sram>;
|
|
bootph-all;
|
|
};
|
|
|
|
noc: syscon@ffac0000 {
|
|
compatible = "rockchip,rk3288-noc", "syscon";
|
|
reg = <0x0 0xffac0000 0x0 0x2000>;
|
|
bootph-all;
|
|
};
|
|
};
|
|
|
|
&bus_intmem {
|
|
ddr_sram: ddr-sram@1000 {
|
|
compatible = "rockchip,rk3288-ddr-sram";
|
|
reg = <0x1000 0x4000>;
|
|
};
|
|
};
|
|
|
|
&cru {
|
|
bootph-all;
|
|
};
|
|
|
|
&edp {
|
|
clocks = <&cru SCLK_EDP>, <&cru SCLK_EDP_24M>, <&cru PCLK_EDP_CTRL>;
|
|
clock-names = "clk_edp", "clk_edp_24m", "pclk_edp";
|
|
};
|
|
|
|
&gpio7 {
|
|
bootph-all;
|
|
};
|
|
|
|
&grf {
|
|
bootph-all;
|
|
};
|
|
|
|
&pmu {
|
|
bootph-all;
|
|
};
|
|
|
|
&sgrf {
|
|
bootph-all;
|
|
};
|
|
|
|
&uart0 {
|
|
clock-frequency = <24000000>;
|
|
};
|
|
|
|
&uart1 {
|
|
clock-frequency = <24000000>;
|
|
};
|
|
|
|
&uart2 {
|
|
clock-frequency = <24000000>;
|
|
};
|
|
|
|
&uart3 {
|
|
clock-frequency = <24000000>;
|
|
};
|
|
|
|
&vopb {
|
|
bootph-some-ram;
|
|
};
|
|
|
|
&vopl {
|
|
bootph-some-ram;
|
|
};
|
|
|
|
&xin24m {
|
|
bootph-all;
|
|
};
|