Bläddra i källkod

common: Move pci_init_board() out of common.h

This function can be dropped when all boards use driver model for PCI. For
now, move it into init.h with a comment.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Simon Glass 4 år sedan
förälder
incheckning
2cf431c228
49 ändrade filer med 50 tillägg och 2 borttagningar
  1. 1 0
      board/armltd/integrator/pci.c
  2. 1 0
      board/cavium/thunderx/thunderx.c
  3. 1 0
      board/esd/vme8349/pci.c
  4. 1 0
      board/freescale/b4860qds/pci.c
  5. 1 0
      board/freescale/common/p_corenet/pci.c
  6. 1 0
      board/freescale/m54455evb/m54455evb.c
  7. 1 0
      board/freescale/m547xevb/m547xevb.c
  8. 1 0
      board/freescale/m548xevb/m548xevb.c
  9. 1 0
      board/freescale/mpc8308rdb/mpc8308rdb.c
  10. 1 0
      board/freescale/mpc8315erdb/mpc8315erdb.c
  11. 1 0
      board/freescale/mpc8323erdb/mpc8323erdb.c
  12. 1 0
      board/freescale/mpc832xemds/pci.c
  13. 1 0
      board/freescale/mpc8349emds/pci.c
  14. 1 0
      board/freescale/mpc8349itx/pci.c
  15. 1 0
      board/freescale/mpc837xemds/pci.c
  16. 1 0
      board/freescale/mpc837xerdb/pci.c
  17. 1 0
      board/freescale/mpc8541cds/mpc8541cds.c
  18. 1 0
      board/freescale/mpc8544ds/mpc8544ds.c
  19. 1 0
      board/freescale/mpc8548cds/mpc8548cds.c
  20. 1 0
      board/freescale/mpc8555cds/mpc8555cds.c
  21. 1 0
      board/freescale/mpc8568mds/mpc8568mds.c
  22. 1 0
      board/freescale/mpc8610hpcd/mpc8610hpcd.c
  23. 1 0
      board/freescale/mpc8641hpcn/mpc8641hpcn.c
  24. 1 0
      board/freescale/qemu-ppce500/qemu-ppce500.c
  25. 1 0
      board/freescale/t102xqds/pci.c
  26. 1 0
      board/freescale/t102xrdb/pci.c
  27. 1 0
      board/freescale/t1040qds/pci.c
  28. 1 0
      board/freescale/t104xrdb/pci.c
  29. 1 0
      board/freescale/t208xqds/pci.c
  30. 1 0
      board/freescale/t208xrdb/pci.c
  31. 1 0
      board/freescale/t4qds/pci.c
  32. 1 0
      board/freescale/t4rdb/pci.c
  33. 1 0
      board/gdsys/mpc8308/hrcon.c
  34. 1 0
      board/gdsys/mpc8308/strider.c
  35. 1 0
      board/imgtec/malta/malta.c
  36. 1 0
      board/keymile/kmp204x/pci.c
  37. 1 0
      board/mpc8308_p1m/mpc8308_p1m.c
  38. 1 0
      board/renesas/r7780mp/r7780mp.c
  39. 1 0
      board/sbc8349/pci.c
  40. 1 0
      board/sbc8548/sbc8548.c
  41. 1 0
      board/sbc8641d/sbc8641d.c
  42. 1 0
      board/tqc/tqm834x/pci.c
  43. 1 0
      board/varisys/cyrus/pci.c
  44. 1 0
      board/ve8313/ve8313.c
  45. 1 0
      board/xes/common/fsl_8xxx_pci.c
  46. 1 0
      drivers/pci/pci.c
  47. 1 0
      drivers/pci/pcie_imx.c
  48. 0 2
      include/common.h
  49. 3 0
      include/init.h

+ 1 - 0
board/armltd/integrator/pci.c

@@ -20,6 +20,7 @@
  * Linus Walleij <linus.walleij@linaro.org>
  */
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/io.h>
 #include "integrator-sc.h"

+ 1 - 0
board/cavium/thunderx/thunderx.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <malloc.h>
 #include <errno.h>
 #include <linux/compiler.h>

+ 1 - 0
board/esd/vme8349/pci.c

@@ -10,6 +10,7 @@
  * Based on MPC8349 PCI support but w/o PIB related code.
  */
 
+#include <init.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <common.h>

+ 1 - 0
board/freescale/b4860qds/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/common/p_corenet/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/m54455evb/m54455evb.c

@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/immap.h>
 #include <asm/io.h>

+ 1 - 0
board/freescale/m547xevb/m547xevb.c

@@ -9,6 +9,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/immap.h>
 #include <asm/io.h>

+ 1 - 0
board/freescale/m548xevb/m548xevb.c

@@ -9,6 +9,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/immap.h>
 #include <asm/io.h>

+ 1 - 0
board/freescale/mpc8308rdb/mpc8308rdb.c

@@ -7,6 +7,7 @@
 #include <common.h>
 #include <hwconfig.h>
 #include <i2c.h>
+#include <init.h>
 #include <spi.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>

+ 1 - 0
board/freescale/mpc8315erdb/mpc8315erdb.c

@@ -9,6 +9,7 @@
 #include <common.h>
 #include <hwconfig.h>
 #include <i2c.h>
+#include <init.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>

+ 1 - 0
board/freescale/mpc8323erdb/mpc8323erdb.c

@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <init.h>
 #include <ioports.h>
 #include <mpc83xx.h>
 #include <i2c.h>

