mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-15 07:43:07 +00:00
83d290c56f
When U-Boot started using SPDX tags we were among the early adopters and there weren't a lot of other examples to borrow from. So we picked the area of the file that usually had a full license text and replaced it with an appropriate SPDX-License-Identifier: entry. Since then, the Linux Kernel has adopted SPDX tags and they place it as the very first line in a file (except where shebangs are used, then it's second line) and with slightly different comment styles than us. In part due to community overlap, in part due to better tag visibility and in part for other minor reasons, switch over to that style. This commit changes all instances where we have a single declared license in the tag as both the before and after are identical in tag contents. There's also a few places where I found we did not have a tag and have introduced one. Signed-off-by: Tom Rini <trini@konsulko.com>
152 lines
4.5 KiB
C
152 lines
4.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* SSI Internal Memory Map
|
|
*
|
|
* Copyright (C) 2004-2007 Freescale Semiconductor, Inc.
|
|
* TsiChung Liew (Tsi-Chung.Liew@freescale.com)
|
|
*/
|
|
|
|
#ifndef __SSI_H__
|
|
#define __SSI_H__
|
|
|
|
typedef struct ssi {
|
|
u32 tx0;
|
|
u32 tx1;
|
|
u32 rx0;
|
|
u32 rx1;
|
|
u32 cr;
|
|
u32 isr;
|
|
u32 ier;
|
|
u32 tcr;
|
|
u32 rcr;
|
|
u32 ccr;
|
|
u8 resv0[0x4];
|
|
u32 fcsr;
|
|
u8 resv1[0x8];
|
|
u32 acr;
|
|
u32 acadd;
|
|
u32 acdat;
|
|
u32 atag;
|
|
u32 tmask;
|
|
u32 rmask;
|
|
} ssi_t;
|
|
|
|
#define SSI_CR_CIS (0x00000200)
|
|
#define SSI_CR_TCH (0x00000100)
|
|
#define SSI_CR_MCE (0x00000080)
|
|
#define SSI_CR_I2S_MASK (0xFFFFFF9F)
|
|
#define SSI_CR_I2S_SLAVE (0x00000040)
|
|
#define SSI_CR_I2S_MASTER (0x00000020)
|
|
#define SSI_CR_I2S_NORMAL (0x00000000)
|
|
#define SSI_CR_SYN (0x00000010)
|
|
#define SSI_CR_NET (0x00000008)
|
|
#define SSI_CR_RE (0x00000004)
|
|
#define SSI_CR_TE (0x00000002)
|
|
#define SSI_CR_SSI_EN (0x00000001)
|
|
|
|
#define SSI_ISR_CMDAU (0x00040000)
|
|
#define SSI_ISR_CMDDU (0x00020000)
|
|
#define SSI_ISR_RXT (0x00010000)
|
|
#define SSI_ISR_RDR1 (0x00008000)
|
|
#define SSI_ISR_RDR0 (0x00004000)
|
|
#define SSI_ISR_TDE1 (0x00002000)
|
|
#define SSI_ISR_TDE0 (0x00001000)
|
|
#define SSI_ISR_ROE1 (0x00000800)
|
|
#define SSI_ISR_ROE0 (0x00000400)
|
|
#define SSI_ISR_TUE1 (0x00000200)
|
|
#define SSI_ISR_TUE0 (0x00000100)
|
|
#define SSI_ISR_TFS (0x00000080)
|
|
#define SSI_ISR_RFS (0x00000040)
|
|
#define SSI_ISR_TLS (0x00000020)
|
|
#define SSI_ISR_RLS (0x00000010)
|
|
#define SSI_ISR_RFF1 (0x00000008)
|
|
#define SSI_ISR_RFF0 (0x00000004)
|
|
#define SSI_ISR_TFE1 (0x00000002)
|
|
#define SSI_ISR_TFE0 (0x00000001)
|
|
|
|
#define SSI_IER_RDMAE (0x00400000)
|
|
#define SSI_IER_RIE (0x00200000)
|
|
#define SSI_IER_TDMAE (0x00100000)
|
|
#define SSI_IER_TIE (0x00080000)
|
|
#define SSI_IER_CMDAU (0x00040000)
|
|
#define SSI_IER_CMDU (0x00020000)
|
|
#define SSI_IER_RXT (0x00010000)
|
|
#define SSI_IER_RDR1 (0x00008000)
|
|
#define SSI_IER_RDR0 (0x00004000)
|
|
#define SSI_IER_TDE1 (0x00002000)
|
|
#define SSI_IER_TDE0 (0x00001000)
|
|
#define SSI_IER_ROE1 (0x00000800)
|
|
#define SSI_IER_ROE0 (0x00000400)
|
|
#define SSI_IER_TUE1 (0x00000200)
|
|
#define SSI_IER_TUE0 (0x00000100)
|
|
#define SSI_IER_TFS (0x00000080)
|
|
#define SSI_IER_RFS (0x00000040)
|
|
#define SSI_IER_TLS (0x00000020)
|
|
#define SSI_IER_RLS (0x00000010)
|
|
#define SSI_IER_RFF1 (0x00000008)
|
|
#define SSI_IER_RFF0 (0x00000004)
|
|
#define SSI_IER_TFE1 (0x00000002)
|
|
#define SSI_IER_TFE0 (0x00000001)
|
|
|
|
#define SSI_TCR_TXBIT0 (0x00000200)
|
|
#define SSI_TCR_TFEN1 (0x00000100)
|
|
#define SSI_TCR_TFEN0 (0x00000080)
|
|
#define SSI_TCR_TFDIR (0x00000040)
|
|
#define SSI_TCR_TXDIR (0x00000020)
|
|
#define SSI_TCR_TSHFD (0x00000010)
|
|
#define SSI_TCR_TSCKP (0x00000008)
|
|
#define SSI_TCR_TFSI (0x00000004)
|
|
#define SSI_TCR_TFSL (0x00000002)
|
|
#define SSI_TCR_TEFS (0x00000001)
|
|
|
|
#define SSI_RCR_RXEXT (0x00000400)
|
|
#define SSI_RCR_RXBIT0 (0x00000200)
|
|
#define SSI_RCR_RFEN1 (0x00000100)
|
|
#define SSI_RCR_RFEN0 (0x00000080)
|
|
#define SSI_RCR_RSHFD (0x00000010)
|
|
#define SSI_RCR_RSCKP (0x00000008)
|
|
#define SSI_RCR_RFSI (0x00000004)
|
|
#define SSI_RCR_RFSL (0x00000002)
|
|
#define SSI_RCR_REFS (0x00000001)
|
|
|
|
#define SSI_CCR_DIV2 (0x00040000)
|
|
#define SSI_CCR_PSR (0x00020000)
|
|
#define SSI_CCR_WL(x) (((x) & 0x0F) << 13)
|
|
#define SSI_CCR_WL_MASK (0xFFFE1FFF)
|
|
#define SSI_CCR_DC(x) (((x)& 0x1F) << 8)
|
|
#define SSI_CCR_DC_MASK (0xFFFFE0FF)
|
|
#define SSI_CCR_PM(x) ((x) & 0xFF)
|
|
#define SSI_CCR_PM_MASK (0xFFFFFF00)
|
|
|
|
#define SSI_FCSR_RFCNT1(x) (((x) & 0x0F) << 28)
|
|
#define SSI_FCSR_RFCNT1_MASK (0x0FFFFFFF)
|
|
#define SSI_FCSR_TFCNT1(x) (((x) & 0x0F) << 24)
|
|
#define SSI_FCSR_TFCNT1_MASK (0xF0FFFFFF)
|
|
#define SSI_FCSR_RFWM1(x) (((x) & 0x0F) << 20)
|
|
#define SSI_FCSR_RFWM1_MASK (0xFF0FFFFF)
|
|
#define SSI_FCSR_TFWM1(x) (((x) & 0x0F) << 16)
|
|
#define SSI_FCSR_TFWM1_MASK (0xFFF0FFFF)
|
|
#define SSI_FCSR_RFCNT0(x) (((x) & 0x0F) << 12)
|
|
#define SSI_FCSR_RFCNT0_MASK (0xFFFF0FFF)
|
|
#define SSI_FCSR_TFCNT0(x) (((x) & 0x0F) << 8)
|
|
#define SSI_FCSR_TFCNT0_MASK (0xFFFFF0FF)
|
|
#define SSI_FCSR_RFWM0(x) (((x) & 0x0F) << 4)
|
|
#define SSI_FCSR_RFWM0_MASK (0xFFFFFF0F)
|
|
#define SSI_FCSR_TFWM0(x) ((x) & 0x0F)
|
|
#define SSI_FCSR_TFWM0_MASK (0xFFFFFFF0)
|
|
|
|
#define SSI_ACR_FRDIV(x) (((x) & 0x3F) << 5)
|
|
#define SSI_ACR_FRDIV_MASK (0xFFFFF81F)
|
|
#define SSI_ACR_WR (0x00000010)
|
|
#define SSI_ACR_RD (0x00000008)
|
|
#define SSI_ACR_TIF (0x00000004)
|
|
#define SSI_ACR_FV (0x00000002)
|
|
#define SSI_ACR_AC97EN (0x00000001)
|
|
|
|
#define SSI_ACADD_SSI_ACADD(x) ((x) & 0x0007FFFF)
|
|
|
|
#define SSI_ACDAT_SSI_ACDAT(x) ((x) & 0x0007FFFF)
|
|
|
|
#define SSI_ATAG_DDI_ATAG(x) ((x) & 0x0000FFFF)
|
|
|
|
#endif /* __SSI_H__ */
|