summaryrefslogtreecommitdiff
path: root/firmware/target/arm/as3525/ascodec-target.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/as3525/ascodec-target.h')
-rw-r--r--firmware/target/arm/as3525/ascodec-target.h9
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
74int ascodec_write(unsigned int index, unsigned int value); 74int ascodec_write(unsigned int index, unsigned int value);
75 75
76#if CONFIG_CPU == AS3525v2
77static 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
76int ascodec_read(unsigned int index); 85int ascodec_read(unsigned int index);
77 86
78int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data); 87int ascodec_readbytes(unsigned int index, unsigned int len, unsigned char *data);