diff options
Diffstat (limited to 'firmware/target/arm/as3525/ascodec-target.h')
-rw-r--r-- | firmware/target/arm/as3525/ascodec-target.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/firmware/target/arm/as3525/ascodec-target.h b/firmware/target/arm/as3525/ascodec-target.h index 989712ad0f..11474a44da 100644 --- a/firmware/target/arm/as3525/ascodec-target.h +++ b/firmware/target/arm/as3525/ascodec-target.h | |||
@@ -28,7 +28,8 @@ | |||
28 | #ifndef SIMULATOR | 28 | #ifndef SIMULATOR |
29 | 29 | ||
30 | #include "as3514.h" | 30 | #include "as3514.h" |
31 | #include "kernel.h" /* for struct wakeup */ | 31 | #include "kernel.h" /* for struct wakeup */ |
32 | #include "clock-target.h" /* for AS3525_I2C_PRESCALER */ | ||
32 | 33 | ||
33 | /* Charge Pump and Power management Settings */ | 34 | /* Charge Pump and Power management Settings */ |
34 | #define AS314_CP_DCDC3_SETTING \ | 35 | #define AS314_CP_DCDC3_SETTING \ |
@@ -70,8 +71,6 @@ struct ascodec_request { | |||
70 | 71 | ||
71 | void ascodec_init(void); | 72 | void ascodec_init(void); |
72 | 73 | ||
73 | void ascodec_init_late(void); | ||
74 | |||
75 | int ascodec_write(unsigned int index, unsigned int value); | 74 | int ascodec_write(unsigned int index, unsigned int value); |
76 | 75 | ||
77 | int ascodec_read(unsigned int index); | 76 | int ascodec_read(unsigned int index); |
@@ -106,7 +105,14 @@ void ascodec_lock(void); | |||
106 | 105 | ||
107 | void ascodec_unlock(void); | 106 | void ascodec_unlock(void); |
108 | 107 | ||
108 | #if CONFIG_CPU == AS3525 | ||
109 | void ascodec_wait_adc_finished(void); | 109 | void ascodec_wait_adc_finished(void); |
110 | #else | ||
111 | static inline void ascodec_wait_adc_finished(void) | ||
112 | { | ||
113 | /* FIXME: Doesn't work yet on AS3525v2 */ | ||
114 | } | ||
115 | #endif | ||
110 | 116 | ||
111 | void ascodec_enable_endofch_irq(void); | 117 | void ascodec_enable_endofch_irq(void); |
112 | 118 | ||