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
Michael Sparmann
efe0dd723f
"Implement" S5L8701 core_sleep
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23081 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 22:02:22 +00:00
Michael Sparmann
55fc2ea314
Increase iPod Nano 2G stack size to 16KiB
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23080 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 22:02:22 +00:00
Rob Purchase
e6ec5414e8
D2: Don't read touchscreen co-ordinates when hold is enabled.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23079 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 17:42:36 +00:00
Rob Purchase
16ada4cb81
Initial support for runtime detection of the PMU used in newer D2+ models (PCF50635). The backlight and battery monitoring should work, but the RTC and touchscreen are not yet implemented.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23078 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 17:35:02 +00:00
Michael Sparmann
31464f7930
Add a timeout for I2C transfers (S5L870x)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23077 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 17:22:06 +00:00
Michael Sparmann
e2aeef7501
Fix panic caused by r23074
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23076 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 16:58:37 +00:00
Michael Sparmann
6be1d8b8a8
Revert the S5L870X I2C driver to busy waiting because of some issues with interrupts, and increase the bus speed from 24kHz to 390kHz.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23074 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 16:36:55 +00:00
Dave Chapman
72271af7df
Squash a warning when FTL_READONLY is defined
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23073 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 16:18:14 +00:00
Dave Chapman
3c362fa8c6
Nano2G - implement "Pause on headphone unplug" feature
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23072 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 15:37:05 +00:00
Dave Chapman
8c078f34ff
Nano2G - reboot into disk mode when USB is inserted.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23070 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 15:26:38 +00:00
Dave Chapman
4ff7666388
Implement __dbg_ports for S5L870X targets (Nano2G and Meizus)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23069 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 13:23:07 +00:00
Dave Chapman
4fe2ee0221
Add crypt_firmware plugin for Nano2G - this uses the hardware crypto unit to encrypt (or decrypt) a firmware image for writing to a Nano 2G's firmware partition with ipodpatcher (patch for ipodpatcher is at FS#10609). Also introduce BOOTFILE_EXT2 define for an alternative firmware file extension and add .ipodx for the Nano 2G (.ipod is for unencrypted images, similar to older ipods, and .ipodx is for encrypted images and include the 2KB hash block and modelname 'nn2x').
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23068 a1c6a512-1295-4272-9138-f99709370657
2009-10-10 11:46:23 +00:00