Jens Arnold
2629071b25
More dead code...
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6428 a1c6a512-1295-4272-9138-f99709370657
2005-05-08 12:56:48 +00:00
Jens Arnold
c42a1a05bb
Moved unrelated stuff from i2c the driver to appropriate places. Minor optimisation in i2c driver.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6419 a1c6a512-1295-4272-9138-f99709370657
2005-05-07 22:29:35 +00:00
Linus Nielsen Feltzing
e6bc6c4829
iRiver: Implemented S/PDIF transmit power control. The optical LED is now off by default.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6268 a1c6a512-1295-4272-9138-f99709370657
2005-04-11 11:17:31 +00:00
Jean-Philippe Bernardy
376057d2b6
Gmini SMSC chip improvements
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6030 a1c6a512-1295-4272-9138-f99709370657
2005-02-22 09:55:40 +00:00
Linus Nielsen Feltzing
96038fcd92
Silly me, those inits were not redundant at all
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5829 a1c6a512-1295-4272-9138-f99709370657
2005-02-07 02:45:32 +00:00
Linus Nielsen Feltzing
bf11674d10
iRiver: Removed redundant initiation in power_init()
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5823 a1c6a512-1295-4272-9138-f99709370657
2005-02-07 01:46:56 +00:00
Jean-Philippe Bernardy
dd924a522d
Gmini power management basis
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5767 a1c6a512-1295-4272-9138-f99709370657
2005-02-03 23:10:01 +00:00
Linus Nielsen Feltzing
474bbb36ad
Oops! Wrong polarity in ide_powered() for iRiver
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5496 a1c6a512-1295-4272-9138-f99709370657
2004-12-20 01:34:45 +00:00
Linus Nielsen Feltzing
488061562b
Added power functions for iRiver H1xx
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5494 a1c6a512-1295-4272-9138-f99709370657
2004-12-20 00:45:23 +00:00
Jens Arnold
127c363e87
Unconditionally drive HD power control pin for player (doesn't hurt even for very old players). Slight optimization for recorders.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5487 a1c6a512-1295-4272-9138-f99709370657
2004-12-16 22:29:01 +00:00
Jens Arnold
d4e53976d9
Renamed has_new_lcd() to is_new_player(), and got rid of the alias
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5459 a1c6a512-1295-4272-9138-f99709370657
2004-11-22 21:20:54 +00:00
Jens Arnold
14c72f277c
Code cleanup
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5454 a1c6a512-1295-4272-9138-f99709370657
2004-11-21 09:22:50 +00:00
Jens Arnold
3999bc0323
Fixed a warning
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5450 a1c6a512-1295-4272-9138-f99709370657
2004-11-20 14:34:17 +00:00
Jens Arnold
7ebb5d915e
Moved player ATA power handling to the correct functions
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5449 a1c6a512-1295-4272-9138-f99709370657
2004-11-20 14:17:43 +00:00
Jörg Hohensohn
954e5888b1
bugfix for OndioFM tuner power
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5297 a1c6a512-1295-4272-9138-f99709370657
2004-10-17 09:58:05 +00:00
Jörg Hohensohn
91f9350cbd
moved and renamed fmradio_set/get_status to power.c, where it now additionally serves well for tuner power enable on OndioFM
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5296 a1c6a512-1295-4272-9138-f99709370657
2004-10-17 08:53:18 +00:00
Jens Arnold
0fc34c773f
Disabled charger detection and ide_power_enable() for Ondio; some cleanup
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5270 a1c6a512-1295-4272-9138-f99709370657
2004-10-13 23:21:57 +00:00
Linus Nielsen Feltzing
b1af93c314
Disable the backlight before powering off the Player/Studio
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4877 a1c6a512-1295-4272-9138-f99709370657
2004-07-14 10:06:02 +00:00
Linus Nielsen Feltzing
111a972b65
Made set_irq_level() an inline function, and optimized it by removing the bit shifts
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4330 a1c6a512-1295-4272-9138-f99709370657
2004-03-02 11:32:59 +00:00
Linus Nielsen Feltzing
a258fe1887
Better charging feedback for FM/V2 devices
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4296 a1c6a512-1295-4272-9138-f99709370657
2004-02-05 13:44:04 +00:00
Jörg Hohensohn
816234f431
oops, a typo made the player build fail
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4097 a1c6a512-1295-4272-9138-f99709370657
2003-12-03 18:50:19 +00:00
Jörg Hohensohn
44298163ba
No more spinning disk while charging flashed FM+V2 (you need the new bootloader to utilize it). ToDo: remove now false voltage reading from charging screen.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4095 a1c6a512-1295-4272-9138-f99709370657
2003-12-03 01:03:54 +00:00
Jörg Hohensohn
d9d63560fe
a side effect in usb_enable() (writing back a "1" while reading a pulled-up input) masked a bug in power_init(), it would have turned off the disk with flash start. Became appearing while converting port access to and_b(), which touches only one byte.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4027 a1c6a512-1295-4272-9138-f99709370657
2003-11-07 21:09:01 +00:00
Linus Nielsen Feltzing
bef7ab0c26
The code police strikes back
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4024 a1c6a512-1295-4272-9138-f99709370657
2003-11-07 12:15:24 +00:00
Jörg Hohensohn
75bab49a54
set/clear port bits with atomic instructions instead of read-modify-write, saves time+space, allows port usage in ISR
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4022 a1c6a512-1295-4272-9138-f99709370657
2003-11-06 01:34:50 +00:00
Jörg Hohensohn
9ace15871d
cosmetic: moved my port inits to the "new" init function
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3982 a1c6a512-1295-4272-9138-f99709370657
2003-10-21 21:03:42 +00:00
Linus Nielsen Feltzing
53ee344743
Slightly more correct initialization of the power/charging code
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3940 a1c6a512-1295-4272-9138-f99709370657
2003-08-25 08:57:49 +00:00
Mats Lidell
bd49e5f83b
ide_power_enable for simulator added.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3851 a1c6a512-1295-4272-9138-f99709370657
2003-07-20 00:08:47 +00:00
Jörg Hohensohn
61750ac07d
one more missing init, prevented powering down the disk
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3839 a1c6a512-1295-4272-9138-f99709370657
2003-07-17 20:15:57 +00:00
Jörg Hohensohn
545efb6c28
port inits for cold start ability
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3764 a1c6a512-1295-4272-9138-f99709370657
2003-06-26 21:29:13 +00:00
Linus Nielsen Feltzing
70e3331fa1
Fixed bug #688807 , now the Idle poweroff works on FM recorder. Also disabled ATA-poweroff.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3312 a1c6a512-1295-4272-9138-f99709370657
2003-02-21 01:12:00 +00:00
Uwe Freese
cc9b62f6b2
Mike Holden's patch that corrects the FM charger plugged symbol
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3251 a1c6a512-1295-4272-9138-f99709370657
2003-02-13 21:45:19 +00:00
Daniel Stenberg
aaa8443af9
Based on Ludovic Lange excellent work, I've modified things to increase
...
likeliness that this works on an FM Recorder.
Reports please!
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3143 a1c6a512-1295-4272-9138-f99709370657
2003-01-21 19:37:29 +00:00
Daniel Stenberg
d7b4645f5c
Ludovic Lange's initial code for FM Recorder, edited and adjusted by me.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3110 a1c6a512-1295-4272-9138-f99709370657
2003-01-16 15:11:29 +00:00
Linus Nielsen Feltzing
297a256729
More sensible (but probably still not working) power off
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2419 a1c6a512-1295-4272-9138-f99709370657
2002-09-25 19:28:01 +00:00
Heikki Hannikainen
39243bceed
Made battery_level() use the power history table to get an average battery level over the last 3 minutes.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1585 a1c6a512-1295-4272-9138-f99709370657
2002-08-07 11:22:26 +00:00
Heikki Hannikainen
3f809e716d
Added battery charger code for the recorder and battery voltage statistics keeping for all platforms.
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1546 a1c6a512-1295-4272-9138-f99709370657
2002-08-06 10:50:50 +00:00
Linus Nielsen Feltzing
ec370c70fe
charger_inserted() used the wrong ADC channel
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1489 a1c6a512-1295-4272-9138-f99709370657
2002-07-29 12:54:57 +00:00
Linus Nielsen Feltzing
5cf6b411ac
Added battery_level_safe() function
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1480 a1c6a512-1295-4272-9138-f99709370657
2002-07-28 15:17:24 +00:00
Linus Nielsen Feltzing
96763eadce
New voltage levels for full and empty battery
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1457 a1c6a512-1295-4272-9138-f99709370657
2002-07-26 14:54:25 +00:00
Linus Nielsen Feltzing
703704d4f6
Slightly different battery level range
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1396 a1c6a512-1295-4272-9138-f99709370657
2002-07-22 15:33:14 +00:00
Björn Stenberg
208cb91192
battery_level() would sometimes return wrong value
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1375 a1c6a512-1295-4272-9138-f99709370657
2002-07-17 11:13:56 +00:00
Linus Nielsen Feltzing
4edf8aebf5
Added power_off() and lowered the FULL limit
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1337 a1c6a512-1295-4272-9138-f99709370657
2002-07-05 07:10:22 +00:00
Linus Nielsen Feltzing
7cafe7aa2f
First version
...
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1333 a1c6a512-1295-4272-9138-f99709370657
2002-07-04 16:09:23 +00:00