comparison scripts/make-rv-swe-hdr.sh @ 11:12ed2291fb67

scripts/make-rv-swe-hdr.sh: import from Magnetite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 16 Oct 2020 07:04:58 +0000
parents
children ee04ca45053d
comparison
equal deleted inserted replaced
10:775dba605f33 11:12ed2291fb67
1 #!/bin/sh
2
3 echo '#ifndef __RV_SWE_H__'
4 echo '#define __RV_SWE_H__'
5 echo
6
7 if [ "$ATP_STATE" = 1 ]
8 then
9 echo '#define RVM_ATP_SWE'
10 fi
11
12 echo '#define RVM_AUDIO_SWE'
13 echo '#define RVM_ETM_SWE'
14 echo '#define RVM_DAR_SWE'
15 echo '#define RVM_SPI_SWE'
16 echo '#define RVM_LLS_SWE'
17 echo '#define RVM_KPD_SWE'
18
19 if [ "$FCHG_STATE" = 1 ]
20 then
21 echo '#define RVM_FCHG_SWE'
22 fi
23
24 if [ "$LCC_STATE" = 1 ]
25 then
26 echo '#define RVM_LCC_SWE'
27 fi
28
29 if [ "$PWR_STATE" = 1 ]
30 then
31 echo '#define RVM_PWR_SWE'
32 fi
33
34 if [ "$R2D_STATE" = 1 ]
35 then
36 echo '#define RVM_R2D_SWE'
37 fi
38
39 if [ "$MKS_STATE" = 1 ]
40 then
41 echo '#define RVM_MKS_SWE'
42 fi
43
44 echo '#define RVM_RTC_SWE'
45 echo '#define RVM_FFS_SWE'
46
47 echo
48 echo '#endif /* __RV_SWE_H__ */'