Commit graph

232 commits

Author SHA1 Message Date
Greg White
0fedaa205c Fix inversevid mono drawing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12022 a1c6a512-1295-4272-9138-f99709370657
2007-01-16 14:58:25 +00:00
Greg White
9980b4ed6c Merge various drawmodes; revert to C for common code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12021 a1c6a512-1295-4272-9138-f99709370657
2007-01-16 13:56:38 +00:00
Steve Gotthardt
cd05dbc7f4 Changed pausing so entire chunk is finished and keeps I2S engine aligned
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12020 a1c6a512-1295-4272-9138-f99709370657
2007-01-16 03:36:32 +00:00
Greg White
2127071653 Turn off USB host and NAND flash controller
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12019 a1c6a512-1295-4272-9138-f99709370657
2007-01-15 22:49:55 +00:00
Greg White
69bb436223 Optimize transparent blit; optimize DRMODE_SOLID for mono bitmaps
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12015 a1c6a512-1295-4272-9138-f99709370657
2007-01-15 13:07:47 +00:00
Dave Chapman
d64e626387 Start of work on a port to the Archos 'AV300' (AV320/340/380) - a working UI simulator (but with a dummy background image for now) and the beginnings of the target-specific firmare code. Port is temporarily using a 2bpp LCD buffer format - the AV300 has a 320x240 colour (YCbCr-based) LCD which will need a new framebuffer format and drawing routines, but the LCD is also capable of various paletted bitmap modes, one of which has an identical framebuffer format to the greyscale ipods. Buttons (and hence the button mappings) are identical to the Archos Recorder, with the exception that the PLAY button on the Recorder is replaced by pressing the joystick on the AV300 (which I call BUTTON_SELECT). The initial port will begin by being strictly HWCODEC, but will evolve to be a hybrid SWCODEC/HWCODEC platform - it has a MAS3587F but also a main CPU (54MHz arm7tdmi plus DSP) capable of software decoding of at least some formats.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12008 a1c6a512-1295-4272-9138-f99709370657
2007-01-14 13:48:09 +00:00
Greg White
b26f4720c8 Idle CPU directly; minor cleanup
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12002 a1c6a512-1295-4272-9138-f99709370657
2007-01-14 03:28:31 +00:00
Daniel Ankers
1010b76c72 ARM optimised memcpy/memmove from glibc. This should give increased performance on all ARM targets, especially iPod 5G
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12000 a1c6a512-1295-4272-9138-f99709370657
2007-01-13 23:57:14 +00:00
Greg White
355be5010a Setup LCD ourselves; move LCD buffer and TTB to free up 1.7MB of memory
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11994 a1c6a512-1295-4272-9138-f99709370657
2007-01-13 02:24:15 +00:00
Miika Pekkarinen
73cd9f3b63 Turn backlight ON at boot unless bootloader has already done that.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11992 a1c6a512-1295-4272-9138-f99709370657
2007-01-12 20:26:23 +00:00
Miika Pekkarinen
0ea4d3197e Prepare core support for the iriver bootloader supporting ROM images
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11991 a1c6a512-1295-4272-9138-f99709370657
2007-01-12 18:34:00 +00:00
Greg White
a175b21fdb Reduce initial fade delay; remove bogus debug from lcd-meg-fx.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11985 a1c6a512-1295-4272-9138-f99709370657
2007-01-11 10:40:26 +00:00
Greg White
05e2d47c9f Minor MMU fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11984 a1c6a512-1295-4272-9138-f99709370657
2007-01-11 10:28:33 +00:00
Greg White
ffb50d07af Add initial backlight delay to stop backlight from fading during boot; switch to IDLE instead of yield()
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11983 a1c6a512-1295-4272-9138-f99709370657
2007-01-11 10:24:21 +00:00
Linus Nielsen Feltzing
e2022a26d0 Removed executable flag
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11967 a1c6a512-1295-4272-9138-f99709370657
2007-01-09 23:29:07 +00:00
Steve Gotthardt
93b047fffe Updated buttonlights for the Gigabeat port. Added LCD controller off and on for extra power savings - thanks to Greg White. Incorporated feedback from Gary Allen. Added 'battery charging' mode: shows leds during charging. Added 'follow' mode that turns off leds when backlight goes off. Flicker mode and new solid mode only show during disk access. Access settings from Info/debug menu for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11945 a1c6a512-1295-4272-9138-f99709370657
2007-01-08 08:53:36 +00:00
Greg White
5693622cd4 Make lcd_enable more tolerant of multiple calls
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11943 a1c6a512-1295-4272-9138-f99709370657
2007-01-08 02:31:12 +00:00
Steve Gotthardt
a0c3f81d10 Added header include to suppress compiler warning
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11936 a1c6a512-1295-4272-9138-f99709370657
2007-01-07 06:56:24 +00:00
Steve Gotthardt
c07814fce1 Revamped the backlight state machine and added buttonlight controls. Go to the Info/debug menu and test out the new modes for buttonlights on the Gigabeat - ON, OFF, Faint, and flicker - flickers on touchpad and disk reads.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11935 a1c6a512-1295-4272-9138-f99709370657
2007-01-07 06:38:57 +00:00
Greg White
45bef7d914 Fix range for cache cleans
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11928 a1c6a512-1295-4272-9138-f99709370657
2007-01-06 02:48:26 +00:00
Greg White
ebcd762fb2 Read byte by byte rather than DMA for unaligned transfer
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11927 a1c6a512-1295-4272-9138-f99709370657
2007-01-06 01:26:36 +00:00
Steve Gotthardt
ccfa883d78 The i2c driver did not conform with i2c spec and was missing the restart. Some of the commands worked, but not every time.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11915 a1c6a512-1295-4272-9138-f99709370657
2007-01-05 08:50:09 +00:00
Greg White
5668505d6b Switch DMA wait loop to idle CPU
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11914 a1c6a512-1295-4272-9138-f99709370657
2007-01-05 04:17:25 +00:00
Greg White
ae5cf68e48 Created
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11909 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 11:56:49 +00:00
Greg White
9d0faed29c Use DMA for Blit to screen/clear
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11906 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 11:43:33 +00:00
Greg White
dd7b75bd2c Flush DMA buffers for DMA
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11905 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 11:36:25 +00:00
Greg White
6eb81e2dc8 ATA reads now use DMA
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11904 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 11:35:09 +00:00
Greg White
0b4f3d9cfa Move system specific reboot
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11903 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 11:33:13 +00:00
Greg White
6c62f2f32a Add cache control
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11902 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 11:26:45 +00:00
Greg White
85d5451f3b Add clean_dcache
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11901 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 11:10:46 +00:00
Greg White
d45da93f27 Created
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11900 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 10:16:40 +00:00
Steve Gotthardt
775c901f76 Implementing backlight fade for the Gigabeat. Note that fading is the normal behaviour. Settings for LCD off and fade settings will be coming.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11899 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 09:32:49 +00:00
Steve Gotthardt
26496ce72f Optimized the timing for the delay and changed the startup delay.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11896 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 09:26:32 +00:00
Steve Gotthardt
2aa3e3f63c Changed the delay loop to run faster and more accurate. Made the internal functions 'static'.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11894 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 03:31:03 +00:00
Greg White
23b722d4a9 Created
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11893 a1c6a512-1295-4272-9138-f99709370657
2007-01-04 02:50:45 +00:00
Dave Chapman
147693819d Split the enable_fiq(fiq_handler) function into separate set_fiq_handler(fiq_handler) and enable_fiq(void) functions. This allows temporary disabling of the FIQ without knowing which fiq handler is in use.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11875 a1c6a512-1295-4272-9138-f99709370657
2007-01-01 12:09:45 +00:00
Marcoen Hirschberg
c0c97e5d3d remove debug code and unsused variable
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11861 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 23:35:31 +00:00
Marcoen Hirschberg
5dc0abda11 no need to prefill the i2s fifo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11856 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 15:45:51 +00:00
Marcoen Hirschberg
23a0823b84 don't ignore remote when hold is on
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11855 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 15:44:43 +00:00
Marcoen Hirschberg
295367686e merge a big part of the unofficial gigabeat cvs back. Includes working bootloader and rockbox with audio.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11850 a1c6a512-1295-4272-9138-f99709370657
2006-12-29 02:49:12 +00:00
Daniel Ankers
a26519680a Fix bug accessing data above 4Gb in Sansa
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11828 a1c6a512-1295-4272-9138-f99709370657
2006-12-21 18:32:47 +00:00
Barry Wardell
4b54302b07 Combine USB code for all PortalPlayer targets since they most likely all use the same USB hardware. Add register defines for the USB hardware addresses, based off the Freescale i.MX31 datasheet. Use usb_init() from the iPod code, but modified to use the new register defines rather than oul/inl on the hardware addresses.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11823 a1c6a512-1295-4272-9138-f99709370657
2006-12-20 15:28:32 +00:00
Michael Sevakis
4b902679cc Convert queues to use intptr_t for event data and return values as most of the time pointer are not passed and it should make some things a bit cleaner.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
2006-12-19 16:50:07 +00:00
Barry Wardell
2f16d4f1b3 Add working dual-boot bootloaders for H10 and Sansa, which allow booting the OF and Rockbox. Rolo also works.
Changes made:

Combine bootloader/h10.c and bootloader/e200.c into a common bootloader file (bootloader/main-pp.c) to be used by all mi4 based PortalPlayer targets. The file bootloader/main-pp.c is based off the old bootloader/h10.c with some minor changes to allow it to work on the Sansa too. This effectively adds a Sansa bootloader.

Define MODEL_NAME string in config-*.h for use in bootloader.

Split crt0-pp.S into separate files for bootloader and normal builds. Bootloader code is now in crt0-pp-bl.S while normal build code stays in crt0-pp.S.

Improvements to crt0-pp.S and crt0-pp-bl.S (mostly to make it more multiprocessor safe):
* Leave space in bootloader at 0xe0-0xeb since scramble writes over there when it creates the mi4 file (don't leave space for iPods since it's not needed and all code in crt0-pp-bl.S needs to fit before the boot_table at 0x100).
* Remove unused DEBUG and STUB code from crt0-pp.S.
* Make CPU wait for COP to be sleeping when we put the COP to sleep.
* Invalidate COP cache when COP wakes
* Flush CPU cache before waking COP
* Make sure only the CPU clears the BSS (not the COP)
* Make sure only the CPU sets up its own stack (not the COP)

Rolo works on H10, so enable it.

Make Sansa e200 use rockbox.e200 rather than PP5022.mi4 for 'Normal' builds. This makes updating rockbox simpler as we don't need to go through the firmware update procedure, but rather just put a new rockbox.e200 on the device. rockbox.e200 uses a simple 'add' checksum.


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11815 a1c6a512-1295-4272-9138-f99709370657
2006-12-19 11:33:53 +00:00
Jens Arnold
5833f05acb Forgot to remove the ata_address_detect() declaration.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11813 a1c6a512-1295-4272-9138-f99709370657
2006-12-19 09:30:14 +00:00
Jens Arnold
28fd4b7228 Archos: Moved the ata_address_detect() code into ata_device_init(), removing the associated #ifdef and some public #defines. Saves a tiny bit of code as well.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11812 a1c6a512-1295-4272-9138-f99709370657
2006-12-19 09:27:41 +00:00
Barry Wardell
a69b53dc89 Add support for Sansa scrollwheel backlight. Turn light on when scrollwheel is in use, then back off again after a 5 second timeout.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11807 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 19:08:41 +00:00
Barry Wardell
e90006133b Hardcode a value for the battery level until we figure out the power management on the Sansa.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11806 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 18:56:45 +00:00
Barry Wardell
1cf6cdf6ac Fix more warnings. Don't compile PortalPlayer pcm code in bootloader builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11799 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 02:58:23 +00:00
Barry Wardell
f2c03e827e Fix more compile errors/warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11798 a1c6a512-1295-4272-9138-f99709370657
2006-12-18 02:37:35 +00:00