Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375117
b: refs/heads/master
c: a156ba6
h: refs/heads/master
i:
  375115: 692449e
v: v3
  • Loading branch information
Jonas Gorski authored and Ralf Baechle committed May 7, 2013
1 parent b75ae54 commit d62b24a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 08a41d1206bb342c2f0a0aae25ca836658866268
refs/heads/master: a156ba61f0b959a803d7a6941a52c5453524c99b
3 changes: 2 additions & 1 deletion trunk/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,8 @@
/*************************************************************************
* _REG relative to RSET_MISC
*************************************************************************/
#define MISC_SERDES_CTRL_REG 0x0
#define MISC_SERDES_CTRL_6328_REG 0x0
#define MISC_SERDES_CTRL_6362_REG 0x4
#define SERDES_PCIE_EN (1 << 0)
#define SERDES_PCIE_EXD_EN (1 << 15)

Expand Down
11 changes: 9 additions & 2 deletions trunk/arch/mips/pci/pci-bcm63xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,17 @@ void __iomem *pci_iospace_start;
static void __init bcm63xx_reset_pcie(void)
{
u32 val;
u32 reg;

/* enable SERDES */
val = bcm_misc_readl(MISC_SERDES_CTRL_REG);
if (BCMCPU_IS_6328())
reg = MISC_SERDES_CTRL_6328_REG;
else
reg = MISC_SERDES_CTRL_6362_REG;

val = bcm_misc_readl(reg);
val |= SERDES_PCIE_EN | SERDES_PCIE_EXD_EN;
bcm_misc_writel(val, MISC_SERDES_CTRL_REG);
bcm_misc_writel(val, reg);

/* reset the PCIe core */
bcm63xx_core_set_reset(BCM63XX_RESET_PCIE, 1);
Expand Down Expand Up @@ -330,6 +336,7 @@ static int __init bcm63xx_pci_init(void)

switch (bcm63xx_get_cpu_id()) {
case BCM6328_CPU_ID:
case BCM6362_CPU_ID:
return bcm63xx_register_pcie();
case BCM6348_CPU_ID:
case BCM6358_CPU_ID:
Expand Down

0 comments on commit d62b24a

Please sign in to comment.