Re: [U-Boot] [PATCH v2 1/2] 85xx/mpc8536ds: Use is_serdes_configured()to determine of PCIe enabled

2010-04-28 Thread Li Yang-R58472
Subject: [U-Boot] [PATCH v2 1/2] 85xx/mpc8536ds: Use 
is_serdes_configured()to determine of PCIe enabled

The new is_serdes_configured covers a broader range of devices than the
PCI specific code.  Use it instead as we convert away from the
is_fsl_pci_cfg() code.

Additionally move to setting LAWs for PCI based on if its configured.
Also updated PCI FDT fixup code to remove PCI controllers from dtb if
they are configured.

Signed-off-by: Kumar Gala ga...@kernel.crashing.org
---
* Added code to handle dynamic LAW setup for PCI
* Added removing of PCI controller nodes from dtb if not cfg

 arch/powerpc/cpu/mpc8xxx/pci_cfg.c|   12 
 board/freescale/mpc8536ds/law.c   |8 
 board/freescale/mpc8536ds/mpc8536ds.c |   33 
+

Wouldn't it be better to share the PCIE initialization code through all
the MPC85xx boards?  Like in the P2020 serdes patch series I proposed
last year.  What do you think?

- Leo
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 1/2] 85xx/mpc8536ds: Use is_serdes_configured()to determine of PCIe enabled

2010-04-28 Thread Li Yang-R58472
 
Subject: [U-Boot] [PATCH v2 1/2] 85xx/mpc8536ds: Use 
is_serdes_configured()to determine of PCIe enabled

The new is_serdes_configured covers a broader range of 
devices than the 
PCI specific code.  Use it instead as we convert away from the
is_fsl_pci_cfg() code.

Additionally move to setting LAWs for PCI based on if its configured.
Also updated PCI FDT fixup code to remove PCI controllers from dtb if 
they are configured.

Signed-off-by: Kumar Gala ga...@kernel.crashing.org
---
* Added code to handle dynamic LAW setup for PCI
* Added removing of PCI controller nodes from dtb if not cfg

 arch/powerpc/cpu/mpc8xxx/pci_cfg.c|   12 
 board/freescale/mpc8536ds/law.c   |8 
 board/freescale/mpc8536ds/mpc8536ds.c |   33 
+

Wouldn't it be better to share the PCIE initialization code 
through all the MPC85xx boards?  Like in the P2020 serdes 
patch series I proposed last year.  What do you think?

The patch can be referenced at
http://www.mail-archive.com/u-boot@lists.denx.de/msg26339.html

- Leo
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH v2 1/2] 85xx/mpc8536ds: Use is_serdes_configured()to determine of PCIe enabled

2010-04-28 Thread Kumar Gala

On Apr 28, 2010, at 3:25 AM, Li Yang-R58472 wrote:

 
 Subject: [U-Boot] [PATCH v2 1/2] 85xx/mpc8536ds: Use 
 is_serdes_configured()to determine of PCIe enabled
 
 The new is_serdes_configured covers a broader range of 
 devices than the 
 PCI specific code.  Use it instead as we convert away from the
 is_fsl_pci_cfg() code.
 
 Additionally move to setting LAWs for PCI based on if its configured.
 Also updated PCI FDT fixup code to remove PCI controllers from dtb if 
 they are configured.
 
 Signed-off-by: Kumar Gala ga...@kernel.crashing.org
 ---
 * Added code to handle dynamic LAW setup for PCI
 * Added removing of PCI controller nodes from dtb if not cfg
 
 arch/powerpc/cpu/mpc8xxx/pci_cfg.c|   12 
 board/freescale/mpc8536ds/law.c   |8 
 board/freescale/mpc8536ds/mpc8536ds.c |   33 
 +
 
 Wouldn't it be better to share the PCIE initialization code 
 through all the MPC85xx boards?  Like in the P2020 serdes 
 patch series I proposed last year.  What do you think?
 
 The patch can be referenced at
 http://www.mail-archive.com/u-boot@lists.denx.de/msg26339.html
 
 - Leo

Yeah, we can get there.  Just one step at a time.

- k
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot