spr_ssp.h 413 B

12345678910111213141516171819202122232425262728
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright (C) 2012 Stefan Roese <sr@denx.de>
  4. */
  5. #ifndef _SPR_SSP_H
  6. #define _SPR_SSP_H
  7. struct ssp_regs {
  8. u32 sspcr0;
  9. u32 sspcr1;
  10. u32 sspdr;
  11. u32 sspsr;
  12. u32 sspcpsr;
  13. u32 sspimsc;
  14. u32 sspicr;
  15. u32 sspdmacr;
  16. };
  17. #define SSPCR0_FRF_MOT_SPI 0x0000
  18. #define SSPCR0_DSS_16BITS 0x000f
  19. #define SSPCR1_SSE 0x0002
  20. #define SSPSR_TNF 0x2
  21. #define SSPSR_TFE 0x1
  22. #endif