diff options
Diffstat (limited to 'firmware/target/arm/as3525/ascodec-target.h')
-rw-r--r-- | firmware/target/arm/as3525/ascodec-target.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/firmware/target/arm/as3525/ascodec-target.h b/firmware/target/arm/as3525/ascodec-target.h index 11474a44da..2bc99ab7e7 100644 --- a/firmware/target/arm/as3525/ascodec-target.h +++ b/firmware/target/arm/as3525/ascodec-target.h | |||
@@ -73,6 +73,15 @@ void ascodec_init(void); | |||
73 | 73 | ||
74 | int ascodec_write(unsigned int index, unsigned int value); | 74 | int ascodec_write(unsigned int index, unsigned int value); |
75 | 75 | ||
76 | #if CONFIG_CPU == AS3525v2 | ||
77 | static inline void ascodec_write_pmu(unsigned int index, unsigned int subreg, | ||
78 | unsigned int value) | ||
79 | { | ||
80 | ascodec_write(AS3543_PMU_ENABLE, 8|subreg); | ||
81 | ascodec_write(index, value); | ||
82 | } | ||
83 | #endif | ||
84 | |||
76 | int ascodec_read(unsigned int index); | 85 | int ascodec_read(unsigned int index); |
77 | 86 | ||
78 | int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); | 87 | int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); |