 d8951adeba
			
		
	
	
	d8951adeba
	
	
	
		
			
			cpu_is_xxx() macros are identifying generic at91sam9g45 chip. This patch adds the capacity to differentiate Engineering Samples and final lots through the inclusion of at91_cpu_fully_identify() and the related chip IDs with chip version field preserved. Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Acked-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
		
			
				
	
	
		
			38 lines
		
	
	
	
		
			1 KiB
			
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			38 lines
		
	
	
	
		
			1 KiB
			
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * AVR32 and (fake) AT91 CPU identification
 | |
|  *
 | |
|  * Copyright (C) 2007 Atmel Corporation
 | |
|  *
 | |
|  * This program is free software; you can redistribute it and/or modify
 | |
|  * it under the terms of the GNU General Public License version 2 as
 | |
|  * published by the Free Software Foundation.
 | |
|  */
 | |
| #ifndef __ASM_ARCH_CPU_H
 | |
| #define __ASM_ARCH_CPU_H
 | |
| 
 | |
| /*
 | |
|  * Only AT32AP7000 is defined for now. We can identify the specific
 | |
|  * chip at runtime, but I'm not sure if it's really worth it.
 | |
|  */
 | |
| #ifdef CONFIG_CPU_AT32AP700X
 | |
| # define cpu_is_at32ap7000()	(1)
 | |
| #else
 | |
| # define cpu_is_at32ap7000()	(0)
 | |
| #endif
 | |
| 
 | |
| /*
 | |
|  * Since this is AVR32, we will never run on any AT91 CPU. But these
 | |
|  * definitions may reduce clutter in common drivers.
 | |
|  */
 | |
| #define cpu_is_at91rm9200()	(0)
 | |
| #define cpu_is_at91sam9xe()	(0)
 | |
| #define cpu_is_at91sam9260()	(0)
 | |
| #define cpu_is_at91sam9261()	(0)
 | |
| #define cpu_is_at91sam9263()	(0)
 | |
| #define cpu_is_at91sam9rl()	(0)
 | |
| #define cpu_is_at91cap9()	(0)
 | |
| #define cpu_is_at91sam9g10()	(0)
 | |
| #define cpu_is_at91sam9g45()	(0)
 | |
| #define cpu_is_at91sam9g45es()	(0)
 | |
| 
 | |
| #endif /* __ASM_ARCH_CPU_H */
 |