zylonite.h 786 B

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