cpu.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * AVR32 and (fake) AT91 CPU identification
  3. *
  4. * Copyright (C) 2007 Atmel Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_ARCH_CPU_H
  11. #define __ASM_ARCH_CPU_H
  12. /*
  13. * Only AT32AP7000 is defined for now. We can identify the specific
  14. * chip at runtime, but I'm not sure if it's really worth it.
  15. */
  16. #ifdef CONFIG_CPU_AT32AP700X
  17. # define cpu_is_at32ap7000() (1)
  18. #else
  19. # define cpu_is_at32ap7000() (0)
  20. #endif
  21. /*
  22. * Since this is AVR32, we will never run on any AT91 CPU. But these
  23. * definitions may reduce clutter in common drivers.
  24. */
  25. #define cpu_is_at91rm9200() (0)
  26. #define cpu_is_at91sam9xe() (0)
  27. #define cpu_is_at91sam9260() (0)
  28. #define cpu_is_at91sam9261() (0)
  29. #define cpu_is_at91sam9263() (0)
  30. #define cpu_is_at91sam9rl() (0)
  31. #define cpu_is_at91cap9() (0)
  32. #define cpu_is_at91cap9_revB() (0)
  33. #define cpu_is_at91cap9_revC() (0)
  34. #define cpu_is_at91sam9g10() (0)
  35. #define cpu_is_at91sam9g20() (0)
  36. #define cpu_is_at91sam9g45() (0)
  37. #define cpu_is_at91sam9g45es() (0)
  38. #define cpu_is_at91sam9m10() (0)
  39. #define cpu_is_at91sam9g46() (0)
  40. #define cpu_is_at91sam9m11() (0)
  41. #define cpu_is_at91sam9x5() (0)
  42. #define cpu_is_at91sam9g15() (0)
  43. #define cpu_is_at91sam9g35() (0)
  44. #define cpu_is_at91sam9x35() (0)
  45. #define cpu_is_at91sam9g25() (0)
  46. #define cpu_is_at91sam9x25() (0)
  47. #endif /* __ASM_ARCH_CPU_H */