All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 22/36] rockchip: dts: rk3288: update spl-boot-order
Date: Wed, 28 Mar 2018 11:13:41 +0800	[thread overview]
Message-ID: <57683b94-1bb9-86b7-9da6-f70c582163db@rock-chips.com> (raw)
In-Reply-To: <CALeDE9OsdvQFwX=aLA-kRoH2a4yJwQKDzzfZOT6aC8fT0D-ygg@mail.gmail.com>

Hi Peter,


On 03/27/2018 07:55 PM, Peter Robinson wrote:
> On Tue, Mar 27, 2018 at 10:29 AM, Kever Yang <kever.yang@rock-chips.com> wrote:
>> Use "uboot,spl-boot-orde" instead of "uboot,boot0".
> I think these should be in *-u-boot.dtsi files, 

Yes, you are right about this, and move all this u-boot configs into
*-u-boot.dtsi files is also one of my TODO clean up jobs.

I didn't do this now because of the frame work do not fit what we
already have now.

@Simon, @Philipp,
Here is what I want to do:
- I think in most case, all the boards with same SoC shares the U-Boot
configs,
  eg. it's better to have one rk3288-u-boot.dtsi instead of 12
rk3288-xxboard-u-boot.dtsi
- The build system supports to automatic add x-u-boot.dtsi(feature add
by Simon),
    the x could be:
   <dts>-u-boot.dtsi where <dts> is the base name of the .dts
file             
  
<CONFIG_SYS_SOC>-u-boot.dtsi                                                

  
<CONFIG_SYS_CPU>-u-boot.dtsi                                                   

  
<CONFIG_SYS_VENDOR>-u-boot.dtsi                                                

So use CONFIG_SYS_SOC-u-boot.dtsi should be the best choice.
- But we can't use it because the value is always "rockchip"
- we can not change this into a real soc name because:
   There is a symbolic link "arch/${ARCH}/include/asm/arch" for header
file pointing to
   the SoC/CPU specific header directory; and all rockchip headers are
locate at
    arch/arm/include/asm/arch-rockchip/, including many common header
files and
    soc specific files.
- Are we going to add arch-rk3xxx folder for each soc like arch-mxx and
arch-tegraxxx,
  and copy the common header files into each soc directory? Is there
other solution?

