From: Igor Opaniuk <igor.opaniuk@gmail.com>
To: u-boot@lists.denx.de
Subject: [PATCH v1 0/7] Toradex: EEPROM storage support for Config Block
Date: Mon, 22 Jun 2020 23:27:53 +0300 [thread overview]
Message-ID: <1592857680-637-1-git-send-email-igor.opaniuk@gmail.com> (raw)
This series introduces support for EEPROM as a storage for the main Toradex
config block and additional config blocks on extra EEPROM chips (on
carrier board or video adapters).
To enable EEPROM as a storage for the main config block:
TDX_HAVE_EEPROM=y.
For additional EEPROMs please enable this Kconfig symbol:
TDX_CFG_BLOCK_EXTRA=y.
Information about existing EEPROM chips is provided via Device Tree
using aliases.
You can also write configuration for the carrier board using
create_carrier subcommand for cfgblock. Example:
Verdin iMX8MM # cfgblock create_carrier
Supported carrier boards:
UNKNOWN CARRIER = [0]
Verdin Carrier Board = [1]
Choose your carrier board (provide ID): 1
Enter carrier board version (e.g. V1.1B): V1.0A
Enter carrier board serial number: 10622780
Also with barcode:
Verdin iMX8MM # cfgblock create carrier -y 0156100010622780
Igor Opaniuk (7):
toradex: tdx-cfg-block: add EEPROM read/store wrappers
toradex: tdx-cfg-block: add carrier boards and display adapters
toradex: tdx-cfg-block: add support for EEPROM
toradex: tdx-cfg-clock: add migration routine from PID8
toradex: tdx-cfg-block: add carrier board info printing
ARM: dts: imx8mm-verdin: eeprom nodes adjustments
verdin-imx8mm: add EEPROM support for carrier board
arch/arm/dts/imx8mm-verdin.dts | 22 +-
board/toradex/common/Kconfig | 18 ++
board/toradex/common/Makefile | 1 +
board/toradex/common/tdx-cfg-block.c | 402 +++++++++++++++++++++++++++++++----
board/toradex/common/tdx-cfg-block.h | 16 ++
board/toradex/common/tdx-common.c | 28 +++
board/toradex/common/tdx-eeprom.c | 90 ++++++++
board/toradex/common/tdx-eeprom.h | 14 ++
board/toradex/verdin-imx8mm/Kconfig | 6 +
configs/verdin-imx8mm_defconfig | 1 +
10 files changed, 551 insertions(+), 47 deletions(-)
create mode 100644 board/toradex/common/tdx-eeprom.c
create mode 100644 board/toradex/common/tdx-eeprom.h
--
2.7.4
next reply other threads:[~2020-06-22 20:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-22 20:27 Igor Opaniuk [this message]
2020-06-22 20:27 ` [PATCH v1 1/7] toradex: tdx-cfg-block: add EEPROM read/store wrappers Igor Opaniuk
2020-06-22 20:27 ` [PATCH v1 2/7] toradex: tdx-cfg-block: add carrier boards and display adapters Igor Opaniuk
2020-06-22 20:27 ` [PATCH v1 3/7] toradex: tdx-cfg-block: add support for EEPROM Igor Opaniuk
2020-06-22 20:27 ` [PATCH v1 4/7] toradex: tdx-cfg-clock: add migration routine from PID8 Igor Opaniuk
2020-06-22 20:27 ` [PATCH v1 5/7] toradex: tdx-cfg-block: add carrier board info printing Igor Opaniuk
2020-06-22 20:27 ` [PATCH v1 6/7] ARM: dts: imx8mm-verdin: eeprom nodes adjustments Igor Opaniuk
2020-06-22 20:28 ` [PATCH v1 7/7] verdin-imx8mm: add EEPROM support for carrier board Igor Opaniuk
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=1592857680-637-1-git-send-email-igor.opaniuk@gmail.com \
--to=igor.opaniuk@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox