From: Roger Quadros <rogerq@kernel.org>
To: Simon Glass <sjg@google.com>
Cc: nm@ti.com, vigneshr@ti.com, trini@konsulko.com, srk@ti.com,
robertcnelson@gmail.com, u-boot@lists.denx.de
Subject: Re: [RFC PATCH 2/2] board: ti: am65x: Move to using Extension framework
Date: Tue, 11 Jul 2023 15:29:15 +0300 [thread overview]
Message-ID: <574c8eb0-4c19-72ef-5920-e506e4be6203@kernel.org> (raw)
In-Reply-To: <CAPnjgZ1odo6F7RTumJ6A=+kgZ-pm0JnRvxNYB00HX7YpAyrFXg@mail.gmail.com>
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).
ti_card_detect.c This is not a device driver but just a helper library
which is ultimately going to be used directly by the board files.
e.g.
see board/ti/am65x/evm.c
>
> What do people think?
>
> Regards,
> Simon
--
cheers,
-roger
next prev parent reply other threads:[~2023-07-11 12:29 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 [this message]
2023-07-13 18:44 ` Nishanth Menon
2023-10-04 12:39 ` Roger Quadros
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=574c8eb0-4c19-72ef-5920-e506e4be6203@kernel.org \
--to=rogerq@kernel.org \
--cc=nm@ti.com \
--cc=robertcnelson@gmail.com \
--cc=sjg@google.com \
--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