All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johan Jonker <jbx6244@gmail.com>
To: kever.yang@rock-chips.com
Cc: sjg@chromium.org, philipp.tomsich@vrull.eu, trini@konsulko.com,
	hl@rock-chips.com, jernej.skrabec@gmail.com, w.egorov@phytec.de,
	jagan@amarulasolutions.com, heiko@sntech.de, jonas@kwiboo.se,
	michael@amarulasolutions.com, marex@denx.de,
	u-boot@lists.denx.de, upstream@lists.phytec.de
Subject: [PATCH v5 01/10] rockchip: configs: compile rk3066 SPL with SPL_OF_REAL
Date: Mon, 15 Jun 2026 23:06:56 +0200	[thread overview]
Message-ID: <53da4adc-c397-47e2-b65a-fd5325826d7e@gmail.com> (raw)
In-Reply-To: <9e688aba-c88f-404a-adc7-cf9472699d66@gmail.com>

Unlike later Rockchip models the rk3066 SOC has no build-in support
for SD/MMC cards in the boot phase. The current workaround in SPL
probes the rockchip_dwmmc driver with OF_PLATDATA. For a simple board
as MK808 with MMC that just works fine, but for more complex boot options
not all required drivers come with OF_PLATDATA support, so compile
rk3066 SPL with SPL_OF_REAL. Update mk808_defconfig.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
---

Changed V5:
rebase
---
 configs/mk808_defconfig | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/configs/mk808_defconfig b/configs/mk808_defconfig
index ea257495db73..31b18c529134 100644
--- a/configs/mk808_defconfig
+++ b/configs/mk808_defconfig
@@ -16,16 +16,17 @@ CONFIG_SF_DEFAULT_SPEED=20000000
 CONFIG_ENV_SIZE=0x8000
 CONFIG_DEFAULT_DEVICE_TREE="rockchip/rk3066a-mk808"
 CONFIG_DM_RESET=y
+CONFIG_SPL_SYS_MALLOC_F_LEN=0x8000
 CONFIG_ROCKCHIP_RK3066=y
 # CONFIG_ROCKCHIP_STIMER is not set
 CONFIG_TPL_TEXT_BASE=0x10080c00
 CONFIG_TPL_STACK=0x1008FFFF
+CONFIG_TPL_SYS_MALLOC_F_LEN=0x0800
 CONFIG_TARGET_MK808=y
 CONFIG_SPL_STACK_R_ADDR=0x70000000
-CONFIG_SPL_STACK=0x1008ffff
 CONFIG_SPL_TEXT_BASE=0x60000000
 CONFIG_SPL_STACK_R=y
-CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
+CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x300000
 CONFIG_SYS_LOAD_ADDR=0x70800800
 CONFIG_DEBUG_UART_BASE=0x20064000
 CONFIG_DEBUG_UART_CLOCK=24000000
@@ -43,9 +44,6 @@ CONFIG_DISPLAY_BOARDINFO_LATE=y
 CONFIG_BOARD_LATE_INIT=y
 CONFIG_SPL_MAX_SIZE=0x32000
 CONFIG_SPL_NO_BSS_LIMIT=y
-# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
-CONFIG_SPL_HAVE_INIT_STACK=y
-CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_FS_EXT4=y
 CONFIG_SYS_MMCSD_FS_BOOT_PARTITION=2
 CONFIG_TPL_HAVE_INIT_STACK=y
@@ -65,7 +63,6 @@ CONFIG_SPL_OF_CONTROL=y
 CONFIG_TPL_OF_CONTROL=y
 CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents"
 CONFIG_OF_DTB_PROPS_REMOVE=y
-CONFIG_SPL_OF_PLATDATA=y
 CONFIG_TPL_OF_PLATDATA=y
 CONFIG_ENV_RELOC_GD_ENV_ADDR=y
 CONFIG_NO_NET=y
--
2.39.5


  reply	other threads:[~2026-06-15 21:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-15 21:05 [PATCH v5 00/10] Add Rockchip USBPHY DM driver Johan Jonker
2026-06-15 21:06 ` Johan Jonker [this message]
2026-06-15 21:07 ` [PATCH v5 02/10] usb: Kconfig: add SPL_USB_DWC2 Johan Jonker
2026-06-15 21:07 ` [PATCH v5 03/10] phy: rockchip: sort Makefile and Kconfig Johan Jonker
2026-06-15 21:07 ` [PATCH v5 04/10] rockchip: bind grf syscon usbphy subnode Johan Jonker
2026-06-15 21:07 ` [PATCH v5 05/10] phy: rockchip: add phy-rockchip-usb2.c Johan Jonker
2026-06-15 21:08 ` [PATCH v5 06/10] rockchip: configs: use phy-rockchip-usb2 DM driver Johan Jonker
2026-06-15 21:08 ` [PATCH v5 07/10] usb: phy: remove rockchip_usb2_phy.c Johan Jonker
2026-06-15 21:08 ` [PATCH v5 08/10] rockchip: spl-boot-order: add usb boot option Johan Jonker
2026-06-15 21:08 ` [PATCH v5 09/10] arm: dts: rockchip: add USB required properties in SPL for mk808 Johan Jonker
2026-06-15 21:09 ` [PATCH v5 10/10] rockchip: configs: enable USB " Johan Jonker

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=53da4adc-c397-47e2-b65a-fd5325826d7e@gmail.com \
    --to=jbx6244@gmail.com \
    --cc=heiko@sntech.de \
    --cc=hl@rock-chips.com \
    --cc=jagan@amarulasolutions.com \
    --cc=jernej.skrabec@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=marex@denx.de \
    --cc=michael@amarulasolutions.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=upstream@lists.phytec.de \
    --cc=w.egorov@phytec.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.