Amaury Pouly
a43509cc99
fuze+: implement a full-blown debug screen for touchpad with graphical feedback
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29869 a1c6a512-1295-4272-9138-f99709370657
2011-05-13 16:40:22 +00:00
Amaury Pouly
86e8c28330
fuze+: implement Synaptics RMI driver on top of i2c, add touchpad debug screen, bootloader enters debug screen by default
...
Since the bootloader currently always fails at storage point (unimplemented), always enter touchpad debug screen and power off which pressing power button.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29859 a1c6a512-1295-4272-9138-f99709370657
2011-05-11 22:38:09 +00:00
Amaury Pouly
2481427b03
fuze+: add init/enable/disable lcd sequences for the second lcd kind (only based on disassembly, untested)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29852 a1c6a512-1295-4272-9138-f99709370657
2011-05-10 17:22:01 +00:00
Bertrik Sikken
9c33dca647
Fix tabs in .c and .h files in firmware/
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29832 a1c6a512-1295-4272-9138-f99709370657
2011-05-08 11:37:18 +00:00
Dominik Riebeling
fcf51bcd92
Fix whitespace errors aka tabs.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29826 a1c6a512-1295-4272-9138-f99709370657
2011-05-05 19:20:58 +00:00
Amaury Pouly
ffee0b5e94
fuze+: move defines from .c to .h; implement button reading for volume up/down and power
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29822 a1c6a512-1295-4272-9138-f99709370657
2011-05-04 18:00:22 +00:00
Rafaël Carré
befabb2bab
AMSv2 USB: Write usb_delay() in assembly
...
Ensure no changes when we use different versions of gcc (USB used to panic with gcc 4.6.0)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29818 a1c6a512-1295-4272-9138-f99709370657
2011-05-03 17:17:23 +00:00
Amaury Pouly
3ce7809a84
fuze+: use mdelay and not udelay in lcd sequences
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29816 a1c6a512-1295-4272-9138-f99709370657
2011-05-02 22:52:45 +00:00
Amaury Pouly
08fb3f6574
Sansa Fuze+: initial commit (bootloader only, LCD basically working)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29808 a1c6a512-1295-4272-9138-f99709370657
2011-05-01 13:02:46 +00:00
Bertrik Sikken
55a7a31ce3
Split off target-specific parts from firmware/drivers/serial.c
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29768 a1c6a512-1295-4272-9138-f99709370657
2011-04-23 08:23:07 +00:00
Bertrik Sikken
0dfce1972b
ipod6g: make functions and variables static where possible
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29767 a1c6a512-1295-4272-9138-f99709370657
2011-04-22 21:39:17 +00:00
Andree Buschmann
71e35542dc
Fix issues with iPod nano 2G displays reported on the forums. The voltage supply seems to be too low for several LCDs. The buzz of the display is still significantly lower than with OF.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29764 a1c6a512-1295-4272-9138-f99709370657
2011-04-22 19:06:16 +00:00
Bertrik Sikken
8d1d2f8982
AMS: consistently use bitclr32/bitset32/bitmod32 for register CCU_IO (instead of using |= or &= )
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29748 a1c6a512-1295-4272-9138-f99709370657
2011-04-18 21:13:40 +00:00
Bertrik Sikken
c2ca4bec9d
AMSv1 sd: work-around for detection problem with some sd cards (delay after switching to high-speed)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29746 a1c6a512-1295-4272-9138-f99709370657
2011-04-18 20:08:47 +00:00
Thomas Jarosch
e57d3b292a
Define LCD dpi for n900, n8xx and the pandora
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29728 a1c6a512-1295-4272-9138-f99709370657
2011-04-16 20:27:52 +00:00
Bertrik Sikken
59e37cbccb
AMS sd: use defines instead of direct values for drive number
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29696 a1c6a512-1295-4272-9138-f99709370657
2011-04-09 07:57:53 +00:00
Bertrik Sikken
67a4e9befc
Sansa Clip v2: there's no need to use |= or &= to manipulate a GPIO for the button light
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29695 a1c6a512-1295-4272-9138-f99709370657
2011-04-08 21:51:46 +00:00
Bertrik Sikken
f608229f32
Sansa clip+: do not set GPIO B7 in the display driver, it's already used for FM radio I2C
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29668 a1c6a512-1295-4272-9138-f99709370657
2011-04-02 08:24:14 +00:00
Bertrik Sikken
eab630a1e1
AMSv2: fix dependency between button light and sd card control for fuze v2 variant 0
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29667 a1c6a512-1295-4272-9138-f99709370657
2011-04-01 21:29:08 +00:00
Bertrik Sikken
8351a1aa9d
AMSv2 sd: do not try to switch sd cards into high-speed mode.
...
High-speed mode is only half implemented (sd controller still uses normal speed) and causes card detection problems.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29660 a1c6a512-1295-4272-9138-f99709370657
2011-03-29 20:37:40 +00:00
Bertrik Sikken
5c4c691cd3
AMSv2 sd: correct CLKENA settings (to stop sd clock when idle) for AMSv2 variant 1 players
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29657 a1c6a512-1295-4272-9138-f99709370657
2011-03-28 20:46:56 +00:00
Bertrik Sikken
7d74fdec02
AMSv2 sd: do sd slot switching with GPIO B5 only for AMSv2 variant 1
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29656 a1c6a512-1295-4272-9138-f99709370657
2011-03-28 18:08:03 +00:00
Bertrik Sikken
86c4ec7277
AMSv2 SD: use INTERNAL_AS3525 and SD_SLOT_AS3525 defines instead of a direct value
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29652 a1c6a512-1295-4272-9138-f99709370657
2011-03-26 23:31:29 +00:00
Bertrik Sikken
502e9e97b6
AMSv2 SD: wait for response to command SD_STOP_TRANSMISSION instead of ignoring the response
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29651 a1c6a512-1295-4272-9138-f99709370657
2011-03-26 21:22:30 +00:00
Bertrik Sikken
6512f0fb52
AMSv2 SD: reorganise code to select 4-bit mode data transfer mode a bit and add comments
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29648 a1c6a512-1295-4272-9138-f99709370657
2011-03-26 21:12:16 +00:00
Bertrik Sikken
2543340bf4
AMSv2 SD: sd card communication speed can be changed back to full speed after CMD3 (SEND_RCA)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29647 a1c6a512-1295-4272-9138-f99709370657
2011-03-26 19:52:42 +00:00
Michael Sparmann
26f63070c2
iPod Classic storage driver: Fix some implicit casts, typos, ...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29640 a1c6a512-1295-4272-9138-f99709370657
2011-03-24 14:51:23 +00:00
Rafaël Carré
688545ea16
fix warning, use unsigned variable
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29638 a1c6a512-1295-4272-9138-f99709370657
2011-03-24 10:54:30 +00:00
Rafaël Carré
669313a11d
SD AMSv2: fix r29625
...
The number of blocks could have been checked while the card was not initialized yet.
See FS#11870 for details
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29637 a1c6a512-1295-4272-9138-f99709370657
2011-03-24 10:43:47 +00:00
Bertrik Sikken
d3c796d20e
AMSv2 SD: send 80 idle clocks before sending initial CMD0 (go idle state)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29630 a1c6a512-1295-4272-9138-f99709370657
2011-03-21 23:24:59 +00:00
Bertrik Sikken
fc0ad4c01e
AMSv2 SD: receive sd card command responses during initialisation instead of ignoring them
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29629 a1c6a512-1295-4272-9138-f99709370657
2011-03-21 22:04:25 +00:00
Bertrik Sikken
3d3c0c51ec
AMSv2 SD: wait for previous data transfer completion before sending a command
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29628 a1c6a512-1295-4272-9138-f99709370657
2011-03-21 21:41:50 +00:00
Bertrik Sikken
6bf0f65388
AMSv2 SD: use a sleep instead of a udelay for 100 ms delay
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29627 a1c6a512-1295-4272-9138-f99709370657
2011-03-21 20:41:53 +00:00
Rafaël Carré
82f2bb99ae
SD AMSv2: fix r29169
...
Restore access to the last AMS_OF_SIZE == 0xF000 sectors of internal drive
Mostly visible when using USB (or database?)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29625 a1c6a512-1295-4272-9138-f99709370657
2011-03-20 17:04:31 +00:00
Rafaël Carré
1675e98925
SD amsv2: remove double assignement
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29624 a1c6a512-1295-4272-9138-f99709370657
2011-03-20 17:04:19 +00:00
Bertrik Sikken
faeb4d6aef
Add another delay in the AMSv2 sd controller driver as a work-around for SD initialisation problems, see FS#11870
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29619 a1c6a512-1295-4272-9138-f99709370657
2011-03-20 09:57:43 +00:00
Thomas Martitz
8c46ddf9d7
Android: Implement app shutdown and thus, sleep timer.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29602 a1c6a512-1295-4272-9138-f99709370657
2011-03-16 15:17:24 +00:00
Thomas Martitz
046cec3aa7
Android: Partly revert r29569 and only call the new getJavaEnvironment() when needed.
...
The environment is fine to share in general, just not across OS threads, so it's only needed
for functions which are possibly called from multiple OS threads (only 1 currently).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29601 a1c6a512-1295-4272-9138-f99709370657
2011-03-16 14:33:55 +00:00
Björn Stenberg
e50cc0e3d7
Listen to and follow external Android volume changes. (Based on FS#11914 by Maurus Cuelenaere)
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29586 a1c6a512-1295-4272-9138-f99709370657
2011-03-14 12:25:48 +00:00
Maurus Cuelenaere
8aa90b6b0b
Android: allocate native_buffer locally, which does away with the need to hold
...
a global reference to it (fixes bug).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29576 a1c6a512-1295-4272-9138-f99709370657
2011-03-12 00:35:18 +00:00
Thomas Martitz
204ac257fe
Android: Switch to pthread_cond+SIGEV_THREAD for tick task handling.
...
The implementation wasn't really safe (sem_post from signal handler), and the new one simplifies things a bit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29575 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 23:38:36 +00:00
Thomas Martitz
662ba4868a
Create GlobalRef in surfaceCreated, in accordance to r29572.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29574 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 22:48:10 +00:00
Maurus Cuelenaere
0b18522cd0
Android: delete the global reference in surfaceDestroyed
...
This gets rid of the lcd_deinit() boilerplate.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29572 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 19:38:30 +00:00
Maurus Cuelenaere
80a2c80332
Android: no need to keep RockboxPCM_class around
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29571 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 19:25:05 +00:00
Maurus Cuelenaere
c2ee32b22a
Partly revert "Android: use NewGlobalRef for references that are used globally"
...
The added complexity wasn't needed for most subsystems, as main() never returns
so local references can't be freed.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29570 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 19:23:00 +00:00
Maurus Cuelenaere
66f2a08f8a
Android: Don't share the JNI environment across threads, but obtain it the
...
correct way
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29569 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 18:34:35 +00:00
Maurus Cuelenaere
2e5b7aebde
Android: use NewGlobalRef for references that are used globally
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29568 a1c6a512-1295-4272-9138-f99709370657
2011-03-11 18:34:31 +00:00
Björn Stenberg
8196f21a94
Enable volume keys in Android.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29559 a1c6a512-1295-4272-9138-f99709370657
2011-03-10 22:53:58 +00:00
Thomas Martitz
294d058034
Return -1 for not implemented RTC functions.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29546 a1c6a512-1295-4272-9138-f99709370657
2011-03-08 21:36:47 +00:00
Thomas Jarosch
4e42cd712c
RaaA: Add RTC support
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29544 a1c6a512-1295-4272-9138-f99709370657
2011-03-08 20:54:42 +00:00