• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _UDA134X_CODEC_H
3 #define _UDA134X_CODEC_H
4 
5 #define UDA134X_L3ADDR	5
6 #define UDA134X_DATA0_ADDR	((UDA134X_L3ADDR << 2) | 0)
7 #define UDA134X_DATA1_ADDR	((UDA134X_L3ADDR << 2) | 1)
8 #define UDA134X_STATUS_ADDR	((UDA134X_L3ADDR << 2) | 2)
9 
10 #define UDA134X_EXTADDR_PREFIX	0xC0
11 #define UDA134X_EXTDATA_PREFIX	0xE0
12 
13 /* UDA134X registers */
14 #define UDA134X_EA000	0
15 #define UDA134X_EA001	1
16 #define UDA134X_EA010	2
17 #define UDA134X_EA011	3
18 #define UDA134X_EA100	4
19 #define UDA134X_EA101	5
20 #define UDA134X_EA110	6
21 #define UDA134X_EA111	7
22 #define UDA134X_STATUS0 8
23 #define UDA134X_STATUS1 9
24 #define UDA134X_DATA000 10
25 #define UDA134X_DATA001 11
26 #define UDA134X_DATA010 12
27 #define UDA134X_DATA011 13
28 #define UDA134X_DATA1   14
29 
30 #define STATUS0_DAIFMT_MASK (~(7<<1))
31 #define STATUS0_SYSCLK_MASK (~(3<<4))
32 
33 #endif
34