Maurus Cuelenaere
f060b9764d
Remove USB storage defines from USB core
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22018 a1c6a512-1295-4272-9138-f99709370657
2009-07-23 23:05:26 +00:00
Rob Purchase
07a6aac401
D2: Notify the backlight driver when the HOLD button is toggled. Fixes FS#10451.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22007 a1c6a512-1295-4272-9138-f99709370657
2009-07-22 22:59:08 +00:00
Thomas Martitz
5c9fe52629
Commit part of FS#9873 - Utilise buttons for playlisting
...
It adds a shortcut (combo or button) to directly go from the wps to the playlist viewer. The combos could possibly be improved on some targets, but I tried to keep a tad bit of consistency (was hardly possible).
I also added a corresponding touchscreen region and adapted cabbiev2.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22003 a1c6a512-1295-4272-9138-f99709370657
2009-07-22 22:10:25 +00:00
Rob Purchase
457eb6b2e9
Disable the D2 SD driver for the time being since there are reports of damaged SD cards.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21999 a1c6a512-1295-4272-9138-f99709370657
2009-07-22 21:15:39 +00:00
Dave Chapman
808938220a
Nano2G Backlight driver improvements - the previous version didn't work reliably.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21986 a1c6a512-1295-4272-9138-f99709370657
2009-07-20 21:30:07 +00:00
Frank Gevaerts
534cd216a0
sd_first_drive is only used when HAVE_HOTSWAP is defined, so add appropriate #ifdefs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21985 a1c6a512-1295-4272-9138-f99709370657
2009-07-20 19:46:36 +00:00
Frank Gevaerts
a7548d3bc7
Make sd_present() and mmc_present() look only at the actual presence of a card, not at initialisation state
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21981 a1c6a512-1295-4272-9138-f99709370657
2009-07-20 13:47:21 +00:00
Frank Gevaerts
3e1b9d5fdd
take first_drive into account when handling hotswap. This is not important as long as this is the only driver in use, but it avoids bugs as soon as things like ramdisks are used
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21980 a1c6a512-1295-4272-9138-f99709370657
2009-07-20 13:23:28 +00:00
Bertrik Sikken
0d2005c6f8
Update the uda1380 codec driver to allow it to be used without the WSPLL for playback and allow the use of a 256Fs clock signal directly at the SYSCLK input instead. This is required for the Meizus.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21975 a1c6a512-1295-4272-9138-f99709370657
2009-07-19 22:45:32 +00:00
Karl Kurbjun
9153e8d025
M666591 (MRobe:500) USB: Driver works without restarting rockbox between connects.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21971 a1c6a512-1295-4272-9138-f99709370657
2009-07-19 21:50:48 +00:00
Rob Purchase
ef3064eac0
D2: Enable tagcache database
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21969 a1c6a512-1295-4272-9138-f99709370657
2009-07-19 18:08:59 +00:00
Frank Gevaerts
43d6c6c7c5
fix ifdef (HAVE_HOTSWAP, not HOTSWAP)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21968 a1c6a512-1295-4272-9138-f99709370657
2009-07-19 17:49:06 +00:00
Rob Purchase
3a88746780
D2: A working read/write SD(HC) driver, based on the PP equivalent. See CowonD2Info wiki for usage notes/restrictions.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21967 a1c6a512-1295-4272-9138-f99709370657
2009-07-19 17:31:56 +00:00
Frank Gevaerts
11a14dd998
adapt c200v2 and view defines to the new drive/volume handling scheme
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21955 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 13:18:48 +00:00
Maurus Cuelenaere
631b966a1d
Fix Onda VX747(+)/VX777 simulator build
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21954 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 13:18:33 +00:00
Frank Gevaerts
e409fba7f8
Flyspray: FS#10326
...
Author: Tomer Shalev
Adds a USB HID sample application, a plugin tha allows to send HID commands while connected in non-storage mode.
This also removes the HID stuff in the debug menu. Testing is now easily doable from the plugin
Also general HID updates
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21953 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 12:58:29 +00:00
Bertrik Sikken
17b8805b49
S5L8700: fix off-by-one error in kernel timer and fix incorrect interrupt mask in pcm driver.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21950 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 11:54:01 +00:00
Dave Chapman
9be28179e4
Nano2g button driver - currently only implementing the hold switch. Should have been part of previous commit.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21949 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 11:36:35 +00:00
Dave Chapman
386503502b
Various Nano2g changes - enable the rest of crt0.S (including clock setup) and make the nano2g bootloader do something useful (displaying gpio ports). Also add checks for the fifo-full condition in the LCD driver - required after enabling all the crt0.S inits
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21948 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 11:31:19 +00:00
Michael Giacomelli
e362aeb61f
Commit FS#10413 by Michael Chicoine. Fixes upside down menu in mpegplayer when watching videos with the screen inverted.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21942 a1c6a512-1295-4272-9138-f99709370657
2009-07-18 01:38:17 +00:00
Frank Gevaerts
c247483ef1
fix ata-nand-s5l8700 compilation properly this time
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21938 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 23:19:21 +00:00
Frank Gevaerts
e12fdfcfb0
remove obsolete nand_spinup_time() declaration
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21937 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 23:11:50 +00:00
Frank Gevaerts
27a2564b78
svn properties, late as usual
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21936 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 22:41:08 +00:00
Dave Chapman
6432941f10
Basic backlight driver for Nano 2G
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21935 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 22:40:36 +00:00
Frank Gevaerts
92a7418415
don't try to call nand_soft_reset() or nand_disk_is_active(), they don't exist
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21934 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 22:39:41 +00:00
Frank Gevaerts
c0a5a67387
Commit FS#9545, storage cleanup and multi-driver support
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21933 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 22:28:49 +00:00
Robert Kukla
bb3b57f645
make ELIO_TPJ1022 bootloader compile again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21932 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 22:07:06 +00:00
Thomas Martitz
fd17a8d637
Apply the same fix as r21930 did for the ramdisk for the AMS Sansa driver.
...
Nothing should change, since the value of transfer didn't change in the == case, but it saves executing this case at least.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21931 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 21:50:36 +00:00
Frank Gevaerts
8cba8447f8
Allow access to the last sector of the ramdisk as well
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21930 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 21:02:44 +00:00
Robert Keevil
a0d630f3de
Add information gleaned from disassembling the main firmware image. Detect lcd type in use. Still no actual output
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21929 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 20:40:40 +00:00
Dave Chapman
11c3f67a1e
Improvments to Nano 2G LCD driver. This now works reliably on both LCD types.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21926 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 17:58:43 +00:00
Rafaël Carré
9191b3c16e
remove nand_soft_reset and nand_disk_is_active already voided in storage.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21924 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 16:34:41 +00:00
Rafaël Carré
bdb5974c0e
Revert r21912 : "Storage API : remove undeeded target-specific functions"
...
After a discussion mixed on mailing list and irc, it was agreed that
more abstraction for plugins is better (so developers don't have to add
a check to HAVE_DISK_STORAGE when writing disk-specific code)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21923 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 16:34:34 +00:00
Maurus Cuelenaere
cf9935d636
Onda VX747: add dual-boot capability + make it possible to permanently 'stick' Rockbox to your DAP
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21919 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 14:30:42 +00:00
Karl Kurbjun
9660a8589c
M:Robe 500: Fix simulator build and include some small changes for the 640x480 setup.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21914 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 04:29:34 +00:00
Karl Kurbjun
c97a3bf180
M:Robe 500: Start of interrupt support.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21913 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 03:44:01 +00:00
Rafaël Carré
8eba69f91b
Storage API : remove undeeded target-specific functions
...
storage_sleep, storage_spin, storage_spindown are only defined if #defiend (HAVE_DISK_STORAGE), not for MMC/ATA/SD
remove already unneeded nand_disk_is_active, nand_soft_reset
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21912 a1c6a512-1295-4272-9138-f99709370657
2009-07-17 00:09:14 +00:00
Dave Chapman
715d8c63d9
Add auto-detection of Nano 2G LCD type, and an initial attempt at lcd_update() for the second lcd type. This lcd_update works, but not reliably.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21905 a1c6a512-1295-4272-9138-f99709370657
2009-07-16 18:03:09 +00:00
Thomas Martitz
009733c51d
Fix Philips sa9200 red (HAVE_LCD_SLEEP is not defined in the bootloader so there's also no lcd_sleep()).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21901 a1c6a512-1295-4272-9138-f99709370657
2009-07-16 07:35:10 +00:00
Dave Chapman
0270e4c591
Get the Nano2G bootloader running - it now runs and displays a logo on one type of Nano2G LCD.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21900 a1c6a512-1295-4272-9138-f99709370657
2009-07-16 00:57:02 +00:00
Dave Chapman
a677e1ba26
Oops, r21896 used the wrong #if check. Thanks to Thomas Martitz for spotting
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21897 a1c6a512-1295-4272-9138-f99709370657
2009-07-16 00:19:39 +00:00
Dave Chapman
c969047fea
The S5L8701 has the LCD controller in a different place.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21896 a1c6a512-1295-4272-9138-f99709370657
2009-07-16 00:12:46 +00:00
Dave Chapman
02f5a001fe
Working LCD driver for half the Nano2Gs. It now appears that there are two types of LCD though.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21895 a1c6a512-1295-4272-9138-f99709370657
2009-07-16 00:00:16 +00:00
Jens Arnold
989021ed3c
Apply some ARMv6 optimisations to YUV blitting. Speeds up mpegplayer on Gigabeat S by ~2% in undithered and ~7.5% in dithered mode.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21889 a1c6a512-1295-4272-9138-f99709370657
2009-07-15 22:14:21 +00:00
Dave Chapman
0d484bad5e
Introduce S5L8701 CONFIG_CPU definition for Nano2G and a new CPU_S5L870X "family" define - the 8700 and 8701 are proving to be different. Also move all the cpu-specific defines earlier in config.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21886 a1c6a512-1295-4272-9138-f99709370657
2009-07-15 21:34:31 +00:00
Rob Purchase
75b27eaacc
Guard the Timeout API declarations with the correct #ifdef
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21869 a1c6a512-1295-4272-9138-f99709370657
2009-07-14 20:04:26 +00:00
Nils Wallménius
5905b0be3e
Missed one strncpy call
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21864 a1c6a512-1295-4272-9138-f99709370657
2009-07-14 14:15:33 +00:00
Nils Wallménius
3d4701a6e4
FS#10080
...
* Move strncpy() from core to the pluginlib
* Introduce strlcpy() and use that instead in most places (use memcpy in a few) in core and some plugins
* Drop strncpy() from the codec api as no codec used it
* Bump codec and plugin api versions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21863 a1c6a512-1295-4272-9138-f99709370657
2009-07-14 13:57:45 +00:00
Robert Keevil
eea149bd13
FS#10436 - add the Sansa View to the build system. The bootloader builds but doesn't do anything useful yet.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21848 a1c6a512-1295-4272-9138-f99709370657
2009-07-13 21:09:39 +00:00
Jens Arnold
36eeecbe9a
* Fix overlooked r12 usage possibility in mpegplayer ARM idct
...
* ARM dualcore: Don't save r12 in switch_thread_core()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21830 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 22:43:24 +00:00
Dave Chapman
afe43d3fcb
Basic changes to add nano 2g to the build system, based on the Meizu M3 port. The bootloader builds, but does nothing due to lack of any drivers.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21828 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 22:16:51 +00:00
Bertrik Sikken
92fed35da6
S5L8700/Meizu: miscellaneous minor fixes, stubs added, keywords set
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21820 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 19:36:27 +00:00
Bertrik Sikken
111af64e74
Meizu M3: initial version of battery readout and (uncalibrated) charge/discharge curves
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21812 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 15:33:58 +00:00
Frank Gevaerts
11f9f3cd46
Add data structures
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21811 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 15:29:22 +00:00
Frank Gevaerts
7528674626
Remove OHCI registers from s3c2440.h and move them to their own header. Since s3c2440 seems to be very close to the OHCI spec, there's no reason not to use a generic driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21808 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 15:01:10 +00:00
Bertrik Sikken
59b9e3ab3f
Meizu: implement power driver (USB power detect / charging status / poweroff)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21805 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 14:32:38 +00:00
Jack Halpin
f9e7a5ad39
AMSSansa: Use single adc_read instead of multiple ascodec_reads to read voltage for display in View HW info.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21804 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 14:12:45 +00:00
Bertrik Sikken
61394b725b
S5L8700: implement timer driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21801 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 10:44:02 +00:00
Thomas Martitz
0dd0e4e072
Correct svn:keywords and svn:eol-style on a few more files.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21798 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 09:43:44 +00:00
Thomas Martitz
467999ac9c
Remove svn:executable from these files.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21797 a1c6a512-1295-4272-9138-f99709370657
2009-07-12 09:16:55 +00:00
Jens Arnold
47d4c4739b
ARM asm LCD and ATA driver functions: Don't save r12 as it is a scratch reg. Saves a bit of stack and execution time.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21795 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 23:43:44 +00:00
Bertrik Sikken
47d857981a
S5L8700: fix buttons used in debug menu
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21792 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 22:34:56 +00:00
Bertrik Sikken
5db8098bfd
Meizu M3: implement rudimentary button driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21787 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 20:00:07 +00:00
Alexander Levin
bc27e0f57c
Fix red for sansa m200v4 (it also should have the pitchscreenif sansa m200 has it)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21783 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 17:40:52 +00:00
Alexander Levin
7765158513
Fix red in bootloaders
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21782 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 17:16:23 +00:00
Alexander Levin
cc7c665d9b
Improvements to the pitch screen UI (FS#10359 by David Johnston)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21781 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 16:46:19 +00:00
Rafaël Carré
17ac0d7ff9
fix yellow : panicf() is declared in panic.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21780 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 15:26:58 +00:00
Bertrik Sikken
27c60fde0d
S5L8700: add skeleton for __dbg_hw_info and __dbg_ports items in the debug menu
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21777 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 14:41:43 +00:00
Rafaël Carré
405d12de7e
Sansa AMS: panic with the PL180 controller status register in case of errors
...
The maximum number of errors is 10 (arbitrary)
A recovery mechanism is not in place (yet) but could be implemented in the future
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21776 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 14:27:26 +00:00
Bertrik Sikken
24cf6ce2f3
S5L8700: mask away status bits from ADC conversion result
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21775 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 14:12:02 +00:00
Rafaël Carré
75fa699814
Sansa AMS: handle properly SD transfer errors
...
clocks disabling and mutex unlocking were not made in case of errors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21773 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 13:46:10 +00:00
Bertrik Sikken
306753b1ed
Meizu: use hardware PWM instead of interrupts+GPIO to set the backlight brightness level
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21772 a1c6a512-1295-4272-9138-f99709370657
2009-07-11 13:43:04 +00:00
Rob Purchase
7ad3a333a3
D2: Remove unnecessary ide_power functions.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21757 a1c6a512-1295-4272-9138-f99709370657
2009-07-10 20:02:35 +00:00
Rob Purchase
d633a9fbee
D2: Update the battery discharge curve to observed values, and add a crude runtime estimation (this is based on playback from SD card, other usage will vary).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21754 a1c6a512-1295-4272-9138-f99709370657
2009-07-10 19:09:38 +00:00
Bertrik Sikken
1a519f52ac
Add missing mutex_init to i2c driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21749 a1c6a512-1295-4272-9138-f99709370657
2009-07-10 17:46:35 +00:00
Rob Purchase
9cb62038e3
Make the TCC NAND driver use the (virtual) disk activity LED.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21748 a1c6a512-1295-4272-9138-f99709370657
2009-07-10 16:55:18 +00:00
Thomas Martitz
161cb164ca
Adding last minutes comments to explain things is only cool if you close it also (aka fix yellow).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21745 a1c6a512-1295-4272-9138-f99709370657
2009-07-10 15:44:38 +00:00
Thomas Martitz
e7f0c3f397
Rearrange things a bit for less #ifdefs and less duplication.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21744 a1c6a512-1295-4272-9138-f99709370657
2009-07-10 15:32:02 +00:00
Rafaël Carré
c51e26a43d
Sansa AMS SD driver: fix error checking in µSD insertion
...
If µSD init fails, rockbox will panic and give an error number
Use a maximal delay of 1 second for µSD (and internal storage) init, as
specified in the SD Specification 2.00
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21742 a1c6a512-1295-4272-9138-f99709370657
2009-07-10 12:51:50 +00:00
Bertrik Sikken
8866342b1f
S5L8700: use wakeup_wait/wakeup_signal instead of polling for i2c communication
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21735 a1c6a512-1295-4272-9138-f99709370657
2009-07-09 22:08:54 +00:00
Bertrik Sikken
9ecde3d75c
S5L8700: Implement ADC driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21734 a1c6a512-1295-4272-9138-f99709370657
2009-07-09 20:17:47 +00:00
Jens Arnold
96f2a9dad1
Numbered filename creation: Make the search for pre-existing files independent of the requested number length. This way it will also increment properly if the requested number length changes or overflows (more than 99 files for numberlen == 2).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21732 a1c6a512-1295-4272-9138-f99709370657
2009-07-08 23:29:41 +00:00
Karl Kurbjun
50304a3ace
M:Robe 500: fix a bug where the remote LCD was not properly sleeping
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21714 a1c6a512-1295-4272-9138-f99709370657
2009-07-08 14:30:03 +00:00
Karl Kurbjun
a567d8228c
M:robe 500 - Set the mask on the remote so that it indicates the battery status
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21710 a1c6a512-1295-4272-9138-f99709370657
2009-07-08 04:00:50 +00:00
Bertrik Sikken
4e965b4b6c
Meizu: implement i2c for the meizu fmradio and update the tea5760 tuner driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21703 a1c6a512-1295-4272-9138-f99709370657
2009-07-07 21:57:16 +00:00
Mark Arigo
fb224bd0f9
Philips SA9200: fix the buttons to work with flip screen mode (does anyone use this?). Change to conventional BUTTON_LEFT/BUTTON_RIGHT names and flip the remaining directional buttons.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21698 a1c6a512-1295-4272-9138-f99709370657
2009-07-07 03:26:57 +00:00
Rafaël Carré
03fe562a95
Sansa AMS: display the virtual led icon on disk transfers
...
Sansa PP: directly use led() function, remove useless sd_led()
Thanks to mc2739 (Michael Chicoine)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21693 a1c6a512-1295-4272-9138-f99709370657
2009-07-06 16:44:57 +00:00
Thomas Martitz
cabd45086a
sAMSa: Turn the backlight off before rebooting to avoid irritating lcd flash.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21692 a1c6a512-1295-4272-9138-f99709370657
2009-07-06 14:46:19 +00:00
Rafaël Carré
25fdcf3c14
Samsa: fix red for clip/m200v4/c200v2 (typo)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21691 a1c6a512-1295-4272-9138-f99709370657
2009-07-06 14:24:22 +00:00
Rafaël Carré
e3636a8f32
Samsa SD driver : acknowledge USB events, now reboots on USB insertion
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21690 a1c6a512-1295-4272-9138-f99709370657
2009-07-06 14:20:52 +00:00
Rafaël Carré
c1780af9fc
Samsa AMS: start of an USB driver (nothing working atm)
...
Work based on AMD 5536 linux driver and AMD Geode CS5536 datasheet
Rockbox still doesn't reboot on USB insert
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21689 a1c6a512-1295-4272-9138-f99709370657
2009-07-06 13:54:51 +00:00
Karl Kurbjun
a63a116086
DM320: Add the same fix from r21647
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21688 a1c6a512-1295-4272-9138-f99709370657
2009-07-06 13:40:27 +00:00
Thomas Martitz
c292a8eb1f
Sansa AMS: Disable voltage scaling for now until we found a way to make it reliable for everyone, it's causing problems with storage for many people.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21687 a1c6a512-1295-4272-9138-f99709370657
2009-07-06 13:13:47 +00:00
Bertrik Sikken
9431ea8c65
S35390a RTC: fix duplicate i2c initialisation
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21679 a1c6a512-1295-4272-9138-f99709370657
2009-07-05 20:10:38 +00:00
Bertrik Sikken
e979951dae
s5l8700: fix off-by-one error in DMA count
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21678 a1c6a512-1295-4272-9138-f99709370657
2009-07-05 20:01:35 +00:00
Bertrik Sikken
9926c933c7
S5L8700: implement kernel timer
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21672 a1c6a512-1295-4272-9138-f99709370657
2009-07-05 19:09:14 +00:00
Maurus Cuelenaere
e63904c7e9
Onda VX747 backlight: use a higher frequency to reduce flickering
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21671 a1c6a512-1295-4272-9138-f99709370657
2009-07-05 18:58:06 +00:00
Bertrik Sikken
9b1c774218
S5L8700: initial framework for PCM (using DMA transfers)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21656 a1c6a512-1295-4272-9138-f99709370657
2009-07-05 13:41:16 +00:00
Rafaël Carré
4368b59b09
Sansa AMS : don't reinvent adc_read(), patch by FlynDice
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21651 a1c6a512-1295-4272-9138-f99709370657
2009-07-05 09:24:56 +00:00
Michael Giacomelli
7131ddb105
ARM922T's icache isn't coherent with its dcache, so we need to ensure that its flushed before changing codecs. Playback takes care of this for us, but only if we define cache coherency functions. Do that. Also, add a comment explaining that MMU functions need to be included so that other people don't spend hours chasing them in the future.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21647 a1c6a512-1295-4272-9138-f99709370657
2009-07-05 01:17:25 +00:00
Maurus Cuelenaere
366e1d93b5
Also enable frequency switching on Onda VX767
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21627 a1c6a512-1295-4272-9138-f99709370657
2009-07-03 22:29:32 +00:00
Maurus Cuelenaere
eabeb928dd
Ingenic Jz4740: add basic frequency switching
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21625 a1c6a512-1295-4272-9138-f99709370657
2009-07-03 21:34:40 +00:00
Maurus Cuelenaere
7f2ddc4923
Ingenic Jz4740 PCM driver: add some locking here and there (doesn't fix all PCM issues)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21622 a1c6a512-1295-4272-9138-f99709370657
2009-07-03 11:50:58 +00:00
Maurus Cuelenaere
6dbf4cf827
Ingenic Jz4740: remove some unneeded stuff and simplify SD driver (also thanks to Rafaël Carré)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21621 a1c6a512-1295-4272-9138-f99709370657
2009-07-03 11:40:50 +00:00
Rafaël Carré
278f1f69bb
Fix DEBUG builds when CONFIG_CPU != SH7034 and HAVE_GDB_API isn't defined
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21613 a1c6a512-1295-4272-9138-f99709370657
2009-07-02 10:24:27 +00:00
Rafaël Carré
293b499093
Move sd_get_info() into common sd code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21610 a1c6a512-1295-4272-9138-f99709370657
2009-07-01 23:39:57 +00:00
Maurus Cuelenaere
ccbd8f4f31
* Move some more stuff to the general SD driver
...
* 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
2009-07-01 22:56:14 +00:00
Rafaël Carré
90d7a8c4fc
Ingenic jz4740 SD driver: remove custom list of SD commands
...
Replace most references to MMC/mmc with SD/sd
Remove MMC failover code since MMC cards aren't supported
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21604 a1c6a512-1295-4272-9138-f99709370657
2009-07-01 22:41:33 +00:00
Rafaël Carré
c0eb9aeb9e
add firmware/driver/sd.c which contains common code between SD drivers
...
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
2009-07-01 21:49:13 +00:00
Rafaël Carré
93f6e3df24
card_extract_bits() take the start bit argument as defined in public SanDisk 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
2009-07-01 19:13:01 +00:00
Maurus Cuelenaere
f3a4a7635e
Ingenic Jz4740 SD driver: remove some unneeded stuff + fill the OCR field in card_get_info_target()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21596 a1c6a512-1295-4272-9138-f99709370657
2009-07-01 17:03:51 +00:00
Maurus Cuelenaere
898475bf4f
Ingenic Jz4740 SD driver: fix SD clock init (fixes problems with SDHC cards)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21592 a1c6a512-1295-4272-9138-f99709370657
2009-07-01 13:56:54 +00:00
Maurus Cuelenaere
e4003539bc
Also cleanup Onda VX747 ata-sd-target.h file
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21587 a1c6a512-1295-4272-9138-f99709370657
2009-07-01 10:21:01 +00:00
Rafaël Carré
e0e24cbf0a
Merge tCardInfo struct (MMC) and tSDCardInfo struct (SD)
...
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
2009-07-01 10:07:22 +00:00
Jack Halpin
c929310e55
AMSSansa: Corrects bug introduced with r21577 causing random lockups on AMSSansas.
...
The input to the ADC is now set to CVDD inside the while loop. If the input gets changed while waiting for the voltage to be read it will now be reset to CVDD before the next read is attempted.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21584 a1c6a512-1295-4272-9138-f99709370657
2009-07-01 04:47:36 +00:00
Mark Arigo
4093874f80
Philips SA9200. Add LCD features: enable, sleep, flip, contrast, and invert.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21583 a1c6a512-1295-4272-9138-f99709370657
2009-07-01 02:18:49 +00:00
Jonas Häggqvist
d12df3a50e
Use the USB pid normally used by the OF when in UMS mode. This might make misbehaving pc software play nice.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21582 a1c6a512-1295-4272-9138-f99709370657
2009-07-01 00:34:25 +00:00
Jack Halpin
e905ca61d4
FS#10344 - AMSSansa Dynamically adjust core voltage to extend playtime.
...
Lower CVDD core voltage to 1.10 volts when the frequency is less than 200 MHz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21577 a1c6a512-1295-4272-9138-f99709370657
2009-06-30 17:56:21 +00:00
Michael Giacomelli
47150651b9
1 mA gets rounded to 0 during computation, so use 2 mA as the default.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21572 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 21:40:03 +00:00
Michael Giacomelli
23248a75b8
Clean up nested defines in powermngt.h while I'm at it.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21568 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 19:08:03 +00:00
Michael Giacomelli
3537397f36
Protect CURRENT_REMOTE define with an ifndef.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21567 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 18:48:17 +00:00
Michael Giacomelli
8839f18cc8
Move Archos battery runtime estimation defines into config files instead of powermgmt.h. Replace old default values (which were actually the Archos Player currents) with a new default (1mA). This should give nonsense runtime estimates (instead of semi-reasonable but completely wrong estimates) on all players that do not have a battery current defined. Hopefully this will remind people that they should define the battery current when they start a new port.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21565 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 18:32:43 +00:00
Rafaël Carré
ed75cc09f1
Sansa AMS : use the aligned buffer in bss for all DMA transfers
...
This was only used for data transfers, now use it also for card data
transfers in sd_select_bank, to save runtime alignement and stack usage.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21564 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 18:14:26 +00:00
Alexander Levin
eaa9df37e0
Fix yellow introduced in r21561
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21563 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:58:02 +00:00
Rafaël Carré
fb79ae4603
Build archos timer code for ONDIO (fix red)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21562 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:52:51 +00:00
Alexander Levin
44bf40988b
Make the get_time on non-RTC sims behave like target, i.e. always return a constant time (FS#10390)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21561 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:31:46 +00:00
Rafaël Carré
ffefe0c08b
Put TIMER_FREQ definition in CPU-specific config, and remove timer-target.h
...
Note : SH has TIMER_FREQ defined to CPU_FREQ, so any code wanting it must include #config.h before #cpu.h
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21560 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:30:12 +00:00
Rafaël Carré
c5dedd7d76
Remove the TIMER_* macros and declare target-specific functions in timer.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21559 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:29:57 +00:00
Rafaël Carré
89ccd5c145
Remove int_prio argument from timer_register, and move the only use for it into alpine_cdc plugin, since this plugin is only built on SH7034
...
Also remove it from TIMER_START()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21558 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:29:46 +00:00
Rafaël Carré
b955dff268
Move PP (last target) timer code in target tree
...
Put warnings in timer.h for incomplete targets (TIMER_FREQ not defined and/or timer-target.h inexistant)
Correct TIMER_STOP & TIMER_START macros arguments for target without timers
TIMER_START takes an extra argument in multicore builds (macro in macro doesn't work fine..)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21557 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:29:35 +00:00
Rafaël Carré
b3ed33d04a
Move SH7034 timer code in the target tree
...
Add an argument int_prio to TIMER_START() macro because SH7034 needs it
Leaves a target specific code in timer_register (could be given to target code through timer_set and __timer_set() )
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21556 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:29:14 +00:00
Rafaël Carré
c34ca87b64
Move coldfire timer code in the target tree
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21555 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:29:06 +00:00
Rafaël Carré
15a7f5e5e9
Move PNX0101 timer code in the target tree
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21554 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:29:02 +00:00
Rafaël Carré
e0640c3c4b
Rename TIMER_REGISTER macro to TIMER_START and TIMER_UNREGISTER to TIMER_STOP to reflect what they does exactly.
...
registering and unregistering are handled by the non target-specific functions of timer.c
Remove arguments from the new TIMER_START since they are unused by targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21553 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:28:56 +00:00
Rafaël Carré
15e40dd3a6
Move Sansa AMS timer code in the target tree
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21552 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 14:28:49 +00:00
Rafaël Carré
529855e79b
Sansa AMS: correct sd_select_bank() in SD driver
...
Put the card data sent by DMA aligned on cache line size, and in uncached memory
Since sd_select_bank() is not used very often, still allocate the DMA buffer on the stack.
If you still experience any problems with this commit please report them after having formatted your player and reinstalled rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21550 a1c6a512-1295-4272-9138-f99709370657
2009-06-29 11:56:49 +00:00
Bertrik Sikken
7df759c951
Create an udacodec interface (similar to ascodec and wmcoded) and 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
2009-06-28 17:43:04 +00:00
Bertrik Sikken
ce5dc3ab96
Add RTC driver for Seiko S35390A (used in the Meizu M3 and possibly other Meizus)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21539 a1c6a512-1295-4272-9138-f99709370657
2009-06-28 09:58:05 +00:00
Bertrik Sikken
c33373e163
S5L8700: implement i2c driver (used for communicating with the RTC and the codec in the meizus)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21533 a1c6a512-1295-4272-9138-f99709370657
2009-06-27 20:11:11 +00:00
Bertrik Sikken
660daa51d4
Meizu M3: implement logarithmic brightness curve (curve provided by markun) and increase PWM frequency for the backlight.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21532 a1c6a512-1295-4272-9138-f99709370657
2009-06-27 19:10:42 +00:00
Frank Gevaerts
057a5802cd
ignore write data if the length doesn't match what we expect. This avoids the data corruption caused by FS#10319, but doesn't solve the root cause yet (patch by Martin Ritter)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21521 a1c6a512-1295-4272-9138-f99709370657
2009-06-26 15:14:49 +00:00
Maurus Cuelenaere
48f4512518
Also fix the iRiver H10
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21503 a1c6a512-1295-4272-9138-f99709370657
2009-06-24 22:23:45 +00:00
Maurus Cuelenaere
e59c4ffc82
Fix some forgotten OR's in some button-target.h files
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21501 a1c6a512-1295-4272-9138-f99709370657
2009-06-24 22:13:37 +00:00
Maurus Cuelenaere
8acc86c036
Onda VX747: fix DEFAULT_BRIGHTNESS_SETTING
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21496 a1c6a512-1295-4272-9138-f99709370657
2009-06-24 21:01:27 +00:00
Maurus Cuelenaere
20e5ffe306
Onda VX747: make backlight setting range from 1->16 instead of 0->15
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21494 a1c6a512-1295-4272-9138-f99709370657
2009-06-24 20:27:55 +00:00
Maurus Cuelenaere
5acfa34b9c
Use a logarithmic scale for the Onda VX747 backlight (thanks to Bertrik Sikken)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21492 a1c6a512-1295-4272-9138-f99709370657
2009-06-24 19:52:03 +00:00
Rob Purchase
f62388f82c
TCC78x: Enable interrupts/threading in the bootloader (required now that the storage driver yields).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21486 a1c6a512-1295-4272-9138-f99709370657
2009-06-24 07:37:11 +00:00
Rob Purchase
5e24a2c98c
Fix an error in the TCC NAND driver which caused a panic on startup for certain users.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21485 a1c6a512-1295-4272-9138-f99709370657
2009-06-24 07:36:56 +00:00
Karl Kurbjun
4e3f39fc45
Fix Red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21484 a1c6a512-1295-4272-9138-f99709370657
2009-06-24 04:29:58 +00:00
Karl Kurbjun
19cb444691
M:Robe 500: RTC is now working, Added some SPI flexibility per end device 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
2009-06-24 04:17:15 +00:00
Bertrik Sikken
743dcf7f69
Implement PWM backlight driver for the Meizus. Update Meizu M3 bootloader to control brightness with the touch strip.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21478 a1c6a512-1295-4272-9138-f99709370657
2009-06-23 18:11:03 +00:00
Rafaël Carré
d86cf998e8
Sansa AMS debug: small fixes
...
- Indentation fix
- Put braces around _DEBUG_PRINTF macro
- read_cp15() is only 1 instruction so inline it, and it doesn't access memory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21477 a1c6a512-1295-4272-9138-f99709370657
2009-06-23 13:54:05 +00:00
Thomas Martitz
670ce68229
Actually adapt SOURCES too.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21475 a1c6a512-1295-4272-9138-f99709370657
2009-06-22 22:41:21 +00:00
Thomas Martitz
8fb4aea702
FS#10284 - "Sansa e200v2 & Fuze: Merge the button driver into 1 file" by Dustin Skoracki
...
Those two drivers were so similar, merging them is worth a few more #ifdefs.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21474 a1c6a512-1295-4272-9138-f99709370657
2009-06-22 22:24:58 +00:00
Bertrik Sikken
aecf2b12db
Meizu lcd-m3: whitespace fixes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21469 a1c6a512-1295-4272-9138-f99709370657
2009-06-22 19:46:09 +00:00
Rob Purchase
67c86a76d9
TCC78x: Make the NAND driver yield during reads (thanks to bertrik for spotting the obvious error that caused this to crash until now). Fixes the D2 'delay before playback starts' bug.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21465 a1c6a512-1295-4272-9138-f99709370657
2009-06-22 18:06:08 +00:00
Bertrik Sikken
c99ab564b0
Fix more missing mutex_init calls.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21463 a1c6a512-1295-4272-9138-f99709370657
2009-06-21 22:06:22 +00:00
Rafaël Carré
a98c54f5f1
Do not use lcd_blit_yuv() if MEMORYSIZE <= 2, since mpegplayer won't run anyway (and won't build)
...
Only affected target: Sansa c200v2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21453 a1c6a512-1295-4272-9138-f99709370657
2009-06-21 14:09:48 +00:00
Bertrik Sikken
04451b4369
Fix missing i2c mutex initialisation for telechips.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21445 a1c6a512-1295-4272-9138-f99709370657
2009-06-21 13:26:32 +00:00
Rafaël Carré
1a98e973fb
c200v2 : fix FM radio, the c200v2 uses the internal oscillator like others Sansa AMS
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21432 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 23:02:49 +00:00
Rafaël Carré
cb2c947b1b
Sansa c200v1 & c200v2 LCD: higher performance when writing pixels
...
c200v1: use a loop similar to r21320 and before to get almost the same performance (49.x fps while r21320 had 50.7 fps)
c200v2: better use of the DBOP fifo (taken from r21190) : 30% more fps
rename lcd_send_data to lcd_write_data now that it has the same prototype
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21427 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 22:49:04 +00:00
Bertrik Sikken
fa4135e43d
Fix delays in generic i2c driver, reduce delays in ams sansa fmradio i2c driver (tested on m200v4, clip, e200v2, fuze).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21421 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 21:45:04 +00:00
Bertrik Sikken
4120946f28
Fix e200v2 radio problem (missing Si4702 initialisation)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21416 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 21:34:27 +00:00
Jens Arnold
b76faecd60
Make ATA poweroff an advanced build option for the Player.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21409 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 18:37:29 +00:00
Bertrik Sikken
f81ce592e5
Enable charging on the Sansa Fuze (charging/discharging curves are still uncalibrated)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21394 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 14:29:21 +00:00
Maurus Cuelenaere
582942016b
* Commit a modified FS#10354 (thanks to Davide Quarta) - add support the VX747+ in scramble and configure
...
* Add support for the VX777
* Remove the touchscreen mode switching combo from the button driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21379 a1c6a512-1295-4272-9138-f99709370657
2009-06-20 10:54:13 +00:00
Mark Arigo
df8f64d3a4
Philips SA9200: 1) reset all devices in system_init, 2) revert an earlier change in the sd driver, 3) properly detect the charger, 4) add lcd register defines.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21347 a1c6a512-1295-4272-9138-f99709370657
2009-06-19 03:41:52 +00:00
Mark Arigo
a61196fd3a
Philips SA9200: Working touchpad and button lights! Also, improvements to the keymap (still needs work).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21346 a1c6a512-1295-4272-9138-f99709370657
2009-06-19 03:23:38 +00:00
Mark Arigo
4c58ad26ba
Clean up the Synaptics touchpad driver.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21344 a1c6a512-1295-4272-9138-f99709370657
2009-06-19 02:48:15 +00:00
Rafaël Carré
753064fccf
Sansa AMS: fix yellow for models with buttonlight & without multivolume
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21343 a1c6a512-1295-4272-9138-f99709370657
2009-06-18 23:03:10 +00:00
Rafaël Carré
e2ec2fe391
Apply FS#10306 to Sansa c200v2 (fix build in the same time)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21341 a1c6a512-1295-4272-9138-f99709370657
2009-06-18 22:45:30 +00:00
Rafaël Carré
1e787a9911
FS#10306 by Thomas Martitz : button light doesn't change on SD transfers on Sansa AMS (Fuze & e200v2)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21340 a1c6a512-1295-4272-9138-f99709370657
2009-06-18 22:33:02 +00:00
Rafaël Carré
4070f035cf
Confirm USB VID/PID of Samsung YH920
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21334 a1c6a512-1295-4272-9138-f99709370657
2009-06-18 20:36:11 +00:00
Maurus Cuelenaere
7c6a725e8e
Fix red
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21332 a1c6a512-1295-4272-9138-f99709370657
2009-06-18 18:27:53 +00:00
Maurus Cuelenaere
2fb6396f5a
Ingenic Jz4740: enable IRAM (only core, without ibss)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21331 a1c6a512-1295-4272-9138-f99709370657
2009-06-18 18:16:15 +00:00
Rafaël Carré
0181bc42c9
Sansa c200v2 : support more hardware
...
Don't read the buttons from GPIOC but from DBOP_DIN (all directional buttons + select)
Still missing hold, rec, volume up and volume down
Read microsd
Tuner is a si4700 but seems to suffer from the same problem than e200v2
Sound works
TODO: missing buttons, lcd yuv, test lcd performance (the c200v1 lcd performance has decreased since r21321 : needs to be investigated)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21330 a1c6a512-1295-4272-9138-f99709370657
2009-06-18 15:05:59 +00:00
Rafaël Carré
3520d8e90e
Sansa c200v2 : lcd & backlight support, using the c200v1 lcd driver
...
The LCD driver is unified and lcd_send_command now takes 2 arguments : the command and its argument.
If there is no argument, it's set to 0 and a NOP command is issued
If there is more than one argument (set X/Y address), the 2nd argument is sent as a 2nd command, and a NOP command is issued after it.
Benefit : c200v2 transfers the command and the argument in one 16 bits transfer
Performance should not be affected since commands without argument are only used in lcd_init() and lcd_enable()
lcd_send_data() now transfers whole lines (or columns) instead of single pixels
yuv is disabled for c200v2 for now
Some buttons can be read, including left button (bit 6 of DBOP_DIN), but for some reason they have no effect in rockbox: to be investigated
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21321 a1c6a512-1295-4272-9138-f99709370657
2009-06-17 19:55:27 +00:00
Maurus Cuelenaere
5a5cccf10b
Make some asm() statements volatile
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21313 a1c6a512-1295-4272-9138-f99709370657
2009-06-16 18:35:57 +00:00
Maurus Cuelenaere
b8435f5446
Touchscreen targets: add calibration screen + rewrite calibration driver (FS#10295)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21312 a1c6a512-1295-4272-9138-f99709370657
2009-06-16 17:04:47 +00:00
Maurus Cuelenaere
143f62e8cc
Onda VX747: fix backlight driver so it doesn't 'flicker' upon init
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21310 a1c6a512-1295-4272-9138-f99709370657
2009-06-16 11:41:48 +00:00
Maurus Cuelenaere
733bab0886
Onda VX747: clean up SD GPIO initialization
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21288 a1c6a512-1295-4272-9138-f99709370657
2009-06-15 11:22:03 +00:00
Rafaël Carré
02a53fd809
Sansa AMS: add a comment in sdram_init(), and use inline asm to set the SDRAM mode register
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21282 a1c6a512-1295-4272-9138-f99709370657
2009-06-13 23:52:13 +00:00
Karl Kurbjun
4d41886caa
M:Robe 500: Fix up 256 color blitting when in portrait mode, fix a mistake 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
2009-06-13 20:59:03 +00:00
Bertrik Sikken
52c46f2ec6
Fix bug in earlier commit of FS#10317: don't mix TIMER1 and TIMER2 settings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21273 a1c6a512-1295-4272-9138-f99709370657
2009-06-13 15:01:25 +00:00
Bertrik Sikken
d1faf8b39c
FS#10317 - Sansa AMS 32-bit timers. Configure the timers for 32-bit mode instead of the default 16-bit mode.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21266 a1c6a512-1295-4272-9138-f99709370657
2009-06-12 21:11:45 +00:00
Jens Arnold
81b87fe13d
Add iAudio M5 FM radio mod to the advanced build options. * Unify iAudio audio driver, fmradio i2c driver, and power driver (M5 + X5 only).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21264 a1c6a512-1295-4272-9138-f99709370657
2009-06-12 18:53:44 +00:00
Bertrik Sikken
426cdb1284
Commit FS#10285 - Sansa Clip alternative button driver. This driver alternates one row in the button matrix per kernel tick, avoiding the need for explicit delays between selecting a button row and reading colums.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21253 a1c6a512-1295-4272-9138-f99709370657
2009-06-11 22:17:47 +00:00
Bertrik Sikken
79f348a178
Minor nitpick: don't do |= on the write-only GPIOA_IC register
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21251 a1c6a512-1295-4272-9138-f99709370657
2009-06-11 20:43:53 +00:00
Rafaël Carré
460a1c4497
Sansa AMS storage driver: restart bank selection if data transfer failed, and precise a comment about retry variable
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21248 a1c6a512-1295-4272-9138-f99709370657
2009-06-11 17:28:24 +00:00
Rafaël Carré
7572141d42
FS#10309 : Sets reasonable timeouts for data access in the SD driver
...
Those are the recommended maximal timeouts in §4.6.2
Despite that, some people still experiment problems with the SD driver since MMU and data cache were enabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21247 a1c6a512-1295-4272-9138-f99709370657
2009-06-11 17:17:12 +00:00
Maurus Cuelenaere
b11131f60e
Onda VX747: support FAT16
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21245 a1c6a512-1295-4272-9138-f99709370657
2009-06-10 17:43:51 +00:00
Maurus Cuelenaere
0711190db1
Correct some comments (no functional changes)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21236 a1c6a512-1295-4272-9138-f99709370657
2009-06-09 19:18:30 +00:00
Maurus Cuelenaere
b91ebdd600
Properly implement backlighting on Onda VX7x7 (using PWM).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21235 a1c6a512-1295-4272-9138-f99709370657
2009-06-09 17:19:43 +00:00
Thomas Martitz
174b910664
Alright, revert r21229 for now. Stupid me forgetting about the inclusion sequence :(
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21231 a1c6a512-1295-4272-9138-f99709370657
2009-06-09 01:44:19 +00:00
Rafaël Carré
e2f165c088
Sansa AMS: make the UNCACHED_ADDR macro work for any type of pointer, and only use pointers with it, not arrays
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21230 a1c6a512-1295-4272-9138-f99709370657
2009-06-09 00:51:30 +00:00
Thomas Martitz
3b0fca3c6c
Use the AMS_LOWMEM define to indicate memory size as the .lds files do in config.h too.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21229 a1c6a512-1295-4272-9138-f99709370657
2009-06-08 23:54:56 +00:00
Rafaël Carré
f504153857
FS#10048 : enable MMU and data cache on Sansa AMS to give a major speed up
...
- cache IRAM and DRAM
- map IRAM just next to DRAM to remove the need for -mlong-calls and reduce binsize
- tweak delays in Fuze button code
- tweak delays in Clip button code (down button sometimes doesn't respond anyway : an alternate driver is being worked on)
Before reporting any problem, please check your filesystem or format your player from the OF
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21228 a1c6a512-1295-4272-9138-f99709370657
2009-06-08 23:05:33 +00:00
Bertrik Sikken
5631bf7343
Sansa fuze: don't configure GPIO A7 in the LCD driver, this pin is used for fm radio
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21225 a1c6a512-1295-4272-9138-f99709370657
2009-06-08 19:54:58 +00:00
Bertrik Sikken
3589be4bdd
Sansa e200v2: use = instead of |= when setting GPIO level
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21224 a1c6a512-1295-4272-9138-f99709370657
2009-06-08 19:48:30 +00:00
Maurus Cuelenaere
99c854e30a
VX767: cleanup LCD driver a bit + add forgotten backlight-target.h
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21214 a1c6a512-1295-4272-9138-f99709370657
2009-06-08 08:59:37 +00:00