diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2012-01-08 01:43:16 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2012-01-08 01:43:16 +0000 |
commit | 85528242844b71ac45e5331363a48a2956c38275 (patch) | |
tree | 10d8af9068c4f12b2f8f673f3a835bb3211c2f0e /firmware/target/arm/as3525/system-as3525.c | |
parent | 2737a66471a640d83aba07578bd67b811a340034 (diff) | |
download | rockbox-85528242844b71ac45e5331363a48a2956c38275.tar.gz rockbox-85528242844b71ac45e5331363a48a2956c38275.zip |
ascodec-target.h: remove
move prototypes to ascodec.h
move code to ascodec*.c
YPR0: use adc-as3514.c instead of duplicating it
TODO: merge as3514.h and ascodec.h ?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm/as3525/system-as3525.c')
-rw-r--r-- | firmware/target/arm/as3525/system-as3525.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/system-as3525.c b/firmware/target/arm/as3525/system-as3525.c index 89a07939b6..01aaeaccbe 100644 --- a/firmware/target/arm/as3525/system-as3525.c +++ b/firmware/target/arm/as3525/system-as3525.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include "kernel.h" | 24 | #include "kernel.h" |
25 | #include "system.h" | 25 | #include "system.h" |
26 | #include "panic.h" | 26 | #include "panic.h" |
27 | #include "ascodec-target.h" | 27 | #include "ascodec.h" |
28 | #include "adc.h" | 28 | #include "adc.h" |
29 | #include "dma-target.h" | 29 | #include "dma-target.h" |
30 | #include "clock-target.h" | 30 | #include "clock-target.h" |
@@ -33,6 +33,20 @@ | |||
33 | #include "backlight-target.h" | 33 | #include "backlight-target.h" |
34 | #include "lcd.h" | 34 | #include "lcd.h" |
35 | 35 | ||
36 | /* Charge Pump and Power management Settings */ | ||
37 | #define AS314_CP_DCDC3_SETTING \ | ||
38 | ((0<<7) | /* CP_SW Auto-Switch Margin 0=200/300 1=150/255 */ \ | ||
39 | (0<<6) | /* CP_on 0=Normal op 1=Chg Pump Always On */ \ | ||
40 | (0<<5) | /* LREG_CPnot Always write 0 */ \ | ||
41 | (0<<3) | /* DCDC3p BVDD setting 3.6/3.2/3.1/3.0 */ \ | ||
42 | (1<<2) | /* LREG_off 1=Auto mode switching 0=Length Reg only*/\ | ||
43 | (0<<0) ) /* CVDDp Core Voltage Setting 1.2/1.15/1.10/1.05*/ | ||
44 | |||
45 | #define CVDD_1_20 0 | ||
46 | #define CVDD_1_15 1 | ||
47 | #define CVDD_1_10 2 | ||
48 | #define CVDD_1_05 3 | ||
49 | |||
36 | #define default_interrupt(name) \ | 50 | #define default_interrupt(name) \ |
37 | extern __attribute__((weak,alias("UIRQ"))) void name (void) | 51 | extern __attribute__((weak,alias("UIRQ"))) void name (void) |
38 | 52 | ||