All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sean Anderson <sean.anderson@seco.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2] ARM: mx6: Add function to set serial#
Date: Thu, 4 Feb 2021 17:12:38 -0500	[thread overview]
Message-ID: <347eb330-c1f3-fc3a-ae16-5487f9118080@seco.com> (raw)
In-Reply-To: <9e7dc99f-ebac-0749-3a94-e9dcb807d5de@gmx.de>



On 2/4/21 5:03 PM, Heinrich Schuchardt wrote:
 > On 2/4/21 10:58 PM, Tom Rini wrote:
 >> On Thu, Feb 04, 2021 at 04:44:22PM -0500, Sean Anderson wrote:
 >>
 >>> The serial number OTP is similar to the imx7 version, except that the
 >>> register names are different. This also sets serial# directly,
 >>> instead of
 >>> providing board_get_serial.
 >>>
 >>> Signed-off-by: Sean Anderson <sean.anderson@seco.com>
 >>
 >> Reviewed-by: Tom Rini <trini@konsulko.com>
 >>
 >
 > The current patch is without effect.
 >
 > We need to enable CONFIG_ARCH_MISC_INIT on i.MX6 by default, e.g.
 >
 > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
 > index 95557d6ed6..ba189c404d 100644
 > --- a/arch/arm/Kconfig
 > +++ b/arch/arm/Kconfig
 > @@ -901,6 +901,7 @@ config ARCH_MX6
 >          select SYS_FSL_HAS_SEC
 >          select SYS_FSL_SEC_COMPAT_4
 >          select SYS_FSL_SEC_LE
 > +       select ARCH_MISC_INIT
 >          imply MXC_GPIO
 >          imply SYS_THUMB_BUILD
 >
 > Best regards
 >
 > Heinrich

Do any boards on i.MX6 currently set serial# themselves? arch_misc_init
is called before board_late_init, which is (AFACT) typically where
boards set serial#. Any boards which conditionally set serial# (e.g.
from an eeprom) will not set things up properly. I looked over things
quickly, and I didn't see anything. So it may be fine to enable this.

Though by this logic, shouldn't you have implied ARCH_MISC_INIT back in
90865614b4 ("ARM: mx6: make CAAM usable on the i.MX6 boards")?

--Sean

  reply	other threads:[~2021-02-04 22:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-04 21:44 [PATCH v2] ARM: mx6: Add function to set serial# Sean Anderson
2021-02-04 21:58 ` Tom Rini
2021-02-04 22:03   ` Heinrich Schuchardt
2021-02-04 22:12     ` Sean Anderson [this message]
2021-02-04 22:31       ` Heinrich Schuchardt
2021-02-04 22:55         ` Tom Rini
2021-02-04 22:23     ` Tom Rini
2021-03-01 11:55 ` sbabic at denx.de

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=347eb330-c1f3-fc3a-ae16-5487f9118080@seco.com \
    --to=sean.anderson@seco.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 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.