ucp1020.h 922 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2013-2015 Arcturus Networks, Inc.
  4. * http://www.arcturusnetworks.com/products/ucp1020/
  5. * by Oleksandr G Zhadan et al.
  6. */
  7. #ifndef __UCP1020_H__
  8. #define __UCP1020_H__
  9. #define GPIO0 31
  10. #define GPIO1 30
  11. #define GPIO2 29
  12. #define GPIO3 28
  13. #define GPIO4 27
  14. #define GPIO5 26
  15. #define GPIO6 25
  16. #define GPIO7 24
  17. #define GPIO8 23
  18. #define GPIO9 22
  19. #define GPIO10 21
  20. #define GPIO11 20
  21. #define GPIO12 19
  22. #define GPIO13 18
  23. #define GPIO14 17
  24. #define GPIO15 16
  25. #define GPIO_MAX_NUM 16
  26. #define GPIO_SDHC_CD GPIO8
  27. #define GPIO_SDHC_WP GPIO9
  28. #define GPIO_USB_PCTL0 GPIO10
  29. #define GPIO_PCIE1_EN GPIO11
  30. #define GPIO_PCIE2_EN GPIO10
  31. #define GPIO_USB_PCTL1 GPIO11
  32. #define GPIO_WD GPIO15
  33. static char *defkargs = "root=/dev/mtdblock1 rootfstype=cramfs ro";
  34. static char *mmckargs = "root=/dev/mmcblk0p1 rootwait rw";
  35. int get_arc_info(void);
  36. #endif