[U-Boot] [PATCH v2 0/2] Clean up board_f sequence a little more

Simon Glass sjg at chromium.org
Thu Apr 6 18:47:03 UTC 2017


This series continues the effort to remove #ifdefs from the board_f init
sequence. It follows on from the first series.

With both series applied the number of references to CONFIG in board_f.c
drops from 178 to 137:

strings common/board_f.c |grep -c CONFIG

Changes in v2:
- Add new patch to rename initdram() to fsl_initdram()
- Avoid changing fsl armv8 boards fsl_initdram() function
- Add a dummy function for arc
- Remove initdram from some comments as well
- Rebase to master

Simon Glass (2):
  arm: freescale: Rename initdram() to fsl_initdram()
  board_f: Rename initdram() to dram_init()

 arch/arc/lib/cpu.c                                  |  6 ++++++
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c             |  3 ++-
 arch/mips/mach-ath79/dram.c                         |  2 +-
 arch/mips/mach-pic32/cpu.c                          |  2 +-
 arch/mips/mach-pic32/include/mach/ddr.h             |  2 +-
 arch/powerpc/cpu/mpc5xxx/spl_boot.c                 |  4 ++--
 arch/powerpc/cpu/mpc85xx/cpu.c                      |  4 ++--
 arch/powerpc/cpu/ppc4xx/44x_spd_ddr2.c              | 10 +++++-----
 arch/powerpc/cpu/ppc4xx/denali_spd_ddr2.c           |  8 ++++----
 arch/powerpc/cpu/ppc4xx/sdram.c                     |  4 ++--
 arch/powerpc/cpu/ppc4xx/spl_boot.c                  |  2 +-
 arch/xtensa/cpu/cpu.c                               |  5 +++++
 board/Arcturus/ucp1020/spl.c                        |  2 +-
 board/BuS/eb_cpu5282/eb_cpu5282.c                   |  2 +-
 board/a3m071/a3m071.c                               |  4 ++--
 board/a4m072/a4m072.c                               |  4 ++--
 board/amcc/acadia/memory.c                          |  2 +-
 board/amcc/bamboo/bamboo.c                          |  2 +-
 board/amcc/bubinga/bubinga.c                        |  4 ++--
 board/amcc/sequoia/sdram.c                          |  4 ++--
 board/amcc/walnut/walnut.c                          |  4 ++--
 board/amcc/yosemite/yosemite.c                      |  4 ++--
 board/astro/mcf5373l/mcf5373l.c                     |  2 +-
 board/canmb/canmb.c                                 |  4 ++--
 board/cm5200/cm5200.c                               |  2 +-
 board/cobra5272/cobra5272.c                         |  2 +-
 board/davedenx/aria/aria.c                          |  2 +-
 board/dbau1x00/dbau1x00.c                           |  2 +-
 board/esd/mecp5123/mecp5123.c                       |  2 +-
 board/esd/pmc440/sdram.c                            |  4 ++--
 board/esd/vme8349/vme8349.c                         |  2 +-
 board/freescale/b4860qds/ddr.c                      |  2 +-
 board/freescale/b4860qds/spl.c                      |  2 +-
 board/freescale/c29xpcie/spl.c                      |  2 +-
 board/freescale/corenet_ds/ddr.c                    |  2 +-
 board/freescale/ls1021aqds/ddr.c                    |  2 +-
 board/freescale/ls1021aqds/ls1021aqds.c             |  2 +-
 board/freescale/ls1043aqds/ddr.c                    |  2 +-
 board/freescale/ls1043aqds/ls1043aqds.c             |  3 ++-
 board/freescale/ls1043ardb/ddr.c                    |  2 +-
 board/freescale/ls1046aqds/ddr.c                    |  2 +-
 board/freescale/ls1046aqds/ls1046aqds.c             |  3 ++-
 board/freescale/ls1046ardb/ddr.c                    |  2 +-
 board/freescale/ls2080a/ddr.c                       |  3 ++-
 board/freescale/ls2080aqds/ddr.c                    |  2 +-
 board/freescale/ls2080ardb/ddr.c                    |  2 +-
 board/freescale/m5208evbe/m5208evbe.c               |  2 +-
 board/freescale/m52277evb/m52277evb.c               |  2 +-
 board/freescale/m5235evb/m5235evb.c                 |  2 +-
 board/freescale/m5249evb/m5249evb.c                 |  2 +-
 board/freescale/m5253demo/m5253demo.c               |  2 +-
 board/freescale/m5253evbe/m5253evbe.c               |  2 +-
 board/freescale/m5272c3/m5272c3.c                   |  2 +-
 board/freescale/m5275evb/m5275evb.c                 |  2 +-
 board/freescale/m5282evb/m5282evb.c                 |  2 +-
 board/freescale/m53017evb/m53017evb.c               |  2 +-
 board/freescale/m5329evb/m5329evb.c                 |  2 +-
 board/freescale/m5373evb/m5373evb.c                 |  2 +-
 board/freescale/m54418twr/m54418twr.c               |  2 +-
 board/freescale/m54451evb/m54451evb.c               |  2 +-
 board/freescale/m54455evb/m54455evb.c               |  2 +-
 board/freescale/m547xevb/m547xevb.c                 |  2 +-
 board/freescale/m548xevb/m548xevb.c                 |  2 +-
 board/freescale/mpc5121ads/mpc5121ads.c             |  2 +-
 board/freescale/mpc8308rdb/sdram.c                  |  2 +-
 board/freescale/mpc8313erdb/mpc8313erdb.c           |  2 +-
 board/freescale/mpc8313erdb/sdram.c                 |  2 +-
 board/freescale/mpc8315erdb/mpc8315erdb.c           |  2 +-
 board/freescale/mpc8315erdb/sdram.c                 |  2 +-
 board/freescale/mpc8323erdb/mpc8323erdb.c           |  2 +-
 board/freescale/mpc832xemds/mpc832xemds.c           |  2 +-
 board/freescale/mpc8349emds/mpc8349emds.c           |  2 +-
 board/freescale/mpc8349itx/mpc8349itx.c             |  2 +-
 board/freescale/mpc837xemds/mpc837xemds.c           |  2 +-
 board/freescale/mpc837xerdb/mpc837xerdb.c           |  2 +-
 board/freescale/mpc8610hpcd/mpc8610hpcd.c           |  2 +-
 board/freescale/mpc8641hpcn/mpc8641hpcn.c           |  2 +-
 board/freescale/p1010rdb/spl.c                      |  2 +-
 board/freescale/p1022ds/spl.c                       |  2 +-
 board/freescale/p1_p2_rdb_pc/spl.c                  |  2 +-
 board/freescale/p2041rdb/ddr.c                      |  2 +-
 board/freescale/t102xqds/ddr.c                      |  2 +-
 board/freescale/t102xqds/spl.c                      |  2 +-
 board/freescale/t102xrdb/ddr.c                      |  2 +-
 board/freescale/t102xrdb/spl.c                      |  2 +-
 board/freescale/t1040qds/ddr.c                      |  2 +-
 board/freescale/t104xrdb/ddr.c                      |  2 +-
 board/freescale/t104xrdb/spl.c                      |  2 +-
 board/freescale/t208xqds/ddr.c                      |  2 +-
 board/freescale/t208xqds/spl.c                      |  2 +-
 board/freescale/t208xrdb/ddr.c                      |  2 +-
 board/freescale/t208xrdb/spl.c                      |  2 +-
 board/freescale/t4qds/ddr.c                         |  2 +-
 board/freescale/t4qds/spl.c                         |  2 +-
 board/freescale/t4rdb/ddr.c                         |  2 +-
 board/freescale/t4rdb/spl.c                         |  2 +-
 board/gaisler/gr_cpci_ax2000/gr_cpci_ax2000.c       |  2 +-
 board/gaisler/gr_ep2s60/gr_ep2s60.c                 |  2 +-
 board/gaisler/gr_xc3s_1500/gr_xc3s_1500.c           |  2 +-
 board/gaisler/grsim/grsim.c                         |  2 +-
 board/gaisler/grsim_leon2/grsim_leon2.c             |  2 +-
 board/gdsys/mpc8308/sdram.c                         |  2 +-
 board/ids/ids8313/ids8313.c                         |  2 +-
 board/ifm/ac14xx/ac14xx.c                           |  2 +-
 board/ifm/o2dnt2/o2dnt2.c                           |  4 ++--
 board/imgtec/boston/ddr.c                           |  2 +-
 board/imgtec/malta/malta.c                          |  2 +-
 board/imgtec/xilfpga/xilfpga.c                      |  2 +-
 board/inka4x0/inka4x0.c                             |  4 ++--
 board/intercontrol/digsy_mtc/digsy_mtc.c            |  4 ++--
 board/ipek01/ipek01.c                               |  4 ++--
 board/jupiter/jupiter.c                             |  4 ++--
 board/keymile/km82xx/km82xx.c                       |  2 +-
 board/keymile/km83xx/km83xx.c                       |  2 +-
 board/keymile/kmp204x/ddr.c                         |  2 +-
 board/liebherr/lwmon5/sdram.c                       |  4 ++--
 board/micronas/vct/vct.c                            |  2 +-
 board/motionpro/motionpro.c                         |  2 +-
 board/mpc8308_p1m/sdram.c                           |  2 +-
 board/mpl/mip405/mip405.c                           |  4 ++--
 board/mpl/pati/pati.c                               |  2 +-
 board/mpl/pip405/pip405.c                           |  4 ++--
 board/munices/munices.c                             |  4 ++--
 board/pb1x00/pb1x00.c                               |  2 +-
 board/pdm360ng/pdm360ng.c                           |  2 +-
 board/phytec/pcm030/pcm030.c                        |  4 ++--
 board/qemu-mips/qemu-mips.c                         |  2 +-
 board/sbc8349/sbc8349.c                             |  2 +-
 board/sbc8641d/sbc8641d.c                           |  2 +-
 board/sysam/amcore/amcore.c                         |  4 ++--
 board/tqc/tqm5200/tqm5200.c                         |  4 ++--
 board/tqc/tqm834x/tqm834x.c                         |  2 +-
 board/tqc/tqm8xx/tqm8xx.c                           |  2 +-
 board/v38b/v38b.c                                   |  2 +-
 board/varisys/cyrus/ddr.c                           |  2 +-
 board/ve8313/ve8313.c                               |  2 +-
 board/xes/xpedite1000/xpedite1000.c                 |  2 +-
 board/xes/xpedite517x/xpedite517x.c                 |  2 +-
 board/xilinx/ppc405-generic/xilinx_ppc405_generic.c |  2 +-
 board/xilinx/ppc440-generic/xilinx_ppc440_generic.c |  2 +-
 common/board_f.c                                    | 15 ---------------
 doc/README.mpc85xx                                  |  2 +-
 drivers/ddr/fsl/main.c                              |  4 ++--
 include/common.h                                    |  3 ---
 include/fsl_ddr_sdram.h                             |  8 ++++++++
 145 files changed, 194 insertions(+), 189 deletions(-)

-- 
2.12.2.715.g7642488e1d-goog



More information about the U-Boot mailing list