[PATCH v5 0/7] board: siemens: clean up subfolders

Enrico Leto enrico.leto at siemens.com
Mon Jan 22 11:52:30 CET 2024


    The common folder was initialially created for the common parts of
    the products based on draco-am355x board family. We have the
    product lines 'pxm2', 'rut' and the base line unfortunately named
    'draco'! Adding the new capricorn-imx8 board family, the files
    were enhanced without cleanup.

    Simplify first EEPROM probe and access that implements both i2c
    with & without driver model. Use abstraction functions for this.
    
    Move all am355x specifics to a new file 'board_am335x'.
    
    Clean-up includes, config checks, maintainer.

Signed-off-by: Enrico Leto <enrico.leto at siemens.com>
---
Changes for v2:
- fix wrong value in CONFIG_IS_ENABLED

Changes for v3:
- rebased to the top of next branch

Changes for v4:
- remove compiler errors
- fix patch style checks

Changes for v5:
- remove deprecated nand config for etamin that generates compiler error

Enrico Leto (7):
  siemens: eeprom: clean up definitions
  siemens: eeprom: simplify setup & read
  siemens draco: i2c: use driver model for u-boot
  siemens: board: etamin: remove deprecated nand config
  siemens: board: clean up draco products vs common
  siemens: board: clean up includes
  siemens: factoryset: use correct config for soc specific
    implementation

 board/siemens/capricorn/board.c     |   5 +-
 board/siemens/common/board.c        | 114 +++++++++++-----------------
 board/siemens/common/board.h        |  24 ++++++
 board/siemens/common/board_am335x.c |  58 ++++++++++++++
 board/siemens/common/board_am335x.h |  38 ++++++++++
 board/siemens/common/factoryset.c   |  87 +++++----------------
 board/siemens/draco/Kconfig         |   2 -
 board/siemens/draco/Makefile        |   2 +
 board/siemens/draco/board.c         |  87 +++++----------------
 board/siemens/draco/board.h         |  32 ++------
 board/siemens/draco/mux.c           |   6 +-
 board/siemens/pxm2/MAINTAINERS      |   2 +-
 board/siemens/pxm2/Makefile         |   2 +
 board/siemens/pxm2/board.c          |  34 +++------
 board/siemens/pxm2/board.h          |  21 -----
 board/siemens/pxm2/mux.c            |   6 +-
 board/siemens/rut/MAINTAINERS       |   2 +-
 board/siemens/rut/Makefile          |   2 +
 board/siemens/rut/board.c           |  33 ++------
 board/siemens/rut/board.h           |  21 -----
 board/siemens/rut/mux.c             |   5 +-
 configs/draco-etamin_defconfig      |   4 +-
 configs/draco-rastaban_defconfig    |   4 +-
 configs/draco-thuban_defconfig      |   4 +-
 include/configs/draco-etamin.h      |   3 -
 include/configs/draco-rastaban.h    |   3 -
 include/configs/draco-thuban.h      |   3 -
 27 files changed, 248 insertions(+), 356 deletions(-)
 create mode 100644 board/siemens/common/board.h
 create mode 100644 board/siemens/common/board_am335x.c
 create mode 100644 board/siemens/common/board_am335x.h
 delete mode 100644 board/siemens/pxm2/board.h
 delete mode 100644 board/siemens/rut/board.h

-- 
2.30.2



More information about the U-Boot mailing list