Patchwork [U-Boot,3/5] mpc5200: digsy_mtc: enable pci_scan_delay option

login
register
mail settings
Submitter Anatolij Gustschin
Date May 27, 2011, 2:08 p.m.
Message ID <1306505304-9593-4-git-send-email-agust@denx.de>
Download mbox | patch
Permalink /patch/97686/
State Superseded
Headers show

Comments

Anatolij Gustschin - May 27, 2011, 2:08 p.m.
A delay of approximately 250 ms after PCI bus reset in
pci_mpc5xxx_init() is needed to recognize the Coral-PA
controller on graphic extention board. With this option
enabled we can set the environment variable "pci_scan_delay"
to the needed value.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 include/configs/digsy_mtc.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Detlev Zundel - May 27, 2011, 3:28 p.m.
Hi Anatolij,

> A delay of approximately 250 ms after PCI bus reset in
> pci_mpc5xxx_init() is needed to recognize the Coral-PA
> controller on graphic extention board. With this option
> enabled we can set the environment variable "pci_scan_delay"
> to the needed value.
>
> Signed-off-by: Anatolij Gustschin <agust@denx.de>

Although I propose not to introduce a new environment variable for this
option, _if_ you do want to use it, you should also set its value in the
boards default configuration.

Cheers
  Detlev

Patch

diff --git a/include/configs/digsy_mtc.h b/include/configs/digsy_mtc.h
index c738b3a..2b7ba4d 100644
--- a/include/configs/digsy_mtc.h
+++ b/include/configs/digsy_mtc.h
@@ -70,6 +70,7 @@ 
 #define CONFIG_PCI		1
 #define CONFIG_PCI_PNP		1
 #define CONFIG_PCI_SCAN_SHOW	1
+#define CONFIG_PCI_SCAN_DELAY
 
 #define CONFIG_PCI_MEM_BUS	0x40000000
 #define CONFIG_PCI_MEM_PHYS	CONFIG_PCI_MEM_BUS