summaryrefslogtreecommitdiffstats
path: root/firmware/export/as3525.h
AgeCommit message (Collapse)AuthorFilesLines
2011-12-13Move usb-s3c6400 register comments to usb-s3c6400.hRafaël Carré1-0/+1
Use common defines in usb-s3c6400.c and usb-drv-as3525v2.c No functional changes git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31220 a1c6a512-1295-4272-9138-f99709370657
2011-12-10AMS(v2): fix system_reboot by re-enabling the internal ROM clock just before ↵Bertrik Sikken1-0/+1
rebooting git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31196 a1c6a512-1295-4272-9138-f99709370657
2011-12-08AS3525v1/v2:Michael Sevakis1-1/+0
Fix problems with volume of recorded material by converting 14-bit samples to 16-bit. Remove duplicate samples from recorded data and support proper samplerate since ADC runs 1/2 the codec clock. Support monitoring mono on both output channels by feeding data manually to I2SOUT under the right conditions. DMA is no longer used for recording since frames must be processed as described above but it does allow full-duplex audio. Miscellaneous change includes a proper constant (HW_SAMPR_DEFAULT) to reset the hardware samplerate when recording is closed. PP5024 and AS3525 have different default recording rates (22kHz and 44kHz respectively) but both have half-speed ADC. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31180 a1c6a512-1295-4272-9138-f99709370657
2011-01-20Fuze V2: Fix hold switch behavior. Add a GPIOx_PIN_MASK macro to AS3525.Michael Sevakis1-1/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29096 a1c6a512-1295-4272-9138-f99709370657
2010-07-22CCU_BASE+0x20 is specific to AMSv2 -> move to as3525v2.hRafaël Carré1-1/+0
Rename to simply 'CCU_USB' git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27518 a1c6a512-1295-4272-9138-f99709370657
2010-06-18as3525*: enable MMU in bootloaderRafaël Carré1-1/+0
Reserve 1MB of DRAM for loading rockbox and use the rest as BSS Write sdram setup in assembler and move it to a separate file, together with MMU init code git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26926 a1c6a512-1295-4272-9138-f99709370657
2010-05-26as3525: write irq/fiq handlers in CRafaël Carré1-3/+3
Declare VIC registers holding function pointers as volatile pointers to function pointers and access them directly without casting UIRQ() is an IRQ handler too, even if it doesn't return git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26313 a1c6a512-1295-4272-9138-f99709370657
2010-05-19as3525: don't use IRAM for usb, and avoid usb storage using uncached ↵Rafaël Carré1-2/+2
addresses behind our back No need for special address handling, all addresses are equal to their physical address git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26176 a1c6a512-1295-4272-9138-f99709370657
2010-05-18Enable/disable second pll dynamically on usb plugin/remove.Tobias Diedrich1-0/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26145 a1c6a512-1295-4272-9138-f99709370657
2010-05-18as3525v2: add usb driver stub, enable usb phy&core initAmaury Pouly1-0/+1
clip+: add USBOTG_ define and enable usb stack git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26132 a1c6a512-1295-4272-9138-f99709370657
2010-05-13as3525: use DMA for recordingRafaël Carré1-0/+1
Flyspray: FS#11257 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25980 a1c6a512-1295-4272-9138-f99709370657
2010-04-13s5l870x : use mmu-arm.SRafaël Carré1-0/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25634 a1c6a512-1295-4272-9138-f99709370657
2010-04-03Clipv2: fix grey lcd outputRafaël Carré1-0/+1
We can write to DBOP_DOUT in 8 bits mode : bits 7..0 are mapped to the LCD, not bits 15..12 and 3..0 like on Clipv1 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25455 a1c6a512-1295-4272-9138-f99709370657
2010-02-06as3525: add a few more CGU_PERI definitionsBertrik Sikken1-2/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24537 a1c6a512-1295-4272-9138-f99709370657
2010-02-05Untested attempt at a Clip+ LCD driver using SSP (PrimeCell PL022)Rafaël Carré1-0/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24523 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Fix more tabsAndree Buschmann1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24154 a1c6a512-1295-4272-9138-f99709370657
2009-11-24Sansa AMS : fix recordingRafaël Carré1-0/+9
Flyspray: FS#10371 Authors: Fred Bauer and myself Only enabled on e200v2 and Fuze (crashes on clipv1) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23739 a1c6a512-1295-4272-9138-f99709370657
2009-11-01Sansa AMS recording support (Microphone and FM)Rafaël Carré1-0/+11
Still disabled on all targets: - Fuze and e200v2 see spurious interrupts with no source defined - Clip/m200v4 deadlock instantly when starting recording (perhaps due to low memory size) Having the code in SVN will make working on this feature easier Also add keymaps for Fuze, and correct Frequency section of recording options : the 22.05kHz limitation of e200v1 and c200v1 doesn't apply to Sansa AMS (different I2S hardware, unrelated to as3514) Flyspray: FS#10371 Authors: Fred Bauer and myself git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23476 a1c6a512-1295-4272-9138-f99709370657
2009-08-31Speed up the Fuze's LCD by a factor of ~2.1 (lcd_update()) by using 32bit ↵Thomas Martitz1-1/+4
transfers when possible. Unaligned (to 4byte boundary) and odd (where the amount of data is not an integer multiple of 32bit) are still supported. Even those still have a speedup of >2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22574 a1c6a512-1295-4272-9138-f99709370657
2009-07-12Correct svn:keywords and svn:eol-style on a few more files.Thomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21798 a1c6a512-1295-4272-9138-f99709370657
2009-07-06Samsa AMS: start of an USB driver (nothing working atm)Rafaël Carré1-0/+4
Work based on AMD 5536 linux driver and AMD Geode CS5536 datasheet Rockbox still doesn't reboot on USB insert git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21689 a1c6a512-1295-4272-9138-f99709370657
2009-06-29Put TIMER_FREQ definition in CPU-specific config, and remove timer-target.hRafaël Carré1-0/+3
Note : SH has TIMER_FREQ defined to CPU_FREQ, so any code wanting it must include #config.h before #cpu.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21560 a1c6a512-1295-4272-9138-f99709370657
2009-06-08FS#10048 : enable MMU and data cache on Sansa AMS to give a major speed upRafaël Carré1-4/+8
- cache IRAM and DRAM - map IRAM just next to DRAM to remove the need for -mlong-calls and reduce binsize - tweak delays in Fuze button code - tweak delays in Clip button code (down button sometimes doesn't respond anyway : an alternate driver is being worked on) Before reporting any problem, please check your filesystem or format your player from the OF git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21228 a1c6a512-1295-4272-9138-f99709370657
2009-05-22Sansa AMS : remove misleading commentRafaël Carré1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21030 a1c6a512-1295-4272-9138-f99709370657
2009-05-20Sansa AMS: Centralise mapping of RAM and IRAM in as3525.h via #defines. This ↵Thomas Martitz1-0/+18
will hopefully make ongoing mmu work easier as less places need to be changed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21000 a1c6a512-1295-4272-9138-f99709370657
2009-02-25DBOP_DIN is 16bit wide.Thomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20102 a1c6a512-1295-4272-9138-f99709370657
2009-01-27Redo some parts of my previous commit, thanks Jens and DaveThomas Martitz1-0/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19869 a1c6a512-1295-4272-9138-f99709370657
2009-01-18Commit second part of FS#9663 by Thomas Martitz. Enable button light on ↵Michael Giacomelli1-0/+1
fuze and e200v2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19792 a1c6a512-1295-4272-9138-f99709370657
2008-12-30Implemented system_reboot().Björn Stenberg1-0/+6
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19617 a1c6a512-1295-4272-9138-f99709370657
2008-12-15Apply FS#9650 (by Thomas Martitz). This adds hotswap and microSD support for ↵Frank Gevaerts1-4/+32
the Fuze. It doesn't seem to work for all cards yet. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19447 a1c6a512-1295-4272-9138-f99709370657
2008-12-05Sansa AMS: use vectored interruptsRafaël Carré1-1/+30
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19351 a1c6a512-1295-4272-9138-f99709370657
2008-11-28Sansa AMS: I2SOUT registers definitionsRafaël Carré1-1/+10
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19251 a1c6a512-1295-4272-9138-f99709370657
2008-11-06AS3525: implement tick_start() with TIMER2Rafaël Carré1-0/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19027 a1c6a512-1295-4272-9138-f99709370657
2008-11-06AS3525: timer supportRafaël Carré1-6/+7
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19025 a1c6a512-1295-4272-9138-f99709370657
2008-11-02AS3525 : fix interrupts support (but leave them disabled)Rafaël Carré1-1/+42
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18979 a1c6a512-1295-4272-9138-f99709370657
2008-10-28Sansav2 : initializes SDRAMRafaël Carré1-0/+35
The AS3525 SoC ships with an ARM PL172 MPMC controller Also correct the memory sizes in tools/configure git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18899 a1c6a512-1295-4272-9138-f99709370657
2008-10-19The GPIO registers are 8-bit, so define them as such.Dave Chapman1-8/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18835 a1c6a512-1295-4272-9138-f99709370657
2008-10-12Commit FS#9467 - initial work on port to Sansa Clip by Rafaël Carré and ↵Dave Chapman1-0/+315
François Dinel. A few cosmetic changes were made by me prior to committing: 1) TAB policing in button-clip.c; 2) Add François Dinel to CREDITS; 3) Add François Dinel as (C) holder in button-target.h (it was previously blank); 4) Add Rockbox header to bootloader/sansa_as3525.c with Rafaël Carré as (C) holder; 5) Change target_id to 50 (next available number) in tools/configure and fixed indentation; 6) Change MODEL_NUMBER in config-clip.h to 50 (next available number); 7) Remove unused in/out macros from system-target.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18782 a1c6a512-1295-4272-9138-f99709370657