u-boot/board/freescale
Kumar Gala a09b9b68d4 powerpc/8xxx: Refactor SRIO initialization into common code
Moved the SRIO init out of corenet_ds and into common code for
8xxx/QorIQ processors that have SRIO.  We mimic what we do with PCIe
controllers for SRIO.

We utilize the fact that SRIO is over serdes to determine if its
configured or not and thus can setup the LAWs needed for it dynamically.

We additionally update the device tree (to remove the SRIO nodes) if the
board doesn't have SRIO enabled.

Introduced the following standard defines for board config.h:

CONFIG_SYS_SRIO - Chip has SRIO or not
CONFIG_SRIO1 - Board has SRIO 1 port available
CONFIG_SRIO2 - Board has SRIO 2 port available

(where 'n' is the port #)
CONFIG_SYS_SRIOn_MEM_VIRT - virtual address in u-boot
CONFIG_SYS_SRIOn_MEM_PHYS - physical address (for law setup)
CONFIG_SYS_SRIOn_MEM_SIZE - size of window (for law setup)

[ These mimic what we have for PCI and PCIe controllers ]

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Acked-by: Wolfgang Denk <wd@denx.de>
2011-01-14 01:32:21 -06:00
..
common video: move fsl_diu_fb driver to drivers/video 2010-12-01 20:48:13 +01:00
corenet_ds powerpc/8xxx: Refactor SRIO initialization into common code 2011-01-14 01:32:21 -06:00
m547xevb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m548xevb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5208evbe Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5235evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5249evb do_reset: unify duplicate prototypes 2010-11-28 21:47:24 +01:00
m5253demo Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5253evbe Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5271evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5272c3 Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5275evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5282evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5329evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m5373evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m52277evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m53017evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m54451evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
m54455evb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc832xemds Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc837xemds Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc837xerdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc5121ads Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc7448hpc2 74xx_7xx: Cleanup for partial linking and --gc-sections 2010-11-27 23:35:12 +01:00
mpc8260ads miiphy: convert to linux/mii.h 2011-01-09 18:06:50 +01:00
mpc8266ads Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8308rdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8313erdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8315erdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8323erdb Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8349emds Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8349itx Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8360emds Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8360erdk Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mpc8536ds powerpc/85xx: Rework MPC8536DS pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
mpc8540ads MPC8xxx DDR: align informational prints 2011-01-14 01:32:19 -06:00
mpc8541cds MPC8xxx DDR: align informational prints 2011-01-14 01:32:19 -06:00
mpc8544ds powerpc/85xx: Rework MPC8544DS pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
mpc8548cds powerpc/85xx: Rework MPC8548CDS pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
mpc8555cds MPC8xxx DDR: align informational prints 2011-01-14 01:32:19 -06:00
mpc8560ads MPC8xxx DDR: align informational prints 2011-01-14 01:32:19 -06:00
mpc8568mds powerpc/85xx: Rework MPC8568MDS pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
mpc8569mds powerpc/85xx: Rework MPC8569MDS pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
mpc8572ds powerpc/85xx: Rework MPC8572DS pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
mpc8610hpcd powerpc/86xx: Rework MPC8610HPCD pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
mpc8641hpcn powerpc/86xx: Rework MPC8641HPCN pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
mx31ads Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mx31pdk Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
mx51evk Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
p1_p2_rdb powerpc/85xx: Rework P1_P2_RDB pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00
p1022ds powerpc/fsl-pci: Add generic code to setup PCIe controllers 2011-01-14 01:32:19 -06:00
p2020ds powerpc/85xx: Rework P2020DS pci_init_board to use common FSL PCIe code 2011-01-14 01:32:20 -06:00