summaryrefslogtreecommitdiff
path: root/firmware/drivers (follow)
Commit message (Collapse)AuthorAge
...
* Update source files to include the header file for the functions they ↵Bertrik Sikken2008-04-28
| | | | | | implement, to make sure the header and the implementation is consistent (and fix it for a case where it wasn't). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17275 a1c6a512-1295-4272-9138-f99709370657
* * introduce AUDIOHW_CAPS to define which audio codec can do what kind of ↵Christian Gmeiner2008-04-28
| | | | | | | | | | | | | | operations in hw, e.g. setting bass * added documentation why and when we need the software based prescaler * implement audiohw_set_bass and audiohw_set_treble for mas35xx * clean up sound_set_bass and sound_set_treble * simplify some #ifdef logic * fix special handling of WM8751 - looking for tester :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17274 a1c6a512-1295-4272-9138-f99709370657
* add more registers for the tsc2100Jonathan Gordon2008-04-27
| | | | | | | hopefully working volume control, mute definatly works. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17259 a1c6a512-1295-4272-9138-f99709370657
* remove the last mr500 yelloJonathan Gordon2008-04-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17258 a1c6a512-1295-4272-9138-f99709370657
* Gigabeat S: Implement i2c driver - transmit works but no testing of ↵Michael Sevakis2008-04-27
| | | | | | receiving which will get a chance later. Add some seeds for codec driver. Correct a few #defines. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17254 a1c6a512-1295-4272-9138-f99709370657
* Fixes some warnings.Maurus Cuelenaere2008-04-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17245 a1c6a512-1295-4272-9138-f99709370657
* Commit whole Creative Zen Vision:M target tree + all related firmware/ Maurus Cuelenaere2008-04-24
| | | | | | | changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17241 a1c6a512-1295-4272-9138-f99709370657
* Add a PMIC-based RTC driver for Gigabeat S.Michael Sevakis2008-04-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17236 a1c6a512-1295-4272-9138-f99709370657
* move mas35xx specific code for set_channels and set_stereo_width to ↵Christian Gmeiner2008-04-22
| | | | | | | | | mas35xx.c audio codec driver. If you ask why I am doing this... cleaning up sound.c and move target specific code into target tree or into audio codec drivers. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17217 a1c6a512-1295-4272-9138-f99709370657
* Enable RTC for Cowon D2. Time readout works, but date is currently junk.Rob Purchase2008-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17200 a1c6a512-1295-4272-9138-f99709370657
* Adding new setting to System Settings <Accessory Power Supply -- off by ↵Andree Buschmann2008-04-20
| | | | | | default). This setting can be used to enable/disable the power supply for accessories. With this commit implemented for iPods with PCF50605 power controller. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17193 a1c6a512-1295-4272-9138-f99709370657
* Killed unnecessary global variables by making them static.Bertrik Sikken2008-04-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17184 a1c6a512-1295-4272-9138-f99709370657
* FS#8898 - Prefix AS3514 registers with AS3514_Bertrik Sikken2008-04-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17130 a1c6a512-1295-4272-9138-f99709370657
* Make the transparent bitmaps work on Gigabeat S.Michael Sevakis2008-04-15
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17118 a1c6a512-1295-4272-9138-f99709370657
* Undo r17095. A bug report clearly showed this power supply is also needed ↵Andree Buschmann2008-04-14
| | | | | | for accessories on 5G/5.5G. A more sophisticated solution is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17111 a1c6a512-1295-4272-9138-f99709370657
* Further power saving for iPod Video (FS#8603). Do not enable D2REGC1 voltage ↵Andree Buschmann2008-04-13
| | | | | | for 5G/5.5G -- no changes for other iPods. Savings on a 5G/5.5G are about 1.5mA. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17095 a1c6a512-1295-4272-9138-f99709370657
* LCD drivers: * Automatically optimise horizontal and vertical lines drawn ↵Jens Arnold2008-04-12
| | | | | | via _drawline(), with debug message to show possible optimisations in the caller. * Get rid of the extra ICODE function declarations by putting the attribute into the definition. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17081 a1c6a512-1295-4272-9138-f99709370657
* iPod Video 30Gig doesn't seem to need the ata locking hack so we'll just ↵Michael Sevakis2008-04-11
| | | | | | attempt to remove it for this one. Works for me on 5.5g. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17071 a1c6a512-1295-4272-9138-f99709370657
* D2: Beginnings of a WM8985 driver (based on WM8758, using EQ1 and EQ5 as HW ↵Rob Purchase2008-04-09
| | | | | | treble/bass). Untested, but harmless. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17057 a1c6a512-1295-4272-9138-f99709370657
* Enable nocache sections using the linker. PP5022/4 must use SW_CORELOCK now ↵Michael Sevakis2008-04-06
| | | | | | with shared variables in DRAM (it seems swp(b) is at least partially broken on all PP or I'm doing something very wrong here :\). For core-shared data use SHAREDBSS/DATA_ATTR. NOCACHEBSS/DATA_ATTR is available whether or not single core is forced for static peripheral-DMA buffer allocation without use of the UNCACHED_ADDR macro in code and is likely useful on a non-PP target with a data cache (although not actually enabled in config.h and the .lds's in this commit). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16981 a1c6a512-1295-4272-9138-f99709370657
* Split out the PCF5060x register defines into a common header and create a ↵Rob Purchase2008-04-04
| | | | | | generic pcf50606.c using standard i2c read/writes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16966 a1c6a512-1295-4272-9138-f99709370657
* Greyscale library: * Implement linearisation curve flipping for 1st/2nd Gen ↵Jens Arnold2008-04-02
| | | | | | iPods (LCD is inverted when backlight is on, so the curve is also inverted). This needs a slight extension of is_backlight_on() functionality in the core. * Thorough recalibration of all reachable greyscale targets, and #ifdef cleanup. * Reduce on-target gamma a bit, because the displayable contrast range of a monochrome/greyscale isn't that high. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16936 a1c6a512-1295-4272-9138-f99709370657
* Go back to the ata lock hack for 5g until whatever is going on there is ↵Michael Sevakis2008-03-28
| | | | | | discovered and fixed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16870 a1c6a512-1295-4272-9138-f99709370657
* Revert "initial Meizu M6SL port"Marcoen Hirschberg2008-03-27
| | | | | | | This reverts commit b7bd17ce1715c3a8acbf74a63694c28b6075da5b. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16846 a1c6a512-1295-4272-9138-f99709370657
* initial Meizu M6SL portMarcoen Hirschberg2008-03-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16844 a1c6a512-1295-4272-9138-f99709370657
* Do core interrupt masking in a less general fashion and save some ↵Michael Sevakis2008-03-26
| | | | | | instructions to decrease size and speed things up a little bit. Small fix to a few places where interrupts would get enabled again where they shouldn't have been (context switching calls when disabled). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16811 a1c6a512-1295-4272-9138-f99709370657
* Add a complete priority inheritance implementation to the scheduler (all ↵Michael Sevakis2008-03-25
| | | | | | mutex ownership and queue_send calls are inheritable). Priorities are differential so that dispatch depends on the runnable range of priorities. Codec priority can therefore be raised in small steps (pcmbuf updated to enable). Simplify the kernel functions to ease implementation and use the same kernel.c for both sim and target (I'm tired of maintaining two ;_). 1) Not sure if a minor audio break at first buffering issue will exist on large-sector disks (the main mutex speed issue was genuinely resolved earlier). At this point it's best dealt with at the buffering level. It seems a larger filechunk could be used again. 2) Perhaps 64-bit sims will have some minor issues (finicky) but a backroll of the code of concern there is a 5-minute job. All kernel objects become incompatible so a full rebuild and update is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16791 a1c6a512-1295-4272-9138-f99709370657
* Fix bug in 2 bit vertical interleaved LCD driver: Native partial bitmaps ↵Jens Arnold2008-03-21
| | | | | | weren't drawn when the total bitshift (depending on source and destination clipping) was > 7 Bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16730 a1c6a512-1295-4272-9138-f99709370657
* Don't slow down I2C more than necessary when clock-stretching (rather old ↵Jens Arnold2008-03-20
| | | | | | bug...) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16720 a1c6a512-1295-4272-9138-f99709370657
* Change files to use the public function sleep() and not the intenal kernel ↵Michael Sevakis2008-03-20
| | | | | | function sleep_thread(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16719 a1c6a512-1295-4272-9138-f99709370657
* Make the LCD remote work in the iAudio M3, M5 and X5 bootloaders. * Fix ↵Jens Arnold2008-03-12
| | | | | | viewport related init bug in the 2 bit vertically interleaved LCD driver. * Fix low bat warning in iaudio bootloader - voltages are in millivolts now. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16648 a1c6a512-1295-4272-9138-f99709370657
* Hotswap code shuffling: Fix yellow. Simplify some target function access. ↵Michael Sevakis2008-03-12
| | | | | | Keep fat lock access from compiling for Ondios - think of a nicer way later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16637 a1c6a512-1295-4272-9138-f99709370657
* Do some crackdown on kernel object reinitialization after they could be in ↵Michael Sevakis2008-03-12
| | | | | | use and use before initialization. For c200/e200: Be sure fat cache and ata locks are acquired in the proper order during hot swapping. Delay hotswap monitoring until after initial file mounting (address 2nd kobj concern + possible call of fat driver before init). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16636 a1c6a512-1295-4272-9138-f99709370657
* First step towards the iAudio M3 port: Make the 2bit vertically interleaved ↵Jens Arnold2008-03-09
| | | | | | LCD driver code usable for main or remote. The M3 remote will be treated as the main LCD. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16598 a1c6a512-1295-4272-9138-f99709370657
* Reuse the 1 bit vertical-packed LCD driver code for the remote LCD driver ↵Jens Arnold2008-03-09
| | | | | | with the same pixelformat instead of duplicating everything. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16593 a1c6a512-1295-4272-9138-f99709370657
* Make Rockbox compatible with CF cards (FS #8644): 1) always init after ↵Peter D'Hoye2008-03-09
| | | | | | soft_reset (now nano can soft_reset too), 2) ignore error when setting advanced powermanagement, 3) fix minor bug where sleep mode flag was set even if the sleep command failed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16591 a1c6a512-1295-4272-9138-f99709370657
* ATA driver: * Add protection against out-of-bounds accesses. Those can ↵Jens Arnold2008-03-09
| | | | | | happen e.g. with disks formatted in superfloppy mode, and were the cause for the excessive m:robe100 boot time with standard disk.c code. * Fix ata_mutex handling in case of errors on large sector targets (i.e. iPod Video). * Extra check for unsupported disk sizes when LBA48 support is enabled (>=2TiB). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16582 a1c6a512-1295-4272-9138-f99709370657
* No need to have \n here. panicf() won't output it anyway.Jens Arnold2008-03-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16577 a1c6a512-1295-4272-9138-f99709370657
* Revert accidental tree commit. Sorry for that.Jens Arnold2008-03-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16574 a1c6a512-1295-4272-9138-f99709370657
* No need to have \n here. panicf() won't output it anyway.Jens Arnold2008-03-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16570 a1c6a512-1295-4272-9138-f99709370657
* Remove sector 0 write protection from the ATA and MMC drivers. The one in ↵Jens Arnold2008-02-22
| | | | | | the ATA driver makes it impossible to change sector 0 from within rockbox USB mode, and nobody reported having seen that sector 0 panic for a loong time. Afaik it dates back to when ATA and filesystem write support were developed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16370 a1c6a512-1295-4272-9138-f99709370657
* Give 5g owner's some immediate relief from playback trouble introduced in ↵Michael Sevakis2008-02-22
| | | | | | r16105 without reverting all the "spinlock" changes. A highly localized version of the patches in FS#8568. More permanent and correct measures are being worked out. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16367 a1c6a512-1295-4272-9138-f99709370657
* Fix a small typoWill Robertson2008-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16353 a1c6a512-1295-4272-9138-f99709370657
* Bring the IMX31 serial driver in line with the CONTRIBUTING guidelines.Will Robertson2008-02-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16352 a1c6a512-1295-4272-9138-f99709370657
* FS#8273 by Przemyslaw Holubowski - H10 RTC alarm bugfixesLinus Nielsen Feltzing2008-02-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16310 a1c6a512-1295-4272-9138-f99709370657
* Do not waste RAM in the ATA driver. The identify info is a single sector.Jens Arnold2008-02-14
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16309 a1c6a512-1295-4272-9138-f99709370657
* Return value of audiohw_set_xxx_vol is never used and most of the time we ↵Christian Gmeiner2008-02-13
| | | | | | have a return 0; --> kick it git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16300 a1c6a512-1295-4272-9138-f99709370657
* Some misc. ATA stuff: Increase threads' priority (important for idle ↵Michael Sevakis2008-02-11
| | | | | | callbacks to get done faster). Use a simpler loop for ata thread. Add a balancing mutex_lock call to ata_init (oops). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16278 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#8379 by Andree Buschmann. Disables much of the remaining unneeded ↵Michael Giacomelli2008-02-10
| | | | | | hardware on PP50xx targets (Ipods, Sansa, H10s, etc) resulting in a large savings in power and consequent increase in battery life. Results vary from target to target and from codec to codec, but we now approach the OF runtime on several PP devices. For now, leave base CPU clock at 30MHz, although further savings is possible with some codecs if clock is reduced. Additionally, fix battery capacity on c200 and use my measurements to improve runtime estimation for Sandisk targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16259 a1c6a512-1295-4272-9138-f99709370657
* Let the FAT namecheck also look for trailing spaces, fixes FS #8560.Peter D'Hoye2008-02-07
| | | | | | Only call the dircache rename function if the actual rename was ok. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16241 a1c6a512-1295-4272-9138-f99709370657