zylonite.h 926 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. #define ZYLONITE_NR_IRQS (IRQ_BOARD_START + 32)
  6. /* the following variables are processor specific and initialized
  7. * by the corresponding zylonite_pxa3xx_init()
  8. */
  9. extern int gpio_eth_irq;
  10. extern int gpio_debug_led1;
  11. extern int gpio_debug_led2;
  12. extern int wm9713_irq;
  13. extern int lcd_id;
  14. extern int lcd_orientation;
  15. #ifdef CONFIG_MACH_ZYLONITE300
  16. extern void zylonite_pxa300_init(void);
  17. #else
  18. static inline void zylonite_pxa300_init(void)
  19. {
  20. if (cpu_is_pxa300() || cpu_is_pxa310())
  21. panic("%s: PXA300/PXA310 not supported\n", __func__);
  22. }
  23. #endif
  24. #ifdef CONFIG_MACH_ZYLONITE320
  25. extern void zylonite_pxa320_init(void);
  26. #else
  27. static inline void zylonite_pxa320_init(void)
  28. {
  29. if (cpu_is_pxa320())
  30. panic("%s: PXA320 not supported\n", __func__);
  31. }
  32. #endif
  33. #endif /* __ASM_ARCH_ZYLONITE_H */