Skip to contentSkip to conversation

powerpc/85xx: Add SERDES support for P1010/P1014

PATCH New Prabhakar Kushwaha 2 participants 2 messages Jan 20, 2011 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/85xx: Add SERDES support for P1010/P1014

Add the ability to determine if a given IP block connected on SERDES is configured. This is useful for things like PCIe and SRIO since they are only ever connected on SERDES.

Updated MPC85xx_PORDEVSR_IO_SEL & MPC85xx_PORDEVSR_IO_SEL_SHIFT

---
Based git://git.denx.de/u-boot-mpc85xx.git (branch master)

 arch/powerpc/cpu/mpc85xx/Makefile       |    2 +
 arch/powerpc/cpu/mpc85xx/p1010_serdes.c |   75 +++++++++++++++++++++++++++++++
 arch/powerpc/include/asm/immap_85xx.h   |    5 ++
 3 files changed, 82 insertions(+), 0 deletions(-)
 create mode 100644 arch/powerpc/cpu/mpc85xx/p1010_serdes.c
arch/powerpc/cpu/mpc85xx/Makefile +2 -0
index b7f51e7..69c43b3 100644
@@ -87,9 +87,11 @@ COBJS-$(CONFIG_MPC8548) += mpc8548_serdes.o
 COBJS-$(CONFIG_MPC8568) += mpc8568_serdes.o
 COBJS-$(CONFIG_MPC8569) += mpc8569_serdes.o
 COBJS-$(CONFIG_MPC8572) += mpc8572_serdes.o
+COBJS-$(CONFIG_P1010)	+= p1010_serdes.o
 COBJS-$(CONFIG_P1011)	+= p1021_serdes.o
 COBJS-$(CONFIG_P1012)	+= p1021_serdes.o
 COBJS-$(CONFIG_P1013)	+= p1013_serdes.o
+COBJS-$(CONFIG_P1014)	+= p1010_serdes.o
 COBJS-$(CONFIG_P1020)	+= p1021_serdes.o
 COBJS-$(CONFIG_P1021)	+= p1021_serdes.o
 COBJS-$(CONFIG_P1022)	+= p1022_serdes.o
arch/powerpc/cpu/mpc85xx/p1010_serdes.c new file +75 -0

75 lines not on this page · raw message

arch/powerpc/include/asm/immap_85xx.h +5 -0
index 93a9e6c..7531fdc 100644
@@ -1891,8 +1891,13 @@ typedef struct ccsr_gur {
 #define MPC85xx_PORDEVSR_IO_SEL		0x007c0000
 #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	18
 #else
+#if defined(CONFIG_P1010)
+#define MPC85xx_PORDEVSR_IO_SEL		0x00600000
+#define MPC85xx_PORDEVSR_IO_SEL_SHIFT	21
+#else
 #define MPC85xx_PORDEVSR_IO_SEL		0x00780000
 #define MPC85xx_PORDEVSR_IO_SEL_SHIFT	19
+#endif /* if defined(CONFIG_P1010) */
 #endif
 #define MPC85xx_PORDEVSR_PCI2_ARB	0x00040000
 #define MPC85xx_PORDEVSR_PCI1_ARB	0x00020000
Signature · 1 line
1.6.3.1
#1 lore raw

PATCH 1/1 powerpc/85xx: Add SERDES support for P1010/P1014

Dear Prabhakar Kushwaha,

Quoted 3 lines · In message <[email protected]> you wrote:

Add the ability to determine if a given IP block connected on SERDES is configured. This is useful for things like PCIe and SRIO since they are only ever connected on SERDES.

...

arch/powerpc/cpu/mpc85xx/p1010_serdes.c line 49

Quoted 3 lines
arch/powerpc/cpu/mpc85xx/p1010_serdes.c new file +3 -0
+void fsl_serdes_init(void)
+{
+	volatile ccsr_gur_t *gur = (void *)CONFIG_SYS_MPC85xx_GUTS_ADDR;

Use of volatile is usually wrong: see
Documentation/volatile-considered-harmful.txt

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
While most peoples' opinions change, the conviction of their correct-
ness never does.