k3-psil-j721e.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
  4. * Author: Peter Ujfalusi <peter.ujfalusi@ti.com>
  5. */
  6. #include <linux/kernel.h>
  7. #include "k3-psil-priv.h"
  8. #define PSIL_ETHERNET(x) \
  9. { \
  10. .thread_id = x, \
  11. .ep_config = { \
  12. .ep_type = PSIL_EP_NATIVE, \
  13. .pkt_mode = 1, \
  14. .needs_epib = 1, \
  15. .psd_size = 16, \
  16. }, \
  17. }
  18. /* PSI-L source thread IDs, used for RX (DMA_DEV_TO_MEM) */
  19. static struct psil_ep j721e_src_ep_map[] = {
  20. /* CPSW0 */
  21. PSIL_ETHERNET(0x7000),
  22. };
  23. /* PSI-L destination thread IDs, used for TX (DMA_MEM_TO_DEV) */
  24. static struct psil_ep j721e_dst_ep_map[] = {
  25. /* CPSW0 */
  26. PSIL_ETHERNET(0xf000),
  27. PSIL_ETHERNET(0xf001),
  28. PSIL_ETHERNET(0xf002),
  29. PSIL_ETHERNET(0xf003),
  30. PSIL_ETHERNET(0xf004),
  31. PSIL_ETHERNET(0xf005),
  32. PSIL_ETHERNET(0xf006),
  33. PSIL_ETHERNET(0xf007),
  34. };
  35. struct psil_ep_map j721e_ep_map = {
  36. .name = "j721e",
  37. .src = j721e_src_ep_map,
  38. .src_count = ARRAY_SIZE(j721e_src_ep_map),
  39. .dst = j721e_dst_ep_map,
  40. .dst_count = ARRAY_SIZE(j721e_dst_ep_map),
  41. };