Skip to content

IDE code cleanup

Pavel Herrmann u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10remove CONFIG_SC3 from cmd_ide.ccommon/cmd_ide.c+0 -71 reply
2/10split mpc8xx hooks from cmd_ide.carch/powerpc/lib/Makefile arch/powerpc/lib/ide.c arch/powerpc/lib/ide.h +37 more+293 -1833 replies
3/10split IVM power hooks from cmd_ide.cboard/ivm/ivm.c common/cmd_ide.c+46 -480 replies
4/10change all versions of input_data() and output_data() to global weak aliasesboard/esd/cpci750/ide.c board/linkstation/ide.c board/pcs440ep/pcs440ep.c +2 more+48 -232 replies
4/10change all versions of input_data() and output_data() to global weak aliases+0 -01 reply
5/10split CPC45 board-specific IDE functions from cmd_ide.cboard/cpc45/Makefile board/cpc45/ide.c common/cmd_ide.c+131 -921 reply
5/10split CPC45 board-specific IDE functions from cmd_ide.c+0 -01 reply
6/10make ide_led() a weak aliascommon/cmd_ide.c+27 -360 replies
7/10move CPC45 ide_led to the same file as other IDE hooksboard/cpc45/cpc45.c board/cpc45/ide.c+15 -152 replies
8/10split AU1X00 specific code from cmd_ide.carch/mips/cpu/mips32/au1x00/Makefile arch/mips/cpu/mips32/au1x00/au1x00_ide.c common/cmd_ide.c+36 -52 replies
8/10split AU1X00 specific code from cmd_ide.c+0 -00 replies
9/10split PCS440EP specific code from cmd_ide.cboard/pcs440ep/pcs440ep.c common/cmd_ide.c+56 -180 replies
10/10remove unnecessary includes from cmd_ide.ccommon/cmd_ide.c+0 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/10] IDE code cleanup

This series tries to remove all SoC-specific and board-specific code from cmd_ide. Whenever an existing hook is present, it is used instead, when no appropriate hook is present, one is created (either as a hook call or by using the weak alias technique). The aim of this series is to prepare for DM conversion, where most of the cmd_ide code will create a new universal IDE driver, and all hooks and overrides will be provided in its platform data.

note: this series has not been tested on the actual hardware

Pavel Herrmann (10):
remove CONFIG_SC3 from cmd_ide.c
split mpc8xx hooks from cmd_ide.c
split IVM power hooks from cmd_ide.c
change all versions of input_data() and output_data() to global weak
aliases
split CPC45 board-specific IDE functions from cmd_ide.c make ide_led() a weak alias
move CPC45 ide_led to the same file as other IDE hooks split AU1X00 specific code from cmd_ide.c
split PCS440EP specific code from cmd_ide.c
remove unnecessary includes from cmd_ide.c

 arch/mips/cpu/mips32/au1x00/Makefile     |   2 +-
 arch/mips/cpu/mips32/au1x00/au1x00_ide.c |  33 +++
 arch/powerpc/lib/Makefile                |   1 +
 arch/powerpc/lib/ide.c                   | 207 +++++++++++++
 arch/powerpc/lib/ide.h                   |  31 ++
 board/cpc45/Makefile                     |   2 +-
 board/cpc45/cpc45.c                      |  15 -
 board/cpc45/ide.c                        | 145 +++++++++
 board/esd/cpci750/ide.c                  |   1 -
 board/ivm/ivm.c                          |  46 +++
 board/linkstation/ide.c                  |   1 -
 board/pcs440ep/pcs440ep.c                |  57 +++-
 common/cmd_ide.c                         | 484 +++++--------------------------
 include/configs/CPC45.h                  |   1 +
 include/configs/ICU862.h                 |   1 +
 include/configs/IVML24.h                 |   2 +
 include/configs/IVMS8.h                  |   2 +
 include/configs/KUP4K.h                  |   1 +
 include/configs/KUP4X.h                  |   1 +
 include/configs/MBX.h                    |   1 +
 include/configs/NETTA.h                  |   1 +
 include/configs/NSCU.h                   |   1 +
 include/configs/R360MPI.h                |   1 +
 include/configs/RPXClassic.h             |   1 +
 include/configs/RPXlite.h                |   1 +
 include/configs/RPXlite_DW.h             |   1 +
 include/configs/RRvision.h               |   1 +
 include/configs/SPD823TS.h               |   2 +
 include/configs/TK885D.h                 |   1 +
 include/configs/TQM823L.h                |   1 +
 include/configs/TQM823M.h                |   1 +
 include/configs/TQM850L.h                |   1 +
 include/configs/TQM850M.h                |   1 +
 include/configs/TQM855L.h                |   1 +
 include/configs/TQM855M.h                |   1 +
 include/configs/TQM860L.h                |   1 +
 include/configs/TQM860M.h                |   1 +
 include/configs/TQM862L.h                |   1 +
 include/configs/TQM862M.h                |   1 +
 include/configs/TQM866M.h                |   1 +
 include/configs/TQM885D.h                |   1 +
 include/configs/atc.h                    |   1 +
 include/configs/c2mon.h                  |   1 +
 include/configs/lwmon.h                  |   1 +
 include/configs/quantum.h                |   1 +
 include/configs/svm_sc8xx.h              |   2 +
 include/configs/uc100.h                  |   1 +
 include/configs/virtlab2.h               |   1 +
 include/ide.h                            |  19 ++
 49 files changed, 650 insertions(+), 433 deletions(-)
 create mode 100644 arch/mips/cpu/mips32/au1x00/au1x00_ide.c
 create mode 100644 arch/powerpc/lib/ide.c
 create mode 100644 arch/powerpc/lib/ide.h
 create mode 100644 board/cpc45/ide.c
Signature · 1 line
1.7.12