85xx if NUM_CPUS>1, print cpu number
PATCH 1/1 85xx if NUM_CPUS>1, print cpu number
--- cpu/mpc85xx/cpu.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
cpu/mpc85xx/cpu.c +5 -0
@@ -98,7 +98,12 @@ int checkcpu (void)#endif minor =SVR_MIN (svr); +#if (CONFIG_NUM_CPUS >1 ) +volatile ccsr_pic_t *pic = (void *)(CFG_MPC85xx_PIC_ADDR); +printf ("CPU%d: " , pic->whoami); +#else puts ("CPU: " ); +#endif cpu =identify_cpu (ver);if (cpu) {
Signature · 1 line
1.5.6.5
PATCH 1/1 fsl_pci_init do not scan bus when configured as an end-point
--- drivers/pci/fsl_pci_init.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-)
drivers/pci/fsl_pci_init.c +15 -2
@@ -168,8 +168,21 @@ fsl_pci_init(struct pci_controller *hose) }#ifndef CONFIG_PCI_NOSCAN -printf (" Scanning PCI bus %02x\n" , hose->current_busno); - hose->last_busno =pci_hose_scan_bus (hose,hose->current_busno); +pci_hose_read_config_byte (hose, dev,PCI_CLASS_PROG , &temp8); + +/* Programming Interface (PCI_CLASS_PROG) +* 0 == pci host or pcie root-complex, +* 1 == pci agent or pcie end-point +*/ +if (!temp8) { +printf (" Scanning PCI bus %02x\n" , + hose->current_busno); + hose->last_busno =pci_hose_scan_bus (hose, hose->current_busno); + }else { +debug (" Not scanning PCI bus %02x. PI=%x\n" , + hose->current_busno, temp8); + hose->last_busno = hose->current_busno; + }if ( bridge ) {/* update limit regs and subordinate busno */ pciauto_postscan_setup_bridge (hose, dev, hose->last_busno);
Signature · 1 line
1.5.6.5
PATCH 1/1 pixis do not print long help if not configured
--- board/freescale/common/pixis.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
board/freescale/common/pixis.c +4 -0
@@ -453,7 +453,9 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])*/ if ((p_cf && !(p_cf_sysclk && p_cf_corepll && p_cf_mpxpll)) || unknown_param) { +#ifdef CFG_LONGHELP puts (cmdtp->help); +#endif return 1 ; }
@@ -483,7 +485,9 @@ pixis_reset_cmd(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])if (!(set_px_sysclk (sysclk) &&set_px_corepll (corepll) &&set_px_mpxpll (mpxpll))) { +#ifdef CFG_LONGHELP puts (cmdtp->help); +#endif return 1 ; }read_from_px_regs (1 );
Signature · 1 line
1.5.6.5
PATCH 1/1 Add cpu/8xxx to TAGS_SUBDIRS
--- Makefile | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
Makefile +2 -0
@@ -243,9 +243,11 @@ endif ifeq ($(CPU),mpc85xx) LIBS += drivers/qe/qe.a LIBS += cpu/mpc8xxx/ddr/libddr.a +TAG_SUBDIRS += cpu/mpc8xxx endif ifeq ($(CPU),mpc86xx) LIBS += cpu/mpc8xxx/ddr/libddr.a +TAG_SUBDIRS += cpu/mpc8xxx endif LIBS += drivers/rtc/librtc.a LIBS += drivers/serial/libserial.a
Signature · 1 line
1.5.6.5
Andy Fleming
AppliedPATCH 1/1 Add cpu/8xxx to TAGS_SUBDIRS
Quoted 2 lines · Ed Swarthout
Signed-off-by Ed Swarthout <[email protected]>
Applied to 85xx-next
Andy Fleming
AppliedPATCH 1/1 pixis do not print long help if not configured
In reply to Ed SwarthoutQuoted 1 line · Ed Swarthout
Signed-off-by Ed Swarthout <[email protected]>
Applied to 85xx-next
PATCH 1/1 fsl_pci_init do not scan bus when configured as an end-point
In reply to Ed SwarthoutQuoted 1 line · Ed Swarthout
Signed-off-by Ed Swarthout <[email protected]>
PATCH 1/1 fsl_pci_init do not scan bus when configured as an end-point
Quoted 5 lines · Andy Fleming
Quoted 1 line · Ed Swarthout
Signed-off-by Ed Swarthout <[email protected]>Acked-by Andy Fleming <[email protected]>
When agent/end-point, I thought the CPU must enable inbound PCI configuration cycles by poking the PBFR Register (offset 0x44) for PCI, or the Configuration Ready Register (offset 0x4b0 for PCIe) after configuring its own inbound BARs. I believe without these PCI config writes, the agent/end-point device will not be able to be enumerated by the PCI/PCIe host/root-comples as any config cycle to the device will be retried.
Would it make sense to add the unlocking of inbound PCI configuration cycles with this patch, or as a separate one? I have some basic code to do this, but wasn't sure of a clean way to determine if an interface is PCI or PCIe to determine how the interface should be unlocked (ie, the patch is a bit "dirty":).
Best,
Peter
PATCH 1/1 fsl_pci_init do not scan bus when configuredas an end-point
From: Peter Tyser [mailto:ptyser at xes-inc.com]
Quoted 5 lines
When agent/end-point, I thought the CPU must enable inbound PCI configuration cycles by poking the PBFR Register (offset
0x44) for PCI, or the Configuration Ready Register (offset0x4b0for PCIe) after configuring its own inbound BARs.
That is true if any of the CPUs are allowed to boot immediately after hreset. If all the CPUs have boot-holdoff set, hardware will enable inbound config.
Quoted 4 lines
I believe without these PCI config writes, the agent/end-point device will not be able to be enumerated by the PCI/PCIe host/root-comples as any config cycle to the device will be retried.
True.
Quoted 2 lines
Would it make sense to add the unlocking of inbound PCI configuration cycles with this patch, or as a separate one?
Separate.
Are there use cases where this should not be done in u-boot, but postponed until Linux is booted?
Quoted 4 lines
I have some basic code to do this, but wasn't sure of a clean way to determine if an interface is PCI or PCIe to determine how the interface should be unlocked (ie, the patch is a bit "dirty":).
I'm not sure of the best way for this determination. It looks like a non-zero value for the "PCI Express Capability ID Register" at 4c can be use to detect PCIe.
-Ed
Wolfgang Denk
AppliedPATCH 1/1 fsl_pci_init do not scan bus when configured as an end-point
In reply to Ed SwarthoutDear Ed Swarthout,
Quoted 4 lines · In message <[email protected]> you…
Signed-off-by Ed Swarthout <[email protected]>--- drivers/pci/fsl_pci_init.c | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-)
Applied, thanks.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "There are things that are so serious that you can only joke about them" - Heisenberg
Andy Fleming
AppliedPATCH 1/1 85xx if NUM_CPUS>1, print cpu number
In reply to Ed SwarthoutQuoted 1 line · Ed Swarthout
Signed-off-by Ed Swarthout <[email protected]>
Applied to 85xx-next