summaryrefslogtreecommitdiff
path: root/firmware/export/mc13783.h (follow)
Commit message (Collapse)AuthorAge
* Improve imx31 interrupt code for PMIC and GPIOMichael Sevakis2017-01-29
| | | | | | | | | | Fix stuff that was bugging me about the way I did it at first. While messing around I found RDS code wasn't masking its GPIO ISR as it should, which might lead to two different interrupts messing with the static data. Change-Id: I54626809ea3039a842af0cc9e3e42853326c4193
* i.MX31: Fix a couple oopses from r31528Michael Sevakis2012-01-03
| | | | | | | | | | Enabled a PMIC event where it should be disabled. Used constant from wrong enum to get sense bits (??) which messed up main charger detection. Also remove an obsolete struct declaration. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31536 a1c6a512-1295-4272-9138-f99709370657
* i.MX31 - Dethreading operations continueMichael Sevakis2012-01-02
| | | | | | | | Dispense with "pmic" thread and process PMIC events directly within ISR. Add sense bit reading as part of the handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31528 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: PMIC SPI improvement and bugfixes.Michael Sevakis2011-12-18
| | | | | | | | | | | | | | | | Nick some aspects from the as3525 ascodec driver to improve throughput in the beast's SPI communications by switching tranfer descriptors to the caller's stack and getting rid of thread synchronization. Fix a bug that suddenly became obvious that could permanently stall the SPI driver because all data could be shifted out before the interrupt could get serviced. In that case, it needs a kick to restart it. Should probably put the SPI interrupt priority above DVFS. A tweak to the event registration interface to simplify it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31353 a1c6a512-1295-4272-9138-f99709370657
* i.MX31/Gigabeat S: Actually enable DPTC which can set optimal voltage for ↵Michael Sevakis2010-05-04
| | | | | | 528MHz. Requires an SPI and PMIC interface rework because of the low-latency needs for the DPTC to work best with minimal panicing. SPI can work with multitasking and asynchronously from interrupt handlers or normal code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25800 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S (imx31): Begin voltage and frequency scaling code. For now, to ↵Michael Sevakis2010-04-07
| | | | | | 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
* imx31/mc13783: Do some housekeeping with register macros, function names and ↵Michael Sevakis2009-03-22
| | | | | | other defines. No functional changes (except to alter a couple int priorities). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20442 a1c6a512-1295-4272-9138-f99709370657
* MC13783 PMIC: Make some defines more strictly correct-- interrupts, etc.Michael Sevakis2008-11-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19142 a1c6a512-1295-4272-9138-f99709370657
* MC13783 cleanup. Remove functions proving themselves not so useful and add ↵Michael Sevakis2008-11-18
| | | | | | mc13783_write_masked which is pretty useful. Add an error code definition for invalid data. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19132 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Correct an oopsy when finishing off the MC13783 header. No wonder ADC ↵Michael Sevakis2008-05-21
| | | | | | readings seemed a wee odd. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17597 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S:Michael Sevakis2008-05-21
| | | | | | | | | | | | | 1) Rework event handling and static registration mechanism. No target- specific code in mc13783 driver. GPIO event driver interfaces more cleanly. 2) Somewhat related - enable thread priority for bootloader which is desireable here (ffs is used for GPIO event enabling anyway and that goes along with priority). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17593 a1c6a512-1295-4272-9138-f99709370657
* Fix a couple mistakes. Forgot to add a few definitions.Michael Sevakis2008-05-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17535 a1c6a512-1295-4272-9138-f99709370657
* MC13783 (Gigabeat S PMIC): Complete the header file. Distinguish status, ↵Michael Sevakis2008-05-16
| | | | | | sense and mask bit defines to avoid conflicts within the definitions. Much care taken but give a double check before making new use of anything. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17534 a1c6a512-1295-4272-9138-f99709370657
* Fix yellow.Michael Sevakis2008-05-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17444 a1c6a512-1295-4272-9138-f99709370657
* Backlight brightness setting for Gigabeat S. Cleanup headers in target ↵Michael Sevakis2008-05-08
| | | | | | backlight file too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17428 a1c6a512-1295-4272-9138-f99709370657
* Oops, it's called mc13783...Nils Wallménius2008-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17416 a1c6a512-1295-4272-9138-f99709370657
* Alarm wake up support for Gigabeat SNils Wallménius2008-05-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17376 a1c6a512-1295-4272-9138-f99709370657
* UMS for the Gigabeat S. Bootloader USB mode. Has a couple quirks 1) First ↵Michael Sevakis2008-04-18
| | | | | | plug has problems if cold. Replug if it doesn't connect or not at high speed 2) Linux doesn't like the odd bootable flag value used in the partitions so it won't mount but Windows works. Fix minor OTG driver bugs and clean up device memory handling. Generic name for ARC controller driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17154 a1c6a512-1295-4272-9138-f99709370657
* ADC driver for Gigabeat S - a bit on the general side for now. Needs to have ↵Michael Sevakis2008-04-13
| | | | | | scales set properly (what physical value a reading represents isn't clear from the docs or I'm just lazy atm). Throw-in a _bunch_ more reg defines for the PMIC. Show all 16 raw channels values in debug menu. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17100 a1c6a512-1295-4272-9138-f99709370657
* Charger detection for Gigabeat SNils Wallménius2008-04-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17093 a1c6a512-1295-4272-9138-f99709370657
* Add GPIO manager. Get the PMIC interrupt handling working (along with power ↵Michael Sevakis2008-04-12
| | | | | | button and HP detect). Add some reg field defined instead of using raw numbers. Add PMIC info to debug ports screen. Refine PMIC driver ops a little bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17086 a1c6a512-1295-4272-9138-f99709370657
* Serial driver for imx31. Perhaps not 100% but maybe 80-90% (future ↵Michael Sevakis2008-04-11
developments will tell). Factor-out the mc13783 stuff and make that driver a layer above the SPI. TODO: start processing PMIC interrupts. Start a clkctl API for imx31 (we'll see if this sticks around but it seems reasonable here). Misc. stuff for convenience/neatness. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17070 a1c6a512-1295-4272-9138-f99709370657