Skip to content

PHYTEC SOM Detection API v3

Daniel Schultz u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6board: phytec: common: Move eeprom read to new functionboard/phytec/common/phytec_som_detection.c+24 -140 replies
2/6board: phytec: common: Define PHYTEC_API2_DATA_LENboard/phytec/common/phytec_som_detection.c board/phytec/common/phytec_som_detection.h+6 -50 replies
3/6board: phytec: common: Move API v2 init to new functionboard/phytec/common/phytec_som_detection.c+23 -150 replies
4/6board: phytec: common: Add API v3board/phytec/common/Kconfig board/phytec/common/Makefile board/phytec/common/phytec_som_detection.c +3 more+336 -10 replies
5/6board: phytec: common: k3: Set MACboard/phytec/common/k3/board.c+23 -01 reply
6/6configs: phycore_am62x_a53_defconfig: Enable CONFIG_ENV_OVERWRITEconfigs/phycore_am62x_a53_defconfig+1 -02 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchWadim Egorov
SeriesT-b
1/6
2/6
3/6
4/6
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] PHYTEC SOM Detection API v3

This patch series adds support for the EEPROM v3 API.

V3 is backwards compatible to V2 and therefore, the V2 image still exists at the beginning. Only the API version changed from 2 to 3.

V3 is a block-based memory layout organized as singled-linked list with different types of blocks. This is a more flexible approach and allows us to extend it by more block types in the future.

The V3 data starts with a 8-byte large header which defines the block count (u8), V3 subversion (u8) and data payload length (u16). Additionally the header contains a CRC8 checksum a 3 reserved bytes.

Each block starts with a 4-byte large header which defined the block type (u8), the absolute address of the next block (u16) and a CRC8 checksum. The content itself is defined via the block type and we currently have 2 different types:

1) MAC: Contains the Ethernet interface number (u8), MAC address (6 x u8) and a CRC8 checksum.

Daniel Schultz (6):
board: phytec: common: Move eeprom read to new function
board: phytec: common: Define PHYTEC_API2_DATA_LEN
board: phytec: common: Move API v2 init to new function
board: phytec: common: Add API v3
board: phytec: common: k3: Set MAC
configs: phycore_am62x_a53_defconfig: Enable CONFIG_ENV_OVERWRITE

 board/phytec/common/Kconfig                   |   9 +
 board/phytec/common/Makefile                  |   2 +-
 board/phytec/common/k3/board.c                |  23 ++
 board/phytec/common/phytec_som_detection.c    | 228 +++++++++++++++---
 board/phytec/common/phytec_som_detection.h    |   9 +
 .../common/phytec_som_detection_blocks.c      | 105 ++++++++
 .../common/phytec_som_detection_blocks.h      |  61 +++++
 configs/phycore_am62x_a53_defconfig           |   1 +
 8 files changed, 408 insertions(+), 30 deletions(-)
 create mode 100644 board/phytec/common/phytec_som_detection_blocks.c
 create mode 100644 board/phytec/common/phytec_som_detection_blocks.h
Signature · 1 line
2.25.1