summaryrefslogtreecommitdiff
path: root/firmware
AgeCommit message (Collapse)Author
2009-12-03Sansa AMS: Reduce MCICLK speed on SD cards to 31 MHz.Jack Halpin
This is within the SD Spec for v2 High Speed cards but still over the 25 MHz limit for v1 and non-HS v2 cards. Test_disk write & verify passes on both internal and uSD. The v1 cards still need to be lowered to 15 MHz but that causes data crc failures at this point. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23835 a1c6a512-1295-4272-9138-f99709370657
2009-12-03Sansa AMS: Use some new macros to set the MCICLK frequency to help avoid ↵Jack Halpin
missing the bypass bit when resetting frequencies with MCI_CLOCK register. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23831 a1c6a512-1295-4272-9138-f99709370657
2009-12-03Sansa AMS: Wait until sd_init_card() to turn on the clocks for the pl180 ↵Jack Halpin
controller. Currently the bypass bit is not cleared so it's possible to enter the identification phase at bypass speed instead of ident speed. The simplest solution to ensure the bypass bit is not set is to set the register with an = operation instead of |=. This makes setting the MCI_CLOCK register at the end of the controller init unnecessary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23830 a1c6a512-1295-4272-9138-f99709370657
2009-12-03Sansa AMS: Add read/write and drive info to panic message for SD transfer ↵Jack Halpin
errors. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23829 a1c6a512-1295-4272-9138-f99709370657
2009-12-03si4700: revert r22641Rafaël Carré
bits 13:0 must not be modified (except for bit 8 ?) fixes FM on my Clipv1 (some Clips weren't affected) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23826 a1c6a512-1295-4272-9138-f99709370657
2009-12-02M:Robe 500: Improve audio DMA shutdown for Pause/Stop and significantly ↵Karl Kurbjun
reduce the size of the DSP code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23817 a1c6a512-1295-4272-9138-f99709370657
2009-12-01Sansa AMS: Check if SD controllers are already enabled before attempting to ↵Jack Halpin
enable in order to read the registers. If the controllers were already enabled there was a chance we could try to read the MCI_CLOCK registers while the cards were buffering and then disable the controllers prematurely. I guess funman knows and sees all!! Thanks funman. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23811 a1c6a512-1295-4272-9138-f99709370657
2009-12-01Sansa AMS: Force sd_enable(true) when using the Debug View HW info page so ↵Jack Halpin
we can read the registers immediately. Because we turn off the clocks to the SD controllers between disk accesses we were unable to read the MCI_CLOCK registers until there was a disk access. Now we can read them immediately. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23810 a1c6a512-1295-4272-9138-f99709370657
2009-12-01Sansa AMS: Reorganize sd_enable() and add/change comments. No real ↵Jack Halpin
functional changes. Enabling/disabling of the NAF and IDE clocks is now grouped together as both are related to the internal SD. Sequence for disabling SD now mirrors the enable sequence. Comments added to make it easier to follow the configuration change for XPD from gpio to mci-sd and back. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23808 a1c6a512-1295-4272-9138-f99709370657
2009-12-01correction on DEFINE, thanks to Kugel who spotted it ;)Laurent Gautier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23807 a1c6a512-1295-4272-9138-f99709370657
2009-12-01Add support for the ipod FM remote to the 4G, Color, 5G, nano 1G with RDSLaurent Gautier
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23805 a1c6a512-1295-4272-9138-f99709370657
2009-11-29Reduce bin size of diacritic characters databaseTomer Shalev
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23787 a1c6a512-1295-4272-9138-f99709370657
2009-11-28Diacritic display enhancementsTomer Shalev
- Use the fact that unicode code currently does not support chars above 0xffff (see utf8decode()), and change diacritic database's char code type to unsigned short from int. Also comment out database entries above unsupported range. - Use const when possible. - Iterate over buffer using the buffer's pointer, thus avoiding usage of some variables, and avoiding multiple access to the same array item. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23776 a1c6a512-1295-4272-9138-f99709370657
2009-11-27Jz4740: init I²C GPIO pinsMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23771 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Onda VX747: don't define HAVE_MULTIVOLUMEMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23768 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Move strip_volume() to filefuncs.c and set properties.Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23767 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Use MULTIDRIVE instead of MULTIVOLUME in sd.cFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23766 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Fix diacritic and save some bin sizeTomer Shalev
- Fix bug which cause wrong placement of characters in some specific conditions - Fix multiple similar entries in cache - Protect against negative x values passed to drawing function git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23765 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Define sd_drive_nr also when HAVE_HOTSWAP is defined (fix red).Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23764 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Forgot fileMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23763 a1c6a512-1295-4272-9138-f99709370657
2009-11-26 - Split off strip_volume() to a separate fileMaurus Cuelenaere
- fix some yellows git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23762 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Fix Onda VX767Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23761 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Define HAVE_MULTI{VOLUME,DRIVE} (aka fix red) for Onda VX7x7Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23760 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Merge branch 'hotswap'Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23759 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Remove unused card_detect(), and make card_detect_target() static inline in ↵Thomas Martitz
each sd driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23757 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Revert unrelated commitThomas Martitz
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23756 a1c6a512-1295-4272-9138-f99709370657
2009-11-26Redo a hack that precluded entering a folder on an ejected hotswap drive. ↵Thomas Martitz
Use storage api and proper defines for the drive folder instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23755 a1c6a512-1295-4272-9138-f99709370657
2009-11-25Mini2440: Cleanup SD driver a bit, undefine SD_DEBUG for faster transfers, ↵Thomas Martitz
implement hotswap and HAVE_HOTSWAP_STORAGE_AS_MAIN. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23754 a1c6a512-1295-4272-9138-f99709370657
2009-11-25Add HAVE_HOTSWAP_STORAGE_AS_MAIN to detect changed binary after re-inserting ↵Thomas Martitz
the storage on targets that run rockbox from hotswappable storage. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23752 a1c6a512-1295-4272-9138-f99709370657
2009-11-25Add missing parentheses to S5L8701 USEC_TIMERMichael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23749 a1c6a512-1295-4272-9138-f99709370657
2009-11-25Enable wheel acceleration for iPod Nano 2GMichael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23748 a1c6a512-1295-4272-9138-f99709370657
2009-11-25Fix the S5L8701 µsec timerMichael Sparmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23747 a1c6a512-1295-4272-9138-f99709370657
2009-11-25AMS Sansa: For consistency, replace references to SECTOR_SIZE with ↵Jack Halpin
SD_BLOCK_SIZE which is defined in sd.h as 512 bytes. We had 3 different references to the same value. Rockbox always uses a blocksize of 512 bytes for SD and we were using SECTOR_SIZE, SD_BLOCK_SIZE, & card_info[drive].blocksize to use this value. Now the only reference being used is SD_BLOCK_SIZE. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23746 a1c6a512-1295-4272-9138-f99709370657
2009-11-24Limit character width to 255 pixelsFrank Gevaerts
Use intermediate variable to fix yellow and red git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23744 a1c6a512-1295-4272-9138-f99709370657
2009-11-24make lcd_bitmap_char more space efficient. This doesn't seem to impact text ↵Frank Gevaerts
drawing performance git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23743 a1c6a512-1295-4272-9138-f99709370657
2009-11-24FS#10720 - Support for displaying diacritic charactersTomer Shalev
This commit corrects the display of diacritic characters, which exist in many languages. Hopefully, it will make Rockbox much more usable for users of these languages. Diacritic information (which used to decide whether a given character is diacritic or not) is taken from the Unicode Standard, Version 5.2. This feature does not affect drawing performance much, as the diacritic database is cached (simple MRU mechanism). There may be room for further performance, footprint, and code-reuse wise improvements, that could be worked on in the future. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23742 a1c6a512-1295-4272-9138-f99709370657
2009-11-24FS#9721 - No error check after writes in ata.cTorne Wuff
Patch by Boris Gjenero (dreamlayers). Writes are retried on failure now so this should be safe. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23741 a1c6a512-1295-4272-9138-f99709370657
2009-11-24FS#10798 - unify ata_read_sectors and ata_write_sectorsTorne Wuff
Writes will now be retried if they fail, and will be done using multisector transfers which should be faster. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23740 a1c6a512-1295-4272-9138-f99709370657
2009-11-24Sansa AMS : fix recordingRafaël Carré
Flyspray: FS#10371 Authors: Fred Bauer and myself Only enabled on e200v2 and Fuze (crashes on clipv1) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23739 a1c6a512-1295-4272-9138-f99709370657
2009-11-24AMS Sansa: Include time spent yielding when figuring timeout in ↵Jack Halpin
sd_wait_for_state(). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23738 a1c6a512-1295-4272-9138-f99709370657
2009-11-24Tatung Elio: a few more buttons identifiedRobert Kukla
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23737 a1c6a512-1295-4272-9138-f99709370657
2009-11-24Sansa AMS: VIC_INT_ENABLE register is not a maskRafaël Carré
When read it returns all enabled interrupt sources When written it enables interrupt sources for each bit set So just like VIC_INT_EN_CLEAR, we don't have to read the previous value before writing to it (VIC_INT_EN_CLEAR is write-only anyway) Thanks to Fred Bauer for spotting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23734 a1c6a512-1295-4272-9138-f99709370657
2009-11-24AMS Sansa: Remove MCI_RX_ACTIVE FIFO check following SD transfers.Jack Halpin
We don't need to check the FIFO for MCI_RX_ACTIVE because we don't experience problems reading from the SD cards. We need the MCI_TX_ACTIVE FIFO check during writes because some SD cards spend longer times in the PRG state programming the data that has been written to them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23733 a1c6a512-1295-4272-9138-f99709370657
2009-11-24AMS Sansa: Remove wait_for_state() following transfer in sd_select_bank() ↵Jack Halpin
function. We use wait_for_state() before any command that requires a state prior to being sent. Waiting after a transfer is not needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23732 a1c6a512-1295-4272-9138-f99709370657
2009-11-23Fix FS#10362 (flickering backlight when removing hold) by preventing ↵Rob Purchase
multiple SYS_TIMEOUT events being posted the backlight thread. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23730 a1c6a512-1295-4272-9138-f99709370657
2009-11-23AMS Sansa: dma-pl081.c: dma_enable_channel() Add step to clear pending ↵Jack Halpin
interrupts from the previous operation. Add comments and make construction of the CH_CONTROL and CH_CONFIGURATION registers easier to follow. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23725 a1c6a512-1295-4272-9138-f99709370657
2009-11-23AMS Sansa: Handle responses to SD Commands so that response crc checking is ↵Jack Halpin
accounted for. Adjust sd error codes appropriately. The crc check on responses to sd commands was being bypassed due to a SD_APP_OP_COND special case. Now a short response is returned even if the crc check fails so we can check the busy bit. The send_cmd() function still returns a false value but it loads the response variable with the cmd response. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23718 a1c6a512-1295-4272-9138-f99709370657
2009-11-22lcd-bitmap-common.c: Change calculation of the horizontal position in ↵Teruaki Kawashima
lcd_puts_style_offset() so that the position is independent from the string being printed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23705 a1c6a512-1295-4272-9138-f99709370657
2009-11-22AMS Sansa: Remove a now redundant sd_wait_for_state() and adjust error ↵Jack Halpin
codes in ata_sd_as3525.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23698 a1c6a512-1295-4272-9138-f99709370657
2009-11-22AMS Sansa: Make send_cmd() function a bit less complicated and save ~96 bytes.Jack Halpin
Also move sd_wait_for_state() to immediately precede SD_READ/WRITE_MULTIPLE_BLOCK commands. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23692 a1c6a512-1295-4272-9138-f99709370657