All of lore.kernel.org
 help / color / mirror / Atom feed
* Dependency issue on SPL_MXC_OCOTP
@ 2023-02-11 10:18 Jean-Marie Lemetayer
  0 siblings, 0 replies; only message in thread
From: Jean-Marie Lemetayer @ 2023-02-11 10:18 UTC (permalink / raw)
  To: u-boot

TLDR: In the configuration SPL_MXC_OCOTP, the dependency on SPL_MISC
should be replaced by SPL_DRIVERS_MISC.

Hi folks,

I was creating a new imx6 board with an SPL and without enabling the
"driver model for SPL" to keep a pretty simple SPL.

Then I wanted to enable the secure boot, and so the IMX_HAB option,
which needs at compile time the "fuse_read" function.

This function is provided by the "mxc_ocotp" driver (in the misc
section). This driver is totally not "driver model" oriented. It can
be enabled for regular builds and SPL builds using the (SPL_)MXC_OCOTP
option.

For the regular build, MXC_OCOTP does not have any dependency (except
for the arch dependency), so no DM dependency here. But for the SPL
build, the SPL_MXC_OCOTP needs the SPL_MISC option which is directly
linked to the SPL_DM option.

I think this is just a typo and this should be only dependent on the
"support of misc drivers in the SPL" so the SPL_DRIVERS_MISC option.

Am I right ? If someone confirms this point, I will propose a patch.

Best regards,
Jean-Marie

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-11 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 10:18 Dependency issue on SPL_MXC_OCOTP Jean-Marie Lemetayer

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.