Skip to contentSkip to conversation

powerpc: mpc512x: Add support for get_svr() for mpc512x devices

PATCH New Sriram Dash 2 participants 3 messages Oct 14, 2016 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc: mpc512x: Add support for get_svr() for mpc512x devices

Defines get_svr() for mpc512x devices

---
 arch/powerpc/cpu/mpc512x/start.S | 5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/cpu/mpc512x/start.S +5 -0
index 471d401..2507842 100644
@@ -443,6 +443,11 @@ get_pvr:
 	mfspr	r3, PVR
 	blr
 
+	.globl get_svr
+get_svr:
+	mfspr	r3,SVR
+	blr
+
 /*-------------------------------------------------------------------*/
 
 /*
Signature · 1 line
2.1.0
#1 lore raw

PATCH 1/1 powerpc: mpc512x: Add support for get_svr() for mpc512x devices

Quoted 12 lines · Sriram Dash

Defines get_svr() for mpc512x devices

---
 arch/powerpc/cpu/mpc512x/start.S | 5 +++++
 1 file changed, 5 insertions(+)
arch/powerpc/cpu/mpc512x/start.S +0 -0
index 471d401..2507842 100644

arch/powerpc/cpu/mpc512x/start.S get_pvr: · line 448

Quoted 6 lines
arch/powerpc/cpu/mpc512x/start.S +3 -0
@@ -443,6 +443,11 @@ get_pvr:
        mfspr   r3, PVR
        blr
 
+       .globl get_svr
+get_svr:
+       mfspr   r3,SVR

nits: need a space after ,

arch/powerpc/cpu/mpc512x/start.S get_pvr: · line 450

Quoted 2 lines
arch/powerpc/cpu/mpc512x/start.S +2 -0
+       blr
+

Other than that,

#2 lore raw

PATCH 1/1 powerpc: mpc512x: Add support for get_svr() for mpc512x devices

Quoted 18 lines

From: Bin Meng [mailto:bmeng.cn at gmail.com]

Review

Quoted 8 lines · Sriram Dash

Defines get_svr() for mpc512x devices

---
 arch/powerpc/cpu/mpc512x/start.S | 5 +++++
 1 file changed, 5 insertions(+)
(quoted diff) +0 -0

b/arch/powerpc/cpu/mpc512x/start.S

Quoted 7 lines

index 471d401..2507842 100644

arch/powerpc/cpu/mpc512x/start.S +0 -0
@@ -443,6 +443,11 @@ get_pvr:
        mfspr   r3, PVR
        blr
 
Quoted 6 lines

arch/powerpc/cpu/mpc512x/start.S get_pvr: · line 448

Quoted 3 lines
arch/powerpc/cpu/mpc512x/start.S +3 -0
+       .globl get_svr
+get_svr:
+       mfspr   r3,SVR

nits: need a space after ,

Ok. Will take care in next version.

Quoted 5 lines

arch/powerpc/cpu/mpc512x/start.S get_pvr: · line 450

Quoted 2 lines
arch/powerpc/cpu/mpc512x/start.S +2 -0
+       blr
+

Other than that,