From: Roger Quadros <rogerq@kernel.org>
To: Nishanth Menon <nm@ti.com>, Simon Glass <sjg@chromium.org>
Cc: vigneshr@ti.com, trini@konsulko.com, srk@ti.com,
robertcnelson@gmail.com, u-boot@lists.denx.de, "Francis,
Neha" <n-francis@ti.com>,
kory.maincent@bootlin.com
Subject: Re: [RFC PATCH 2/2] board: ti: am65x: Move to using Extension framework
Date: Wed, 4 Oct 2023 15:39:23 +0300 [thread overview]
Message-ID: <263918be-381e-44b6-899e-321ecaabb2bc@kernel.org> (raw)
In-Reply-To: <20230713184438.y3ac7c425fwu575b@radiantly>
Hi,
On 13/07/2023 21:44, Nishanth Menon wrote:
> On 15:29-20230711, Roger Quadros wrote:
>> Hi Simon,
>>
>> On 10/07/2023 22:45, Simon Glass wrote:
>>> Hi Roger,
>>>
>>> On Mon, 10 Jul 2023 at 08:51, Roger Quadros <rogerq@kernel.org> wrote:
>>>>
>>>> Support the Expansion cards via Extension framework.
>>>> This should make 'expansion' command work to scan
>>>> for expansion cards and apply DT overlays.
>>>>
>>>> Card detection code is moved to a library so
>>>> other boards can benefit from it.
>>>>
>>>> Signed-off-by: Roger Quadros <rogerq@kernel.org>
>>>> ---
>>>> board/ti/am65x/evm.c | 264 ++++++++---------------------
>>>> board/ti/common/Kconfig | 8 +
>>>> board/ti/common/Makefile | 1 +
>>>> board/ti/common/ti_card_detect.c | 155 +++++++++++++++++
>>>> board/ti/common/ti_card_detect.h | 43 +++++
>>>> configs/am65x_evm_a53_defconfig | 2 +
>>>> configs/am65x_hs_evm_a53_defconfig | 2 +
>>>> 7 files changed, 280 insertions(+), 195 deletions(-)
>>>> create mode 100644 board/ti/common/ti_card_detect.c
>>>> create mode 100644 board/ti/common/ti_card_detect.h
>>>
>>> Before this goes too far I think this should move to using a linker
>>> list to declare the driver (or a driver-model driver if you prefer,
>>> but that might be overkill).
So I've been working on this on the side and got linker list way working
with custom script booting but as soon as I move to standard boot flow
it no longer works. This is because there is no code in place to
apply the overlay and pass it to next stage e.g. EFI.
I see the following note at
https://elixir.bootlin.com/u-boot/latest/source/boot/bootmeth_efi.c#L304
"
/*
* TODO: Apply extension overlay
*
* Here we need to load and apply the extension overlay. This is
* not implemented. See do_extension_apply(). The extension
* stuff needs an implementation in boot/extension.c so it is
* separate from the command code. Really the extension stuff
* should use the device tree and a uclass / driver interface
* rather than implementing its own list
*/
"
Another note at
https://elixir.bootlin.com/u-boot/latest/source/cmd/extension_board.c#L198
"/* extensions should have a uclass - for now we use UCLASS_SIMPLE_BUS uclass */"
So are we better off implementing a class driver for extension stuff?
Once that is in place how should extension apply work?
Current implementation relies on a extension_overlay_cmd environment
to be specified.
e.g. for EFI boot case, the overlay files should be obtained in the same
way we get the base device tree i.e. bootmeth_common_read_file()?
--
cheers,
-roger
next prev parent reply other threads:[~2023-10-04 12:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-10 14:50 [RFC PATCH 0/2] board: ti: Use Extension framework Roger Quadros
2023-07-10 14:50 ` [RFC PATCH 1/2] board: ti: common: Add CONFIG_TI_CAPE_DETECT for cape detection Roger Quadros
2023-07-10 14:50 ` [RFC PATCH 2/2] board: ti: am65x: Move to using Extension framework Roger Quadros
2023-07-10 19:45 ` Simon Glass
2023-07-11 12:29 ` Roger Quadros
2023-07-13 18:44 ` Nishanth Menon
2023-10-04 12:39 ` Roger Quadros [this message]
2023-10-06 13:26 ` Köry Maincent
2023-10-06 15:48 ` Roger Quadros
2023-10-06 16:47 ` Simon Glass
2024-01-11 14:14 ` Roger Quadros
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=263918be-381e-44b6-899e-321ecaabb2bc@kernel.org \
--to=rogerq@kernel.org \
--cc=kory.maincent@bootlin.com \
--cc=n-francis@ti.com \
--cc=nm@ti.com \
--cc=robertcnelson@gmail.com \
--cc=sjg@chromium.org \
--cc=srk@ti.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=vigneshr@ti.com \
/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