+ 1 - 0
board/freescale/mpc832xemds/pci.c

@@ -6,6 +6,7 @@
 /*
  * PCI Configuration space access support for MPC83xx PCI Bridge
  */
+#include <init.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <common.h>

+ 1 - 0
board/freescale/mpc8349emds/pci.c

@@ -3,6 +3,7 @@
  * Copyright (C) 2006-2009 Freescale Semiconductor, Inc.
  */
 
+#include <init.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <common.h>

+ 1 - 0
board/freescale/mpc8349itx/pci.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 
 #include <asm/mmu.h>
 #include <asm/io.h>

+ 1 - 0
board/freescale/mpc837xemds/pci.c

@@ -3,6 +3,7 @@
  * Copyright (C) 2006-2009 Freescale Semiconductor, Inc.
  */
 
+#include <init.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <common.h>

+ 1 - 0
board/freescale/mpc837xerdb/pci.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <mpc83xx.h>
 #include <pci.h>
 #include <asm/io.h>

+ 1 - 0
board/freescale/mpc8541cds/mpc8541cds.c

@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <vsprintf.h>
 #include <asm/processor.h>

+ 1 - 0
board/freescale/mpc8544ds/mpc8544ds.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>

+ 1 - 0
board/freescale/mpc8548cds/mpc8548cds.c

@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <vsprintf.h>
 #include <asm/processor.h>

+ 1 - 0
board/freescale/mpc8555cds/mpc8555cds.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <vsprintf.h>
 #include <asm/processor.h>

+ 1 - 0
board/freescale/mpc8568mds/mpc8568mds.c

@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>

+ 1 - 0
board/freescale/mpc8610hpcd/mpc8610hpcd.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>

+ 1 - 0
board/freescale/mpc8641hpcn/mpc8641hpcn.c

@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>

+ 1 - 0
board/freescale/qemu-ppce500/qemu-ppce500.c

@@ -7,6 +7,7 @@
 #include <command.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/mmu.h>

+ 1 - 0
board/freescale/t102xqds/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/t102xrdb/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/t1040qds/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/t104xrdb/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/t208xqds/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/t208xrdb/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/t4qds/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/freescale/t4rdb/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/gdsys/mpc8308/hrcon.c

@@ -8,6 +8,7 @@
 #include <env.h>
 #include <hwconfig.h>
 #include <i2c.h>
+#include <init.h>
 #include <spi.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>

+ 1 - 0
board/gdsys/mpc8308/strider.c

@@ -8,6 +8,7 @@
 #include <env.h>
 #include <hwconfig.h>
 #include <i2c.h>
+#include <init.h>
 #include <spi.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>

+ 1 - 0
board/imgtec/malta/malta.c

@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <ide.h>
+#include <init.h>
 #include <netdev.h>
 #include <pci.h>
 #include <pci_gt64120.h>

+ 1 - 0
board/keymile/kmp204x/pci.c

@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/mpc8308_p1m/mpc8308_p1m.c

@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <init.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <pci.h>

+ 1 - 0
board/renesas/r7780mp/r7780mp.c

@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <ide.h>
+#include <init.h>
 #include <asm/processor.h>
 #include <asm/io.h>
 #include <asm/pci.h>

+ 1 - 0
board/sbc8349/pci.c

@@ -7,6 +7,7 @@
  * Based on MPC8349 PCI support but w/o PIB related code.
  */
 
+#include <init.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <common.h>

+ 1 - 0
board/sbc8548/sbc8548.c

@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_85xx.h>

+ 1 - 0
board/sbc8641d/sbc8641d.c

@@ -13,6 +13,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/processor.h>
 #include <asm/immap_86xx.h>

+ 1 - 0
board/tqc/tqm834x/pci.c

@@ -5,6 +5,7 @@
  * Copyright (C) 2006-2009 Freescale Semiconductor, Inc.
  */
 
+#include <init.h>
 #include <asm/mmu.h>
 #include <asm/io.h>
 #include <common.h>

+ 1 - 0
board/varisys/cyrus/pci.c

@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <linux/libfdt.h>

+ 1 - 0
board/ve8313/ve8313.c

@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <linux/libfdt.h>
 #include <pci.h>
 #include <mpc83xx.h>

+ 1 - 0
board/xes/common/fsl_8xxx_pci.c

@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/fsl_pci.h>
 #include <asm/fsl_serdes.h>

+ 1 - 0
drivers/pci/pci.c

@@ -15,6 +15,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 
 #include <command.h>
 #include <env.h>

+ 1 - 0
drivers/pci/pcie_imx.c

@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <init.h>
 #include <pci.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>

+ 0 - 2
include/common.h

@@ -102,8 +102,6 @@ int do_fat_fsload(cmd_tbl_t *, int, int, char * const []);
 /* common/cmd_ext2.c */
 int do_ext2load(cmd_tbl_t *, int, int, char * const []);
 
-void	pci_init_board(void);
-
 /* common/exports.c */
 void	jumptable_init(void);
 

+ 3 - 0
include/init.h

@@ -205,6 +205,9 @@ int board_late_init(void);
 int board_postclk_init(void); /* after clocks/timebase, before env/serial */
 int board_early_init_r(void);
 
+/* TODO(sjg@chromium.org): Drop this when DM_PCI migration is completed */
+void pci_init_board(void);
+
 #endif	/* __ASSEMBLY__ */
 /* Put only stuff here that the assembler can digest */