Thanks,
- Kever
> that enables easy sync
> between the linux kernel dts files and u-boot like done on a number of
> other configs, a couple of the rk3368 devices seem to already use this
> as does devices like AllWinner
>
>> Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
>> ---
>>
>>  arch/arm/dts/rk3288-phycore-rdk.dts | 6 +-----
>>  arch/arm/dts/rk3288-veyron.dtsi     | 6 +-----
>>  2 files changed, 2 insertions(+), 10 deletions(-)
>>
>> diff --git a/arch/arm/dts/rk3288-phycore-rdk.dts b/arch/arm/dts/rk3288-phycore-rdk.dts
>> index f2bb7b5..3bf8efb 100644
>> --- a/arch/arm/dts/rk3288-phycore-rdk.dts
>> +++ b/arch/arm/dts/rk3288-phycore-rdk.dts
>> @@ -53,11 +53,7 @@
>>
>>         chosen {
>>                 stdout-path = &uart2;
>> -       };
>> -
>> -       config {
>> -               u-boot,dm-pre-reloc;
>> -               u-boot,boot0 = &emmc;
>> +               u-boot,spl-boot-order = &emmc;
>>         };
>>
>>         user_buttons: user-buttons {
>> diff --git a/arch/arm/dts/rk3288-veyron.dtsi b/arch/arm/dts/rk3288-veyron.dtsi
>> index a314058..77b9bf8 100644
>> --- a/arch/arm/dts/rk3288-veyron.dtsi
>> +++ b/arch/arm/dts/rk3288-veyron.dtsi
>> @@ -17,11 +17,7 @@
>>
>>         chosen {
>>                 stdout-path = &uart2;
>> -       };
>> -
>> -       config {
>> -               u-boot,dm-pre-reloc;
>> -               u-boot,boot0 = &spi_flash;
>> +               u-boot,spl-boot-order = &spi_flash;
>>         };
>>
>>         firmware {
>> --
>> 1.9.1
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> https://lists.denx.de/listinfo/u-boot

  reply	other threads:[~2018-03-28  3:13 UTC|newest]

Thread overview: 138+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-27  9:28 [U-Boot] [PATCH 00/36] rockchip: clean up board file for rockchip SoCs Kever Yang
2018-03-27  9:28 ` [U-Boot] [PATCH 01/36] rockchip: rk3288: move configure_l2ctlr back to rk3288 Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 20:47   ` Philipp Tomsich
2018-04-02  1:27     ` Kever Yang
2018-03-27  9:28 ` [U-Boot] [PATCH 02/36] rockchip: add common MACRO to enable sys arch timer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 20:51   ` Philipp Tomsich
2018-04-02  1:41     ` Kever Yang
2018-03-27  9:28 ` [U-Boot] [PATCH 03/36] rockchip: enable SYS_NS16550 for all SoCs by default Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 20:53   ` Philipp Tomsich
2018-03-27  9:28 ` [U-Boot] [PATCH 04/36] rockchip: defconfig: remove CONFIG_SYS_NS16550 Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 20:55   ` Philipp Tomsich
2018-03-27  9:28 ` [U-Boot] [PATCH 05/36] rockchip: add STIMER_BASE for all SoCs Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot,05/36] " Philipp Tomsich
2018-04-01 20:58   ` Philipp Tomsich
2018-04-02  1:53     ` Kever Yang
2019-03-28  8:21   ` [U-Boot] [PATCH 05/36] " Kever Yang
2019-03-29  1:02   ` [U-Boot] [RFC] simple address definition method for early TPL/SPL Kever Yang
2019-03-29 14:52     ` Kever Yang
2018-03-27  9:29 ` [U-Boot] [PATCH 06/36] rockchip: add IRAM_START_ADDR for all SoCs Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:00   ` Philipp Tomsich
2018-04-02  1:55     ` Kever Yang
2018-03-27  9:29 ` [U-Boot] [PATCH 07/36] rockchip: rk3328: add BOOT_MODE_REG for rk3328 Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:01   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 08/36] rockchip: rk322x: remove use rockchip timer as sys timer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:03   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 09/36] rockchip: rk322x: sdram: use common udelay instead of rockchip_udelay Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 20:40   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 10/36] rockchip: rk322x: prepare to use common board file Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:06   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 11/36] rockchip: defconfig enable sysreset for rk3229 spl Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 20:40   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 12/36] rockchip: rk3036: sdram: use udelay instead of rockchip_udelay Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:44   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 13/36] rockchip: rk3036: remove sys timer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot,13/36] " Philipp Tomsich
2018-04-01 20:40   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 14/36] rockchip: rk3036: prepare to use commong board file Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:44   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 15/36] rockchip: declare sdram_init() in common header Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:45   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 16/36] rockchip: sdram-common: add api to pass dram info to trust os Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:43   ` Philipp Tomsich
2018-04-02  2:29     ` Kever Yang
2018-03-27  9:29 ` [U-Boot] [PATCH 17/36] rockchip: sdram_common: add common dram_init_banksize Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:50   ` Philipp Tomsich
2018-04-02  2:40     ` Kever Yang
2018-03-27  9:29 ` [U-Boot] [PATCH 18/36] rockchip: rk3188: remove rockchip timer as sys timer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-02  9:38     ` Artturi Alm
2018-04-02  9:51       ` Dr. Philipp Tomsich
2018-04-05 13:16         ` Heiko Stuebner
2018-04-01 21:50   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 19/36] rockchip: rk3188: prepare to use common board file Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 20/36] rockchip: rk3128: remove rockchip timer as systimer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 21/36] rockchip: rk3128: prepare use common board file Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:51   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 22/36] rockchip: dts: rk3288: update spl-boot-order Kever Yang
2018-03-27 11:55   ` Peter Robinson
2018-03-28  3:13     ` Kever Yang [this message]
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 20:40   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 23/36] rockchip: rk3288: remove rockchip timer for sys timer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 24/36] armv8: add timer_get_boot_us() for generic timer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:53   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 25/36] rockchip: rk3288: prepare to use common board file Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 26/36] rockchip: rk1108: remove rockchip timer for sys timer Kever Yang
2018-03-27 11:33   ` Andy Yan
2018-03-27 15:57   ` Dr. Philipp Tomsich
2018-03-27 16:07   ` Alexander Kochetkov
2018-03-27 16:21     ` Alexander Kochetkov
2018-03-28  2:33       ` Kever Yang
2018-03-30 17:13         ` Alexander Kochetkov
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 27/36] rockchip: rv1108: prepare to use common board file Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 28/36] rockchip: rk3328: " Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 29/36] rockchip: rk3368: " Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:37   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 30/36] rockchip: lion-rk3368: remove rockchip timer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:34   ` Philipp Tomsich
2018-04-02  3:19     ` Kever Yang
2018-03-27  9:29 ` [U-Boot] [PATCH 31/36] rockchip: rk3399: prepare to use common board file Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:59   ` Philipp Tomsich
2018-04-02  3:22     ` Kever Yang
2018-03-27  9:29 ` [U-Boot] [PATCH 32/36] rockchip: remove rk_timer Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot,32/36] " Philipp Tomsich
2018-04-01 20:40   ` Philipp Tomsich
2019-03-29  8:35   ` [U-Boot] [PATCH 32/36] " Alexander Kochetkov
2019-03-29 11:13     ` Kever Yang
2018-03-27  9:29 ` [U-Boot] [PATCH 33/36] rockchip: dts: rk3399-firefly: enable uart2 in spl Kever Yang
2018-03-27 11:49   ` Peter Robinson
2018-03-28  2:28     ` Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:38   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 34/36] rockchip: spl-boot-order: do not enable with OF_PLATDATA Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 20:40   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 35/36] rockchip: declear boot_devices in bootrom.h Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:09   ` Philipp Tomsich
2018-03-27  9:29 ` [U-Boot] [PATCH 36/36] rockchip: add common board file for rockchip platform Kever Yang
2018-04-01 20:21   ` [U-Boot] [U-Boot, " Philipp Tomsich
2018-04-01 21:28   ` Philipp Tomsich
2018-04-08  1:45     ` Kever Yang
2018-04-08 22:35       ` Tom Rini
2018-04-09  7:49         ` Dr. Philipp Tomsich
2018-04-10  6:54         ` Kever Yang
2018-04-10 12:32           ` Tom Rini
2018-04-10 12:38             ` Dr. Philipp Tomsich
2018-04-09  7:57       ` Dr. Philipp Tomsich
2018-04-13  7:51       ` Kever Yang
2018-04-13 13:11         ` Tom Rini
2018-04-13 13:32         ` 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=57683b94-1bb9-86b7-9da6-f70c582163db@rock-chips.com \
    --to=kever.yang@rock-chips.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.