Commit graph

1056 commits

Author SHA1 Message Date
Michael Sevakis
1616e66e55 Gigabeat S: Turn off backlight LED supply after a 2-second delay and save a little power. Hardware fading required keeping supply enabled during fade out. Let fade happen at poweroff (might as well~~~).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19322 a1c6a512-1295-4272-9138-f99709370657
2008-12-04 04:16:53 +00:00
Michael Sevakis
add677fca8 Fix some red. The stubs in bootloaders are giving some trouble.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19316 a1c6a512-1295-4272-9138-f99709370657
2008-12-03 20:43:10 +00:00
Michael Sevakis
58eb784a5d Straighten out some powermanagement stuff. Give target complete control over how power inputs are sensed. Clean SIMULATOR stuff out of target files. Get rid of USB charging option on targets that don't support it or don't implement it yet. Menu string remains to avoid language incompatibility but should be removed on next cleanup for targets not using it (notice in english.lang). global_settings becomes incompatible for some builds and so plugin API version is incremented.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19315 a1c6a512-1295-4272-9138-f99709370657
2008-12-03 19:54:25 +00:00
Dominik Wenger
0d0cc039f8 fix hold-button handling for m200v4.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19314 a1c6a512-1295-4272-9138-f99709370657
2008-12-03 18:41:02 +00:00
Rafaël Carré
874f4376ff Sansa AMS: ignore buttons when hold switch is on
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19311 a1c6a512-1295-4272-9138-f99709370657
2008-12-03 11:30:18 +00:00
Bertrik Sikken
d9116da5de Move Clip specific power management stuff (specifically the battery discarge curve) to powermgmt-clip.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19303 a1c6a512-1295-4272-9138-f99709370657
2008-12-02 19:50:31 +00:00
Rafaël Carré
6840cd1277 Sansa Clip: Do not return HOLD status in button_read_device()
It is read separately, and so backlight/buttonlight can be disabled
while hold switch is on

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19302 a1c6a512-1295-4272-9138-f99709370657
2008-12-02 17:37:23 +00:00
Michael Sevakis
c96c2f476d Meg-FX: Do a bit of LED service simplification and save a tiny bit of code size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19300 a1c6a512-1295-4272-9138-f99709370657
2008-12-02 12:43:20 +00:00
Michael Sevakis
8c442b6b12 Oops. Should subtract one from actual default value.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19299 a1c6a512-1295-4272-9138-f99709370657
2008-12-02 03:15:02 +00:00
Michael Sevakis
cd8c87e74a Fix another bug spotted in LED service. Default setting should also use log_brightness values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19298 a1c6a512-1295-4272-9138-f99709370657
2008-12-02 03:08:47 +00:00
Michael Sevakis
9eabf8fb8b Fix FS#9599 - LCD Brightness setting broken by software fading. Patch by Thomas Martitz (kugel). The internal code requires log_brightness values.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19297 a1c6a512-1295-4272-9138-f99709370657
2008-12-02 02:56:46 +00:00
Rob Purchase
e70096ea5c Telechips I2C: Scale the busy-wait delay based on FREQ, reducing wasted CPU cycles when unboosted (eg. when reading from the D2 touchscreen).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19293 a1c6a512-1295-4272-9138-f99709370657
2008-12-01 21:02:00 +00:00
Rob Purchase
8da8159f74 D2: Disable IRQs when writing to the LCD 3-wire interface, and re-instate the previous delay value.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19292 a1c6a512-1295-4272-9138-f99709370657
2008-12-01 20:55:33 +00:00
Rafaël Carré
a783453ff9 Sansa AMS: sd_enable() isn't available in the bootloader
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19281 a1c6a512-1295-4272-9138-f99709370657
2008-12-01 08:18:22 +00:00
Rafaël Carré
ce851c0c67 Sansa AMS: disable SD clocks when not in use (copied from FS#9570)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19280 a1c6a512-1295-4272-9138-f99709370657
2008-12-01 04:17:39 +00:00
Rafaël Carré
50519416ca Sansa Clip : save one instruction per 8 pixels loop in lcd_grey_data
We set directly the needed bits to write into DBOP_DOUT (15:13 and 3:0)
Since we can't set the mask 0xf00f with one mov instruction, revert the
logic and use orrne instead of biceq (in the whole function for consistency)

Fix suggested by Jens Arnold

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19279 a1c6a512-1295-4272-9138-f99709370657
2008-12-01 04:07:13 +00:00
Rafaël Carré
c9ba3adf0d Sansa AMS: do not load stack and bss inside the rockbox binary (FS#9593)
Define _loadaddress to fix RAM usage reported by mkinfo.pl

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19278 a1c6a512-1295-4272-9138-f99709370657
2008-12-01 03:54:27 +00:00
Rafaël Carré
0b6d65b09e Sansa AMS: Use a valid PLL setting (248MHz aka maximum fclk)
Fix lcd drivers which stopped working after changing the PLL.
Move set_cpu_frequency() to a place where it is actually used.
Remove enable_irq() call already done by the bootloader

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19276 a1c6a512-1295-4272-9138-f99709370657
2008-11-30 16:36:32 +00:00
Frank Gevaerts
f235f1d4c0 Remove usb_drv_wait from the public usb api, and remove the implementation from usb-drv-arc.c, as it is not actually used
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19275 a1c6a512-1295-4272-9138-f99709370657
2008-11-30 15:56:49 +00:00
Frank Gevaerts
b9c49fd474 Replace USE_HIGH_SPEED with USB_NO_HIGH_SPEED, as high speed support is the normal case
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19274 a1c6a512-1295-4272-9138-f99709370657
2008-11-30 15:53:36 +00:00
Frank Gevaerts
caaf3c0b97 Move tcc77x/usb-tcc77x.c to usb-tcc.c as it is more general than just tcc77x (even usb-tcc is too specific, but I don't know anything better)
Add #if0ed USB defines to config-cowond2.h, so experimenting with USB is easy
Add dummy set_serial_descriptor() implementation to usb_core.c. This one doesn't generate a unique serial, so it must never be used for non-testing purposes. When usaed, a compiler warning will be generated


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19273 a1c6a512-1295-4272-9138-f99709370657
2008-11-30 15:43:15 +00:00
Dominik Wenger
fbb80b00db Init the ata_sd mutex before use.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19266 a1c6a512-1295-4272-9138-f99709370657
2008-11-30 11:38:26 +00:00
Jonathan Gordon
15671aa476 do not modify the CCU_IO register since we don't use GPIOD (from FS#9569)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19263 a1c6a512-1295-4272-9138-f99709370657
2008-11-30 00:35:25 +00:00
Frank Gevaerts
d158a6d0c9 D2 also needs audiohw_preinit()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19259 a1c6a512-1295-4272-9138-f99709370657
2008-11-28 23:44:06 +00:00
Rafaël Carré
4a4c3c5cb0 Sansa Fuze: do not modify the CCU_IO register since we don't use GPIOD
Finding by Thomas Martitz

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19257 a1c6a512-1295-4272-9138-f99709370657
2008-11-28 11:51:09 +00:00
Rafaël Carré
82c5101e57 Sansa Fuze: remove left over copy-pasta (fix status bar flickering)
Patch by Daniel Weigl

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19256 a1c6a512-1295-4272-9138-f99709370657
2008-11-28 10:53:58 +00:00
Rafaël Carré
81fe625a62 Sansa Clip: grey lib support (not calibrated yet)
Declare HAVE_LCD_INVERT
Put the framebuffer into IRAM

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19249 a1c6a512-1295-4272-9138-f99709370657
2008-11-27 21:07:54 +00:00
Michael Sevakis
23e59f20bf Gigabeats S: Simply ignore that occasional spurious unknown IRQ (-1) that goes through irq_handler even if the AVIC is used. If no pending interrupt is indicated (anything else should be vectored), simply returning from the handler appears to have no ill effect. The cause for entering irq_handler is unknown for now (or I missed something important :\).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19245 a1c6a512-1295-4272-9138-f99709370657
2008-11-27 11:49:49 +00:00
Rafaël Carré
4e4b1d00f9 Sansa AMS: make set_cpu_frequency() handle frequency 0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19240 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 23:19:13 +00:00
Michael Sevakis
89c9dbe21c Fix red in GBS bootloader.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19238 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 22:00:28 +00:00
Michael Sevakis
495115b84a Add hardware backlight fading on Gigabeat S with fade up and down options in LCD Settings. USE_BACKLIGHT_CUSTOM_FADING_BOOL is used to specify the setting type needed but leave the fading code itself implementation-defined.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19237 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 21:26:22 +00:00
Rafaël Carré
97e907538a Sansa AMS: implement set_cpu_frequency()
Use a 24MHz peripheral clock instead of 64MHz for battery life

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19234 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 16:46:12 +00:00
Rafaël Carré
a39e4e9962 Sansa AMS: use non-busy wakeup to signal end of DMA transfer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19233 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 16:02:00 +00:00
Rafaël Carré
aaaf609996 Creative ZVM : cosmetics
Use only UNIX line endings, remove trailing whitespace

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19232 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 15:38:10 +00:00
Michael Sevakis
888c3477bb Fix yellow and red. Maybe create some new.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19231 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 14:52:31 +00:00
Rafaël Carré
1735056864 Sansa AMS: kernel functions need the timer definitions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19230 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 14:42:40 +00:00
Rafaël Carré
a6ec0293cc Sansa AMS: correct timer definition (clk_main == 24MHz / 16)
make timer-target.h common to all AMS targets

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19229 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 14:40:57 +00:00
Michael Sevakis
888451fb0f Get rid of remaining audiohw_enable_output style codec setup and use pre/post split initialization. Move some SoC-specific code like i2s_reset out of the codec drivers. Helps to unify drivers and it was only ever used to enable. I cannot possibly test everything so report (I'll be on call ;) or fix problems if any crop up.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19228 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 14:25:45 +00:00
Steve Bavin
6d498d2831 Code police myself.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19226 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 11:18:26 +00:00
Steve Bavin
4bde6daad0 Oops - fix yellow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19225 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 11:08:27 +00:00
Steve Bavin
b70f575023 Fix reds. Also note my r19221 commit message had a typo - shoudld have been e200/c200, not e100.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19224 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 10:21:03 +00:00
Steve Bavin
f684726580 Add software backlight fading for E100/H300/X5/D2, by Thomas Martitz and others - see FS#6800 for credits.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19221 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 08:26:13 +00:00
Michael Sevakis
756bcc4bd5 Fix misspelled function name. Thanks to Jens Arnold for noticing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19220 a1c6a512-1295-4272-9138-f99709370657
2008-11-26 05:46:33 +00:00
Bertrik Sikken
3e965fd6c3 Enable display contrast setting and implement flip for the Clip.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19219 a1c6a512-1295-4272-9138-f99709370657
2008-11-25 22:29:17 +00:00
Michael Sevakis
8d84a81a1e Fix c200 warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19215 a1c6a512-1295-4272-9138-f99709370657
2008-11-25 16:31:24 +00:00
Michael Sevakis
3511d94031 Add register bit defines for as3514 and clean stuff up. Reduce poppiness at startup and shutdown (and even powerup for e200). Really, I can't honestly say it will help anything but an e200v1 but I'm sick of the noises. ;)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19214 a1c6a512-1295-4272-9138-f99709370657
2008-11-25 16:16:06 +00:00
Rafaël Carré
c1f90b1881 Sansa AMS: Use DMA for SD transfers (read and write)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19211 a1c6a512-1295-4272-9138-f99709370657
2008-11-25 13:38:32 +00:00
Björn Stenberg
8486cb96c1 Preliminary button driver for Sansa Fuze. FS#9575 by Thomas Martitz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19206 a1c6a512-1295-4272-9138-f99709370657
2008-11-24 20:51:05 +00:00
Michael Giacomelli
5d21c8cb1d First part of FS#9570 by Antonius Hellmann. Disables power to the SD memory when not in use. Gives a sizeable power savings (4 mA by his measurement).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19194 a1c6a512-1295-4272-9138-f99709370657
2008-11-24 03:59:21 +00:00
Bertrik Sikken
0cd64abe25 Rename BUTTON_VOLUP to BUTTON_VOL_UP in definition of BUTTON_MAIN for Sansa Clip.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19191 a1c6a512-1295-4272-9138-f99709370657
2008-11-23 23:16:23 +00:00