devices-imx1.h 1.1 KB

1234567891011121314151617181920212223242526272829303132
  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 <mach/mx1.h>
  10. #include <mach/devices-common.h>
  11. extern const struct imx_imx_fb_data imx1_imx_fb_data;
  12. #define imx1_add_imx_fb(pdata) \
  13. imx_add_imx_fb(&imx1_imx_fb_data, pdata)
  14. extern const struct imx_imx_i2c_data imx1_imx_i2c_data;
  15. #define imx1_add_imx_i2c(pdata) \
  16. imx_add_imx_i2c(&imx1_imx_i2c_data, pdata)
  17. extern const struct imx_imx_uart_3irq_data imx1_imx_uart_data[];
  18. #define imx1_add_imx_uart(id, pdata) \
  19. imx_add_imx_uart_3irq(&imx1_imx_uart_data[id], pdata)
  20. #define imx1_add_imx_uart0(pdata) imx1_add_imx_uart(0, pdata)
  21. #define imx1_add_imx_uart1(pdata) imx1_add_imx_uart(1, pdata)
  22. extern const struct imx_spi_imx_data imx1_cspi_data[];
  23. #define imx1_add_cspi(id, pdata) \
  24. imx_add_spi_imx(&imx1_cspi_data[id], pdata)
  25. #define imx1_add_spi_imx0(pdata) imx1_add_cspi(0, pdata)
  26. #define imx1_add_spi_imx1(pdata) imx1_add_cspi(1, pdata)