summaryrefslogtreecommitdiff
path: root/firmware/drivers (follow)
Commit message (Collapse)AuthorAge
...
* Ingenic Jz4740: remove some unneeded stuff and simplify SD driver (also ↵Maurus Cuelenaere2009-07-03
| | | | | | thanks to Rafaël Carré) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21621 a1c6a512-1295-4272-9138-f99709370657
* Move sd_get_info() into common sd codeRafaël Carré2009-07-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21610 a1c6a512-1295-4272-9138-f99709370657
* * Move some more stuff to the general SD driverMaurus Cuelenaere2009-07-01
| | | | | | | * Ingenic SD driver: cleanup DMA part a bit (not working yet) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21606 a1c6a512-1295-4272-9138-f99709370657
* add firmware/driver/sd.c which contains common code between SD driversRafaël Carré2009-07-01
| | | | | | | | | | | | ingenic SD driver needs more cleanup so it still doesn't use the common code correct a comment in hotswap.c: card_extract_bits assume most significant word of register first (so, use this order) fix debug menu which used MMC specific commands / bits positions in csd/cid move the default block size of 512 into sd.h move the mantissa & exponent table into a single file (sd.c) to reduce binsize. we don't need to export it anymore anyway TODO : ingenic cleanup (will happen soon so building sd.c is not conditional) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21601 a1c6a512-1295-4272-9138-f99709370657
* card_extract_bits() take the start bit argument as defined in public SanDisk ↵Rafaël Carré2009-07-01
| | | | | | specifications for SD and MMC, i.e. bit 0 is the lsb git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21600 a1c6a512-1295-4272-9138-f99709370657
* Merge tCardInfo struct (MMC) and tSDCardInfo struct (SD)Rafaël Carré2009-07-01
| | | | | | | | | | | | | | | | | Put specific members under #ifdef (CONFIG_STORAGE & STORAGE_xx) (2 members for SD and 1 for MMC) Fix a typo: tsac doesn't exist and must be read taac Move card_get_info functions declaration inside hotswap.h to remove mutual inclusion of ata_mmc.h and hotswap.h Move static const data structures from SD drivers into sd.h (sd_exponent and sd_mantissa) Fix sd_command prototypes in SD drivers (card registers are unsigned long) Fix speed calculation in Sansa AMS driver (PP SD driver needs to be checked) Move ata-sd-target.h to sd-pp-target.h to reflect the PP specifity. Now it only contains declaration of microsd_int() Remove unused ata-sd-target.h for injenic TODO: - check if CSD register bits are extracted correctly in PP driver - correctly define read_timeout and write_timeout unit for MMC & SD, and use timeouts in Sansa AMS driver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21586 a1c6a512-1295-4272-9138-f99709370657
* Create an udacodec interface (similar to ascodec and wmcoded) and ↵Bertrik Sikken2009-06-28
| | | | | | adapt/implement it for the iriver h1xx/h3xx and the meizus. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21546 a1c6a512-1295-4272-9138-f99709370657
* Add RTC driver for Seiko S35390A (used in the Meizu M3 and possibly other ↵Bertrik Sikken2009-06-28
| | | | | | Meizus) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21539 a1c6a512-1295-4272-9138-f99709370657
* M:Robe 500: RTC is now working, Added some SPI flexibility per end device ↵Karl Kurbjun2009-06-24
| | | | | | and modified the interrupt handler for the tsc2100 which should make it more reliable. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21483 a1c6a512-1295-4272-9138-f99709370657
* c200v2 : fix FM radio, the c200v2 uses the internal oscillator like others ↵Rafaël Carré2009-06-20
| | | | | | Sansa AMS git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21432 a1c6a512-1295-4272-9138-f99709370657
* Fix delays in generic i2c driver, reduce delays in ams sansa fmradio i2c ↵Bertrik Sikken2009-06-20
| | | | | | driver (tested on m200v4, clip, e200v2, fuze). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21421 a1c6a512-1295-4272-9138-f99709370657
* Fix e200v2 radio problem (missing Si4702 initialisation)Bertrik Sikken2009-06-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21416 a1c6a512-1295-4272-9138-f99709370657
* Philips SA9200: Working touchpad and button lights! Also, improvements to ↵Mark Arigo2009-06-19
| | | | | | the keymap (still needs work). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21346 a1c6a512-1295-4272-9138-f99709370657
* Clean up the Synaptics touchpad driver.Mark Arigo2009-06-19
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21344 a1c6a512-1295-4272-9138-f99709370657
* Touchscreen targets: add calibration screen + rewrite calibration driver ↵Maurus Cuelenaere2009-06-16
| | | | | | (FS#10295) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21312 a1c6a512-1295-4272-9138-f99709370657
* M:Robe 500: Fix up 256 color blitting when in portrait mode, fix a mistake ↵Karl Kurbjun2009-06-13
| | | | | | in the plugin linker script, reduce the amount of memory used by overwriting IRAM with bss after program has started, clean up some tabs and formatting, resize the simulator when building for 640x480 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21280 a1c6a512-1295-4272-9138-f99709370657
* M:Robe 500: Mostly complete USB driver, supports BULK mode currently and ↵Karl Kurbjun2009-06-08
| | | | | | gets about 2 MB/s writes vs 1.1 MB/s on the OF. Mostly tested against Linux, preliminary testing in Windows appears to work. There is currently a bug in the attach process where it only works once per boot that needs to be fixed. There are a few other minor M:Robe 500 changes as well. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21208 a1c6a512-1295-4272-9138-f99709370657
* Convert a number of places in core and plugins to use the BIT_N() macro ↵Jens Arnold2009-06-07
| | | | | | instead of 1<<n. Speeds up things on SH1, and also reduces core binsize. Most notable speedups: 1 bit lcd driver: drawpixel +20%, drawline + 27%, hline +5%; jpeg viewer: +8% for 1/8 scaling. Other targets are unaffected. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21205 a1c6a512-1295-4272-9138-f99709370657
* Fix some delays in generic_i2cBertrik Sikken2009-06-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21200 a1c6a512-1295-4272-9138-f99709370657
* Speed up mono bitmap drawing on horizontally packed greyscale targets ↵Jens Arnold2009-06-01
| | | | | | (greyscale iPods). Average speedup is 80% on PP5002, and 55% on PP502x. * Simplify mono bitmap drawing in the 16 bit driver and the greylib a bit, also giving a slight speedup (3% on PP502x, 1.5% on coldfire). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21163 a1c6a512-1295-4272-9138-f99709370657
* Add missing delay in i2c_start of the generic_i2c driver, used by ams targets.Bertrik Sikken2009-06-01
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21159 a1c6a512-1295-4272-9138-f99709370657
* Use bit-doubled mask everywhere in mono bitmap drawing. ~2% speedup, and ↵Jens Arnold2009-05-31
| | | | | | smaller. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21141 a1c6a512-1295-4272-9138-f99709370657
* Two tiny optimisations for mono bitmap drawing on greyscale displays: (1) ↵Jens Arnold2009-05-30
| | | | | | H1x0, M5: Manipulate destination masks directly for the aligned case - ~0.7% speedup. (2) Greyscale ipods: Use sentinel method for reloading data like the 16 bit driver does - ~1.5% speedup. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21139 a1c6a512-1295-4272-9138-f99709370657
* 3 new ports: Samsung YH-820, YH-920, and YH-925. Mostly functional. Audio ↵Mark Arigo2009-05-25
| | | | | | working on 820 & 925 (untested on the 920). No battery readings. No recording. No plugins. Keymap needs work. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21083 a1c6a512-1295-4272-9138-f99709370657
* Fix tuner_power warning on ondio FMBertrik Sikken2009-05-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21012 a1c6a512-1295-4272-9138-f99709370657
* Fix duplicate #includesBertrik Sikken2009-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20977 a1c6a512-1295-4272-9138-f99709370657
* Add working USB HID driver, by Tomer Shalev (part of his GSoC work).Frank Gevaerts2009-05-16
| | | | | | | | | This needs support for usb interrupt transfers, so there are some changes in various USB drivers as well (only usb-drv-arc supports it at this point, others won't have working HID yet). HID is disabled for now, as the apps/ part is not included yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20962 a1c6a512-1295-4272-9138-f99709370657
* Ingenic Jz4740: add a delay between enabling the RTC clock and setting the ↵Maurus Cuelenaere2009-05-06
| | | | | | RTC time git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20862 a1c6a512-1295-4272-9138-f99709370657
* M:Robe 500 - Fix some of the Keymaps, touchscreen improvements to decrease ↵Karl Kurbjun2009-05-02
| | | | | | inacurate reads, add support for dynamic frequency (was running at 87.5 MHz, now it runs at 175 MHz when boosted), disable clock to unneded modules (decreased power by 20 mA), LCD turnoff now works without graphic glitches, battery ADC read now returns scaled voltage, define backlight fading git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20846 a1c6a512-1295-4272-9138-f99709370657
* M:Robe 500: Fix red, commit missing work, reduce lcd wakeup time.Karl Kurbjun2009-04-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20819 a1c6a512-1295-4272-9138-f99709370657
* Remove unnecessary #include "adc.h"Bertrik Sikken2009-04-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20791 a1c6a512-1295-4272-9138-f99709370657
* Remove unnecessary #include "backlight.h"Bertrik Sikken2009-04-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20790 a1c6a512-1295-4272-9138-f99709370657
* beginings of a working touchscreen interface for the WPS. 2 new tags:Jonathan Gordon2009-04-20
| | | | | | | | | | | %T|x|y|width|height|action| <- setup a region (relative to the current viewport) where if pressed the "action" will be done (currently play/stop/prev/next/menu/browse work, suggestions for others to add and better names welcome) %Tl<timeout> <- used as a conditional to say if the touchscreen was touched in the last <timeout>, use this to enable/disable button viewports or something... same syntax as other timeout tags cabbiev2 for the mr500 has been modified to demonstrate the new tags. press the pause/play button to pause playback. press the rockbox logo to get back to the menu. pretty icons needed to make this more usable :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20753 a1c6a512-1295-4272-9138-f99709370657
* FS#9635 - On V1, V2 and FM Archos recorders, ensure instant backlight ↵Boris Gjenero2009-04-14
| | | | | | switch-off. (Formerly, backlight switch-off was unpredicrable on some of these devices. The backlight would either turn off instantly or brighten instantly and then fade.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20707 a1c6a512-1295-4272-9138-f99709370657
* FS#9985: The OF of AMS sansas seems to keep time in seconds since 1970-1-1 ↵Bertrik Sikken2009-04-12
| | | | | | instead of 1980-1-1 used in earlier sansas, so apply an adjustment for this difference when reading/writing the RTC. This avoids resetting of date/time by the OF. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20697 a1c6a512-1295-4272-9138-f99709370657
* FS#10086 - Playback and recording sample rate setting on the 5G iPodBoris Gjenero2009-04-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20635 a1c6a512-1295-4272-9138-f99709370657
* D2: Enable FM radio (based on FS#10035 by Michael Burtin with some changes ↵Rob Purchase2009-03-21
| | | | | | by myself). Also updates the LV24020 driver to add optional logf debugging. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20420 a1c6a512-1295-4272-9138-f99709370657
* Implement udelay() for D2 and remove the old hacks from USB & FM drivers.Rob Purchase2009-03-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20417 a1c6a512-1295-4272-9138-f99709370657
* Fix reds and yellows (hopefully). Some targets apparently didn't properly ↵Thomas Martitz2009-03-17
| | | | | | #ifdef lcd_enable and lcd_sleep code out, so that it got partly active in the bootloader; rename the ui simulator stub fixes most reds; for the clip: move the hook code into lcd-1bit-vert.c which should fix the bootloader red. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20333 a1c6a512-1295-4272-9138-f99709370657
* Rework lcd_enabled and lcd_set/call_enable hookThomas Martitz2009-03-17
| | | | | | | a) lcd_enabled() is now lcd_active(), and is available for HAVE_LCD_SLEEP only targets (e.g. ipod video) too. It was depandent on HAVE_LCD_ENALE only before b) rename the hook accordingly, and implement the hook for other other targets too (e.g. the clip [the only mono target with lcd_enable/lcd_sleep yet, so the code is still in the lcd driver], ipod, fuze, c200) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20331 a1c6a512-1295-4272-9138-f99709370657
* Commit the common portion of FS#9708: ATA (IDE) DMA by Boris Gjenero with a ↵Michael Sevakis2009-03-12
| | | | | | couple cosmetic tweaks and without the inclusion of 'FS#9721: No error check after writes in ata.c'changes (which can be done separately). No code is changed for targets without HAVE_ATA_DMA defined other than to not display DMA modes in the View Disk Info debug screen if not using DMA (Gigabeat F/X/S were). No target uses the code yet but Gigabeat S use will follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20298 a1c6a512-1295-4272-9138-f99709370657
* Sound working with rockbox PCM interface on the M:Robe 500. Doom and ↵Karl Kurbjun2009-03-11
| | | | | | Rockboy run with sound. There are stability problems that need to be looked into causing the player to reset when music playback is attempted. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20284 a1c6a512-1295-4272-9138-f99709370657
* Optimize hline, fillrect and mono bitmap drawing for chunky displays (16 bit ↵Jens Arnold2009-03-08
| | | | | | colour and greylib). Speeds up text rendering by 20..45% on colour coldfire, by 30..50% on colour ARM, and is noticeable in archos pictureflow. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20242 a1c6a512-1295-4272-9138-f99709370657
* Use total_sectors in ata_get_info() instead of calculating it all over ↵Frank Gevaerts2009-03-05
| | | | | | again. This should fix LBA48 issues. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20208 a1c6a512-1295-4272-9138-f99709370657
* Cosmetic fix: remove duplicate semicolonsBertrik Sikken2009-03-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20198 a1c6a512-1295-4272-9138-f99709370657
* Get the volume controls working on the M:Robe 500 along with some minor code ↵Karl Kurbjun2009-03-03
| | | | | | changes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20194 a1c6a512-1295-4272-9138-f99709370657
* Simplify generic_i2c, removing the link between i2c address and i2c ↵Bertrik Sikken2009-03-03
| | | | | | interface, adding the concept of an i2c bus index. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20193 a1c6a512-1295-4272-9138-f99709370657
* TCC NAND: The BLOCKS_PER_SEGMENT define was actually the number of planes ↵Rob Purchase2009-03-02
| | | | | | mentioned in the Samsung NAND datasheet. Add this to the nand_id struct, so that it can be runtime detected (required for some D2s to boot). Use the struct directly instead of making a local copy, and format the nand_info table to 80 columns. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20186 a1c6a512-1295-4272-9138-f99709370657
* Split HAVE_SCROLLWHEEL into HAVE_SCROLLWHEEL and HAVE_WHEEL_ACCELERATION, ↵Thomas Martitz2009-03-02
| | | | | | | | | | where the latter now activates the wheel acceleration code. HAVE_SCROLLWHEEL plainly indicates the existence of a scrollwheel, thus all ipods define it now (in addition to the ones and some sansas which did before). Same applies to the manual. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20177 a1c6a512-1295-4272-9138-f99709370657
* Ingenic Jz4740 RTC: actually write date to RTCMaurus Cuelenaere2009-02-26
| | | | | | | Touchscreen DAPs: add timescreen keymap git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20122 a1c6a512-1295-4272-9138-f99709370657