devices-common.h 627 B

12345678910111213141516171819202122232425
  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_COMMON_H
  8. #define __DEVICES_COMMON_H
  9. #include <linux/platform_device.h>
  10. #include <linux/dma-mapping.h>
  11. #include <linux/sys_soc.h>
  12. #include <linux/amba/bus.h>
  13. struct amba_pl011_data;
  14. static inline struct amba_device *
  15. dbx500_add_uart(struct device *parent, const char *name, resource_size_t base,
  16. int irq, struct amba_pl011_data *pdata)
  17. {
  18. return amba_ahb_device_add(parent, name, base, SZ_4K, irq, 0, pdata, 0);
  19. }
  20. #endif