mirror of
https://github.com/smaeul/u-boot.git
synced 2025-10-14 04:46:01 +01:00
powerpc: mpc8xx: remove get_immr() argument
get_immr() is always called with 0 as an argument, so it is useless. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
This commit is contained in:
parent
14119901fd
commit
0ebb5388b4
@ -90,7 +90,7 @@ static int check_CPU(long clock, uint pvr, uint immr)
|
|||||||
int checkcpu(void)
|
int checkcpu(void)
|
||||||
{
|
{
|
||||||
ulong clock = gd->cpu_clk;
|
ulong clock = gd->cpu_clk;
|
||||||
uint immr = get_immr(0); /* Return full IMMR contents */
|
uint immr = get_immr(); /* Return full IMMR contents */
|
||||||
uint pvr = get_pvr();
|
uint pvr = get_pvr();
|
||||||
|
|
||||||
puts("CPU: ");
|
puts("CPU: ");
|
||||||
|
@ -22,7 +22,7 @@ void print_reginfo(void)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
printf("\nSystem Configuration registers\n"
|
printf("\nSystem Configuration registers\n"
|
||||||
"\tIMMR\t0x%08X\n", get_immr(0));
|
"\tIMMR\t0x%08X\n", get_immr());
|
||||||
|
|
||||||
printf("\tSIUMCR\t0x%08X", in_be32(&sysconf->sc_siumcr));
|
printf("\tSIUMCR\t0x%08X", in_be32(&sysconf->sc_siumcr));
|
||||||
printf("\tSYPCR\t0x%08X\n", in_be32(&sysconf->sc_sypcr));
|
printf("\tSYPCR\t0x%08X\n", in_be32(&sysconf->sc_sypcr));
|
||||||
|
@ -40,11 +40,9 @@
|
|||||||
|
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
|
||||||
static inline uint get_immr(uint mask)
|
static inline uint get_immr(void)
|
||||||
{
|
{
|
||||||
uint immr = mfspr(SPRN_IMMR);
|
return mfspr(SPRN_IMMR);
|
||||||
|
|
||||||
return mask ? (immr & mask) : immr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline uint get_pvr(void)
|
static inline uint get_pvr(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user