summaryrefslogtreecommitdiff
path: root/firmware/drivers (follow)
Commit message (Collapse)AuthorAge
...
* LCD drivers: * Slight speedup for 2bit greyscale drivers. Use the same ↵Jens Arnold2006-07-28
| | | | | | scrolltext drawing anywhere. * Cleanup, fixes and definitions in preparation for X5 remote. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10346 a1c6a512-1295-4272-9138-f99709370657
* Moved the X5 button driver to the target treeLinus Nielsen Feltzing2006-07-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10339 a1c6a512-1295-4272-9138-f99709370657
* Contrast setting cleanup: * Only include contrast setting for targets where ↵Jens Arnold2006-07-25
| | | | | | it's used. * Make lcd_default_contrast() a stub for simulators. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10317 a1c6a512-1295-4272-9138-f99709370657
* Restore the default backlight settings broken by RaniLinus Nielsen Feltzing2006-07-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10314 a1c6a512-1295-4272-9138-f99709370657
* Patch #5347 by Rani Hod - Adds FM radio and recording features to the iAudio X5.Linus Nielsen Feltzing2006-07-21
| | | | | | | Also includes a rewrite of the Coldfire I2C driver to include both read and write. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10272 a1c6a512-1295-4272-9138-f99709370657
* Patch #5432 from Thomas Paul Diffenbach - small speedup for ipod video ↵Dave Chapman2006-07-19
| | | | | | lcd_update function. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10252 a1c6a512-1295-4272-9138-f99709370657
* 1bit and 2bit LCD drivers: Low-level bit handling optimisations.Jens Arnold2006-07-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10225 a1c6a512-1295-4272-9138-f99709370657
* Patch #5375 by Rani Hod - Eliminate click on X5 shutdownLinus Nielsen Feltzing2006-07-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10210 a1c6a512-1295-4272-9138-f99709370657
* Patch #5639 by Ulrich Pegelow, inits the M5636 USBOTG chip on the X5 to ↵Linus Nielsen Feltzing2006-07-13
| | | | | | reduce the battery consumption. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10208 a1c6a512-1295-4272-9138-f99709370657
* H300: Rudimentary driver for the ISP1362 USB on-the-go controller. For now ↵Jens Arnold2006-06-16
| | | | | | it just sends the chip to sleep, solving the poor battery runtime issue. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10128 a1c6a512-1295-4272-9138-f99709370657
* Tweaks to reduce an iriver recording glitch to a minimum. Removed yields ↵Peter D'Hoye2006-06-14
| | | | | | from i2c code as a means to shorten the duration, rearranged order of changing to always cause dips and never peaks. Also some code policing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10122 a1c6a512-1295-4272-9138-f99709370657
* Added a commentLinus Nielsen Feltzing2006-06-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10118 a1c6a512-1295-4272-9138-f99709370657
* Work-in-progress rework of charging status reading & display: * Changed ↵Jens Arnold2006-06-06
| | | | | | several charging related HAVE_* macros into one multi-value CONFIG_CHARGING. * Always use proper macros for charging states. * Battery symbol charging animation now starts from current level on all targets with charging. Two-colour animation kept for non-b&w targets. Round down fill level while charging as before, but round to nearest pixel value for discharging on all targets. * Charging anim fixed on player. * Some code cleanup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10080 a1c6a512-1295-4272-9138-f99709370657
* Remove previous fix as it seems to cause lock-ups when used with a remote.Peter D'Hoye2006-06-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10037 a1c6a512-1295-4272-9138-f99709370657
* Do not allow interrupts between the two calls that set the recording gain. ↵Peter D'Hoye2006-06-02
| | | | | | Fixes volume glitches when changing recording gain. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10031 a1c6a512-1295-4272-9138-f99709370657
* Oops, move out the define from the #ifndef SIMULATORHristo Kovachev2006-05-18
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9956 a1c6a512-1295-4272-9138-f99709370657
* Use more proper default contrast for the iriver lcd remotes, also resetHristo Kovachev2006-05-18
| | | | | | | the contrast in the same way as it is for the main screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9955 a1c6a512-1295-4272-9138-f99709370657
* Iriver: Don't scroll remote LCD lines 'in the dark', i.e. with the remote ↵Jens Arnold2006-05-16
| | | | | | unplugged. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9951 a1c6a512-1295-4272-9138-f99709370657
* Iriver: Moved the handling of the UDA1380 split gain (analog preamp + ↵Jens Arnold2006-05-14
| | | | | | decimator gain) into the UDA driver. * All: Settings structure sorted & cleaned up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9927 a1c6a512-1295-4272-9138-f99709370657
* Correctly test on volume id flagPeter D'Hoye2006-05-13
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9925 a1c6a512-1295-4272-9138-f99709370657
* Iriver: Don't power the UDA1380 WSPLL as we don't use it. This is required ↵Jens Arnold2006-05-11
| | | | | | according to the datasheet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9913 a1c6a512-1295-4272-9138-f99709370657
* Ondio: (Hopefully) fix the occasional freezes during playback: Use DMA ↵Jens Arnold2006-05-07
| | | | | | channel 0 for MMC transfer. As it has higher priority than channel 3 (used for playback), the risk of serial receive overruns is minimised. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9885 a1c6a512-1295-4272-9138-f99709370657
* Patch #5182 by Liberman Shachar - Vertical screen scroll bug fix (inverse ↵Linus Nielsen Feltzing2006-05-06
| | | | | | bar crop in vertical scroll) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9881 a1c6a512-1295-4272-9138-f99709370657
* Fix fillrect calculation error for 'Screen scrolls out of view'. Fixes bug ↵Peter D'Hoye2006-05-03
| | | | | | 5267. Also some minor code policing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9871 a1c6a512-1295-4272-9138-f99709370657
* ipods - First implementation of pcf50605_init() function. This enables the ↵Dave Chapman2006-05-02
| | | | | | power-out in the Dock connector, which may help getting some accessories working - if they don't need to talk to the ipod via the Apple Accessory Protocol. Thanks to julius in IRC for testing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9860 a1c6a512-1295-4272-9138-f99709370657
* ATA driver: * Don't lie to gcc about which parameters the assembler ↵Jens Arnold2006-04-29
| | | | | | optimised loops touch. Fixes problems with higher optimisation levels. Some slight tweaks for SH1. * Prevent the assembler loops from being inlined as this is less efficient than having them in IRAM (only relevant at higher optimisation levels). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9828 a1c6a512-1295-4272-9138-f99709370657
* Replaced remaining '#pragma interrupt' with ↵Jens Arnold2006-04-26
| | | | | | __attribute__((interrupt_handler)). It's cleaner this way, and fixes sh-elf-gcc 3.4.x builds with -Os or -O2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9816 a1c6a512-1295-4272-9138-f99709370657
* Ipods, X5: Proper backlight behaviour on buton unlock.Jens Arnold2006-04-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9788 a1c6a512-1295-4272-9138-f99709370657
* Iriver: Reworked remote detection & init: * Monitor the remote type & try to ↵Jens Arnold2006-04-24
| | | | | | init the LCD for 20 seconds after plugin. Fixes wrong type detection & non-working LCD when plugging in slowly, and inits much faster if the remote is already plugged at boot (no delayed logo). * Don't try to init the LCD for a non-LCD remote in order to save CPU power. * More precise scroll timing, taking drawing time & other delays into account. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9783 a1c6a512-1295-4272-9138-f99709370657
* Prevent scroll wheel on mini 1g from over-scrolling when scrolling very fast.Frank Dischner2006-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9740 a1c6a512-1295-4272-9138-f99709370657
* Fix button driver for ipod mini 1G.Frank Dischner2006-04-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9732 a1c6a512-1295-4272-9138-f99709370657
* Ooops^2Jens Arnold2006-04-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9696 a1c6a512-1295-4272-9138-f99709370657
* H300: Optimised PCF50606 driver, significantly reduces CPU power drain from ↵Jens Arnold2006-04-16
| | | | | | the button tick (with both main & remote buttons: 50%->13% at 11MHz, 12%->6% at 45MHz): * Delay is adapted to the current CPU clock, aiming at constant 400kHz i2c clock. * Reduced number of port accesses (accessing GPIO is very slow, especially with the atomic boolean instructions) by implementing an open-collector-like behaviour. * Time-critical functions implemented in assembler. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9693 a1c6a512-1295-4272-9138-f99709370657
* H300 (and H1x0): Improved button debouncing. Solves the possible 'fake ↵Jens Arnold2006-04-16
| | | | | | doubleclick' effect by not pretending no button is pressed if the reading is unstable. Now it uses the latest stable reading instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9691 a1c6a512-1295-4272-9138-f99709370657
* Coldfire: Use the maximum possible i2c clock for the audio codec. Both the ↵Jens Arnold2006-04-14
| | | | | | UDA1380TT and the TLV320AIC23B can handle up to 400kHz. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9656 a1c6a512-1295-4272-9138-f99709370657
* Another slight tweak.Jens Arnold2006-04-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9639 a1c6a512-1295-4272-9138-f99709370657
* H1x0/H300 remote LCD driver rework: * Completely fix remote LCD ticking for ↵Jens Arnold2006-04-11
| | | | | | H300, by not deasserting CS after every single access. CS deactivation is now handled with a 100ms timeout by the tick task. If this really fixes remote ticking for all H300s with 'reduce ticking' disabled, we should remove that option for H300. * Reworked ticking reduction for H1x0. Bytes are now send in sequence, without stretching every single bit, but longer pauses between bytes instead. Both CLK and DATA are handled in a way to minimise their potential to cause ticking (CLK active as short as possible, DATA always high outside of byte transfers, DATA high->low as close as possible to CLK low->high). * Driver is ~10% faster with 'reduce ticking' disabled, and ~65% faster with it enabled. (not @ 11 MHz) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9631 a1c6a512-1295-4272-9138-f99709370657
* moved the LCD framebuffer to IRAM for iAudio X5 - gives ~40% speed boostDaniel Stenberg2006-04-11
| | | | | | | I also extended the iram size properly since the 5250 coldfire has 128K git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9604 a1c6a512-1295-4272-9138-f99709370657
* H300: Slightly faster lcd update (noticeable with partial updates only).Jens Arnold2006-04-09
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9574 a1c6a512-1295-4272-9138-f99709370657
* Comparing short filenames for uniqueness used 1 char too much, causing it to ↵Peter D'Hoye2006-04-08
| | | | | | create identical short filenames. Fixes bugreport #5030. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9563 a1c6a512-1295-4272-9138-f99709370657
* Get rid of the redundant APPLE_* macros. * Fix wrong comments in lcd-ipod.cJens Arnold2006-04-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9561 a1c6a512-1295-4272-9138-f99709370657
* lcd_blit() (with mono->2bit expansion) implemented for greyscale ipods. ↵Jens Arnold2006-04-06
| | | | | | Changed the flip mode maths for the mini LCD for coexistence with lcd_blit(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9540 a1c6a512-1295-4272-9138-f99709370657
* Since we poll buttons every tick now, the extra if() checking the polling ↵Jens Arnold2006-04-06
| | | | | | interval was obsolete. Pointed out by Mikael Magnusson. * Some tweaks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9536 a1c6a512-1295-4272-9138-f99709370657
* Do extra filtering in H300 (and H100) main unit button reading to suppress ↵Jens Arnold2006-04-06
| | | | | | wrong readings during voltage transitions. * Optimised multi-button ADC reads to use a balanced binary tree with an initial check for 'any button' to determine the pressed button. * The iriver button driver wouldn't have detected main unit (ADC-connected) buttons as long as remote buttons (ADC-connected) were pressed (btn = value; vs. btn |= value), * Do extra filtering in the recorder v1 OFF button read, to suppress spurious OFF events. * Some more tweaks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9530 a1c6a512-1295-4272-9138-f99709370657
* Grayscale iPods: Bit-flipped the 2bit LCD driver to use the same format as ↵Jens Arnold2006-04-04
| | | | | | apple. No more mirrored display when loading retailos, after a bootloader update. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9478 a1c6a512-1295-4272-9138-f99709370657
* greyscale iPod LCD: Working display flip. * Correct register definitions for ↵Jens Arnold2006-04-01
| | | | | | HD66753. * Correct 1/3 and 2/3 greylevels. * Some tweaks. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9414 a1c6a512-1295-4272-9138-f99709370657
* Greyscale iPod LCD driver: Fixed lcd_update_rect() to work properly for ↵Jens Arnold2006-03-31
| | | | | | partial updates. Working display invert. Use register name macros. Some cleanup & optimisations. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9378 a1c6a512-1295-4272-9138-f99709370657
* Move definitions to their proper placeJens Arnold2006-03-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9368 a1c6a512-1295-4272-9138-f99709370657
* iPod mini 2G: Define correct audio codec, and fix WM8731 driver to work with ↵Jens Arnold2006-03-30
| | | | | | PP5020. Audio is working now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9367 a1c6a512-1295-4272-9138-f99709370657
* iPod mini 2G: Use iPod 4G button driver instead of special minin 1G code. ↵Jens Arnold2006-03-30
| | | | | | Buttons working now, rockbox no longer hangs at boot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9364 a1c6a512-1295-4272-9138-f99709370657