summaryrefslogtreecommitdiff
path: root/firmware/target/arm/ipod (follow)
Commit message (Collapse)AuthorAge
* nano2g: fix dangerous mutex in hold switchCástor Muñoz2017-02-04
| | | | | | | | | This is a quick patch to solve FS#13104, we can not disable the clickwheel LDO from within interrupt code, so for the moment we leave it enabled all the time, it is unknown how power comsumption is affected when the hold switch is locked. Change-Id: I8f675702e2b5becbcd9197c8b044e6b8daeea79f
* iPod Classic: use PMU interrupts to detect hold switchCástor Muñoz2016-05-26
| | | | | | | Finally the hold switch workaround is removed and it is detected in the same way as OF does. Change-Id: Iceac6ca48ffd131b8ee9f62ffdc2b3e30eb02042
* iPod Classic: clickwheel fixesCástor Muñoz2015-12-17
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix red/yellowMarcin Bukat2015-01-12
| | | | Change-Id: Ie01251af2cd843979b5fdefcfa541ba377d13bd7
* Get rid of stupid _backlight_* function namesMarcin Bukat2015-01-12
| | | | | | _remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
* iPod Classic: Fix bidirectional clickwheel communication.Steffen Butzer2014-10-02
| | | | | | | | | | | | | | | | | | | This restores functionality that was broken in g#194 and committed as revision 7ec426e497daa1b4a6082bf4e4e3df687b11db44. Bidirectional communication is required to ask the clickwheel controller for the initial button state during boot. Otherwise our driver would only know about pressed buttons when the first change event is received, which is too late for e.g. prevention of USB connection during boot. This fix is also required to support the selection of OF, Rockbox, Disk Mode, etc. in the iPod Classic Rockbox bootloader. Change-Id: I127d54cf9e630d8075dd6d66f95dacb2816bfbc8 Reviewed-on: http://gerrit.rockbox.org/938 Reviewed-by: Michael Sparmann <theseven@gmx.net> Tested: Michael Sparmann <theseven@gmx.net> Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
* Combine PortalPlayer .lds files into one for app and boot.Michael Sevakis2013-07-19
| | | | | | | | These nearly identical files are multiplying like rabbits as PP targets are added and make SoC-related changes a PITA. Just include the master .lds file from the target one as was done for bootloader USB. Change-Id: I65e9e653030f0688b1728e32ada16abf2932e029
* Make INITDATA_ATTR work on everything that has INIT_ATTR enabled for code.Michael Sevakis2012-05-01
| | | | Change-Id: If9936bfbbd3bc3eb2a3e3e290701b8517eabfb13
* Classic/6G: click wheel controller powersaveCástor Muñoz2012-03-31
| | | | | | | Mask click wheel controller clock gate when the hold switch is in the locked position Change-Id: I9de33db189afdb76cc5057e4c0e7efc587cf762b
* Classic/6G: hold switch detection using GPIOCástor Muñoz2012-03-28
| | | | | | | | | Configures GPIO ports to detect holdswitch status instead of polling the PMU via I2C, this fixes some random crashes Change-Id: I407c9ca4c2c9203842f9e774b1c8d0455d59048c Reviewed-on: http://gerrit.rockbox.org/194 Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
* lcd drivers: Convert lcd_[remote_]framebuffer to a pointerJonathan Gordon2012-02-28
| | | | | | | | | | Change all lcd drivers to using a pointer to the static framebuffer instead of directly accessing the static array. This will let us later do fun things like dynamic framebuffer sizes (RaaA) or ability to use different buffers for different layers (dynamic skin backdrops!) Change-Id: I0a4d58a9d7b55e6c932131b929e5d4c9f9414b06
* button-target.h : move prototypes to button.hRafaël Carré2012-01-08
| | | | | | no need to define BUTTON_REMOTE anymore git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31620 a1c6a512-1295-4272-9138-f99709370657
* Rework powermgmt to enable code re-use on appliation and sims.Thomas Martitz2012-01-03
| | | | | | | | | | | | | | | | | | | | | * Introduce CONFIG_BATTERY_MEASURE define, to allow targets (application) to break powermgmt.c's assumption about the ability to read battery voltage. There's now additionally percentage (android) and remaining time measure (maemo). No measure at all also works (sdl app). If voltage can't be measured, then battery_level() is king and it'll be used for power_history and runtime estimation. * Implement target's API in the simulator, i.e. _battery_voltage(), so it doesn't need to implement it's own powermgmt.c and other stubs. Now the sim behaves much more like a native target, although it still changes the simulated battery voltage quickly, * Other changes include include renaming battery_adc_voltage() to _battery_voltage(), for consistency with the new target functions and making some of the apps code aware that voltage and runtime estimation is not always available. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31548 a1c6a512-1295-4272-9138-f99709370657
* Fix path to PP crt0Rafaël Carré2012-01-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31534 a1c6a512-1295-4272-9138-f99709370657
* Add KEEP() around vectors in linker scripts.Boris Gjenero2011-12-18
| | | | | | | | | | | Vectors are needed by the CPU, but they don't need to be accessed by Rockbox. Without the KEEP(), they can be removed when liking with --gc-sections, creating a broken binary without any warnings. This tells the linker to not remove them. It should enable use of --gc-sections for all targets. When not using --gc-sections, this does not change the binary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31351 a1c6a512-1295-4272-9138-f99709370657
* FS#12397 : On targets which load .data directly into its final location and ↵Boris Gjenero2011-11-22
| | | | | | lack code for moving it, remove linker script trick which ignores section alignment and word-aligns the section instead. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31041 a1c6a512-1295-4272-9138-f99709370657
* Fix the gpl notice in the previous commits new files, and fix the yelow ↵Jonathan Gordon2011-11-16
| | | | | | gevearts naughtily ignored git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30996 a1c6a512-1295-4272-9138-f99709370657
* Finally commit FS#5111 - piezo clicker for ipods!Jonathan Gordon2011-11-16
| | | | | | Origional implementation by Robert Keevil with contributions from Frederik Vestre, Stoyan Stratev, Craig Elliott, Michael Sparmann, Thomas Schott, Rosso Maltese, and syncs from a bunch of other people! git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30995 a1c6a512-1295-4272-9138-f99709370657
* Make local functions and variables static where possibleBertrik Sikken2011-11-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30897 a1c6a512-1295-4272-9138-f99709370657
* ipod nano 1g: enable readout of battery current through ADC channel 4066_ISTATBertrik Sikken2011-07-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30204 a1c6a512-1295-4272-9138-f99709370657
* ipod nano 1g: enable LCD invertBertrik Sikken2011-07-20
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30182 a1c6a512-1295-4272-9138-f99709370657
* Set the default battery capacity for ipod video properly depending on ↵Frank Gevaerts2011-07-19
| | | | | | | | | detected RAM size. Also set up a callback for the battery capacity setting (for all players) so changes take effect without having to reboot. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30170 a1c6a512-1295-4272-9138-f99709370657
* Remove superfluous executable bits on a bunch of files.Torne Wuff2011-06-08
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29986 a1c6a512-1295-4272-9138-f99709370657
* ipod6g: make functions and variables static where possibleBertrik Sikken2011-04-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29767 a1c6a512-1295-4272-9138-f99709370657
* Merge functionality of wakeups and semaphores-- fewer APIs and object types. ↵Michael Sevakis2011-03-02
| | | | | | semaphore_wait takes a timeout now so codecs and plugins have to be made incompatible. Don't make semaphores for targets not using them. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29492 a1c6a512-1295-4272-9138-f99709370657
* iPod Nano2g/Classic clickwheel: Configure GPIO pins as Hi-Z while hold ↵Michael Sparmann2011-02-10
| | | | | | switch is engaged git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29276 a1c6a512-1295-4272-9138-f99709370657
* Fix more red. Two had been hiding.Michael Sparmann2011-02-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29274 a1c6a512-1295-4272-9138-f99709370657
* Fix redMichael Sparmann2011-02-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29273 a1c6a512-1295-4272-9138-f99709370657
* iPod Nano 2G: Fix current leak through clickwheel GPIOs when clickwheel is ↵Michael Sparmann2011-02-10
| | | | | | powered down git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29272 a1c6a512-1295-4272-9138-f99709370657
* iPod Classic: Fix current leak through clickwheel GPIOs when clickwheel is ↵Michael Sparmann2011-02-10
| | | | | | powered down git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29267 a1c6a512-1295-4272-9138-f99709370657
* iPod Classic: This time really fix the hold switch. Read it out through the ↵Michael Sparmann2011-02-09
| | | | | | power manager, and cache the result for 100 milliseconds because the power manager doesn't like being spammed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29264 a1c6a512-1295-4272-9138-f99709370657
* iPod Classic: Fix hold switch glitchesMichael Sparmann2011-02-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29242 a1c6a512-1295-4272-9138-f99709370657
* Simplify x0/x1 calculation for iPod Color some more, and fix display on type ↵Jens Arnold2011-01-23
| | | | | | 0 LCD (iPod Photo). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29120 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#11820. Implement LCD shutdown for iPod Photo/Color and iPod nano 1G. ↵Andree Buschmann2011-01-12
| | | | | | The code was taken from FS#10034 and slightly changed to avoid white flashing when shutting off the display. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29033 a1c6a512-1295-4272-9138-f99709370657
* Revert unneeded change from r29026.Andree Buschmann2011-01-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29027 a1c6a512-1295-4272-9138-f99709370657
* iPod Video LCD: Avoid white flash when entering sleep mode or shutting off.Andree Buschmann2011-01-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29026 a1c6a512-1295-4272-9138-f99709370657
* Implement hold switch and headphone detection on iPod ClassicMichael Sparmann2011-01-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29001 a1c6a512-1295-4272-9138-f99709370657
* Remove unneeded check for swapping in iPod nano1G/color LCD driver. For ↵Andree Buschmann2011-01-03
| | | | | | nano1G and color yo/y1 this swap never happened, for color x0/x1 it was always swapped. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28956 a1c6a512-1295-4272-9138-f99709370657
* Submit FS#11843 v17. Integrate YUV-blitting of nano 2G to nano1G/color LCD ↵Andree Buschmann2011-01-02
| | | | | | driver. Additionally refactor RGB and YUV screen updates to use same code fragments and save some binsize. YUV speedup is +3-4%, RGB 1/4 screen +2%. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28944 a1c6a512-1295-4272-9138-f99709370657
* Submitted the wrong file with r28933.Andree Buschmann2010-12-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28934 a1c6a512-1295-4272-9138-f99709370657
* Major speedup of iPod nano 2G. Part 7: Disable reading FIFO state in YUV ↵Andree Buschmann2010-12-30
| | | | | | blitting. Speedup is +19% for YUV. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28933 a1c6a512-1295-4272-9138-f99709370657
* Speed up of iPod nano 1G and iPod color LCD. Use HDD6330 asm part for YUV ↵Andree Buschmann2010-12-29
| | | | | | blitting, introduce special handling for full width screen updates. Speed up is about +30% for YUV on both color/nano1G. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28930 a1c6a512-1295-4272-9138-f99709370657
* Fix headphone detection on iPod Nano 2G being inverted (regression from r28800)Michael Sparmann2010-12-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28843 a1c6a512-1295-4272-9138-f99709370657
* iPod Nano 2G: Correct clickwheel interrupt handler name, this time consistently.Michael Sparmann2010-12-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28807 a1c6a512-1295-4272-9138-f99709370657
* Fix bug introduced with r28800 (missing interrupt handler).Andree Buschmann2010-12-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28806 a1c6a512-1295-4272-9138-f99709370657
* usb-s3c6400x.[ch], button-clickwheel.c: Move s5l8701-specific parts to where ↵Michael Sparmann2010-12-12
| | | | | | they belong, prepare for s5l8702 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28800 a1c6a512-1295-4272-9138-f99709370657
* Commit FS#11663 by me - Patch: iPod Nano 2G Bootloader: Boot OF if MENU ↵Michael Sparmann2010-10-10
| | | | | | button is held git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28237 a1c6a512-1295-4272-9138-f99709370657
* Disable clickwheel power supply when hold button is active for iPod nano 2G.Andree Buschmann2010-09-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28161 a1c6a512-1295-4272-9138-f99709370657
* */app.lds: remove STUBOFFSETRafaël Carré2010-09-20
| | | | | | | | | This is related to gdb, and gdb can only work on SH and ifp This was mistakenly kept when app.lds was forked for each SoC Side-effect: fix DEBUG builds when the rockbox binary is expected to be loaded at the start of DRAM and there is no runtime relocation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28124 a1c6a512-1295-4272-9138-f99709370657
* Unify 32mb and 64mb ipod video builds - FS#11580Frank Gevaerts2010-08-31
| | | | | | | | Since memory on 32mb ipod videos is mapped twice, a 64mb build still has codecs and plugins mapped in a usable area. This means that all that needs to be done to support 32mb and 64mb boards with the same build is to adjust audiobufend to avoid using more than the actually present RAM. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27960 a1c6a512-1295-4272-9138-f99709370657