summaryrefslogtreecommitdiff
path: root/firmware/target/arm/sandisk
AgeCommit message (Collapse)Author
2008-03-27split boot.lds and move it into the target treeMarcoen Hirschberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16855 a1c6a512-1295-4272-9138-f99709370657
2008-03-25Add a complete priority inheritance implementation to the scheduler (all ↵Michael Sevakis
mutex ownership and queue_send calls are inheritable). Priorities are differential so that dispatch depends on the runnable range of priorities. Codec priority can therefore be raised in small steps (pcmbuf updated to enable). Simplify the kernel functions to ease implementation and use the same kernel.c for both sim and target (I'm tired of maintaining two ;_). 1) Not sure if a minor audio break at first buffering issue will exist on large-sector disks (the main mutex speed issue was genuinely resolved earlier). At this point it's best dealt with at the buffering level. It seems a larger filechunk could be used again. 2) Perhaps 64-bit sims will have some minor issues (finicky) but a backroll of the code of concern there is a 5-minute job. All kernel objects become incompatible so a full rebuild and update is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16791 a1c6a512-1295-4272-9138-f99709370657
2008-03-24Consistent naming scheme the various blit functions. * Removed ↵Jens Arnold
lcd_blit_mono() for colour targets. Plugin API became incompatible, so sort, clean up & bump. * Implemented lcd_blit_mono() for M3. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16775 a1c6a512-1295-4272-9138-f99709370657
2008-03-13Split up app.lds to the respective target directories. The portalplayer ↵Karl Kurbjun
devices replicate app.lds since their target tree doesn't follow a syntax typical to the newer arm targets - the portalplayers could be cleaned up further. boot.lds and plugin.lds still need to be cleaned up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16651 a1c6a512-1295-4272-9138-f99709370657
2008-03-12Really stop red. Whatever works atm.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16639 a1c6a512-1295-4272-9138-f99709370657
2008-03-12Hotswap code shuffling: Fix yellow. Simplify some target function access. ↵Michael Sevakis
Keep fat lock access from compiling for Ondios - think of a nicer way later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16637 a1c6a512-1295-4272-9138-f99709370657
2008-03-12Do some crackdown on kernel object reinitialization after they could be in ↵Michael Sevakis
use and use before initialization. For c200/e200: Be sure fat cache and ata locks are acquired in the proper order during hot swapping. Delay hotswap monitoring until after initial file mounting (address 2nd kobj concern + possible call of fat driver before init). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16636 a1c6a512-1295-4272-9138-f99709370657
2008-03-12Fix newly introduced race condition in SD driver. Make sure to force remount ↵Michael Sevakis
in case two SYS_HOTSWAP_INSERTED messages are received in a row. Be sure flags are reset to re-initialize the SD-card. Go back to locking out driver access during disk mount/unmount attempts. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16635 a1c6a512-1295-4272-9138-f99709370657
2008-03-09Sansa SD card driver: Simplify hotswap handling, and make it send the ↵Jens Arnold
insert/remove events while filesystem access is blocked. Also use atomic GPIO bit manipulation where possible, and protect the interrupt level manipulation in the ISR from interrupts arriving at the same time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16592 a1c6a512-1295-4272-9138-f99709370657
2008-02-28acknowledge USB disconnect. This wasn't always done anymore since the ↵Frank Gevaerts
usb_wait_for_disconnect() is gone. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16452 a1c6a512-1295-4272-9138-f99709370657
2008-02-28don't call usb_wait_for_disconnect() in the sd thread. The usb storage ↵Frank Gevaerts
driver uses the sd driver, and wants to know about changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16449 a1c6a512-1295-4272-9138-f99709370657
2008-02-11Some misc. ATA stuff: Increase threads' priority (important for idle ↵Michael Sevakis
callbacks to get done faster). Use a simpler loop for ata thread. Add a balancing mutex_lock call to ata_init (oops). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16278 a1c6a512-1295-4272-9138-f99709370657
2008-02-09Use a fixed multiplier of 2^10 as required when calculating number of blocks.Jonas Häggqvist
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16256 a1c6a512-1295-4272-9138-f99709370657
2008-01-20Commit FS#8480 by Andree Buschmann. Updates battery calibration for the ↵Michael Giacomelli
Sansa E series. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16122 a1c6a512-1295-4272-9138-f99709370657
2008-01-18Finally, out goes struct spinlock for anything but mutiprocessor targets ↵Michael Sevakis
where it becomes a reenterable corelock. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16105 a1c6a512-1295-4272-9138-f99709370657
2008-01-18Properly serialize ata_init with other threads. Fix a bug that always ↵Michael Sevakis
initialized the lock on every call to ata_init - that should be a one time init or else the lock could be corrupted on connect. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16104 a1c6a512-1295-4272-9138-f99709370657
2008-01-10Accept FS#8341 - rename BUTTON_SCROLL_UP/DOWN to FWD/BACK on the e200 to ↵Jonathan Gordon
make it consistant with the ipods. apart from removing a bit of confusion, it fixes the wheel in pictureflow and possibly elsewhere. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16045 a1c6a512-1295-4272-9138-f99709370657
2008-01-09Don't clear this bit. Helps c200 radios that have trouble tuning.Mark Arigo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16038 a1c6a512-1295-4272-9138-f99709370657
2007-11-20Hopefully the last word on getting rid of yield_codecs loops (cut read chunk ↵Michael Sevakis
to 16kB). Sansa ata driver also didn't yield enough so buffering would starve other threads. Bump priority of audio thread to keep UI more responsive. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15724 a1c6a512-1295-4272-9138-f99709370657
2007-11-19FS#7738 - Scroll wheel acceleration for iPodLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15681 a1c6a512-1295-4272-9138-f99709370657
2007-11-18Significant LCD speedup for all greyscale iPods and Sansa c200 (c200, 4th ↵Jens Arnold
Gen, Mini 1st Gen: >3.3x speedup, 1st..3rd Gen: ~2x speedup, Mini 2nd Gen: ~30% speedup). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15655 a1c6a512-1295-4272-9138-f99709370657
2007-11-12Fix bootloaders, and the backlight-modded Ondio build.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15600 a1c6a512-1295-4272-9138-f99709370657
2007-11-12Hardware controlled backlight brightness for iPod Video and Nano, retaining ↵Jens Arnold
the software PWM fade in/ fade out. * Backlight handling cleanup, getting rid of one layer of 'lowlevelness'. * Use atomic GPIO bit manipulation for PP502x backlight handling. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15599 a1c6a512-1295-4272-9138-f99709370657
2007-11-12Portal player i2c driver: More struct spinlock phaseout.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15593 a1c6a512-1295-4272-9138-f99709370657
2007-11-08Add some CACHEALIGN_* macros and a helper function to assist in aligning ↵Michael Sevakis
data and buffers on PortalPlayer processors to cache line boundaries. They're noops when PROC_NEED_CACHEALIGN isn't defined. Go safe and increase the value to 32 since I'm not sure yet if 16 is sufficient - changing that is a one-liner. Add helper to plugin API which will be needed shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15523 a1c6a512-1295-4272-9138-f99709370657
2007-11-06c200: Make microSD cards finally work.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15493 a1c6a512-1295-4272-9138-f99709370657
2007-11-05Get rid of some more inl/outl. 0x70000084 seems to be GPO32_ENABLE.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15477 a1c6a512-1295-4272-9138-f99709370657
2007-11-05Fix red.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15476 a1c6a512-1295-4272-9138-f99709370657
2007-11-05Get rid of some more inl/outl and use the new GPO32 define instead.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15474 a1c6a512-1295-4272-9138-f99709370657
2007-11-05e200/c200: Take advantage of mutex recursion for the tuner driver and dump ↵Michael Sevakis
the awkward *_nolock stuff. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15468 a1c6a512-1295-4272-9138-f99709370657
2007-11-04The GPIO interrupts are split into several port groups on all PP502x ↵Jens Arnold
versions, so move those definitions into pp5020.h, and add the missing group. Make microSD hotswap detection work on Sansa c200. Note that microSD access itself does not work yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15460 a1c6a512-1295-4272-9138-f99709370657
2007-10-28C200: Reworked the LCD driver a bit, and fixed a bug with single column ↵Jens Arnold
updates (was only visible in mandelbrot). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15343 a1c6a512-1295-4272-9138-f99709370657
2007-10-28e200: shorten some delays so the backlight turn on is snappier. Values seem ↵Michael Sevakis
to have a safe margin. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15337 a1c6a512-1295-4272-9138-f99709370657
2007-10-25FS#8023: Use of AS3514 #defines instead of magic values.Barry Wardell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15297 a1c6a512-1295-4272-9138-f99709370657
2007-10-21Implement YUV dithering for c200, and enable the option in mpegplayer.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15246 a1c6a512-1295-4272-9138-f99709370657
2007-10-16Improved H10 ADC driver. We now do things exactly as the OF does. This ↵Barry Wardell
includes shifting the readings by 0x14 when PLL is enabled. Battery voltages and remote/scrollpad values adjusted accordingly. We also now wait for the ADC to indicate the conversion is complete before reading the data, so hopefully we will get more reliably steady readings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15141 a1c6a512-1295-4272-9138-f99709370657
2007-10-16Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis
towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
2007-10-12PP LCD drivers: * Optimised and cleaned up PP colour LCD drivers. ↵Jens Arnold
Immeasurable speedup on iPod Color, huge speedup on small H10 (a factor of 3). Should be a bit faster on big H10 too. * Big H10 changed bitmap format, so needs reconfiguring + full rebuild. * Better register naming for the mono LCD bridge. Register names for the colour LCD bridge. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15082 a1c6a512-1295-4272-9138-f99709370657
2007-10-08Hopefully take care of FS#7806 - Current Sansapatcher fails to boot OF by ↵Michael Sevakis
removing all hotswap support from the bootloader. It won't fully be closed until Sansapatcher is updated of course. There's still a report of the partition dump not working unless 20 bytes of padding are inserted at the start of main() but that's only a developer-enabled feature. Seems weird though. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15038 a1c6a512-1295-4272-9138-f99709370657
2007-10-07c200: First implemention of lcd_yuv_blit(). mpegplayer works now, but speed ↵Jens Arnold
can be optimized more and dithering is not yet implemented. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15020 a1c6a512-1295-4272-9138-f99709370657
2007-10-07* Use proper definitions for the PP (mono) LCD bridge. * Clean up pp5002.h a ↵Jens Arnold
bit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15018 a1c6a512-1295-4272-9138-f99709370657
2007-10-07Name all button light functions and variables consistently starting with ↵Jens Arnold
buttonlight_ . git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15016 a1c6a512-1295-4272-9138-f99709370657
2007-10-07Fix red bootloader build.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15015 a1c6a512-1295-4272-9138-f99709370657
2007-10-07c200: Make the backlight react on unlocking hold as intended.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15014 a1c6a512-1295-4272-9138-f99709370657
2007-10-07c200: Switch the 'menu' button light as well.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15012 a1c6a512-1295-4272-9138-f99709370657
2007-10-04Change a couple udelay() in e200 lcd driver to sleep() since sleep() was the ↵Michael Sevakis
intent. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14982 a1c6a512-1295-4272-9138-f99709370657
2007-10-04PP502x: Make RAM physical addresses uncached. Cache the flash ROM on targets ↵Michael Sevakis
with one. Kill all the now unneeded cache flushing and i2s tweaking on e200 so clicking is no worry. Write the driver framebuffer at uncached addresses. Recording monitoring may be a little noisy in the left channel for the moment when not boosted and will be addressed. All seems to work as advertised including flash ROM dump. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14976 a1c6a512-1295-4272-9138-f99709370657
2007-10-02Commit FS #7881 by Mark Arigo - enable radio on the Sansa c200. It seems ↵Marianne Arnold
that many (if not all) c200s have the radio hardware even if you can't use it with the original firmware... git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14963 a1c6a512-1295-4272-9138-f99709370657
2007-10-02Enable lcd contrast adjustment on Sansa c200Mark Arigo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14945 a1c6a512-1295-4272-9138-f99709370657
2007-09-28Skip spindown and delay on flash targetsBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14877 a1c6a512-1295-4272-9138-f99709370657