public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Heiko Stübner" <heiko@sntech.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 13/19] ARM: dts: rockchip: prefer u-boot, dm-pre-reloc rather than u-boot, dm-spl
Date: Wed, 06 Sep 2017 15:49:04 +0200	[thread overview]
Message-ID: <21195136.7pJJdiEdTk@diego> (raw)
In-Reply-To: <0bc3385e4d2c25ec42545918d4cc027aa96441bd.1502483336.git.paweljarosz3691@gmail.com>

Hi Pawel,

Am Freitag, 11. August 2017, 22:57:29 CEST schrieb Paweł Jarosz:
> rk3xxx.dtsi is used by rk3188 and rk3066. rk3188 uses alocated data in spl
> but rk3066 needs it in tpl.
> 
> Signed-off-by: Paweł Jarosz <paweljarosz3691@gmail.com>
> ---
> Changes since v1:
> - none
> 
>  arch/arm/dts/rk3xxx.dtsi | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/arch/arm/dts/rk3xxx.dtsi b/arch/arm/dts/rk3xxx.dtsi
> index 6d9e36d..d1c205b 100644
> --- a/arch/arm/dts/rk3xxx.dtsi
> +++ b/arch/arm/dts/rk3xxx.dtsi
> @@ -135,7 +135,7 @@
>  	};
> 
>  	noc: syscon at 10128000 {
> -		u-boot,dm-spl;
> +		u-boot,dm-pre-reloc;

That probably won't work on rk3188. I haven't looked to closely
on the rk3188 support for a while, but there we used the TPL for
the single jump back to the bootloader after reading the 1KB
of initial code.

So with the code as is, this would make the rk3188 TPL most likely to big.

As both the rk3066 and rk3188 are very similar, I'd guess the best
option would be to just adapt the rk3188 to you newer rk3066
approach, so that they don't diverge to much. Especially as the
rk3188 has the same nand controller and people may want to
boot of on-chip nand on the rk3188 in the future as well.


Heiko

>  		compatible = "rockchip,rk3188-noc", "syscon";
>  		reg = <0x10128000 0x2000>;
>  	};
> @@ -218,13 +218,13 @@
>  	pmu: pmu at 20004000 {
>  		compatible = "rockchip,rk3066-pmu", "syscon";
>  		reg = <0x20004000 0x100>;
> -		u-boot,dm-spl;
> +		u-boot,dm-pre-reloc;
>  	};
> 
>  	grf: grf at 20008000 {
>  		compatible = "syscon";
>  		reg = <0x20008000 0x200>;
> -		u-boot,dm-spl;
> +		u-boot,dm-pre-reloc;
>  	};
> 
>  	dmc: dmc at 20020000 {
> @@ -238,7 +238,7 @@
>  		       0x20040000 0x294>;
>  		clocks = <&cru PCLK_DDRUPCTL>, <&cru PCLK_PUBL>;
>  		clock-names = "pclk_ddrupctl", "pclk_publ";
> -		u-boot,dm-spl;
> +		u-boot,dm-pre-reloc;
>  	};
> 
>  	i2c0: i2c at 2002d000 {

  reply	other threads:[~2017-09-06 13:49 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-11 20:53 [U-Boot] [PATCH v2 00/19] add support for rk3066 platform Paweł Jarosz
2017-08-11 20:53 ` [U-Boot] [PATCH v2 01/19] rockchip: rk3066: add grf header file Paweł Jarosz
2017-08-11 20:53 ` [U-Boot] [PATCH v2 02/19] rockchip: rk3066: add rk3066 pinctrl driver Paweł Jarosz
2017-08-11 20:54 ` [U-Boot] [PATCH v2 03/19] rockchip: rk3066: add sysreset driver Paweł Jarosz
2017-08-11 20:54 ` [U-Boot] [PATCH v2 04/19] rockchip: rk3066: add clock driver for rk3066 soc Paweł Jarosz
2017-08-11 20:54 ` [U-Boot] [PATCH v2 05/19] rockchip: rk3066: add rk3066 platform devicetree file Paweł Jarosz
2017-08-11 20:55 ` [U-Boot] [PATCH v2 06/19] rockchip: rk3066: add core support Paweł Jarosz
2017-08-11 20:55 ` [U-Boot] [PATCH v2 07/19] rockchip: rk3066: add mk808 board files Paweł Jarosz
2017-08-11 20:55 ` [U-Boot] [PATCH v2 08/19] rockchip: rk3066: add sdram driver Paweł Jarosz
2017-08-11 20:56 ` [U-Boot] [PATCH v2 09/19] mtd: nand: add support for the Sandisk SDTNQGAMA chip Paweł Jarosz
2017-08-11 20:56 ` [U-Boot] [PATCH v2 10/19] mtd: nand: add the rockchip nand controller driver Paweł Jarosz
2017-08-11 20:56 ` [U-Boot] [PATCH v2 11/19] rockchip: mkimage: add support for rockchip nand boot image Paweł Jarosz
2017-08-26 13:37   ` Simon Glass
2017-08-11 20:57 ` [U-Boot] [PATCH v2 12/19] rockchip: board: rk3066: convert board_usb_init to live tree functions Paweł Jarosz
2017-08-11 20:57 ` [U-Boot] [PATCH v2 13/19] ARM: dts: rockchip: prefer u-boot, dm-pre-reloc rather than u-boot, dm-spl Paweł Jarosz
2017-09-06 13:49   ` Heiko Stübner [this message]
2017-08-11 20:57 ` [U-Boot] [PATCH v2 14/19] mmc: dw_mmc: support transfer mode autodetection Paweł Jarosz
2017-08-11 20:58 ` [U-Boot] [PATCH v2 15/19] mmc: dw_mmc: rockchip: add support for rk3066 sdmmc Paweł Jarosz
2017-08-11 20:58 ` [U-Boot] [PATCH v2 16/19] armv7: support rk3066 early back to bootrom in vector.S Paweł Jarosz
2017-08-11 20:58 ` [U-Boot] [PATCH v2 17/19] rockchip: sysreset: deduplicate rk3066 and rk3188 sysreset drivers Paweł Jarosz
2017-08-11 20:59 ` [U-Boot] [PATCH v2 18/19] dfu: fix spl build Paweł Jarosz
2017-08-11 20:59 ` [U-Boot] [PATCH v2 19/19] mtd: nand: spl: allow build nand_bbt, nand_ids and nand_util Paweł Jarosz
2017-08-16 14:28 ` [U-Boot] [PATCH v2 00/19] add support for rk3066 platform Dr. Philipp Tomsich
2017-08-16 15:48   ` Paweł Jarosz
2017-08-16 15:52     ` Dr. Philipp Tomsich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=21195136.7pJJdiEdTk@diego \
    --to=heiko@sntech.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox