wcd-spi-registers.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (c) 2016, The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef __WCD_SPI_REGISTERS_H__
  6. #define __WCD_SPI_REGISTERS_H__
  7. #include <linux/regmap.h>
  8. #define WCD_SPI_SLAVE_SANITY (0x00)
  9. #define WCD_SPI_SLAVE_DEVICE_ID (0x04)
  10. #define WCD_SPI_SLAVE_STATUS (0x08)
  11. #define WCD_SPI_SLAVE_CONFIG (0x0c)
  12. #define WCD_SPI_SLAVE_SW_RESET (0x10)
  13. #define WCD_SPI_SLAVE_IRQ_STATUS (0x14)
  14. #define WCD_SPI_SLAVE_IRQ_EN (0x18)
  15. #define WCD_SPI_SLAVE_IRQ_CLR (0x1c)
  16. #define WCD_SPI_SLAVE_IRQ_FORCE (0x20)
  17. #define WCD_SPI_SLAVE_TX (0x24)
  18. #define WCD_SPI_SLAVE_TEST_BUS_DATA (0x2c)
  19. #define WCD_SPI_SLAVE_TEST_BUS_CTRL (0x30)
  20. #define WCD_SPI_SLAVE_SW_RST_IRQ (0x34)
  21. #define WCD_SPI_SLAVE_CHAR_CFG (0x38)
  22. #define WCD_SPI_SLAVE_CHAR_DATA_MOSI (0x3c)
  23. #define WCD_SPI_SLAVE_CHAR_DATA_CS_N (0x40)
  24. #define WCD_SPI_SLAVE_CHAR_DATA_MISO (0x44)
  25. #define WCD_SPI_SLAVE_TRNS_BYTE_CNT (0x4c)
  26. #define WCD_SPI_SLAVE_TRNS_LEN (0x50)
  27. #define WCD_SPI_SLAVE_FIFO_LEVEL (0x54)
  28. #define WCD_SPI_SLAVE_GENERICS (0x58)
  29. #define WCD_SPI_SLAVE_EXT_BASE_ADDR (0x5c)
  30. #define WCD_SPI_MAX_REGISTER (0x5F)
  31. #endif /* End __WCD_SPI_REGISTERS_H__ */