ucp1020.h 948 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2013-2019 Arcturus Networks, Inc.
  4. * https://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. #ifdef CONFIG_MMC
  34. static char *defkargs = "root=/dev/mtdblock1 rootfstype=cramfs ro";
  35. static char *mmckargs = "root=/dev/mmcblk0p1 rootwait rw";
  36. #endif
  37. int get_arc_info(void);
  38. #endif