[U-Boot] [PATCH 2/8] rockchip: px5 update dts for spl/tpl

Andy Yan andyshrk at gmail.com
Mon Apr 29 09:24:57 UTC 2019


Kever Yang <kever.yang at rock-chips.com> 于2019年3月29日周五 下午10:52写道:

> TPL need dmc to init ddr sdram, and emmc, boot-order.
>
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
>
>  arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 29 +++++++++++++++++++++++++
>  1 file changed, 29 insertions(+)
>
>
Tested-by: Andy Yan <andy.yan at rock-chips.com>


> diff --git a/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
> b/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
> index 7495781454..18b841864c 100644
> --- a/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
> +++ b/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
> @@ -2,6 +2,27 @@
>  /*
>   * (C) Copyright 2017 Theobroma Systems Design und Consulting GmbH
>   */
> +/ {
> +       chosen {
> +               u-boot,spl-boot-order = &emmc;
> +       };
> +};
> +
> +&dmc {
> +       u-boot,dm-pre-reloc;
> +
> +       /*
> +        * PX5-evb(2GB) need to use CBRD mode, or else the dram is not
> correct
> +        * See doc/device-tree-bindings/clock/rockchip,rk3368-dmc.txt for
> +        * details on the 'rockchip,memory-schedule' property and how it
> +        * affects the physical-address to device-address mapping.
> +        */
> +       rockchip,memory-schedule = <DMC_MSCH_CBRD>;
> +       rockchip,ddr-frequency = <800000000>;
> +       rockchip,ddr-speed-bin = <DDR3_1600K>;
> +
> +       status = "okay";
> +};
>
>  &pinctrl {
>         u-boot,dm-pre-reloc;
> @@ -20,6 +41,10 @@
>         u-boot,dm-pre-reloc;
>  };
>
> +&sgrf {
> +       u-boot,dm-pre-reloc;
> +};
> +
>  &cru {
>         u-boot,dm-pre-reloc;
>  };
> @@ -31,3 +56,7 @@
>  &uart4 {
>         u-boot,dm-pre-reloc;
>  };
> +
> +&emmc {
> +       u-boot,dm-pre-reloc;
> +};
> --
> 2.20.1
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> https://lists.denx.de/listinfo/u-boot
>


More information about the U-Boot mailing list