diff options
Diffstat (limited to 'arch/arm/cpu/armv7/rmobile/cpu_info.c')
| -rw-r--r-- | arch/arm/cpu/armv7/rmobile/cpu_info.c | 36 | 
1 files changed, 16 insertions, 20 deletions
| diff --git a/arch/arm/cpu/armv7/rmobile/cpu_info.c b/arch/arm/cpu/armv7/rmobile/cpu_info.c index 789c2c314..214895859 100644 --- a/arch/arm/cpu/armv7/rmobile/cpu_info.c +++ b/arch/arm/cpu/armv7/rmobile/cpu_info.c @@ -22,7 +22,6 @@   */  #include <common.h>  #include <asm/io.h> -#include <asm/arch/rmobile.h>  #ifdef CONFIG_ARCH_CPU_INIT  int arch_cpu_init(void) @@ -40,35 +39,32 @@ void enable_caches(void)  #endif  #ifdef CONFIG_DISPLAY_CPUINFO -static u32 get_cpu_type(void) +static u32 __rmobile_get_cpu_type(void)  { -	u32 id; -	u32 type; - -	id = readl(CCCR); -	type = (id >> 8) & 0xFF; - -	return type; +	return 0x0;  } +u32 rmobile_get_cpu_type(void) +		__attribute__((weak, alias("__rmobile_get_cpu_type"))); -static u32 get_cpu_rev(void) +static u32 __rmobile_get_cpu_rev(void)  { -	u32 id; -	u32 rev; - -	id = readl(CCCR); -	rev = (id >> 4) & 0xF; - -	return rev; +	return 0;  } +u32 rmobile_get_cpu_rev(void) +		__attribute__((weak, alias("__rmobile_get_cpu_rev")));  int print_cpuinfo(void)  { -	switch (get_cpu_type()) { +	switch (rmobile_get_cpu_type()) { +	case 0x37: +		printf("CPU: Renesas Electronics SH73A0 rev %d\n", +				rmobile_get_cpu_rev()); +		break;  	default: -		printf("CPU: Renesas Electronics CPU rev %d\n", get_cpu_rev()); +		printf("CPU: Renesas Electronics CPU rev %d\n", +				get_cpu_rev());  		break;  	}  	return 0;  } -#endif +#endif /* CONFIG_DISPLAY_CPUINFO */ |