diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-04-07 03:43:48 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-04-07 03:43:48 +0000 |
commit | 87eea33def283e23e239e716ee67093b0bdde226 (patch) | |
tree | 834f1914514735a39842e5ec69047138d28bb433 /firmware/export/mc13783.h | |
parent | 48789c5361419ebc88fe603912c139ca077b5cfb (diff) | |
download | rockbox-87eea33def283e23e239e716ee67093b0bdde226.tar.gz rockbox-87eea33def283e23e239e716ee67093b0bdde226.zip |
Gigabeat S (imx31): Begin voltage and frequency scaling code. For now, to avoid overdrive voltage, just lower core voltage to 1.35V since voltage scaling shouldn't be required for frequencies lower than 399 MHz (according to Freescale BSP, which set all working points to 1.35V for those frequencies). Perhaps battery life will improve as well (cross fingers :).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25506 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/mc13783.h')
-rw-r--r-- | firmware/export/mc13783.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/firmware/export/mc13783.h b/firmware/export/mc13783.h index 09fb1f1fc4..0a83527c57 100644 --- a/firmware/export/mc13783.h +++ b/firmware/export/mc13783.h | |||
@@ -523,6 +523,52 @@ enum mc13783_regs_enum | |||
523 | #define MC13783_SW2BSTBY (0x3f << 12) | 523 | #define MC13783_SW2BSTBY (0x3f << 12) |
524 | #define MC13783_SW2BSTBY_POS (12) | 524 | #define MC13783_SW2BSTBY_POS (12) |
525 | 525 | ||
526 | /* Switcher Voltages (SWITCHERS0-SWITCHERS3) */ | ||
527 | /* Switcher 1 and 2 */ | ||
528 | #define MC13783_SW_0_900 0x00 /* 0.900 V */ | ||
529 | #define MC13783_SW_0_925 0x01 /* 0.925 V */ | ||
530 | #define MC13783_SW_0_950 0x02 /* 0.950 V */ | ||
531 | #define MC13783_SW_0_975 0x03 /* 0.975 V */ | ||
532 | #define MC13783_SW_1_000 0x04 /* 1.000 V */ | ||
533 | #define MC13783_SW_1_025 0x05 /* 1.025 V */ | ||
534 | #define MC13783_SW_1_050 0x06 /* 1.050 V */ | ||
535 | #define MC13783_SW_1_075 0x07 /* 1.075 V */ | ||
536 | #define MC13783_SW_1_100 0x08 /* 1.100 V */ | ||
537 | #define MC13783_SW_1_125 0x09 /* 1.125 V */ | ||
538 | #define MC13783_SW_1_150 0x0a /* 1.150 V */ | ||
539 | #define MC13783_SW_1_175 0x0b /* 1.175 V */ | ||
540 | #define MC13783_SW_1_200 0x0c /* 1.200 V */ | ||
541 | #define MC13783_SW_1_225 0x0d /* 1.225 V */ | ||
542 | #define MC13783_SW_1_250 0x0e /* 1.250 V */ | ||
543 | #define MC13783_SW_1_275 0x0f /* 1.275 V */ | ||
544 | #define MC13783_SW_1_300 0x10 /* 1.300 V */ | ||
545 | #define MC13783_SW_1_325 0x11 /* 1.325 V */ | ||
546 | #define MC13783_SW_1_350 0x12 /* 1.350 V */ | ||
547 | #define MC13783_SW_1_375 0x13 /* 1.375 V */ | ||
548 | #define MC13783_SW_1_400 0x14 /* 1.400 V */ | ||
549 | #define MC13783_SW_1_425 0x15 /* 1.425 V */ | ||
550 | #define MC13783_SW_1_450 0x16 /* 1.450 V */ | ||
551 | #define MC13783_SW_1_475 0x17 /* 1.475 V */ | ||
552 | #define MC13783_SW_1_500 0x18 /* 1.500 V */ | ||
553 | #define MC13783_SW_1_525 0x19 /* 1.525 V */ | ||
554 | #define MC13783_SW_1_550 0x1a /* 1.550 V */ | ||
555 | #define MC13783_SW_1_575 0x1b /* 1.575 V */ | ||
556 | #define MC13783_SW_1_600 0x1c /* 1.600 V */ | ||
557 | #define MC13783_SW_1_625 0x1d /* 1.625 V */ | ||
558 | #define MC13783_SW_1_650 0x1e /* 1.650 V */ | ||
559 | #define MC13783_SW_1_675 0x1f /* 1.675 V */ | ||
560 | #define MC13783_SW_1_700 0x20 /* 0x20 - 0x23 = 1.700V */ | ||
561 | #define MC13783_SW_1_800 0x24 /* 0x24 - 0x27 = 1.800V */ | ||
562 | /* Switcher 1 */ | ||
563 | #define MC13783_SW1_1_850 0x28 /* 0x29 - 0x2b = 1.850V */ | ||
564 | /* Switcher 2 */ | ||
565 | #define MC13783_SW2_1_900 0x28 /* 0x29 - 0x2b = 1.900V */ | ||
566 | /* Switcher 1 and 2 */ | ||
567 | #define MC13783_SW_2_000 0x2c /* 0x2c - 0x2f = 2.000V */ | ||
568 | #define MC13783_SW_2_100 0x30 /* 0x30 - 0x33 = 2.100V */ | ||
569 | #define MC13783_SW_2_200 0x34 /* 0x34 - 0x3f = 2.200V */ | ||
570 | |||
571 | |||
526 | /* SWITCHERS4 (28) */ | 572 | /* SWITCHERS4 (28) */ |
527 | #define MC13783_SW1AMODE (0x3 << 0) | 573 | #define MC13783_SW1AMODE (0x3 << 0) |
528 | #define MC13783_SW1AMODE_OFF (0x0 << 0) | 574 | #define MC13783_SW1AMODE_OFF (0x0 << 0) |