xref: /linux/include/linux/platform_data/ti-sysc.h (revision 49a0a3d805df3b7b4f8a04db6dbf55aa36fd762c)
1*49a0a3d8STony Lindgren #ifndef __TI_SYSC_DATA_H__
2*49a0a3d8STony Lindgren #define __TI_SYSC_DATA_H__
3*49a0a3d8STony Lindgren 
4*49a0a3d8STony Lindgren /**
5*49a0a3d8STony Lindgren  * struct sysc_regbits - TI OCP_SYSCONFIG register field offsets
6*49a0a3d8STony Lindgren  * @midle_shift: Offset of the midle bit
7*49a0a3d8STony Lindgren  * @clkact_shift: Offset of the clockactivity bit
8*49a0a3d8STony Lindgren  * @sidle_shift: Offset of the sidle bit
9*49a0a3d8STony Lindgren  * @enwkup_shift: Offset of the enawakeup bit
10*49a0a3d8STony Lindgren  * @srst_shift: Offset of the softreset bit
11*49a0a3d8STony Lindgren  * @autoidle_shift: Offset of the autoidle bit
12*49a0a3d8STony Lindgren  * @dmadisable_shift: Offset of the dmadisable bit
13*49a0a3d8STony Lindgren  * @emufree_shift; Offset of the emufree bit
14*49a0a3d8STony Lindgren  *
15*49a0a3d8STony Lindgren  * Note that 0 is a valid shift, and for ti-sysc.c -ENODEV can be used if a
16*49a0a3d8STony Lindgren  * feature is not available.
17*49a0a3d8STony Lindgren  */
18*49a0a3d8STony Lindgren struct sysc_regbits {
19*49a0a3d8STony Lindgren 	s8 midle_shift;
20*49a0a3d8STony Lindgren 	s8 clkact_shift;
21*49a0a3d8STony Lindgren 	s8 sidle_shift;
22*49a0a3d8STony Lindgren 	s8 enwkup_shift;
23*49a0a3d8STony Lindgren 	s8 srst_shift;
24*49a0a3d8STony Lindgren 	s8 autoidle_shift;
25*49a0a3d8STony Lindgren 	s8 dmadisable_shift;
26*49a0a3d8STony Lindgren 	s8 emufree_shift;
27*49a0a3d8STony Lindgren };
28*49a0a3d8STony Lindgren 
29*49a0a3d8STony Lindgren #endif	/* __TI_SYSC_DATA_H__ */
30