All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308
@ 2019-11-26 13:15 Andy Yan
  2019-11-26 13:15 ` [U-Boot] [PATCH 2/4] rockchip: rk3308: enable spl-fifo-mode for emmc Andy Yan
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andy Yan @ 2019-11-26 13:15 UTC (permalink / raw)
  To: u-boot

After commit d8765e2422cd ("Enable building of u-boot.itb
on Rockchip platform"), u-boot.itb will automatically
generated by "make all" command, manually command
"make u-boot.itb" is no longer needed.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---

 doc/README.rockchip | 1 -
 1 file changed, 1 deletion(-)

diff --git a/doc/README.rockchip b/doc/README.rockchip
index 67c14006a3..dae4ebc8e4 100644
--- a/doc/README.rockchip
+++ b/doc/README.rockchip
@@ -108,7 +108,6 @@ For example:
      => export BL31=/path/to/rkbin/bin/rk33/rk3308_bl31_v2.22.elf
      => make roc-rk3308-cc_defconfig
      => make CROSS_COMPILE=aarch64-linux-gnu- all
-     => make CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb
      => ./tools/mkimage -n rk3308 -T rksd -d /path/to/rkbin/bin/rk33/rk3308_ddr_589MHz_uart2_m0_v1.26.bin idbloader.img
      => cat spl/u-boot-spl.bin  >> idbloader.img
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 2/4] rockchip: rk3308: enable spl-fifo-mode for emmc
  2019-11-26 13:15 [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308 Andy Yan
@ 2019-11-26 13:15 ` Andy Yan
  2019-12-01 13:59   ` Kever Yang
  2019-11-26 13:15 ` [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb Andy Yan
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Andy Yan @ 2019-11-26 13:15 UTC (permalink / raw)
  To: u-boot

We need load some parts of ATF to sram, but rockchip
dwmmc controllers can't do dma to non-ddr addresses
space, so set the mmc controller into fifo mode in spl.

And show my best respect to Heiko's work for this solution.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---

 arch/arm/dts/rk3308-u-boot.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/dts/rk3308-u-boot.dtsi b/arch/arm/dts/rk3308-u-boot.dtsi
index 1a68decef3..f5a595337e 100644
--- a/arch/arm/dts/rk3308-u-boot.dtsi
+++ b/arch/arm/dts/rk3308-u-boot.dtsi
@@ -12,6 +12,8 @@
 };
 
 &emmc {
+	/* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
+	u-boot,spl-fifo-mode;
 	u-boot,dm-pre-reloc;
 };
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb
  2019-11-26 13:15 [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308 Andy Yan
  2019-11-26 13:15 ` [U-Boot] [PATCH 2/4] rockchip: rk3308: enable spl-fifo-mode for emmc Andy Yan
@ 2019-11-26 13:15 ` Andy Yan
  2019-11-26 14:04   ` Philipp Tomsich
  2019-12-01 14:00   ` Kever Yang
  2019-11-26 13:15 ` [U-Boot] [PATCH 4/4] rockchip: evb-px5: disable NET Andy Yan
  2019-12-01 13:59 ` [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308 Kever Yang
  3 siblings, 2 replies; 9+ messages in thread
From: Andy Yan @ 2019-11-26 13:15 UTC (permalink / raw)
  To: u-boot

We need load some parts of ATF to sram, but rockchip
dwmmc controllers can't do dma to non-ddr addresses
space, so set the mmc controller into fifo mode in spl.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---

 arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi b/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
index 002767a033..936ce55727 100644
--- a/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
+++ b/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
@@ -58,6 +58,8 @@
 };
 
 &emmc {
+	/* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
+	u-boot,spl-fifo-mode;
 	u-boot,dm-pre-reloc;
 };
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 4/4] rockchip: evb-px5: disable NET
  2019-11-26 13:15 [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308 Andy Yan
  2019-11-26 13:15 ` [U-Boot] [PATCH 2/4] rockchip: rk3308: enable spl-fifo-mode for emmc Andy Yan
  2019-11-26 13:15 ` [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb Andy Yan
@ 2019-11-26 13:15 ` Andy Yan
  2019-12-01 14:00   ` Kever Yang
  2019-12-01 13:59 ` [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308 Kever Yang
  3 siblings, 1 reply; 9+ messages in thread
From: Andy Yan @ 2019-11-26 13:15 UTC (permalink / raw)
  To: u-boot

PX5 evb has no ETH port, so disable it.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
---

 configs/evb-px5_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configs/evb-px5_defconfig b/configs/evb-px5_defconfig
index f9b17be10e..2d18da6cc8 100644
--- a/configs/evb-px5_defconfig
+++ b/configs/evb-px5_defconfig
@@ -45,7 +45,7 @@ CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names interrupt-parent"
 CONFIG_TPL_OF_PLATDATA=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
-CONFIG_NET_RANDOM_ETHADDR=y
+# CONFIG_NET is not set
 CONFIG_TPL_DM=y
 CONFIG_REGMAP=y
 CONFIG_SPL_REGMAP=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb
  2019-11-26 13:15 ` [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb Andy Yan
@ 2019-11-26 14:04   ` Philipp Tomsich
  2019-12-01 14:00   ` Kever Yang
  1 sibling, 0 replies; 9+ messages in thread
From: Philipp Tomsich @ 2019-11-26 14:04 UTC (permalink / raw)
  To: u-boot


> On 26.11.2019, at 14:15, Andy Yan <andy.yan@rock-chips.com> wrote:
> 
> We need load some parts of ATF to sram, but rockchip
> dwmmc controllers can't do dma to non-ddr addresses
> space, so set the mmc controller into fifo mode in spl.
> 
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>

Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308
  2019-11-26 13:15 [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308 Andy Yan
                   ` (2 preceding siblings ...)
  2019-11-26 13:15 ` [U-Boot] [PATCH 4/4] rockchip: evb-px5: disable NET Andy Yan
@ 2019-12-01 13:59 ` Kever Yang
  3 siblings, 0 replies; 9+ messages in thread
From: Kever Yang @ 2019-12-01 13:59 UTC (permalink / raw)
  To: u-boot


On 2019/11/26 下午9:15, Andy Yan wrote:
> After commit d8765e2422cd ("Enable building of u-boot.itb
> on Rockchip platform"), u-boot.itb will automatically
> generated by "make all" command, manually command
> "make u-boot.itb" is no longer needed.
>
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>
>   doc/README.rockchip | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/doc/README.rockchip b/doc/README.rockchip
> index 67c14006a3..dae4ebc8e4 100644
> --- a/doc/README.rockchip
> +++ b/doc/README.rockchip
> @@ -108,7 +108,6 @@ For example:
>        => export BL31=/path/to/rkbin/bin/rk33/rk3308_bl31_v2.22.elf
>        => make roc-rk3308-cc_defconfig
>        => make CROSS_COMPILE=aarch64-linux-gnu- all
> -     => make CROSS_COMPILE=aarch64-linux-gnu- u-boot.itb
>        => ./tools/mkimage -n rk3308 -T rksd -d /path/to/rkbin/bin/rk33/rk3308_ddr_589MHz_uart2_m0_v1.26.bin idbloader.img
>        => cat spl/u-boot-spl.bin  >> idbloader.img
>   

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 2/4] rockchip: rk3308: enable spl-fifo-mode for emmc
  2019-11-26 13:15 ` [U-Boot] [PATCH 2/4] rockchip: rk3308: enable spl-fifo-mode for emmc Andy Yan
@ 2019-12-01 13:59   ` Kever Yang
  0 siblings, 0 replies; 9+ messages in thread
From: Kever Yang @ 2019-12-01 13:59 UTC (permalink / raw)
  To: u-boot


On 2019/11/26 下午9:15, Andy Yan wrote:
> We need load some parts of ATF to sram, but rockchip
> dwmmc controllers can't do dma to non-ddr addresses
> space, so set the mmc controller into fifo mode in spl.
>
> And show my best respect to Heiko's work for this solution.
>
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>
>   arch/arm/dts/rk3308-u-boot.dtsi | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/dts/rk3308-u-boot.dtsi b/arch/arm/dts/rk3308-u-boot.dtsi
> index 1a68decef3..f5a595337e 100644
> --- a/arch/arm/dts/rk3308-u-boot.dtsi
> +++ b/arch/arm/dts/rk3308-u-boot.dtsi
> @@ -12,6 +12,8 @@
>   };
>   
>   &emmc {
> +	/* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
> +	u-boot,spl-fifo-mode;
>   	u-boot,dm-pre-reloc;
>   };
>   

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb
  2019-11-26 13:15 ` [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb Andy Yan
  2019-11-26 14:04   ` Philipp Tomsich
@ 2019-12-01 14:00   ` Kever Yang
  1 sibling, 0 replies; 9+ messages in thread
From: Kever Yang @ 2019-12-01 14:00 UTC (permalink / raw)
  To: u-boot


On 2019/11/26 下午9:15, Andy Yan wrote:
> We need load some parts of ATF to sram, but rockchip
> dwmmc controllers can't do dma to non-ddr addresses
> space, so set the mmc controller into fifo mode in spl.
>
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>
>   arch/arm/dts/rk3368-px5-evb-u-boot.dtsi | 2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi b/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
> index 002767a033..936ce55727 100644
> --- a/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
> +++ b/arch/arm/dts/rk3368-px5-evb-u-boot.dtsi
> @@ -58,6 +58,8 @@
>   };
>   
>   &emmc {
> +	/* mmc to sram can't do dma, prevent aborts transferring TF-A parts */
> +	u-boot,spl-fifo-mode;
>   	u-boot,dm-pre-reloc;
>   };
>   

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot] [PATCH 4/4] rockchip: evb-px5: disable NET
  2019-11-26 13:15 ` [U-Boot] [PATCH 4/4] rockchip: evb-px5: disable NET Andy Yan
@ 2019-12-01 14:00   ` Kever Yang
  0 siblings, 0 replies; 9+ messages in thread
