[PATCH v6 0/7] board: siemens: clean up subfolders
Enrico Leto
enrico.leto at siemens.com
Wed Jan 24 15:43:48 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>
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 products folders vs common
siemens: board: clean up includes
siemens: factoryset: use correct config for soc specific
implementation
board/siemens/capricorn/Makefile | 1 +
board/siemens/capricorn/board.c | 6 +-
.../common/{board.c => board_am335x.c} | 44 +++-------
board/siemens/common/board_am335x.h | 39 +++++++++
board/siemens/common/eeprom.c | 52 +++++++++++
board/siemens/common/eeprom.h | 24 +++++
board/siemens/common/factoryset.c | 87 ++++---------------
board/siemens/common/factoryset.h | 2 +-
board/siemens/draco/Kconfig | 2 -
board/siemens/draco/Makefile | 2 +
board/siemens/draco/board.c | 87 ++++---------------
board/siemens/draco/board.h | 31 ++-----
board/siemens/draco/mux.c | 6 +-
board/siemens/pxm2/MAINTAINERS | 2 +-
board/siemens/pxm2/Makefile | 2 +
board/siemens/pxm2/board.c | 39 +++------
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 | 38 +++-----
board/siemens/rut/board.h | 21 -----
board/siemens/rut/mux.c | 4 +-
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 -
29 files changed, 216 insertions(+), 325 deletions(-)
rename board/siemens/common/{board.c => board_am335x.c} (87%)
create mode 100644 board/siemens/common/board_am335x.h
create mode 100644 board/siemens/common/eeprom.c
create mode 100644 board/siemens/common/eeprom.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