xref: /openbmc/u-boot/arch/arm/include/asm/arch-spear/spr_ssp.h (revision 83d290c56fab2d38cd1ab4c4cc7099559c1d5046)
1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */
24ae8bc43SStefan Roese /*
34ae8bc43SStefan Roese  * Copyright (C) 2012 Stefan Roese <sr@denx.de>
44ae8bc43SStefan Roese  */
54ae8bc43SStefan Roese 
64ae8bc43SStefan Roese #ifndef _SPR_SSP_H
74ae8bc43SStefan Roese #define _SPR_SSP_H
84ae8bc43SStefan Roese 
94ae8bc43SStefan Roese struct ssp_regs {
104ae8bc43SStefan Roese 	u32 sspcr0;
114ae8bc43SStefan Roese 	u32 sspcr1;
124ae8bc43SStefan Roese 	u32 sspdr;
134ae8bc43SStefan Roese 	u32 sspsr;
144ae8bc43SStefan Roese 	u32 sspcpsr;
154ae8bc43SStefan Roese 	u32 sspimsc;
164ae8bc43SStefan Roese 	u32 sspicr;
174ae8bc43SStefan Roese 	u32 sspdmacr;
184ae8bc43SStefan Roese };
194ae8bc43SStefan Roese 
204ae8bc43SStefan Roese #define SSPCR0_FRF_MOT_SPI	0x0000
214ae8bc43SStefan Roese #define SSPCR0_DSS_16BITS	0x000f
224ae8bc43SStefan Roese 
234ae8bc43SStefan Roese #define SSPCR1_SSE		0x0002
244ae8bc43SStefan Roese 
254ae8bc43SStefan Roese #define SSPSR_TNF		0x2
264ae8bc43SStefan Roese #define SSPSR_TFE		0x1
274ae8bc43SStefan Roese 
284ae8bc43SStefan Roese #endif
29