[PATCH v4 0/4] Deduplicate dhelectronics board files

Philip Oberfichtner
2022-07-26T13:05:41Z

This series unifies common MAC address code for imx6, imx8 and stm32
based boards by DH. It is thought of as a starting point for more
deduplication in the future.

Changes in v4:
- Replace printf() by log_err() in stm32 board file
- stm32 changes reviewed by Patrick

Changes in v3:
- Entire series reviewed by Marek

Changes in v2:
- Tested-by Marek
- convert to livetree (rebase on commit 5a605b7c86152)
- Fix spelling

Philip Oberfichtner (4):
board: dhelectronics: Implement common MAC address functions
ARM: imx6: DH: Use common MAC address functions
ARM: imx8: DH: Use common MAC address functions
ARM: stm32: DH: Use common MAC address functions

board/dhelectronics/common/Makefile | 10 ++
board/dhelectronics/common/dh_common.c | 65 ++++++++++
board/dhelectronics/common/dh_common.h | 28 ++++
board/dhelectronics/common/dh_imx.c | 24 ++++
board/dhelectronics/common/dh_imx.h | 12 ++
board/dhelectronics/dh_imx6/dh_imx6.c | 47 ++-----
.../dh_imx8mp/imx8mp_dhcom_pdk2.c | 121 +++++++-----------
board/dhelectronics/dh_stm32mp1/board.c | 102 +++++++--------
8 files changed, 246 insertions(+), 163 deletions(-)
create mode 100644 board/dhelectronics/common/Makefile
create mode 100644 board/dhelectronics/common/dh_common.c
create mode 100644 board/dhelectronics/common/dh_common.h
create mode 100644 board/dhelectronics/common/dh_imx.c
create mode 100644 board/dhelectronics/common/dh_imx.h

--
2.37.1