devices-db5500.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * Copyright (C) ST-Ericsson SA 2010
  3. *
  4. * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson
  5. * License terms: GNU General Public License (GPL), version 2.
  6. */
  7. #ifndef __DEVICES_DB5500_H
  8. #define __DEVICES_DB5500_H
  9. #include "devices-common.h"
  10. #define db5500_add_i2c1(parent, pdata) \
  11. dbx500_add_i2c(parent, 1, U5500_I2C1_BASE, IRQ_DB5500_I2C1, pdata)
  12. #define db5500_add_i2c2(parent, pdata) \
  13. dbx500_add_i2c(parent, 2, U5500_I2C2_BASE, IRQ_DB5500_I2C2, pdata)
  14. #define db5500_add_i2c3(parent, pdata) \
  15. dbx500_add_i2c(parent, 3, U5500_I2C3_BASE, IRQ_DB5500_I2C3, pdata)
  16. #define db5500_add_msp0_spi(parent, pdata) \
  17. dbx500_add_msp_spi(parent, "msp0", U5500_MSP0_BASE, \
  18. IRQ_DB5500_MSP0, pdata)
  19. #define db5500_add_msp1_spi(parent, pdata) \
  20. dbx500_add_msp_spi(parent, "msp1", U5500_MSP1_BASE, \
  21. IRQ_DB5500_MSP1, pdata)
  22. #define db5500_add_msp2_spi(parent, pdata) \
  23. dbx500_add_msp_spi(parent, "msp2", U5500_MSP2_BASE, \
  24. IRQ_DB5500_MSP2, pdata)
  25. #define db5500_add_msp0_spi(parent, pdata) \
  26. dbx500_add_msp_spi(parent, "msp0", U5500_MSP0_BASE, \
  27. IRQ_DB5500_MSP0, pdata)
  28. #define db5500_add_msp1_spi(parent, pdata) \
  29. dbx500_add_msp_spi(parent, "msp1", U5500_MSP1_BASE, \
  30. IRQ_DB5500_MSP1, pdata)
  31. #define db5500_add_msp2_spi(parent, pdata) \
  32. dbx500_add_msp_spi(parent, "msp2", U5500_MSP2_BASE, \
  33. IRQ_DB5500_MSP2, pdata)
  34. #define db5500_add_rtc(parent) \
  35. dbx500_add_rtc(parent, U5500_RTC_BASE, IRQ_DB5500_RTC);
  36. #define db5500_add_usb(parent, rx_cfg, tx_cfg) \
  37. ux500_add_usb(parent, U5500_USBOTG_BASE, \
  38. IRQ_DB5500_USBOTG, rx_cfg, tx_cfg)
  39. #define db5500_add_sdi0(parent, pdata) \
  40. dbx500_add_sdi(parent, "sdi0", U5500_SDI0_BASE, \
  41. IRQ_DB5500_SDMMC0, pdata, \
  42. 0x10480180)
  43. #define db5500_add_sdi1(parent, pdata) \
  44. dbx500_add_sdi(parent, "sdi1", U5500_SDI1_BASE, \
  45. IRQ_DB5500_SDMMC1, pdata, \
  46. 0x10480180)
  47. #define db5500_add_sdi2(parent, pdata) \
  48. dbx500_add_sdi(parent, "sdi2", U5500_SDI2_BASE, \
  49. IRQ_DB5500_SDMMC2, pdata \
  50. 0x10480180)
  51. #define db5500_add_sdi3(parent, pdata) \
  52. dbx500_add_sdi(parent, "sdi3", U5500_SDI3_BASE, \
  53. IRQ_DB5500_SDMMC3, pdata \
  54. 0x10480180)
  55. #define db5500_add_sdi4(parent, pdata) \
  56. dbx500_add_sdi(parent, "sdi4", U5500_SDI4_BASE, \
  57. IRQ_DB5500_SDMMC4, pdata \
  58. 0x10480180)
  59. /* This one has a bad peripheral ID in the U5500 silicon */
  60. #define db5500_add_spi0(parent, pdata) \
  61. dbx500_add_spi(parent, "spi0", U5500_SPI0_BASE, \
  62. IRQ_DB5500_SPI0, pdata, \
  63. 0x10080023)
  64. #define db5500_add_spi1(parent, pdata) \
  65. dbx500_add_spi(parent, "spi1", U5500_SPI1_BASE, \
  66. IRQ_DB5500_SPI1, pdata, \
  67. 0x10080023)
  68. #define db5500_add_spi2(parent, pdata) \
  69. dbx500_add_spi(parent, "spi2", U5500_SPI2_BASE, \
  70. IRQ_DB5500_SPI2, pdata \
  71. 0x10080023)
  72. #define db5500_add_spi3(parent, pdata) \
  73. dbx500_add_spi(parent, "spi3", U5500_SPI3_BASE, \
  74. IRQ_DB5500_SPI3, pdata \
  75. 0x10080023)
  76. #define db5500_add_uart0(parent, plat) \
  77. dbx500_add_uart(parent, "uart0", U5500_UART0_BASE, \
  78. IRQ_DB5500_UART0, plat)
  79. #define db5500_add_uart1(parent, plat) \
  80. dbx500_add_uart(parent, "uart1", U5500_UART1_BASE, \
  81. IRQ_DB5500_UART1, plat)
  82. #define db5500_add_uart2(parent, plat) \
  83. dbx500_add_uart(parent, "uart2", U5500_UART2_BASE, \
  84. IRQ_DB5500_UART2, plat)
  85. #define db5500_add_uart3(parent, plat) \
  86. dbx500_add_uart(parent, "uart3", U5500_UART3_BASE, \
  87. IRQ_DB5500_UART3, plat)
  88. #endif