powerpc: move get_pvr() and get_svr() into C

Avoid unnecessary assembly functions when they can easily be written
in C.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
This commit is contained in:
Christophe Leroy
2017-07-13 15:10:06 +02:00
committed by Tom Rini
parent 506cb8be7e
commit ba2c5a5c9d
5 changed files with 9 additions and 37 deletions

View File

@@ -48,8 +48,15 @@ static inline uint get_immr(uint mask)
return mask ? (immr & mask) : immr;
}
#endif
uint get_pvr(void);
uint get_svr(void);
static inline uint get_pvr(void)
{
return mfspr(PVR);
}
static inline uint get_svr(void)
{
return mfspr(SVR);
}
#if defined(CONFIG_MPC85xx) || \
defined(CONFIG_MPC86xx) || \