devices-imx27.h 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. /*
  2. * Copyright (C) 2010 Pengutronix
  3. * Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>
  4. *
  5. * This program is free software; you can redistribute it and/or modify it under
  6. * the terms of the GNU General Public License version 2 as published by the
  7. * Free Software Foundation.
  8. */
  9. #include "devices/devices-common.h"
  10. extern const struct imx_fec_data imx27_fec_data;
  11. #define imx27_add_fec(pdata) \
  12. imx_add_fec(&imx27_fec_data, pdata)
  13. extern const struct imx_fsl_usb2_udc_data imx27_fsl_usb2_udc_data;
  14. #define imx27_add_fsl_usb2_udc(pdata) \
  15. imx_add_fsl_usb2_udc(&imx27_fsl_usb2_udc_data, pdata)
  16. extern const struct imx_imx27_coda_data imx27_coda_data;
  17. #define imx27_add_coda() \
  18. imx_add_imx27_coda(&imx27_coda_data)
  19. extern const struct imx_imx2_wdt_data imx27_imx2_wdt_data;
  20. #define imx27_add_imx2_wdt() \
  21. imx_add_imx2_wdt(&imx27_imx2_wdt_data)
  22. extern const struct imx_imx_fb_data imx27_imx_fb_data;
  23. #define imx27_add_imx_fb(pdata) \
  24. imx_add_imx_fb(&imx27_imx_fb_data, pdata)
  25. extern const struct imx_imx_i2c_data imx27_imx_i2c_data[];
  26. #define imx27_add_imx_i2c(id, pdata) \
  27. imx_add_imx_i2c(&imx27_imx_i2c_data[id], pdata)
  28. extern const struct imx_imx_keypad_data imx27_imx_keypad_data;
  29. #define imx27_add_imx_keypad(pdata) \
  30. imx_add_imx_keypad(&imx27_imx_keypad_data, pdata)
  31. extern const struct imx_imx_ssi_data imx27_imx_ssi_data[];
  32. #define imx27_add_imx_ssi(id, pdata) \
  33. imx_add_imx_ssi(&imx27_imx_ssi_data[id], pdata)
  34. extern const struct imx_imx_uart_1irq_data imx27_imx_uart_data[];
  35. #define imx27_add_imx_uart(id, pdata) \
  36. imx_add_imx_uart_1irq(&imx27_imx_uart_data[id], pdata)
  37. #define imx27_add_imx_uart0(pdata) imx27_add_imx_uart(0, pdata)
  38. #define imx27_add_imx_uart1(pdata) imx27_add_imx_uart(1, pdata)
  39. #define imx27_add_imx_uart2(pdata) imx27_add_imx_uart(2, pdata)
  40. #define imx27_add_imx_uart3(pdata) imx27_add_imx_uart(3, pdata)
  41. #define imx27_add_imx_uart4(pdata) imx27_add_imx_uart(4, pdata)
  42. #define imx27_add_imx_uart5(pdata) imx27_add_imx_uart(5, pdata)
  43. extern const struct imx_mx2_camera_data imx27_mx2_camera_data;
  44. #define imx27_add_mx2_camera(pdata) \
  45. imx_add_mx2_camera(&imx27_mx2_camera_data, pdata)
  46. extern const struct imx_mx2_emma_data imx27_mx2_emmaprp_data;
  47. #define imx27_add_mx2_emmaprp() \
  48. imx_add_mx2_emmaprp(&imx27_mx2_emmaprp_data)
  49. extern const struct imx_mxc_ehci_data imx27_mxc_ehci_otg_data;
  50. #define imx27_add_mxc_ehci_otg(pdata) \
  51. imx_add_mxc_ehci(&imx27_mxc_ehci_otg_data, pdata)
  52. extern const struct imx_mxc_ehci_data imx27_mxc_ehci_hs_data[];
  53. #define imx27_add_mxc_ehci_hs(id, pdata) \
  54. imx_add_mxc_ehci(&imx27_mxc_ehci_hs_data[id - 1], pdata)
  55. extern const struct imx_mxc_mmc_data imx27_mxc_mmc_data[];
  56. #define imx27_add_mxc_mmc(id, pdata) \
  57. imx_add_mxc_mmc(&imx27_mxc_mmc_data[id], pdata)
  58. extern const struct imx_mxc_nand_data imx27_mxc_nand_data;
  59. #define imx27_add_mxc_nand(pdata) \
  60. imx_add_mxc_nand(&imx27_mxc_nand_data, pdata)
  61. extern const struct imx_mxc_w1_data imx27_mxc_w1_data;
  62. #define imx27_add_mxc_w1() \
  63. imx_add_mxc_w1(&imx27_mxc_w1_data)
  64. extern const struct imx_spi_imx_data imx27_cspi_data[];
  65. #define imx27_add_cspi(id, pdata) \
  66. imx_add_spi_imx(&imx27_cspi_data[id], pdata)
  67. #define imx27_add_spi_imx0(pdata) imx27_add_cspi(0, pdata)
  68. #define imx27_add_spi_imx1(pdata) imx27_add_cspi(1, pdata)
  69. #define imx27_add_spi_imx2(pdata) imx27_add_cspi(2, pdata)
  70. extern const struct imx_pata_imx_data imx27_pata_imx_data;
  71. #define imx27_add_pata_imx() \
  72. imx_add_pata_imx(&imx27_pata_imx_data)