summaryrefslogtreecommitdiff
path: root/firmware
AgeCommit message (Collapse)Author
2016-04-20AMS: enable SD card support in bootloaderMihail Zenkov
With this changes rockbox can be loaded from SD card when internal storage can't be mount (due to hardware or software problem). Change-Id: I32b20d3f341566364def747a708a54ba6b4a7f8b
2016-04-13AMSv2: enable voltage scalingMihail Zenkov
Change-Id: I8d64b8578d28884e326f8b43100b3b4691f95acf
2016-04-07Fix (D)EBUG compilationMihail Zenkov
Change-Id: I5cb6d9ec3d14389b03ae43edb15b9c6199df322b
2016-04-07AMS: power off while charging enabledMihail Zenkov
Change-Id: Icddf1ea0a03f0426e0cf9b99f05ea065f532fed5
2016-04-06Red AlertMihail Zenkov
Change-Id: I5ddb6e6b4f84e036a7464b142fa9496446708beb
2016-04-06fix red againMihail Zenkov
Change-Id: I8e7ccbcf8a856bc3e08145a795695fb675794495
2016-04-06fix redMihail Zenkov
Change-Id: Iaec43120ef213d9a3c77201bdf50ebbedd1c5b76
2016-04-05as3525: reverting I2C2 to non-interrupts versionMihail Zenkov
Interrupts version is cause of freeze on USB extraction. Also non-interrupts version much simpler and faster. Change-Id: I30a2993cdcaa85abfba77ca06bfacd5b6b4353e2
2016-04-04Fix checking for CONFIG_CHARGINGMihail Zenkov
Change-Id: I53b9a129679fd7b322770025106ef92033226d2a
2016-04-04Don't add new message to logf when we dump it to fileMihail Zenkov
Fix log file corruption if we have new messages at dumping log to file. Comment removed as it incorrect. We store all messages in direct order (last message at end of file). Change-Id: I4acfa8a0935cc41a889e08f6bc42974fefd1ade2
2016-03-27Disable voltage scaling.Michael Giacomelli
Crashes immediately. Something was wrong with the last commit. Change-Id: Ie8a05095369a6312dc151e0a393e97d3a3fc7a09
2016-03-27Enable voltage scaling on AMSv2.Michael Giacomelli
Voltage is reduced when the CPU is unboosted, resulting in a large reduction in power consumption. In analogy with the AMSv1 voltage scaling code (currently disabled due to problems with SD cards), I have defined a config file option to enable/disable it. Change-Id: Ia89c31ec06dd012354b4d53435e7b5b36243b206
2016-03-27AMSv2: additional delay for voltage scalingMihail Zenkov
We need additional delay since ascodec_write_pmu() working faster in non-interrupts version of I2C2. Change-Id: If4af3e42b3c8e8214baa36e54353b8adb527552d
2016-03-27AMSv2: DBOP frequency divided by 2Mihail Zenkov
After setting new PCLK (96 Mhz) we have too high DBOP (96 / 16 = 6 MHz). According to datasheet DBOP should be maximum 4 MHz. Change-Id: I1cbec054f41a76a6f18eadccb902c5b174ad6e3a
2016-03-24Slightly increase VDD2 on AMSv2.Michael Giacomelli
The old value was unstable on some devices. Change-Id: I016906ec076384589bef9ece6156e0ee7b31609a
2016-03-18GUI boost for any buttonMihail Zenkov
It improve responsiveness for all targets with frequency scaling. Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
2016-03-18sd-as3525v2: prevent DTO error and DMA problemsMihail Zenkov
We should check sd_wait_for_tran_state() after transfering to prevent data timeout error. Also we should disable DMA channel manually. Should be used with g#1270, without it freezes still can occur on data transfering. Change-Id: If8c6e5547ab14d66237bccf65f83affc7a346e5e
2016-03-18Fix NUM_ADC_CHANNELS for AS3525v2Mihail Zenkov
Change-Id: If523d9fe24711ffe571623aae54f141f00b0ee41
2016-03-18sd-as3525v2: exit with error if transfer failureMihail Zenkov
Change-Id: Ic94cf7d3e058a876bbafdb5a35f26f240e1384fd
2016-03-18sd-as3525v2: Limit number of retryMihail Zenkov
With current setting we spend few minutes for reading one sector if we have data timeout error. With new setting system (linux) show error after ~10 seconds. Change-Id: Id3922acb2ea146c6ea2f89f26206df9488e6ee4e
2016-03-18usb-s3c6400x: prevent calling usb_enable(enable) twice on USB insertMihail Zenkov
First time we call usb_enable(enable) on USB_INSERTED event from usb_stack_enable() Change-Id: I76f66517e1d571ee02553972a7de8414e6f340ba
2016-03-18usb-s3c6400x: prevent lockup if usb extracted during data sendingMihail Zenkov
Change-Id: I5e87a9c47defa90e15800666e8ab4608ef5de299
2016-03-13HDD16X0: remove unnecessary define.Szymon Dziok
Change-Id: If0e8174044b71765190cca89f2e37104b9e673e4
2016-03-13HDD63X0: add a note about poweroff while charging to the config file.Szymon Dziok
Change-Id: I1e523dd3ddc5ddf198302cdb69cc90ad79df0563
2016-03-13HDD16X0: disable poweroff while charging, add a note to the config file why.Szymon Dziok
Change-Id: I90511b019f45d06e3154c986e1abf87a91d79570
2016-03-13HDD16X0: fix voltage values and simplify voltage calculation.Szymon Dziok
Change-Id: If3156c3d86145c66bc81e7cd371709ad91b8ee3c
2016-03-13HDD63X0: fix values for charging (based on OF).Szymon Dziok
Change-Id: I382b7a037bf9648f993a38d247725ec8c966147f
2016-02-16usb-s3c6400x: fix broken build for LOGF_ENABLECástor Muñoz
Change-Id: I4513425b887a0a79b03420ef82fd82bd90e7bafa
2016-02-14iPod Nano 2G and Classic: Fix power and charging detection.Michael Sparmann
This should allow FireWire charging to work on these devices. It also adds charging state detection on the iPod Classic. (cherry picked from commit fa86fec4fb089b47f5c2c3b1f2f3dbc97551895b) On Classic (and probably Nano 2G), it seems that the 100/500mA limit applies only to USB chargers, when FW is connected it supplies all the power (even if USB is also connected) and USB current limit does not affect to FW charging, therefore the limit is only set when USB is connected. Change-Id: I7c6bab1b6a0f295367999c45faeda6085c3fb091 Signed-off-by: Cástor Muñoz <cmvidal@gmail.com>
2016-02-14iPod Classic: fix buffer alignment on HDD driverCástor Muñoz
Read/write buffers who are aligned to 16 were not re-aligned to 32 as it should be. Althrough USB storage and buffering are always passing buffers aligned to 32, a few unaligned buffers are being received from other tasks, so this patch could solve some rare random issues. Also fixes DMA configuration for HDDs that support any MDMA mode but only UDMA0 (probably will never happen). Change-Id: I00219ae434205681c69293fc563e0526224c9adf
2016-02-14iPod Classic: fix build when ATA_HAVE_BBT is not definedCástor Muñoz
Change-Id: I186c24259cc28941ef21c54ae9ba23c1ba77133e
2016-02-14iPod Classic: ATA SMART updatesCástor Muñoz
- Add description for attributes supported by Samsung HS081HA (80Gb) and HS161JQ (CEATA 160Gb). - Show error code when ata_read_smart() fails. Change-Id: I618cc4f37d139fc90f596e2cf3a751346b27deb6
2016-02-14iPod Classic: fix USB_DEVBSS_ATTR alignmentCástor Muñoz
After previous commit 0b6647f2e9e5d21e80736eab7af33acecba28f38 this alignment should not be needed, but not sure at all, so it is aligned to cache line length for safety. Change-Id: I5b2b9a30c913d2a609acc1bdf30bdec6811a2551
2016-02-14usb-s3c6400x: set alignment for ep0_setup_pktCástor Muñoz
Align USB_DEVBSS buffers to 32 (as other USB drivers are doing), this could solve rare random memory corruption issues on iPod Classic. Change-Id: I86a28e10415eabedab7bf4a534530900284f81e5
2016-02-12as3514: fix bug in volume management on AS3543 targets which are not AS3525v2Amaury Pouly
Some old code made the assumption that CONFIG_CPU == AS3525v2 if and only if HAVE_AS3543, which is not true on targets like the Samsung YP-R0. This fixes several issues on such targets like a huge volume gap between -39dB and -40dB and a volume artificially capped at -72dB instead of -82dB. Change-Id: Ib1c883ac593c0c3ce5e2bf4eb408924ce5f5ad93
2016-02-01AS3543: Fix increasing noise and power consumption if booted through roloMihail Zenkov
Change-Id: I99fe6d09b15689e5dd0179714bbe363aed922d10
2016-01-29iPod Classic: revert "set initial USB current limit to 500mA"Cástor Muñoz
Reverts commit ead38dbc9df3f63bd4f870ff2365ba48876d5b46 It was introduced as a temporal workaround to avoid the endless restart loop when battery is low, but really it is useless. The bootloader should ensure that there is enough power to launch Rockbox even in the worst scenario. Change-Id: Iabebed40c9241af915c16c3c6c4d3c6deef7680e
2016-01-29iPod Classic: remove uninteresting info in HW debug screenCástor Muñoz
CPU type and frequency of the PLLs are fixed and have no interest at this moment. Change-Id: I9524127add872908c062a5cfa2fca348a03e846e
2016-01-25Replace SAMSUNG_YH920_PAD with YH92XSebastian Leonhardt
seems more logical to me, and is more consistent, since "SAMSUNG_YH92X_PAD" is already used in the tex files. Change-Id: Ie9a9d850ea86155a7dcf86c88a22a420a10a3837
2016-01-24Fix warning in rolo.Michael Giacomelli
Change-Id: Idb902f44a6aa2648e5cbd0e19ee2d14394479de8
2016-01-21Enable frequency scaling on AMSv2 devices.Mihail Zenkov
Voltage scaling is not yet enabled, but will follow once we are sure these changes are stable. Preliminary testing suggests a large increase in battery life, which will be further improved by voltage scaling. Patch by Mihail Zenkov with help from myself and others on the forums. Change-Id: I171d20bbee19a48c13cd14efb0d023883cc8c687
2016-01-18Make sure the system is boosted before enabling USB hardware.Michael Giacomelli
Change-Id: Ib44d29384f359dff24f0ce012667d9ce93328dc2
2016-01-18Increase button delays in preperation for frequency scaling.Michael Giacomelli
When run at lower clock speeds, delays seem to need to be a little longer in absolute time. Change-Id: I5373f43094302e6fa3f0a79126e54cfccd90f5a4
2016-01-18Change the clipv2 button driver to use fixed delays rather than processor ↵Michael Giacomelli
cycle counting. Also introduce a new delay needed for frequency scaling. Change-Id: I575a503a8ca44358fcd5512fd951fe9c7bbde31c
2016-01-12Samsung YH92X: Remove unneeded line.Szymon Dziok
Change-Id: Icc2618391e831af7bc1998f7627176315443bcdb
2016-01-12iPod Classic: fix wake-up from power-off on USB insertCástor Muñoz
Change-Id: I57897aa1bb98b652bc6c953680bf548648f5915b
2016-01-12iPod Classic: update documentation on PMU targetCástor Muñoz
Change-Id: I936889872f83521731e81a972657086a357bb5eb
2015-12-17iPod Classic: use uncached memory for USB driverCástor Muñoz
Change-Id: I0e72b4a452a17ec894c975dfee4baee878113ff8
2015-12-17iPod Classic: add non-cached memory regionCástor Muñoz
Configures uncached memory region and adds some defines for misc HW, for compability with the bootloader and other future use, current functionality should not be affected. Change-Id: I390e79bea1aef5b10dfbc72ad327d7fe438ec6f5
2015-12-17iPod Classic: clickwheel fixesCástor Muñoz
Uses GPIO.E2 (Request To Send) to detect the holdswitch status, it is a temporal workaround that seems to work on all models. Holdswitch status must be detected to drive low GPIO.E2 (RTS) and GPIO.E4 (Data Out) when the holdswitch is locked, otherwise battery life decreases about 25%. Holdswitch unlock action is detected by reading the HELLO message that the external wheel controller sends when it is powered on, this allows to quickly capture clickwheel activity after unlock. GPIO.E2 is also used in case the HELLO message is missed because the holdswitch was unlocked before Rockbox/bootloader starts. These 2 lines (RTS and DOUT) can not be used to transmit messages to the external clickwheel controller, not a problem, actually no messages are sent while normal operation, only at initialization stage. Change-Id: I415fe54bfcbc2086d0f56d7affe6f789ce81a6db