btfm_swr_slave.h 864 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef BTFM_SWR_SLAVE_H
  6. #define BTFM_SWR_SLAVE_H
  7. #include "btfm_swr.h"
  8. /* Registers Address */
  9. /* Register Bit Setting */
  10. #define SLAVE_ENABLE_OVERRUN_AUTO_RECOVERY (0x1 << 1)
  11. #define SLAVE_ENABLE_UNDERRUN_AUTO_RECOVERY (0x1 << 0)
  12. #define SLAVE_SB_PGD_PORT_ENABLE (0x1 << 0)
  13. #define SLAVE_SB_PGD_PORT_DISABLE (0x0 << 0)
  14. #define BTFM_INVALID_PORT 0xFF
  15. extern struct soc_port_mapping slave_port[];
  16. enum {
  17. QCA_GANGES_SOC_ID_0100 = 0x40210100,
  18. QCA_GANGES_SOC_ID_0200 = 0x40210200,
  19. };
  20. enum {
  21. QCA_EVROS_SOC_ID_0100 = 0x40200100,
  22. QCA_EVROS_SOC_ID_0200 = 0x40200200,
  23. };
  24. enum {
  25. EVROS_EA = 0x0108170220,
  26. GANGES_EA = 0x0208170220,
  27. };
  28. /* Specific defines for slave slimbus device */
  29. #define SLAVE_SWR_REG_OFFSET 0x0800
  30. #endif