summaryrefslogtreecommitdiff
path: root/firmware/target/coldfire/mpio (follow)
Commit message (Collapse)AuthorAge
* Fix red/yellowMarcin Bukat2015-01-12
| | | | Change-Id: Ie01251af2cd843979b5fdefcfa541ba377d13bd7
* Get rid of stupid _backlight_* function namesMarcin Bukat2015-01-12
| | | | | | _remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
* MPIO HD300: Fix occasional scrollstrip hangMarcin Bukat2014-04-15
| | | | | | | | | | | | | Scrollstrip works as quadrature encoder. We set pin change interrupt for both edges of signal both lines and sample the state in ISR. From time to time the sequence is out-of-sync which was properly detected but erroneously handled leaving scrollstip interrupts disabled. Change-Id: I08e4f99c6c27df0f8180aa16e6e1d9e4203bafa7 Reviewed-on: http://gerrit.rockbox.org/782 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com> Tested: Marcin Bukat <marcin.bukat@gmail.com>
* coldfire: fix bootloader buildsMarcin Bukat2014-01-18
| | | | | | | In b31c856 startup code section was renamed but boot.lds linker scripts were not updated accordingly. Change-Id: I9c9893ec2e199ac2555007a1d23e109ca0daea28
* coldfire: Use single app.lds script for all coldfires.Marcin Bukat2014-01-15
| | | | | | | | | | | The only true difference in this platform is the amount of iram between MCF5249 and MCF5250. Instead of duplicating the file simply use one with proper ifdefs. Change-Id: Ifd56ebd2666813633502e3b5d83669424659c039 Reviewed-on: http://gerrit.rockbox.org/713 Reviewed-by: Thomas Martitz <kugel@rockbox.org> Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* Add missing kernel.h includes (hopefully all of them), take #2.Thomas Martitz2014-01-05
| | | | Change-Id: I62cedf992bb096987050621cfc34f0432e9da170
* HD300: Fix crash in bootloader introduced by 36281c4Marcin Bukat2012-11-13
| | | | | | | | Uninitialized struct scroll which is used to pass state between scrollstrip ISR and button_read_device() can bomb out whole button subsytem. Change-Id: I3b415c22cfee4181b2132cddaeff68797c7cc0ea
* lcd drivers: Convert lcd_[remote_]framebuffer to a pointerJonathan Gordon2012-02-28
| | | | | | | | | | Change all lcd drivers to using a pointer to the static framebuffer instead of directly accessing the static array. This will let us later do fun things like dynamic framebuffer sizes (RaaA) or ability to use different buffers for different layers (dynamic skin backdrops!) Change-Id: I0a4d58a9d7b55e6c932131b929e5d4c9f9414b06
* MPIO HD300: Fix scrollstip issue at driver level.Marcin Bukat2012-01-25
| | | | | | | | | | | | | | | | Scrollstrip (as well as scrollwheel on ipods/sansas) works like quadrature encoder. The states of input lines are tracked by the gpio ISR and when the sequence is correct, appropriate button event is pushed to the button queue directly. The downside of this implementation is that scrollstrip doesn't emit _REL events which has some weird consequences. For the scrollwheels some hack have been crafted in action system to accomodate for this. I don't like this approach. IMO the correct fix is to properly emit _REL event when the user stops interacting with the device or reverses the direction of the move. This patch implements timeout which forces to emit _REL when expired. Change-Id: I588ac5810dd2ab00c68935d23a62979cb1c2a912
* MPIO HD200/HD300: Decrease ADC scanrate.Marcin Bukat2012-01-24
| | | | | | | The adclk is decreased 4x. This solves problems with battery readout drop during system startup. Change-Id: I46d7c4b9ffcfdc812a6dd2a932c9e397d33c1168
* button-target.h : move prototypes to button.hRafaël Carré2012-01-08
| | | | | | no need to define BUTTON_REMOTE anymore git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31620 a1c6a512-1295-4272-9138-f99709370657
* Rework powermgmt to enable code re-use on appliation and sims.Thomas Martitz2012-01-03
| | | | | | | | | | | | | | | | | | | | | * Introduce CONFIG_BATTERY_MEASURE define, to allow targets (application) to break powermgmt.c's assumption about the ability to read battery voltage. There's now additionally percentage (android) and remaining time measure (maemo). No measure at all also works (sdl app). If voltage can't be measured, then battery_level() is king and it'll be used for power_history and runtime estimation. * Implement target's API in the simulator, i.e. _battery_voltage(), so it doesn't need to implement it's own powermgmt.c and other stubs. Now the sim behaves much more like a native target, although it still changes the simulated battery voltage quickly, * Other changes include include renaming battery_adc_voltage() to _battery_voltage(), for consistency with the new target functions and making some of the apps code aware that voltage and runtime estimation is not always available. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31548 a1c6a512-1295-4272-9138-f99709370657
* FS#12418 - Merge prototypes from ata-target.h files into new file ↵Boris Gjenero2011-12-08
| | | | | | | | | | | ata-driver.h. After this change: - ata.h is for users of ata.c - ata-driver.h is for functions implemented by target-specific code and used by ata.c - ata-target.h is for target-specific defines git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31182 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD300: vastly improve sound quality. This unfortunately means reverting ↵Marcin Bukat2011-11-05
| | | | | | r28797 which introduced poping noise git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30904 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: Fix the modification of IMR. Interrupts must be masked at the core ↵Michael Sevakis2011-06-17
| | | | | | level at at least the level of the interrupt being masked. Not following the datasheet and relying strictly on and/or_l causes unhandled 'Levelx' exceptions (showing itself quite often in PCM mixer work which more greatly stresses PCM lockout). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30009 a1c6a512-1295-4272-9138-f99709370657
* Fix tabs in .c and .h files in firmware/ Bertrik Sikken2011-05-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29832 a1c6a512-1295-4272-9138-f99709370657
* Fix warning when linking booltoaders with the new toolchain by marking .bss ↵Nils Wallménius2011-01-12
| | | | | | section NOLOAD, thanks for gevaerts for testing on his x5. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29037 a1c6a512-1295-4272-9138-f99709370657
* HD300 - calibrate discharge curveMarcin Bukat2011-01-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28998 a1c6a512-1295-4272-9138-f99709370657
* Rework ATA driver to get rid of lots of target-specific constants and allow ↵Michael Sparmann2011-01-02
| | | | | | for non-memory-mapped task file registers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28950 a1c6a512-1295-4272-9138-f99709370657
* HD300 - Fix bootloader freeze introduced in r28799. DMA transfer hangs for ↵Marcin Bukat2010-12-20
| | | | | | some reason when cpu runs @11MHz in bootloader. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28867 a1c6a512-1295-4272-9138-f99709370657
* fix typo, thanks to Luka_S for catching thisMarcin Bukat2010-12-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28846 a1c6a512-1295-4272-9138-f99709370657
* HD300 - hacky workaround which makes USB bridge work in rockboxMarcin Bukat2010-12-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28845 a1c6a512-1295-4272-9138-f99709370657
* HD300 - further speedup of lcd_update() by utilizing DMA transfer when ↵Marcin Bukat2010-12-11
| | | | | | unboosted. The gain is 438 -> 728 fps @ 45MHz. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28799 a1c6a512-1295-4272-9138-f99709370657
* HD300 - tweak lcd_update() (4-5% speedup)Marcin Bukat2010-12-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28797 a1c6a512-1295-4272-9138-f99709370657
* HD300 - do not handle scrollstrip events when hold is onMarcin Bukat2010-12-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28782 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD200, HD300: Make USB bridge handling more correct (this doesn't solve ↵Marcin Bukat2010-12-09
| | | | | | problems with USB inside rockbox on HD300 unfortunately). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28780 a1c6a512-1295-4272-9138-f99709370657
* HD300 - decrease touchstrip sensitivityMarcin Bukat2010-11-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28707 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD300 - initial commitMarcin Bukat2010-11-26
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28680 a1c6a512-1295-4272-9138-f99709370657
* MPIO: move files a bit in preparation for HD300 portMarcin Bukat2010-11-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28567 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD200: rename button defines to adhere how they are labeled on the device.Marcin Bukat2010-11-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28443 a1c6a512-1295-4272-9138-f99709370657
* Set svn propertiesMarcin Bukat2010-10-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28326 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD200 - squash long standing bug in bootloader which prevented booting ↵Marcin Bukat2010-10-22
| | | | | | OF if doing coldstart on battery only. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28324 a1c6a512-1295-4272-9138-f99709370657
* */app.lds: remove STUBOFFSETRafaël Carré2010-09-20
| | | | | | | | | This is related to gdb, and gdb can only work on SH and ifp This was mistakenly kept when app.lds was forked for each SoC Side-effect: fix DEBUG builds when the rockbox binary is expected to be loaded at the start of DRAM and there is no runtime relocation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28124 a1c6a512-1295-4272-9138-f99709370657
* HD200 - Use DMA transfers in lcd_update() and lcd_update_rect(). Gives ↵Marcin Bukat2010-08-08
| | | | | | 12-26% speedup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27757 a1c6a512-1295-4272-9138-f99709370657
* HD200: Add timeout in usb_enable(false) to prevent infinite loop when ↵Marcin Bukat2010-07-17
| | | | | | something goes wrong. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27468 a1c6a512-1295-4272-9138-f99709370657
* HD200: Change move.w -> move.b in lcd-as-hd200.S when doing transfers to lcd ↵Marcin Bukat2010-07-16
| | | | | | to explicity show that lcd bus is 8bits wide. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27445 a1c6a512-1295-4272-9138-f99709370657
* MPIO HD200 grey blitting: Use line reads for the pixel values as well. ↵Jens Arnold2010-07-16
| | | | | | Almost doubles the ISR speed (47% -> 24% load), giving 42% faster greylib framebuffer updates. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27444 a1c6a512-1295-4272-9138-f99709370657
* HD200 - calibrate battery indicator based on measurements and battery_benchesMarcin Bukat2010-07-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27350 a1c6a512-1295-4272-9138-f99709370657
* HD200 - fix misleading comment in system-hd200.cMarcin Bukat2010-07-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27328 a1c6a512-1295-4272-9138-f99709370657
* HD200 - turn off charging IC by defaultMarcin Bukat2010-07-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27315 a1c6a512-1295-4272-9138-f99709370657
* HD200 - Fix GPIO setup in button_init_device()- this change fixes sound ↵Marcin Bukat2010-07-06
| | | | | | output broken in r27258. Slightly adjust main buttons reading routine so key reading is more reliable with and without remote present git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27307 a1c6a512-1295-4272-9138-f99709370657
* HD200 - more work on remote handlingMarcin Bukat2010-07-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27306 a1c6a512-1295-4272-9138-f99709370657
* HD200 - Increase ADC clock when boosted. Scan all 4 ADC channels during ↵Marcin Bukat2010-07-03
| | | | | | system tick git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27262 a1c6a512-1295-4272-9138-f99709370657
* HD200 - add missed defines for remote buttons and remote_button_hold() ↵Marcin Bukat2010-07-03
| | | | | | function prototype in button-target.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27259 a1c6a512-1295-4272-9138-f99709370657
* HD200 - add support for remote in button_read_device()Marcin Bukat2010-07-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27258 a1c6a512-1295-4272-9138-f99709370657
* HD200 - Setup codec as I2S master and enable recordingMarcin Bukat2010-07-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27250 a1c6a512-1295-4272-9138-f99709370657
* HD200 - use line transfers in lcd_grey_data. This gives ~25% speedup.Marcin Bukat2010-06-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26856 a1c6a512-1295-4272-9138-f99709370657
* HD200 - make USB bridge handling more correctMarcin Bukat2010-06-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26843 a1c6a512-1295-4272-9138-f99709370657
* Port greylib blitting optimisation to MPIO HD200. ISR speedup is ~10%; ↵Jens Arnold2010-06-11
| | | | | | further speedup should be possible by using line transfers for accessing the greylib buffers. Thanks to Marcin Bukat for testing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26793 a1c6a512-1295-4272-9138-f99709370657
* HD200 - clean up usb related functionsMarcin Bukat2010-06-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26768 a1c6a512-1295-4272-9138-f99709370657