q2spi-slave-reg.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  4. */
  5. #ifndef _SPI_Q2SPI_SLAVE_H_
  6. #define _SPI_Q2SPI_SLAVE_H_
  7. #define Q2SPI_SLAVE_BASE 0x42808000
  8. #define Q2SPI_OFFSET_MASK 0x4
  9. #define Q2SPI_HW_VERSION 0x00000000
  10. #define Q2SPI_DRIVER_VERSION 0x00000004
  11. #define Q2SPI_OP_MODE1 0x00000010
  12. #define Q2SPI_OP_MODE2 0x00000014
  13. #define Q2SPI_HRF_PUSH_ADDRESS 0x00000018
  14. #define Q2SPI_CAP0 0x00000024
  15. #define Q2SPI_CAP1 0x00000028
  16. #define Q2SPI_SCRATCH0 0x00000030
  17. #define Q2SPI_SCRATCH1 0x00000034
  18. #define Q2SPI_SCRATCH2 0x00000038
  19. #define Q2SPI_SCRATCH3 0x0000003C
  20. #define Q2SPI_DB_STATUS 0x00000040
  21. #define Q2SPI_ABORT_STATUS 0x00000044
  22. #define Q2SPI_CLIENT_STATE 0x00000048
  23. #define Q2SPI_RUNTIME_STATUS 0x0000004C
  24. #define Q2SPI_TDB_FREE_SPACE 0x00000050
  25. #define Q2SPI_SLAVE_ERROR 0x00000054
  26. #define Q2SPI_HDR_ERROR 0x00000058
  27. #define Q2SPI_ERROR_EN 0x0000005C
  28. #define Q2SPI_SMA_DATA(n) (0x00000070 + (0x4 * (n)))
  29. #define Q2SPI_SMA_ADDR1 0x00000080
  30. #define Q2SPI_SMA_ADDR2 0x00000084
  31. #define Q2SPI_SMA_CTRL 0x00000088
  32. #define Q2SPI_PURGE_COMPLETE 0x0000008C
  33. #define Q2SPI_HOST_CFG 0x00000090
  34. #define Q2SPI_SLAVE_END_ADDR 0x00000090
  35. #endif /* _SPI_Q2SPI_SLAVE_H_ */