From: Lukasz Majewski <lukma@denx.de>
To: Simon Glass <sjg@chromium.org>
Cc: <u-boot@lists.denx.de>, Tom Rini <trini@konsulko.com>,
Fabio Estevam <festevam@denx.de>, Stefano Babic <sbabic@denx.de>
Subject: Question regarding CONFIG_SPL_OF_PLATDATA_INST usage
Date: Thu, 27 Apr 2023 17:23:11 +0200 [thread overview]
Message-ID: <20230427172311.0c78f13f@wsk> (raw)
[-- Attachment #1: Type: text/plain, Size: 1707 bytes --]
Hi Simon,
I'm trying to convert imx28 based XEA board to use CONFIG_DM_SERIAL.
This board uses SPL_OF_PLATDATA to have as small SPL as possible.
It looks like the 'duart' description/driver is properly instantiated,
but serial console is configured too early -> apparently
serial_find_console_or_panic() from serial_init() at serial-uclass.c is
called before DM is setup in SPL.
To fix this problem - in the commit (SHA1: 5a1b25c2011) the
CONFIG_SPL_OF_PLATDATA_INST has been introduced; without it (after
commit SHA1: 1e9ced28f18ed75bef96df08e47baad27dd51829) uclass_get()
returns -EDEADLOCK.
Grepping the sources show that only two "boards" use it:
1. arch/x86/cpu/apollolake/Kconfig -> TPL_OF_PLATDATA_INST
(configs/chromebook_coral_defconfig and corresponding
./arch/x86/dts/chromebook_coral.dts)
2. configs/sandbox_spl_defconfig -> CONFIG_SPL_OF_PLATDATA_INST=y
I would like to ask if:
- Anybody managed to use CONFIG_SPL_OF_PLATDATA_INST=y on real HW?
- Is it on purpose, that dtoc tool is not extracting structures
definitions from *.c files ?
- Is the "coral" board (from point 1 above) using any extra
coral*-u-boot.dtsi to specify which parts of dts shall be included to
the in-TPL DTS? Or is it just using full-blown DTS support ins TPL?
I'm using cutting-edge mainline u-boot - SHA1:
6a11fdf0536e02ac9cd4a3da0535a271c694715f
Thanks in advance for any help.
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next reply other threads:[~2023-04-27 15:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-27 15:23 Lukasz Majewski [this message]
2023-04-27 23:35 ` Question regarding CONFIG_SPL_OF_PLATDATA_INST usage Simon Glass
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=20230427172311.0c78f13f@wsk \
--to=lukma@denx.de \
--cc=festevam@denx.de \
--cc=sbabic@denx.de \
--cc=sjg@chromium.org \
--cc=trini@konsulko.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox