Commit graph

264 commits

Author SHA1 Message Date
Michael Sevakis
2ede2a79e6 Put a couple x5-specific function declarations in adc-target.h where they should be.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11358 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 08:12:18 +00:00
Michael Sevakis
1d4a9c6366 Stop reading buttons if one is not down. Don't read remote keys if not plugged. Good for another few points of boost and 4fps full-screen unboosted. The button scan enabling seems stable and I've been using it without any difficulties but if the interrupts hiccup it could leave them unresponsive. Clearing the GPI0 interrupts before enabling them seems to prevent any difficulties. If there's problems there I'll just leave the remote reading bypass only and 50% of the benefits will still be realized.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11357 a1c6a512-1295-4272-9138-f99709370657
2006-10-27 05:31:28 +00:00
Michael Sevakis
784dd78745 Moved pcf50606 stuff to target directory.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11348 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 23:24:07 +00:00
Michael Sevakis
34751f096c Fixed implicit declaration warning.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11332 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 06:27:40 +00:00
Michael Sevakis
b26e396436 Pinched pcf50606 i2c code used in iRiver players and adapted to x5. Boost ratios down as much as 100 percent for mp3 and 50 percent for vorbis. mp3 hardly ever boosts even with eq. Scrolling much sharper. Like a whole new player. The code can be used for both iRiver and x5 by just defining macros with the appropriate ports and bit numbers for each player. Probably will have a pcf50606-coldfire.c soon.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11330 a1c6a512-1295-4272-9138-f99709370657
2006-10-25 06:10:22 +00:00
Michael Sevakis
10363b3a81 Get rid of some OR-ing and conditional expressions in lcd driver when register values can just be saved in shorts. Touch-up to comment in asm part.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11281 a1c6a512-1295-4272-9138-f99709370657
2006-10-20 23:57:48 +00:00
Linus Nielsen Feltzing
d543bd486b iAudio X5: USB mode working again
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11261 a1c6a512-1295-4272-9138-f99709370657
2006-10-18 20:56:29 +00:00
Michael Sevakis
1102afb0b0 Disables hard dither mode on the x5 for routine drawing. Display driver automatically enables it when needed. Full screen frame rate up to 48 at normal CPU frequency from about 45 putting it about where it was when everything including the framebuffer was in IRAM due to the shorter and simpler lcd_write_data. Please advise if this works differently on any x5 as this might be considered a hack since nothing in the datasheet specifies using the chip this way. It is perfectly functional on mine.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11233 a1c6a512-1295-4272-9138-f99709370657
2006-10-16 02:24:06 +00:00
Michael Sevakis
f80de70df3 x5: Needed a couple tweaks to the contrast fix.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11077 a1c6a512-1295-4272-9138-f99709370657
2006-09-27 01:13:41 +00:00
Michael Sevakis
b8043fcbf9 Remote play button was still being read out with remote hold key on.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11076 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 23:35:44 +00:00
Michael Sevakis
167c754b47 Fixed FS#5800 - 'LCD-sleep awake bug' on x5. Contrast setting is now preserved after LCD sleeps.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11075 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 22:24:56 +00:00
Michael Sevakis
e636492791 Fixed remote contrast settings. Maybe'll get some build errors here.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11071 a1c6a512-1295-4272-9138-f99709370657
2006-09-26 20:46:17 +00:00
Michael Sevakis
69b4e80f2b x5: No more remote LCD streaks when powering off with remote active. Will not affect hot unplugging of course.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10967 a1c6a512-1295-4272-9138-f99709370657
2006-09-17 09:19:50 +00:00
Michael Sevakis
44e8233134 Added the power off to x5 remote play button. 3s delay seems confortable and well out of the way of the long press for playback stop.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10934 a1c6a512-1295-4272-9138-f99709370657
2006-09-12 15:56:31 +00:00
Michael Sevakis
3bee89ed44 Improved handling of the ONKEY1S interrupt. Off for the remote must be explicitly mapped now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10932 a1c6a512-1295-4272-9138-f99709370657
2006-09-12 14:20:29 +00:00
Michael Sevakis
c3b147598c More PMU madness for x5-- a better, more paranoid sequence for enabling GPI0 IMHO
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10913 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 04:32:35 +00:00
Michael Sevakis
5ffd3aeb4d A tiny change to pcf50506-x5.c. Don't know why Recorder-8MB build would have been affected by the last change. It doesn't add anything to it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10912 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 02:58:35 +00:00
Michael Sevakis
3d2e10bcbd Added remote backlight on hold option to players with remote hold switch. Disabled IRQs while reading pcf50606 ADC. This seems to have stopped buttons becoming unresponsive when using remote. Maybe fixes other button glitches as well?
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10911 a1c6a512-1295-4272-9138-f99709370657
2006-09-10 02:00:40 +00:00
Michael Sevakis
32ba11f066 Fixed the problem on the x5 of spontaneous shutdown after holding the power key for 1s.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10904 a1c6a512-1295-4272-9138-f99709370657
2006-09-09 07:49:25 +00:00
Daniel Ankers
41997d3d89 Clean up crt0.S and move it to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10830 a1c6a512-1295-4272-9138-f99709370657
2006-08-31 19:45:05 +00:00
Michael Sevakis
7a75aad26e Got rid of backlight wink between bootloader and firmware start by removing redundant lcd reset
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10751 a1c6a512-1295-4272-9138-f99709370657
2006-08-26 01:52:05 +00:00
Jens Arnold
92fe88a3a7 X5: Applied tweaks from the H300 lcd_yuv_blit to the X5 version. Smaller code and ca. 1% speedup.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10729 a1c6a512-1295-4272-9138-f99709370657
2006-08-24 06:23:03 +00:00
Jens Arnold
9af13c327e H300: * Assembler optimised lcd_yuv_blit(), based on the X5 version. 23..31% speedup in tests depending on video size. * Don't set HORIZ_RAM_ADDR_POS for LCD updates, it's unnecessary. * Started the target tree move for H300 with this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10724 a1c6a512-1295-4272-9138-f99709370657
2006-08-23 17:30:51 +00:00
Barry Wardell
e367b05fca Move X5 ADC code to target tree. Fix power button detection on H10. New ADC
driver for H10. Thanks to Laurent Baum for all his help with this code.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10701 a1c6a512-1295-4272-9138-f99709370657
2006-08-22 20:17:09 +00:00
Jens Arnold
5cc95ad16d X5: Assembler optimised remote LCD update. Speedup: 3 times @11MHz, 3.3 times @45MHz, +75% @124MHz.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10685 a1c6a512-1295-4272-9138-f99709370657
2006-08-22 05:50:05 +00:00
Linus Nielsen Feltzing
dffcb9fc3b iAudio X5: swap the remote REW and FF buttons
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10634 a1c6a512-1295-4272-9138-f99709370657
2006-08-17 14:32:23 +00:00
Michael Sevakis
013ab3dd3d Added assembly lcd_yuv_blit for iAudio X5 and misc. display related changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10599 a1c6a512-1295-4272-9138-f99709370657
2006-08-15 23:55:31 +00:00
Rani Hod
5fc856c181 Accepted FS#5807 by Michael Sevakis - ASM optimized lcd_update().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10564 a1c6a512-1295-4272-9138-f99709370657
2006-08-13 21:28:22 +00:00
Rani Hod
bcd94a9b01 Accepted FS #5786 by Michael Sevakis - lcd_yuv_blit() for X5.
hard coded to YUV4:2:0 for now, gives ~13.5 fps.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10528 a1c6a512-1295-4272-9138-f99709370657
2006-08-11 14:10:34 +00:00
Linus Nielsen Feltzing
f64ad7d8f3 Patch #5789 by Mike Sevakis - Proper shut down of Coldfire targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10510 a1c6a512-1295-4272-9138-f99709370657
2006-08-10 13:47:22 +00:00
Rani Hod
7d4d6ce31b fixed bootloader build error due to last commit.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10491 a1c6a512-1295-4272-9138-f99709370657
2006-08-08 22:43:40 +00:00
Rani Hod
c9f59e6f75 Accepted FS #5772 by Michael Sevakis
1. X5 lcd sleep
2. #define HAVE_LCD_ENABLE
3. add "backlight (on hold switch)" setting, adapted from FS #5735

Note that the while(1) yield ==> asm("halt") part is NOT commited here,
I prefer it would be discussed separately.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10489 a1c6a512-1295-4272-9138-f99709370657
2006-08-08 22:03:56 +00:00
Linus Nielsen Feltzing
c255073fb8 Patch #5740 by Mike Sevakis - X5 LCD performance enhancements
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10390 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 23:00:13 +00:00
Rani Hod
cc839a2671 Applied FS#5734 by Michael Sevakis (X5 LCD contrast bugfix and
some #define fixup).


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10388 a1c6a512-1295-4272-9138-f99709370657
2006-07-31 19:13:21 +00:00
Rani Hod
78f425d174 Applied FS #5727 (fix backlight flicker on X5) by Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10360 a1c6a512-1295-4272-9138-f99709370657
2006-07-29 13:31:43 +00:00
Linus Nielsen Feltzing
d17d08c268 LCD remote support for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10352 a1c6a512-1295-4272-9138-f99709370657
2006-07-28 12:41:13 +00:00
Linus Nielsen Feltzing
c849219370 Moved the X5 button driver to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10339 a1c6a512-1295-4272-9138-f99709370657
2006-07-27 13:27:31 +00:00
Linus Nielsen Feltzing
40a3fd6938 Remote LCD communication driver for X5, very loosely based on patch FS#5634 by Rani Hod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10331 a1c6a512-1295-4272-9138-f99709370657
2006-07-26 13:38:31 +00:00
Linus Nielsen Feltzing
f18f9a8061 Patch FS#5712 by Michael Sevakis - X5 Backlight brightness improvement/fix
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10322 a1c6a512-1295-4272-9138-f99709370657
2006-07-25 15:21:31 +00:00
Linus Nielsen Feltzing
5a0cb68e43 Moved some assembly optimizations to the target tree
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10318 a1c6a512-1295-4272-9138-f99709370657
2006-07-25 11:16:03 +00:00
Linus Nielsen Feltzing
52aaa75e83 Restore the default backlight settings broken by Rani
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10314 a1c6a512-1295-4272-9138-f99709370657
2006-07-25 07:19:35 +00:00
Rani Hod
c657763a23 Accepted FS #5474 by yours truly.
Save your settings; CONFIG_BLOCK_VERSION is increased.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10303 a1c6a512-1295-4272-9138-f99709370657
2006-07-23 22:18:32 +00:00
Rani Hod
3c810c4f6a Accepted FS #5696 by yours truly.
(1st cvs commit!)


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10302 a1c6a512-1295-4272-9138-f99709370657
2006-07-23 21:41:58 +00:00
Linus Nielsen Feltzing
eec48a8956 iAudio X5: Fix sim build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10274 a1c6a512-1295-4272-9138-f99709370657
2006-07-21 09:24:17 +00:00
Linus Nielsen Feltzing
ed4d7a33bd Patch #5347 by Rani Hod - Adds FM radio and recording features to the iAudio X5.
Also includes a rewrite of the Coldfire I2C driver to include both read and write.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10272 a1c6a512-1295-4272-9138-f99709370657
2006-07-21 08:42:28 +00:00
Christian Gmeiner
a59b3eb919 simplification of lcd driver code - based on patch #5474 by Rani Hod
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10235 a1c6a512-1295-4272-9138-f99709370657
2006-07-18 18:16:38 +00:00
Linus Nielsen Feltzing
5f655c93f9 Patch #5639 by Ulrich Pegelow, inits the M5636 USBOTG chip on the X5 to reduce the battery consumption.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10208 a1c6a512-1295-4272-9138-f99709370657
2006-07-13 07:40:30 +00:00
Daniel Stenberg
5f0395d577 While waiting further and better improvements, this fixes the bug to
lcd_update_rect() I introduced previously.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9822 a1c6a512-1295-4272-9138-f99709370657
2006-04-27 21:11:18 +00:00
Daniel Stenberg
9efbc9d487 20% faster and one annoying lookup table cut out
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9624 a1c6a512-1295-4272-9138-f99709370657
2006-04-11 21:51:24 +00:00
Linus Nielsen Feltzing
e62152ddf9 Better sound quality on the iAudio X5 using the correct MCLK frequency
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9354 a1c6a512-1295-4272-9138-f99709370657
2006-03-30 10:01:04 +00:00
Linus Nielsen Feltzing
e6876736d5 Correct IRAM attributes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9310 a1c6a512-1295-4272-9138-f99709370657
2006-03-28 12:47:50 +00:00
Linus Nielsen Feltzing
a8c1fb55a4 Correct audio clock
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9309 a1c6a512-1295-4272-9138-f99709370657
2006-03-28 12:47:10 +00:00
Linus Nielsen Feltzing
13618007b3 Backlight for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9185 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 14:17:45 +00:00
Linus Nielsen Feltzing
8f186803a5 USB mode for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9179 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 11:06:45 +00:00
Linus Nielsen Feltzing
d0e8c57b77 Now the X5 LCD driver works as expected
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9177 a1c6a512-1295-4272-9138-f99709370657
2006-03-22 09:50:35 +00:00
Linus Nielsen Feltzing
169cd33b37 iAudio: working PLL settings
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9104 a1c6a512-1295-4272-9138-f99709370657
2006-03-18 21:29:17 +00:00
Linus Nielsen Feltzing
c5c8883cc8 iAudio X5 target-specific ATA driver code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8947 a1c6a512-1295-4272-9138-f99709370657
2006-03-07 13:19:34 +00:00
Linus Nielsen Feltzing
322cb14115 Adapted to compile with lostlogics recent ADC driver changes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8946 a1c6a512-1295-4272-9138-f99709370657
2006-03-07 13:15:24 +00:00
Linus Nielsen Feltzing
0bdf0c6342 Slight optimization of the X5 LCD driver
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8856 a1c6a512-1295-4272-9138-f99709370657
2006-02-27 08:48:12 +00:00
Linus Nielsen Feltzing
ef35080728 ATA power control on iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8855 a1c6a512-1295-4272-9138-f99709370657
2006-02-27 08:47:18 +00:00
Linus Nielsen Feltzing
01ece88198 ADC driver for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8811 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 16:40:41 +00:00
Linus Nielsen Feltzing
4feb0fca80 PCF50606 driver for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8809 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 15:24:45 +00:00
Linus Nielsen Feltzing
072744b4f4 Power driver for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8808 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 15:24:04 +00:00
Linus Nielsen Feltzing
b528d0a879 LCD driver for iAudio X5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8807 a1c6a512-1295-4272-9138-f99709370657
2006-02-23 15:22:08 +00:00