zylonite.h 978 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. struct platform_mmc_slot {
  9. int gpio_cd;
  10. int gpio_wp;
  11. };
  12. extern struct platform_mmc_slot zylonite_mmc_slot[];
  13. extern int gpio_eth_irq;
  14. extern int gpio_debug_led1;
  15. extern int gpio_debug_led2;
  16. extern int wm9713_irq;
  17. extern int lcd_id;
  18. extern int lcd_orientation;
  19. #ifdef CONFIG_CPU_PXA300
  20. extern void zylonite_pxa300_init(void);
  21. #else
  22. static inline void zylonite_pxa300_init(void)
  23. {
  24. if (cpu_is_pxa300() || cpu_is_pxa310())
  25. panic("%s: PXA300/PXA310 not supported\n", __func__);
  26. }
  27. #endif
  28. #ifdef CONFIG_CPU_PXA320
  29. extern void zylonite_pxa320_init(void);
  30. #else
  31. static inline void zylonite_pxa320_init(void)
  32. {
  33. if (cpu_is_pxa320())
  34. panic("%s: PXA320 not supported\n", __func__);
  35. }
  36. #endif
  37. #endif /* __ASM_ARCH_ZYLONITE_H */