zylonite.h 965 B

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