From: Kever Yang @ 2019-12-01 14:00 UTC (permalink / raw)
  To: u-boot


On 2019/11/26 下午9:15, Andy Yan wrote:
> PX5 evb has no ETH port, so disable it.
>
> Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>
>   configs/evb-px5_defconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configs/evb-px5_defconfig b/configs/evb-px5_defconfig
> index f9b17be10e..2d18da6cc8 100644
> --- a/configs/evb-px5_defconfig
> +++ b/configs/evb-px5_defconfig
> @@ -45,7 +45,7 @@ CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names interrupt-parent"
>   CONFIG_TPL_OF_PLATDATA=y
>   CONFIG_ENV_IS_IN_MMC=y
>   CONFIG_SYS_RELOC_GD_ENV_ADDR=y
> -CONFIG_NET_RANDOM_ETHADDR=y
> +# CONFIG_NET is not set
>   CONFIG_TPL_DM=y
>   CONFIG_REGMAP=y
>   CONFIG_SPL_REGMAP=y

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-12-01 14:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-26 13:15 [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308 Andy Yan
2019-11-26 13:15 ` [U-Boot] [PATCH 2/4] rockchip: rk3308: enable spl-fifo-mode for emmc Andy Yan
2019-12-01 13:59   ` Kever Yang
2019-11-26 13:15 ` [U-Boot] [PATCH 3/4] rockchip: px5: enable spl-fifo-mode for emmc for px5-evb Andy Yan
2019-11-26 14:04   ` Philipp Tomsich
2019-12-01 14:00   ` Kever Yang
2019-11-26 13:15 ` [U-Boot] [PATCH 4/4] rockchip: evb-px5: disable NET Andy Yan
2019-12-01 14:00   ` Kever Yang
2019-12-01 13:59 ` [U-Boot] [PATCH 1/4] doc: rockchip: Update build instruction for rk3308 Kever Yang

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.