wcd-spi-registers.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2016, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __WCD_SPI_REGISTERS_H__
  14. #define __WCD_SPI_REGISTERS_H__
  15. #include <linux/regmap.h>
  16. #define WCD_SPI_SLAVE_SANITY (0x00)
  17. #define WCD_SPI_SLAVE_DEVICE_ID (0x04)
  18. #define WCD_SPI_SLAVE_STATUS (0x08)
  19. #define WCD_SPI_SLAVE_CONFIG (0x0c)
  20. #define WCD_SPI_SLAVE_SW_RESET (0x10)
  21. #define WCD_SPI_SLAVE_IRQ_STATUS (0x14)
  22. #define WCD_SPI_SLAVE_IRQ_EN (0x18)
  23. #define WCD_SPI_SLAVE_IRQ_CLR (0x1c)
  24. #define WCD_SPI_SLAVE_IRQ_FORCE (0x20)
  25. #define WCD_SPI_SLAVE_TX (0x24)
  26. #define WCD_SPI_SLAVE_TEST_BUS_DATA (0x2c)
  27. #define WCD_SPI_SLAVE_TEST_BUS_CTRL (0x30)
  28. #define WCD_SPI_SLAVE_SW_RST_IRQ (0x34)
  29. #define WCD_SPI_SLAVE_CHAR_CFG (0x38)
  30. #define WCD_SPI_SLAVE_CHAR_DATA_MOSI (0x3c)
  31. #define WCD_SPI_SLAVE_CHAR_DATA_CS_N (0x40)
  32. #define WCD_SPI_SLAVE_CHAR_DATA_MISO (0x44)
  33. #define WCD_SPI_SLAVE_TRNS_BYTE_CNT (0x4c)
  34. #define WCD_SPI_SLAVE_TRNS_LEN (0x50)
  35. #define WCD_SPI_SLAVE_FIFO_LEVEL (0x54)
  36. #define WCD_SPI_SLAVE_GENERICS (0x58)
  37. #define WCD_SPI_SLAVE_EXT_BASE_ADDR (0x5c)
  38. #define WCD_SPI_MAX_REGISTER (0x5F)
  39. #endif /* End __WCD_SPI_REGISTERS_H__ */