platdevice.h 576 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2014 Panasonic Corporation
  3. * Author: Masahiro Yamada <yamada.m@jp.panasonic.com>
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef ARCH_PLATDEVICE_H
  8. #define ARCH_PLATDEVICE_H
  9. #include <dm/platdata.h>
  10. #include <dm/platform_data/serial-uniphier.h>
  11. #define SERIAL_DEVICE(n, ba, clk) \
  12. static struct uniphier_serial_platform_data serial_device##n = { \
  13. .base = ba, \
  14. .uartclk = clk \
  15. }; \
  16. U_BOOT_DEVICE(serial##n) = { \
  17. .name = DRIVER_NAME, \
  18. .platdata = &serial_device##n \
  19. };
  20. #endif /* ARCH_PLATDEVICE_H */