summaryrefslogtreecommitdiff
path: root/firmware (follow)
Commit message (Collapse)AuthorAge
...
* Add UART suuport for s5l8700 and s5l8701Cástor Muñoz2016-05-13
| | | | | | | | | Add UART support for s5l8700/1 using the UC870X UART controller, actually the functionallity is disabled and must be enabled for each individual target. Tested on iPod Nano 2G (s5l8701), not tested on s5l8700. Change-Id: Ic0f216bb871502d355a70e4b658e536a2c0976a9
* iPod Classic: updates for uc8702 driverCástor Muñoz2016-05-13
| | | | | | | | | | - Small rework on the UC8702 UART controller to make it compatible with other s5l870x SOCs. Files moved and renamed, many conditional code added to deal with capabilities and 'features' of the different CPUs. - A couple of optimizacions that should not affect the functionality. Change-Id: I705169f7e8b18d5d1da642f81ffc31c4089780a6
* Update runtime estimation after recent power optimizations.Michael Giacomelli2016-04-22
| | | | | | | Values taken from Mihail's Clip Zip, should be similar on all AMSv2 devices. Change-Id: I9432ecffea94afae224391a86f1d3fa46cd87bc0
* Fix AMSv2 variant 1 detection if rockbox loaded from SD cardMihail Zenkov2016-04-22
| | | | Change-Id: Ie7c9c06170601e109f8d3de9686773c38a6e224a
* AMS: enable SD card support in bootloaderMihail Zenkov2016-04-20
| | | | | | | 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
* AMSv2: enable voltage scalingMihail Zenkov2016-04-13
| | | | Change-Id: I8d64b8578d28884e326f8b43100b3b4691f95acf
* Fix (D)EBUG compilationMihail Zenkov2016-04-07
| | | | Change-Id: I5cb6d9ec3d14389b03ae43edb15b9c6199df322b
* AMS: power off while charging enabledMihail Zenkov2016-04-07
| | | | Change-Id: Icddf1ea0a03f0426e0cf9b99f05ea065f532fed5
* Red AlertMihail Zenkov2016-04-06
| | | | Change-Id: I5ddb6e6b4f84e036a7464b142fa9496446708beb
* fix red againMihail Zenkov2016-04-06
| | | | Change-Id: I8e7ccbcf8a856bc3e08145a795695fb675794495
* fix redMihail Zenkov2016-04-06
| | | | Change-Id: Iaec43120ef213d9a3c77201bdf50ebbedd1c5b76
* as3525: reverting I2C2 to non-interrupts versionMihail Zenkov2016-04-05
| | | | | | | Interrupts version is cause of freeze on USB extraction. Also non-interrupts version much simpler and faster. Change-Id: I30a2993cdcaa85abfba77ca06bfacd5b6b4353e2
* Fix checking for CONFIG_CHARGINGMihail Zenkov2016-04-04
| | | | Change-Id: I53b9a129679fd7b322770025106ef92033226d2a
* Don't add new message to logf when we dump it to fileMihail Zenkov2016-04-04
| | | | | | | | 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
* Disable voltage scaling.Michael Giacomelli2016-03-27
| | | | | | Crashes immediately. Something was wrong with the last commit. Change-Id: Ie8a05095369a6312dc151e0a393e97d3a3fc7a09
* Enable voltage scaling on AMSv2.Michael Giacomelli2016-03-27
| | | | | | | | | 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
* AMSv2: additional delay for voltage scalingMihail Zenkov2016-03-27
| | | | | | | We need additional delay since ascodec_write_pmu() working faster in non-interrupts version of I2C2. Change-Id: If4af3e42b3c8e8214baa36e54353b8adb527552d
* AMSv2: DBOP frequency divided by 2Mihail Zenkov2016-03-27
| | | | | | | 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
* Slightly increase VDD2 on AMSv2.Michael Giacomelli2016-03-24
| | | | | | The old value was unstable on some devices. Change-Id: I016906ec076384589bef9ece6156e0ee7b31609a
* GUI boost for any buttonMihail Zenkov2016-03-18
| | | | | | It improve responsiveness for all targets with frequency scaling. Change-Id: I72c94daf58cee10c1772decbd0443856c111cc47
* sd-as3525v2: prevent DTO error and DMA problemsMihail Zenkov2016-03-18
| | | | | | | | | | 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
* Fix NUM_ADC_CHANNELS for AS3525v2Mihail Zenkov2016-03-18
| | | | Change-Id: If523d9fe24711ffe571623aae54f141f00b0ee41
* sd-as3525v2: exit with error if transfer failureMihail Zenkov2016-03-18
| | | | Change-Id: Ic94cf7d3e058a876bbafdb5a35f26f240e1384fd
* sd-as3525v2: Limit number of retryMihail Zenkov2016-03-18
| | | | | | | 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
* usb-s3c6400x: prevent calling usb_enable(enable) twice on USB insertMihail Zenkov2016-03-18
| | | | | | First time we call usb_enable(enable) on USB_INSERTED event from usb_stack_enable() Change-Id: I76f66517e1d571ee02553972a7de8414e6f340ba
* usb-s3c6400x: prevent lockup if usb extracted during data sendingMihail Zenkov2016-03-18
| | | | Change-Id: I5e87a9c47defa90e15800666e8ab4608ef5de299
* HDD16X0: remove unnecessary define.Szymon Dziok2016-03-13
| | | | Change-Id: If0e8174044b71765190cca89f2e37104b9e673e4
* HDD63X0: add a note about poweroff while charging to the config file.Szymon Dziok2016-03-13
| | | | Change-Id: I1e523dd3ddc5ddf198302cdb69cc90ad79df0563
* HDD16X0: disable poweroff while charging, add a note to the config file why.Szymon Dziok2016-03-13
| | | | Change-Id: I90511b019f45d06e3154c986e1abf87a91d79570
* HDD16X0: fix voltage values and simplify voltage calculation.Szymon Dziok2016-03-13
| | | | Change-Id: If3156c3d86145c66bc81e7cd371709ad91b8ee3c
* HDD63X0: fix values for charging (based on OF).Szymon Dziok2016-03-13
| | | | Change-Id: I382b7a037bf9648f993a38d247725ec8c966147f
* usb-s3c6400x: fix broken build for LOGF_ENABLECástor Muñoz2016-02-16
| | | | Change-Id: I4513425b887a0a79b03420ef82fd82bd90e7bafa
* iPod Nano 2G and Classic: Fix power and charging detection.Michael Sparmann2016-02-14
| | | | | | | | | | | | | | | | 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>
* iPod Classic: fix buffer alignment on HDD driverCástor Muñoz2016-02-14
| | | | | | | | | | | | 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
* iPod Classic: fix build when ATA_HAVE_BBT is not definedCástor Muñoz2016-02-14
| | | | Change-Id: I186c24259cc28941ef21c54ae9ba23c1ba77133e
* iPod Classic: ATA SMART updatesCástor Muñoz2016-02-14
| | | | | | | | - Add description for attributes supported by Samsung HS081HA (80Gb) and HS161JQ (CEATA 160Gb). - Show error code when ata_read_smart() fails. Change-Id: I618cc4f37d139fc90f596e2cf3a751346b27deb6
* iPod Classic: fix USB_DEVBSS_ATTR alignmentCástor Muñoz2016-02-14
| | | | | | | | 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
* usb-s3c6400x: set alignment for ep0_setup_pktCástor Muñoz2016-02-14
| | | | | | | 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
* as3514: fix bug in volume management on AS3543 targets which are not AS3525v2Amaury Pouly2016-02-12
| | | | | | | | | 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
* AS3543: Fix increasing noise and power consumption if booted through roloMihail Zenkov2016-02-01
| | | | Change-Id: I99fe6d09b15689e5dd0179714bbe363aed922d10
* iPod Classic: revert "set initial USB current limit to 500mA"Cástor Muñoz2016-01-29
| | | | | | | | | | | 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
* iPod Classic: remove uninteresting info in HW debug screenCástor Muñoz2016-01-29
| | | | | | | CPU type and frequency of the PLLs are fixed and have no interest at this moment. Change-Id: I9524127add872908c062a5cfa2fca348a03e846e
* Replace SAMSUNG_YH920_PAD with YH92XSebastian Leonhardt2016-01-25
| | | | | | | seems more logical to me, and is more consistent, since "SAMSUNG_YH92X_PAD" is already used in the tex files. Change-Id: Ie9a9d850ea86155a7dcf86c88a22a420a10a3837
* Fix warning in rolo.Michael Giacomelli2016-01-24
| | | | Change-Id: Idb902f44a6aa2648e5cbd0e19ee2d14394479de8
* Enable frequency scaling on AMSv2 devices.Mihail Zenkov2016-01-21
| | | | | | | | | | 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
* Make sure the system is boosted before enabling USB hardware.Michael Giacomelli2016-01-18
| | | | Change-Id: Ib44d29384f359dff24f0ce012667d9ce93328dc2
* Increase button delays in preperation for frequency scaling.Michael Giacomelli2016-01-18
| | | | | | | When run at lower clock speeds, delays seem to need to be a little longer in absolute time. Change-Id: I5373f43094302e6fa3f0a79126e54cfccd90f5a4
* Change the clipv2 button driver to use fixed delays rather than processor ↵Michael Giacomelli2016-01-18
| | | | | | | | cycle counting. Also introduce a new delay needed for frequency scaling. Change-Id: I575a503a8ca44358fcd5512fd951fe9c7bbde31c
* Samsung YH92X: Remove unneeded line.Szymon Dziok2016-01-12
| | | | Change-Id: Icc2618391e831af7bc1998f7627176315443bcdb
* iPod Classic: fix wake-up from power-off on USB insertCástor Muñoz2016-01-12
| | | | Change-Id: I57897aa1bb98b652bc6c953680bf548648f5915b