pcm027.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * arch/arm/mach-pxa/include/mach/pcm027.h
  4. *
  5. * (c) 2003 Phytec Messtechnik GmbH <[email protected]>
  6. * (c) 2007 Juergen Beisert <[email protected]>
  7. */
  8. /*
  9. * Definitions of CPU card resources only
  10. */
  11. #include "irqs.h" /* PXA_GPIO_TO_IRQ */
  12. /* phyCORE-PXA270 (PCM027) Interrupts */
  13. #define PCM027_IRQ(x) (IRQ_BOARD_START + (x))
  14. #define PCM027_BTDET_IRQ PCM027_IRQ(0)
  15. #define PCM027_FF_RI_IRQ PCM027_IRQ(1)
  16. #define PCM027_MMCDET_IRQ PCM027_IRQ(2)
  17. #define PCM027_PM_5V_IRQ PCM027_IRQ(3)
  18. #define PCM027_NR_IRQS (IRQ_BOARD_START + 32)
  19. /* I2C RTC */
  20. #define PCM027_RTC_IRQ_GPIO 0
  21. #define PCM027_RTC_IRQ PXA_GPIO_TO_IRQ(PCM027_RTC_IRQ_GPIO)
  22. #define PCM027_RTC_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
  23. #define ADR_PCM027_RTC 0x51 /* I2C address */
  24. /* I2C EEPROM */
  25. #define ADR_PCM027_EEPROM 0x54 /* I2C address */
  26. /* Ethernet chip (SMSC91C111) */
  27. #define PCM027_ETH_IRQ_GPIO 52
  28. #define PCM027_ETH_IRQ PXA_GPIO_TO_IRQ(PCM027_ETH_IRQ_GPIO)
  29. #define PCM027_ETH_IRQ_EDGE IRQ_TYPE_EDGE_RISING
  30. #define PCM027_ETH_PHYS PXA_CS5_PHYS
  31. #define PCM027_ETH_SIZE (1*1024*1024)
  32. /* CAN controller SJA1000 (unsupported yet) */
  33. #define PCM027_CAN_IRQ_GPIO 114
  34. #define PCM027_CAN_IRQ PXA_GPIO_TO_IRQ(PCM027_CAN_IRQ_GPIO)
  35. #define PCM027_CAN_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
  36. #define PCM027_CAN_PHYS 0x22000000
  37. #define PCM027_CAN_SIZE 0x100
  38. /* SPI GPIO expander (unsupported yet) */
  39. #define PCM027_EGPIO_IRQ_GPIO 27
  40. #define PCM027_EGPIO_IRQ PXA_GPIO_TO_IRQ(PCM027_EGPIO_IRQ_GPIO)
  41. #define PCM027_EGPIO_IRQ_EDGE IRQ_TYPE_EDGE_FALLING
  42. #define PCM027_EGPIO_CS 24
  43. /*
  44. * TODO: Switch this pin from dedicated usage to GPIO if
  45. * more than the MAX7301 device is connected to this SPI bus
  46. */
  47. #define PCM027_EGPIO_CS_MODE GPIO24_SFRM_MD
  48. /* Flash memory */
  49. #define PCM027_FLASH_PHYS 0x00000000
  50. #define PCM027_FLASH_SIZE 0x02000000
  51. /* onboard LEDs connected to GPIO */
  52. #define PCM027_LED_CPU 90
  53. #define PCM027_LED_HEARD_BEAT 91
  54. /*
  55. * This CPU module needs a baseboard to work. After basic initializing
  56. * its own devices, it calls baseboard's init function.
  57. * TODO: Add your own basebaord init function and call it from
  58. * inside pcm027_init(). This example here is for the developmen board.
  59. * Refer pcm990-baseboard.c
  60. */
  61. extern void pcm990_baseboard_init(void);