summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/power-imx233.h
AgeCommit message (Collapse)AuthorFilesLines
2017-07-31imx233: don't print stmp3780 debug info on stmp3700Amaury Pouly1-0/+2
Change-Id: Iffad6f39b62af496e6bb5975610807228c2986c7
2016-05-28imx233: generate register headers using headergen_v2 and update code for itAmaury Pouly1-53/+4
NOTE: this commit does not introduce any change, ideally even the binary should be almost the same. I checked the disassembly by hand and there are only a few differences here and there, mostly the compiler decides to compile very close expressions slightly differently. I tried to run the new code on several targets to make sure and saw no difference. The major syntax changes of the new headers are as follows: - BF_{WR,SET,CLR} are now superpowerful and allows to set several fileds at once: BF_WR(reg, field1(value1), field2(value2), ...) - BF_CS (use like BF_WR) does a write to reg_CLR and then reg_SET instead of RMW - there is no more need for macros like BF_{WR_,SET,CLR}_V, since one can simply BF_WR with field_V(name) - the old BF_SETV macro has no trivial equivalent and is replaced with its its equivalent for BF_WR(reg_SET, ...) I also rename the register headers: "regs/regs-x.h" -> "regs/x.h" to avoid the redundant "regs". Final note: the registers were generated using the following command: ./headergen_v2 -g imx -o ../../firmware/target/arm/imx233/regs/ desc/regs-stmp3{600,700,780}.xml Change-Id: I7485e8b4315a0929a8edb63e7fa1edcaa54b1edc
2013-11-18Initial commit for the Creative ZEN VAmaury Pouly1-0/+9
Change-Id: I3408cfdf742ea5995d5c87bf76653f436e1ec2b0
2013-10-21imx233: fix usb_detect() to be consistent with vbus detectionAmaury Pouly1-0/+1
The STMP3700 has unreliable vbusvalid irq so we need to use vdd5gtvddio. Therefore, using the vbusvalid bit produces inconsistent results between events and detect. Fix that by making power handle all the usb detect stuff. Change-Id: Ic521b2f6677602e184fe46352c5359f4b4ba8d56
2013-06-17imx233: fix power for stmp3600 and stmp3700Amaury Pouly1-1/+20
There are many small differences between them. In particular some regulators are not available on stmp3600. Also the vbusvalid detect method is not available as an irq on stmp3600 and seems broken on stmp3700. Finally die temperature is handled by the power block on stmp3600. Change-Id: I2c68b418738f15564e445d3a1496018cef97fff7
2013-06-16imx233: rewrite power using new registersAmaury Pouly1-148/+34
Change-Id: Ifbee91161220419f4d1750672b5c4ae3537cefca
2012-12-29imx233: move power init to system initAmaury Pouly1-0/+2
Do low level power init in system_init(). This can be needed since imx233 must be able to frequecy scale atfer system_init() and kernel_init() and this is only possible if power system was initialised. Change-Id: I27c66ec0dccd60bda26a45be24683c0bfe72c6da
2012-12-26imx233: fix regulator voltage setting + always enable DCDC modeAmaury Pouly1-0/+3
Make sure DCDC is running at boot (it is disabled by default when 5V is present and we don't want to rely on the bootloader to change this). When changing the voltage on a regulator, it usually takes 2ms for the voltage to stabilize. In DCDC mode, there is an irq to notify about the event so use it ! This is especially important when changing cpu frequency because increasing the cpu freq while the voltage is rising is unreliable. Change-Id: Icfe9ef3ee90156d1e17da0820d9041859f7f3bca
2012-08-30imx233: add regulator apiAmaury Pouly1-15/+30
Remove the old debug stuff about VDDx and add a clean api to get/set the regulator (VDDD, VDDA, VDDIO, VDDMEM). This is useful for proper frequency scaling. Change-Id: Ia5a1a712fd66652a8ad9601ed00db31aba5a7561
2012-02-28imx233: print power up source in the bootloaderAmaury Pouly1-0/+2
Change-Id: I9ff4738b7efdb25ab57b0061f60c7fde58b9a0b5
2012-02-01imx233/fuze+: set a few recommended power bits by Freescale, remove some ↵Amaury Pouly1-0/+34
uneeded headers, implement audio path selection for playback and radio Change-Id: If926ead9b776504a58eb102fcc0e9acadf4f7379
2011-12-24imx233/fuze+: implement power management(battery charger), add powermgmt ↵Amaury Pouly1-1/+70
debug info, add power debug info, move target specific powermgmt code to its own files, remove auto-slow setup which was forgotten for debugging git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31424 a1c6a512-1295-4272-9138-f99709370657
2011-11-30imx233: add power debug screenAmaury Pouly1-0/+48
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31100 a1c6a512-1295-4272-9138-f99709370657
2011-11-14imx233: implement battery reading using power register (automatically ↵Amaury Pouly1-0/+2
updated & scaled by lradc delay) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30988 a1c6a512-1295-4272-9138-f99709370657
2011-09-13imx233/fuze+: add charger related definesAmaury Pouly1-0/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30537 a1c6a512-1295-4272-9138-f99709370657
2011-09-05imx233:fuze+: major memory and usb reworkAmaury Pouly1-0/+69
- now identity map dram uncached and have a cached and buffered virtual alias - rework dma to handle virtual to physical pointers conversion - fix lcd frame pointer - implement usb detection properly - implement bootloader usb properly - allow the bootloader to disable MMC windowing (useful for recovery) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30432 a1c6a512-1295-4272-9138-f99709370657