diff options
author | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-03-23 11:13:17 +0000 |
---|---|---|
committer | Tobias Diedrich <ranma+coreboot@tdiedrich.de> | 2010-03-23 11:13:17 +0000 |
commit | c4e4ffb5418afce2602a2310747676647ee04ddf (patch) | |
tree | 3e26d05e501bdf1c6d4ea5ed6f7013968226fd59 /firmware/target/arm/as3525/ascodec-target.h | |
parent | f5988d4fbd7150e59f0ea9e4f3f0bd61bbcb0bf9 (diff) | |
download | rockbox-c4e4ffb5418afce2602a2310747676647ee04ddf.tar.gz rockbox-c4e4ffb5418afce2602a2310747676647ee04ddf.zip |
Limit AUDIO_IRQ handling to AS3525, since it doesn't work on the newer SoC in SANSA_CLIPPLUS yet.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25305 a1c6a512-1295-4272-9138-f99709370657
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 | ||