All of lore.kernel.org
 help / color / mirror / Atom feed
* Simultaneous support of CONFIG_MX6UL and CONFIG_MX6ULL
@ 2021-11-08 14:30 Matthias Schiffer
  2021-11-08 15:14 ` Tom Rini
  2021-11-09 11:59 ` Fabio Estevam
  0 siblings, 2 replies; 3+ messages in thread
From: Matthias Schiffer @ 2021-11-08 14:30 UTC (permalink / raw)
  To: Stefano Babic, Fabio Estevam, Tom Rini
  Cc: NXP i.MX U-Boot Team, u-boot, Markus Niebel

Hi everyone,

for the submission of support for our TQMa6UL/TQMa6ULL SoM family I've
been wondering if it would be desirable to allow U-Boot configs that
support both i.MX6UL and i.MX6ULL. This would allow us to reduce the
number of required defconfig variants for our SoMs significantly.

I had a look at the differences between these configurations, and most
of the code already treats both SoCs the same (lots of "#if
defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL)"). The differences are
sufficiently small that it seems easy to change them to use runtime
detection for the SoC variant (and maybe not even leave CONFIG_MX6UL
and CONFIG_MX6ULL as separate config symbols):

- MX6UL selects HAS_CAAM. Runtime detection should already work (will
double-check)
- Fuse support: Easy to switch to runtime detection
- mx6ul_pins.h vs. mx6ull_pins.h: Mostly identical. Only definitions
for GPIO5 differ (and none of the differing definitions are used at
all)

I can propose patches for these changes if you think that it is a good
idea.

Kind regards,
Matthias


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

* Re: Simultaneous support of CONFIG_MX6UL and CONFIG_MX6ULL
  2021-11-08 14:30 Simultaneous support of CONFIG_MX6UL and CONFIG_MX6ULL Matthias Schiffer
@ 2021-11-08 15:14 ` Tom Rini
  2021-11-09 11:59 ` Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2021-11-08 15:14 UTC (permalink / raw)
  To: Matthias Schiffer
  Cc: Stefano Babic, Fabio Estevam, NXP i.MX U-Boot Team, u-boot,
	Markus Niebel

[-- Attachment #1: Type: text/plain, Size: 1362 bytes --]

On Mon, Nov 08, 2021 at 03:30:06PM +0100, Matthias Schiffer wrote:

> Hi everyone,
> 
> for the submission of support for our TQMa6UL/TQMa6ULL SoM family I've
> been wondering if it would be desirable to allow U-Boot configs that
> support both i.MX6UL and i.MX6ULL. This would allow us to reduce the
> number of required defconfig variants for our SoMs significantly.
> 
> I had a look at the differences between these configurations, and most
> of the code already treats both SoCs the same (lots of "#if
> defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL)"). The differences are
> sufficiently small that it seems easy to change them to use runtime
> detection for the SoC variant (and maybe not even leave CONFIG_MX6UL
> and CONFIG_MX6ULL as separate config symbols):
> 
> - MX6UL selects HAS_CAAM. Runtime detection should already work (will
> double-check)
> - Fuse support: Easy to switch to runtime detection
> - mx6ul_pins.h vs. mx6ull_pins.h: Mostly identical. Only definitions
> for GPIO5 differ (and none of the differing definitions are used at
> all)
> 
> I can propose patches for these changes if you think that it is a good
> idea.

Generally this sounds good, yes.  We might need to keep the separate
symbols in order to avoid size growth on platforms that only support one
rather than both SoCs however.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

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

* Re: Simultaneous support of CONFIG_MX6UL and CONFIG_MX6ULL
  2021-11-08 14:30 Simultaneous support of CONFIG_MX6UL and CONFIG_MX6ULL Matthias Schiffer
  2021-11-08 15:14 ` Tom Rini
@ 2021-11-09 11:59 ` Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2021-11-09 11:59 UTC (permalink / raw)
  To: Matthias Schiffer
  Cc: Stefano Babic, Tom Rini, NXP i.MX U-Boot Team, U-Boot-Denx,
	Markus Niebel

Hi Matthias,

On Mon, Nov 8, 2021 at 11:30 AM Matthias Schiffer
<matthias.schiffer@ew.tq-group.com> wrote:
>
> Hi everyone,
>
> for the submission of support for our TQMa6UL/TQMa6ULL SoM family I've
> been wondering if it would be desirable to allow U-Boot configs that
> support both i.MX6UL and i.MX6ULL. This would allow us to reduce the
> number of required defconfig variants for our SoMs significantly.
>
> I had a look at the differences between these configurations, and most
> of the code already treats both SoCs the same (lots of "#if
> defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL)"). The differences are
> sufficiently small that it seems easy to change them to use runtime
> detection for the SoC variant (and maybe not even leave CONFIG_MX6UL
> and CONFIG_MX6ULL as separate config symbols):
>
> - MX6UL selects HAS_CAAM. Runtime detection should already work (will
> double-check)
> - Fuse support: Easy to switch to runtime detection
> - mx6ul_pins.h vs. mx6ull_pins.h: Mostly identical. Only definitions
> for GPIO5 differ (and none of the differing definitions are used at
> all)
>
> I can propose patches for these changes if you think that it is a good
> idea.

Yes, that would be helpful. Please go ahead.

Thanks

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

end of thread, other threads:[~2021-11-09 11:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-08 14:30 Simultaneous support of CONFIG_MX6UL and CONFIG_MX6ULL Matthias Schiffer
2021-11-08 15:14 ` Tom Rini
2021-11-09 11:59 ` Fabio Estevam

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.