/arch/arm/mach-pxa/include/mach/zylonite.h

https://bitbucket.org/sammyz/iscream_thunderc-2.6.35-rebase · C++ Header · 40 lines · 29 code · 8 blank · 3 comment · 3 complexity · 7039f7e9b6256ec6cfc17e3d1762699c MD5 · raw file

  1. #ifndef __ASM_ARCH_ZYLONITE_H
  2. #define __ASM_ARCH_ZYLONITE_H
  3. #define ZYLONITE_ETH_PHYS 0x14000000
  4. #define EXT_GPIO(x) (128 + (x))
  5. /* the following variables are processor specific and initialized
  6. * by the corresponding zylonite_pxa3xx_init()
  7. */
  8. extern int gpio_eth_irq;
  9. extern int gpio_debug_led1;
  10. extern int gpio_debug_led2;
  11. extern int wm9713_irq;
  12. extern int lcd_id;
  13. extern int lcd_orientation;
  14. #ifdef CONFIG_CPU_PXA300
  15. extern void zylonite_pxa300_init(void);
  16. #else
  17. static inline void zylonite_pxa300_init(void)
  18. {
  19. if (cpu_is_pxa300() || cpu_is_pxa310())
  20. panic("%s: PXA300/PXA310 not supported\n", __func__);
  21. }
  22. #endif
  23. #ifdef CONFIG_CPU_PXA320
  24. extern void zylonite_pxa320_init(void);
  25. #else
  26. static inline void zylonite_pxa320_init(void)
  27. {
  28. if (cpu_is_pxa320())
  29. panic("%s: PXA320 not supported\n", __func__);
  30. }
  31. #endif
  32. #endif /* __ASM_ARCH_ZYLONITE_H */