zylonite.h 997 B

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