Frank Gevaerts
4f2dfcc01b
always call the class driver init function. This is needed because they are called before the usb_core_enable_driver() calls, so depending on enabled status breaks things
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21069 a1c6a512-1295-4272-9138-f99709370657
2009-05-24 20:46:57 +00:00
Frank Gevaerts
47a3b73de7
don't disable usb storage by accident
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21060 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 15:50:22 +00:00
Frank Gevaerts
7a8c615de3
swap bootloader and non-bootloader cases around to avoid an ugly #ifndef
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21058 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 15:19:11 +00:00
Frank Gevaerts
ee1b6aa237
Fix wrong #ifdefs
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21057 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 15:10:10 +00:00
Frank Gevaerts
7557d5679d
Clarify comment and clean up a bit (FS#10227 by Tomer Shalev)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21055 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 14:50:30 +00:00
Frank Gevaerts
c61a75173b
Reorganise USB stack defines. Now config.h decides which class drivers get enabled instead of usb_core.h
...
Also enable HID, and use that as the dummy class instead of charging-only for controllers that have working interrupt transfers.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21053 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 14:30:20 +00:00
Frank Gevaerts
bca3d3dca4
Fix #ifdef nesting to allow USB_HID to be built without USB_CHARGING_ONLY (FS#10236 by Tomer Shalev)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21052 a1c6a512-1295-4272-9138-f99709370657
2009-05-23 12:41:46 +00:00
Rafaël Carré
1a4f330a35
Sansa AMS : remove misleading comment
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21030 a1c6a512-1295-4272-9138-f99709370657
2009-05-22 10:44:09 +00:00
Maurus Cuelenaere
cf87597226
Commit FS#9174: Lua scripting language by Dan Everton
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21020 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 19:01:41 +00:00
Bertrik Sikken
4a4639e157
Update as3525 i2c register description
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21018 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 18:31:50 +00:00
Rafaël Carré
442726339a
Sansa AMS: show correct clock speeds for NAND & SD card
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21017 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 17:35:56 +00:00
Bertrik Sikken
c0859f04be
Move private #defines from i2c-pp.h to i2c-pp.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21014 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 14:31:47 +00:00
Bertrik Sikken
ab222c1705
Simplify some redundant boolean expressions
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21013 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 14:15:24 +00:00
Bertrik Sikken
a968ddbb39
Fix tuner_power warning on ondio FM
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21012 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 13:25:27 +00:00
Bertrik Sikken
2dc2054319
Remove some unused declarations
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21010 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 12:32:26 +00:00
Maurus Cuelenaere
0e725551af
Replace some TABs with spaces (no functional changes)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21009 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 12:29:51 +00:00
Rafaël Carré
0f93ae5da0
Sansa AMS: move OF size declaration in model specific config
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21008 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 11:46:52 +00:00
Rafaël Carré
c7b698119d
Sansa AMS: Partly revert r20923 (reset IDE maximal freq to 90MHz to fix problems with some players)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21007 a1c6a512-1295-4272-9138-f99709370657
2009-05-21 11:46:36 +00:00
Maurus Cuelenaere
d2595ec075
Onda VX747: improve the USB insertion detection
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21001 a1c6a512-1295-4272-9138-f99709370657
2009-05-20 21:59:51 +00:00
Thomas Martitz
4633446517
Sansa AMS: Centralise mapping of RAM and IRAM in as3525.h via #defines. This will hopefully make ongoing mmu work easier as less places need to be changed.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21000 a1c6a512-1295-4272-9138-f99709370657
2009-05-20 21:09:53 +00:00
Frank Gevaerts
fba4be213f
Don't force double-buffering for sd devices. They apparently are not faster with it, ans possibly actually slower
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20999 a1c6a512-1295-4272-9138-f99709370657
2009-05-20 16:57:17 +00:00
Maurus Cuelenaere
9c2ebdf724
Speed up LCD driver on Ingenic Jz4740 by doing some sort of partial LCD updates.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20997 a1c6a512-1295-4272-9138-f99709370657
2009-05-20 12:43:23 +00:00
Maurus Cuelenaere
8bcb4a6971
Fix Ingenic Jz4740 USB driver (USB IN <-> OUT) and some whitespace cleaning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20996 a1c6a512-1295-4272-9138-f99709370657
2009-05-20 12:37:56 +00:00
Rafaël Carré
e71c67f340
Fix my mistake in r20987/FS#10219 : live update of Sansa AMS clock freqs (fix by Jack Halpin)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20995 a1c6a512-1295-4272-9138-f99709370657
2009-05-20 11:22:31 +00:00
Frank Gevaerts
792a7a6086
Use different read and write buffer sizes. Due to interaction between common transfer sizes used by most OSes (64k) and the double-buffering system we use for writes, writes need a smaller buffer to make sure that USB and disk I/O can overlap.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20988 a1c6a512-1295-4272-9138-f99709370657
2009-05-19 18:51:03 +00:00
Rafaël Carré
00392020d8
FS#10219 (AMSSansa Debug Clocks) by Jack Halpin
...
With a few modifications by me:
Return 0MHz for PLL disabled (PLLB)
Mention if i2si and i2so are on or off
Simplify scrolling (for small & large displays)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20987 a1c6a512-1295-4272-9138-f99709370657
2009-05-19 14:43:37 +00:00
Rafaël Carré
1dfeba5702
Sansa Clip : ignore previous setting of CGU_DBOP (do not use ORR)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20986 a1c6a512-1295-4272-9138-f99709370657
2009-05-19 14:43:26 +00:00
Frank Gevaerts
c8d6a02c5a
Speed up USB storage by being a bit smarter in ordering transfer setups
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20982 a1c6a512-1295-4272-9138-f99709370657
2009-05-18 19:45:24 +00:00
Maurus Cuelenaere
0fd94237f3
Ingenic Jz4740 PCM driver: set correct sample rate
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20981 a1c6a512-1295-4272-9138-f99709370657
2009-05-17 22:55:40 +00:00
Maurus Cuelenaere
6208ee0479
Don't define LOGF_ENABLE..
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20979 a1c6a512-1295-4272-9138-f99709370657
2009-05-17 16:08:33 +00:00
Maurus Cuelenaere
649671eae3
Get interrupt endpoints fully working on Ingenic Jz4740 targets
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20978 a1c6a512-1295-4272-9138-f99709370657
2009-05-17 15:41:05 +00:00
Bertrik Sikken
0023943439
Fix duplicate #includes
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20977 a1c6a512-1295-4272-9138-f99709370657
2009-05-17 14:50:19 +00:00
Maurus Cuelenaere
03ea249297
Try at implementing interrupt endpoints in the Ingenic Jz4740 USB driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20973 a1c6a512-1295-4272-9138-f99709370657
2009-05-16 23:04:54 +00:00
Frank Gevaerts
3cb49f4ab7
fix DEBUGF statement to print variables that actually exist (FS#10212 by Tomer Shalev)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20964 a1c6a512-1295-4272-9138-f99709370657
2009-05-16 15:33:22 +00:00
Frank Gevaerts
2bc6b7c5cd
Add usb_hid_usage_tables.h for HID to actually compile
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20963 a1c6a512-1295-4272-9138-f99709370657
2009-05-16 15:30:39 +00:00
Frank Gevaerts
69a4117c1d
Add working USB HID driver, by Tomer Shalev (part of his GSoC work).
...
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
2009-05-16 15:30:09 +00:00
Karl Kurbjun
d8c7285b2a
M:Robe 500: Commit some minor changes and some keymap changes (short press power takes you out of the WPS)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20942 a1c6a512-1295-4272-9138-f99709370657
2009-05-15 13:43:30 +00:00
Rafaël Carré
49c25816f0
Sansa AMS i2c : fix 2 problems identified by Jack Halpin & Bertrik Sikken
...
i2c clock frequency uses pclk as reference, not plla
i2c clock divider is only 10 bits, not 16
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20929 a1c6a512-1295-4272-9138-f99709370657
2009-05-14 09:36:56 +00:00
Alexander Levin
b98ac048df
Remove the HAVE_RADIO_REGION from the platform config since it's already defined in the tuner driver's header
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20926 a1c6a512-1295-4272-9138-f99709370657
2009-05-13 16:38:21 +00:00
Rafaël Carré
8033342d0f
Sansa AMS : remove mci_set_clock_divider()
...
Inline the 2 uses, and use a preprocessor sanity check for identification frequency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20924 a1c6a512-1295-4272-9138-f99709370657
2009-05-13 08:27:33 +00:00
Rafaël Carré
adb978a44d
Sansa AMS: Various fixes/enhancements for clock frequencies
...
Fix CGU_DBOP setting
Set PCLK to the exact frequency (62MHz, not the maximal frequency)
Use a better comment for CLK_DIV macro
Use preprocessor safety checks for clock divider sizes to avoid future mistakes (not for SD_IDENT frequency since that check is handled by mci_set_clock_divider)
Use maximal IDE frequency of 66MHz (like OF), not 90MHz like written in AS3525 datasheet. The IDE chip is somehow linked to internal storage, and a too high frequency could affect the storage driver.
Use the same DBOP frequency of 32MHz for all models (like OF, verified clip, fuze, e200v2 and m200v4), compromise between performance and battery life could be added in the future for each target
Performance increase on Sansa Fuze with DBOP freq. set to 64MHz: +12% fps for lcd_update, +1% fps for yuv
Thanks to daytona955 on the forums for his help
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20923 a1c6a512-1295-4272-9138-f99709370657
2009-05-13 08:27:20 +00:00
Dave Chapman
49fccaf2d9
FS#9730 by Torne Wuff - support installing Rockbox in the firmware partition in place of the main Apple firmware. This image is only loaded if no rockbox.ipod is found so does not affect current behaviour. The advantage is a small increase in boottime. This patch also adds documentation to bootloader/ipod.c in the form of a comment describing the booting behaviour.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20921 a1c6a512-1295-4272-9138-f99709370657
2009-05-12 20:41:44 +00:00
Rafaël Carré
c58aaee55f
Sansa Clip : remove unused variable xoffset from lcd driver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20920 a1c6a512-1295-4272-9138-f99709370657
2009-05-12 13:24:13 +00:00
Rafaël Carré
b1d03ccee7
FS#10118 & FS#10165 : lcd_blit_yuv() for Sansa Fuze & Sansa e200v2
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20919 a1c6a512-1295-4272-9138-f99709370657
2009-05-12 13:22:39 +00:00
Frank Gevaerts
685cee87be
fix send_command_result() size checking for the SCSI_REQUEST_SENSE case (thanks to Tomer Shalev, FS#10203)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20914 a1c6a512-1295-4272-9138-f99709370657
2009-05-11 23:00:56 +00:00
Maurus Cuelenaere
87978d4ee8
Jz4732: add hack to fix stack overflow in the power thread (fixes USB on non-bootloader)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20867 a1c6a512-1295-4272-9138-f99709370657
2009-05-07 14:05:42 +00:00
Maurus Cuelenaere
580b1a5c4b
MIPS: don't save gp register when switching threads
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20863 a1c6a512-1295-4272-9138-f99709370657
2009-05-06 19:51:34 +00:00
Maurus Cuelenaere
84ea3f2530
Ingenic Jz4740: add a delay between enabling the RTC clock and setting the RTC time
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20862 a1c6a512-1295-4272-9138-f99709370657
2009-05-06 19:45:33 +00:00
Bertrik Sikken
b5886beb81
Allow a clock divider larger than 255 for the internal i2c bus to the as3525 ascodec.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20861 a1c6a512-1295-4272-9138-f99709370657
2009-05-06 17:33:56 +00:00
Thomas Martitz
b2b3f39403
Remove an #ifdef SIMULATOR in favor of using a stub
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20853 a1c6a512-1295-4272-9138-f99709370657
2009-05-05 08:43:32 +00:00