Rafaël Carré
19d70fce20
Sansa Fuze & e200v2 : do not enable USBSTACK in the bootloader
...
Don't implement usb_enable() is HAVE_USBSTACK is not defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23185 a1c6a512-1295-4272-9138-f99709370657
2009-10-15 10:23:18 +00:00
Rafaël Carré
8bd8d06842
Sansa AMS USB driver : still not working
...
Implement usb_enable()
Reorder/Modify usb_drv_init() to match closer the OF and remove a freeze
(USB registers were accessed before the USB module was enabled)
Add a panic in USB isr to be sure we notice when it's called
Reset GPIOA direction for usb_detect() to notice extraction
Add some comments
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23184 a1c6a512-1295-4272-9138-f99709370657
2009-10-15 10:03:20 +00:00
Rafaël Carré
5303ab101b
Sansa AMS SD driver: cleanup defines and comments
...
Remove useless E200V2 || FUZE || C200V2 : all those models have
MULTIDRIVE and/or HOTSWAP defined and have no specific difference.
Correct some comments
Remove HAVE_MULTIDRIVE within HAVE_HOTSWAP since HOTSWAP imply MULTIDRIVE
Change HOTSWAP to MULTIDRIVE where needed
Use NUM_DRIVES in sd_num_drives()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23180 a1c6a512-1295-4272-9138-f99709370657
2009-10-15 07:16:38 +00:00
Dave Chapman
81ef39bd8d
Changes to make the Nano2G sim build. It is still missing a UI-ipodnano2g.bmp
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23163 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 20:51:28 +00:00
Dave Chapman
e3bd45ef81
The Nano2G also qualifies for HAVE_WHEEL_POSITION
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23161 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 20:36:21 +00:00
Dave Chapman
e04d1d5016
Add HAVE_SCROLLWHEEL for the Nano2G, as they have a scrollwheel.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23159 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 20:25:10 +00:00
Tomer Shalev
31c18116de
USB: Use explicit casting when setting wTotalLength field in descriptor
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23157 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 19:50:23 +00:00
Rafaël Carré
0290094d8a
Sansa AMS PCM : replace buggy and confusing one-liner
...
The bits which are not divider (i2si/i2so enable and clock selection)
would be unset.
This is not a problem in the current code since this function was always
called before starting playback (and setting those bits) but this might
be a problem when recording is enabled.
Finally it is simpler to read.
Thanks to Fred Bauer for pointing this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23156 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 16:41:20 +00:00
Michael Sparmann
efeda72626
Fixed a confusing typo
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23150 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 10:07:13 +00:00
Dave Chapman
745266d309
Re-commit r23070 - reboot to disk mode on the Nano2G when USB is inserted. This was accidentally reverted in r23099
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23148 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 09:23:32 +00:00
Michael Sparmann
008f01348b
Fix iPod Nano 2G charging detection
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23146 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 09:04:51 +00:00
Dave Chapman
8b3433e1c0
Don't touch the clocks in Nano2G bootloader - this breaks the Apple firmware (audio playback didn't work).
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23143 a1c6a512-1295-4272-9138-f99709370657
2009-10-13 08:04:52 +00:00
Dave Chapman
a70c7bf862
Nano2G bootloader - fix dual-booting the Apple firmware.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23139 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 19:46:45 +00:00
Rob Purchase
48658eec41
Replace a couple of magic numbers with the appropriate constants.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23138 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 19:00:59 +00:00
Jack Halpin
7331bd5381
AMS Sansa: Remove BUSWIDTH and BLOCKLEN commands and revise strategy for High Speed SD Card.
...
We are unable to successfully put the pl180 controller into 4 bit mode so we should not put the cards into widebus mode for now.
The blocklength is hardcoded to 512 in sd.c and BLOCKLEN defaults to 512 so this command is not needed.
It appears the internal SD card is not HS capable but sending it the HS switch command does not seem to hinder it's init process.
Assume all SD_V2 cards are HS capable and send them the HS switch command.
If View disk info shows 50.0 MBit/s the card has HS timings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23137 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 18:55:10 +00:00
Tomer Shalev
736ea79e63
Fix FS#10670 - The first letter of a scrolling line starts to appear at the end
...
of the line
Thanks to Teruaki Kawashima (teru) for providing this solution
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23132 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 16:31:44 +00:00
Michael Sparmann
7a5904cf1c
S5L870x: Implement pcm_play_dma_get_peak_buffer
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23129 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 11:58:36 +00:00
Michael Sparmann
8afaee6471
Fix the yellow again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23127 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 10:44:48 +00:00
Michael Sparmann
6b17295926
Bring the iPod Nano 2G shutdown FTL panics back.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23126 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 08:54:51 +00:00
Tomer Shalev
461903d80e
LCD scrolling - reduce one 'if' nesting level
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23125 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 04:29:47 +00:00
Tomer Shalev
aee6901953
LCD scrolling - fix a typo
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23124 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 04:28:56 +00:00
Michael Sparmann
5a4ce22b77
Fix the iPod Nano 2G clickwheel when releasing the hold switch
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23122 a1c6a512-1295-4272-9138-f99709370657
2009-10-12 00:12:02 +00:00
Rob Purchase
7cfd418a9b
D2: Reduce binsize a bit by using arrays for the PMU initialisation.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23120 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 21:12:06 +00:00
Tomer Shalev
74d3671af2
Revert r23021, since it broke non-RTL scrolling. RTL scrolling still needs fixing
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23118 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 20:49:27 +00:00
Tomer Shalev
d5b076b64a
RTL: Cosmetic changes, no functional change - Rename constants
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23117 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 20:15:22 +00:00
Michael Sparmann
6cea8c1e1a
Fix the latest iPod Nano 2G NAND issues
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23115 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 18:21:15 +00:00
Michael Sparmann
b729a7d75e
iPod Nano 2G PMU rework, added backlight brightness setting and USB charging speed setting
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23114 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 18:20:56 +00:00
Rob Purchase
4ecc5a1e9b
Fix D2 red, I missed a file
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23113 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 17:56:00 +00:00
Rob Purchase
6170f01642
D2: The RTC chip needs to be runtime detected.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23112 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 17:46:00 +00:00
Michael Sparmann
3b549fedbb
iPod Nano 2G: Reset NAND banks after powering the chip up.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23110 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 13:48:12 +00:00
Jens Arnold
e13c600133
H300 LCD update: Use interrupt driven background DMA transfers, giving other threads a
...
chance to run while the LCD updates. * Add an optimisation for partial updates with width ==
LCD_WIDTH.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23109 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 13:30:06 +00:00
Dave Chapman
29310705dd
Correct the charging/power #defines for the Nano2G. This now enables you to hold MENU when inserting the USB cable to stop Rockbox entering disk mode.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23108 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 13:23:43 +00:00
Bertrik Sikken
b68d7f54ae
Samsung YP-S3: make bootloader compile again
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23107 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 13:15:23 +00:00
Michael Sparmann
264d877889
Add a thread to power down the NAND after inactivity on the iPod Nano 2G
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23106 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 12:45:27 +00:00
Thomas Martitz
a79dc87761
Add a center flag, next to the rtl flag, for viewports. That results in any text being drawn centered. It overrides the RTL flag if set.
...
Simplify splashes and time menu by using it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23105 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 12:21:27 +00:00
Michael Sparmann
e171294c1d
Correct some iPod Nano 2G defines
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23104 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 12:11:11 +00:00
Michael Sparmann
c3dc24b479
S5L870x: Fix PCLK freq
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23103 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 11:35:14 +00:00
Michael Sparmann
9f18e1958f
Fix yellow
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23102 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 10:22:07 +00:00
Michael Sparmann
b84ef86871
Fix another anti-double-inclusion define for iPod Nano 2G
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23100 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 10:12:32 +00:00
Michael Sparmann
e6c8a185e5
Implement NAND power management for iPod Nano 2G
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23099 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 10:10:49 +00:00
Michael Sparmann
0260b0ad5a
S5L870x crt0.S: Streamline things a bit, and close unneeded clock gates on iPod Nano 2G
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23098 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 09:52:39 +00:00
Dave Chapman
7f836fd869
Nano2G - remove HAVE_RECORDING from config-ipodnano2g.h as it's not implmented yet, and properly #ifdef audio-nano2g.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23095 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 09:17:12 +00:00
Karl Kurbjun
d6227edbb5
M:Robe 500: Correct power down pin assignment.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23091 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 06:58:43 +00:00
Karl Kurbjun
d784507e93
Forgot to add 22kHz
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23090 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 06:10:39 +00:00
Karl Kurbjun
173d854e7f
M:Robe 500: Add support for more audio frequencies, initialize and set the touchscreen PWD pin.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23089 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 06:08:14 +00:00
Jack Halpin
14079c39f0
AMS Sansa: If SD card is HS capable set High Speed timings.
...
This still doesn't solve the problem of the cards being overclocked at 62MHz but we can mitigate this a bit by switching to HS timings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23088 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 03:11:13 +00:00
Dave Chapman
178337970e
Nano2G - call storage_flush() before rolo_restart() to ensure FTL is flushed.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23087 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 02:06:42 +00:00
Dave Chapman
0ada0ae789
Enable rolo on the Nano2G - it hasn't been thoroughly tested, but seems to be working.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23086 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 01:54:29 +00:00
Dave Chapman
4ea4ce4cfb
Kill some warnings
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23085 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 01:45:50 +00:00
Dave Chapman
b04a7a86e1
Make the Nano2G bootloader actually function as a bootloader. The resulting bootloader-ipodnano2g.ipod file needs to be encrypted on a target using the crypt_firmware plugin to create bootloader-ipodnano2g.ipodx, which can then be written to the firmware partition using the ipodpatcher patch at FS#10609. Dual-booting doesn't work yet - only Rockbox can be run.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23084 a1c6a512-1295-4272-9138-f99709370657
2009-10-11 01:37:12 +00:00