diff mbox

[U-Boot] powerpc: mpc512x: Add support for get_svr() for mpc512x devices

Message ID 1476424198-5178-1-git-send-email-sriram.dash@nxp.com
State Superseded
Headers show

Commit Message

Sriram Dash Oct. 14, 2016, 5:49 a.m. UTC
Defines get_svr() for mpc512x devices

Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
---
 arch/powerpc/cpu/mpc512x/start.S | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Bin Meng Oct. 14, 2016, 6:14 a.m. UTC | #1
On Fri, Oct 14, 2016 at 1:49 PM, Sriram Dash <sriram.dash@nxp.com> wrote:
> Defines get_svr() for mpc512x devices
>
> Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
> ---
>  arch/powerpc/cpu/mpc512x/start.S | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/arch/powerpc/cpu/mpc512x/start.S b/arch/powerpc/cpu/mpc512x/start.S
> index 471d401..2507842 100644
> --- a/arch/powerpc/cpu/mpc512x/start.S
> +++ b/arch/powerpc/cpu/mpc512x/start.S
> @@ -443,6 +443,11 @@ get_pvr:
>         mfspr   r3, PVR
>         blr
>
> +       .globl get_svr
> +get_svr:
> +       mfspr   r3,SVR

nits: need a space after ,

> +       blr
> +

Other than that,
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Sriram Dash Oct. 14, 2016, 6:29 a.m. UTC | #2
>From: Bin Meng [mailto:bmeng.cn@gmail.com]
>On Fri, Oct 14, 2016 at 1:49 PM, Sriram Dash <sriram.dash@nxp.com> wrote:
>> Defines get_svr() for mpc512x devices
>>
>> Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
>> ---
>>  arch/powerpc/cpu/mpc512x/start.S | 5 +++++
>>  1 file changed, 5 insertions(+)
>>
>> diff --git a/arch/powerpc/cpu/mpc512x/start.S
>b/arch/powerpc/cpu/mpc512x/start.S
>> index 471d401..2507842 100644
>> --- a/arch/powerpc/cpu/mpc512x/start.S
>> +++ b/arch/powerpc/cpu/mpc512x/start.S
>> @@ -443,6 +443,11 @@ get_pvr:
>>         mfspr   r3, PVR
>>         blr
>>
>> +       .globl get_svr
>> +get_svr:
>> +       mfspr   r3,SVR
>
>nits: need a space after ,
>

Ok. Will take care in next version.

>> +       blr
>> +
>
>Other than that,
>Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
diff mbox

Patch

diff --git a/arch/powerpc/cpu/mpc512x/start.S b/arch/powerpc/cpu/mpc512x/start.S
index 471d401..2507842 100644
--- a/arch/powerpc/cpu/mpc512x/start.S
+++ b/arch/powerpc/cpu/mpc512x/start.S
@@ -443,6 +443,11 @@  get_pvr:
 	mfspr	r3, PVR
 	blr
 
+	.globl get_svr
+get_svr:
+	mfspr	r3,SVR
+	blr
+
 /*-------------------------------------------------------------------*/
 
 /*