summaryrefslogtreecommitdiff
path: root/firmware/target/arm/iriver (follow)
Commit message (Collapse)AuthorAge
* Get rid of stupid _backlight_* function namesMarcin Bukat2015-01-12
| | | | | | _remote_backlight_* and _buttonlight_* are cleaned as well Change-Id: I73653752831bbe170c26ba95d3bc04c2e3a5cf30
* 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
* 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
* lcd: fix function name in comments in assembly files (lcd_write_yup_420 ↵Amaury Pouly2012-01-11
| | | | instead of lcd_write_yuv420)
* 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
* move PP specific files to pp/Rafaël Carré2012-01-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31533 a1c6a512-1295-4272-9138-f99709370657
* Fix FS#12243 : On 20GB H10, restore correct upside down state when waking LCD.Boris Gjenero2012-01-01
| | | | | | | | | | | In lcd_power_on(), R_DRV_OUTPUT_CONTROL and R_GATE_SCAN_START_POS are now initialized like in lcd_set_flip(), so the display wakes up properly when it is supposed to be upside down. Thanks to Neil Sharrow for reporting the problem and testing the patch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31514 a1c6a512-1295-4272-9138-f99709370657
* delete usb-target.h content redundant with PP usb-target.hRafaël Carré2011-12-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31492 a1c6a512-1295-4272-9138-f99709370657
* usb_plugged() is PP onlyRafaël Carré2011-12-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31489 a1c6a512-1295-4272-9138-f99709370657
* move usb_pin_init() declaration to PP's system-target.hRafaël Carré2011-12-31
| | | | | | | remove duplicate usb_detect() declaration Remove all content from empty usb-target.h files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31488 a1c6a512-1295-4272-9138-f99709370657
* usb_init_device(): move prototype to usb.hRafaël Carré2011-12-31
| | | | | | Get rid of some usb-target.h files git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31487 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
* Convert PortalPlayer iRivers to use USB-mode enabled bootloader. The H10 ↵Michael Sevakis2011-01-17
| | | | | | 5/6GB already has a pre-boot USB mode (so it's a little redundant there) but building them the same way is simpler. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29067 a1c6a512-1295-4272-9138-f99709370657
* Fix r29053 red and a leftover use of 'usb' variable as a bool rather than ↵Michael Sevakis2011-01-15
| | | | | | int in main-pp.c. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29054 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
* FS#11335 by me: make ARM assembly functions thumb-friendlyRafaël Carré2010-06-11
| | | | | | | | | | | | | We can't pop into pc on ARMv4t when using thumb: the T bit won't be modified if we are returning to a thumb function Code running on ARMv4t should use the new ldrpc / ldmpc macros instead of ldr pc, [sp], #4 and ldm(cond) sp!, {regs, pc} No modification on pure ARM builds and ARMv5+ Note: USE_THUMB is currently never defined, no targets can currently be built with -mthumb, see FS#6734 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26756 a1c6a512-1295-4272-9138-f99709370657
* YUV Dither: r12 saving was removed but stacked parameter load offset wasn't ↵Michael Sevakis2010-05-15
| | | | | | changed to compensate, resulting in an improperly aligned dither kernel. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26064 a1c6a512-1295-4272-9138-f99709370657
* Update battery discharge curve and current consumption for iRiver h10 5GB. ↵Andree Buschmann2010-03-21
| | | | | | Thanks to Danny Attar for measuring. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25279 a1c6a512-1295-4272-9138-f99709370657
* Fix a bunch of boot.lds files so that they build with newer ld. The ↵Thomas Martitz2010-03-08
| | | | | | stack/bss sections need NOLOAD. otherwise the linker would try to include those into the binary. I don't know why this ever worked with our current ld version. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25078 a1c6a512-1295-4272-9138-f99709370657
* Fix remaining reds. I forgot to change the app.lds of the other PP targets ↵Thomas Martitz2010-03-03
| | | | | | (it's the same file as for e200/c200 though). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25016 a1c6a512-1295-4272-9138-f99709370657
* Fix tabsAndree Buschmann2010-01-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24153 a1c6a512-1295-4272-9138-f99709370657
* Convert lcd_activation callbacks to use the event system to allow for ↵Thomas Martitz2009-10-20
| | | | | | | | | multiple parallel callbacks (for custom statusbar). Increase maximum event count as we need more (I actually had a report about it during custom statusbar testing). Removed corresponding functions from the core and plugin api. Bump min version and sort. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23302 a1c6a512-1295-4272-9138-f99709370657
* Various files: make functions static if they're local or make sure there is ↵Bertrik Sikken2009-08-06
| | | | | | a proper #include if not git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22184 a1c6a512-1295-4272-9138-f99709370657
* ARM asm LCD and ATA driver functions: Don't save r12 as it is a scratch reg. ↵Jens Arnold2009-07-11
| | | | | | Saves a bit of stack and execution time. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21795 a1c6a512-1295-4272-9138-f99709370657
* Also fix the iRiver H10Maurus Cuelenaere2009-06-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21503 a1c6a512-1295-4272-9138-f99709370657
* Fix duplicate #includesBertrik Sikken2009-05-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20977 a1c6a512-1295-4272-9138-f99709370657
* Remove the calls to backlight_lcd_sleep_countdown from target specific code ↵Thomas Martitz2009-04-26
| | | | | | and move it into backlight.c git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20793 a1c6a512-1295-4272-9138-f99709370657
* Remove unnecessary #include "adc.h"Bertrik Sikken2009-04-25
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20791 a1c6a512-1295-4272-9138-f99709370657
* Fix very last yellows.Thomas Martitz2009-03-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20337 a1c6a512-1295-4272-9138-f99709370657
* Okay, this should be the last. I'm sorry for the trouble, but now everything ↵Thomas Martitz2009-03-17
| | | | | | *should* be properly #ifdef'd (which wasn't before) :/ git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20336 a1c6a512-1295-4272-9138-f99709370657
* One more try: Fix remaining reds and yellowsThomas Martitz2009-03-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20335 a1c6a512-1295-4272-9138-f99709370657
* Fix reds and yellows (hopefully). Some targets apparently didn't properly ↵Thomas Martitz2009-03-17
| | | | | | #ifdef lcd_enable and lcd_sleep code out, so that it got partly active in the bootloader; rename the ui simulator stub fixes most reds; for the clip: move the hook code into lcd-1bit-vert.c which should fix the bootloader red. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20333 a1c6a512-1295-4272-9138-f99709370657
* Rework lcd_enabled and lcd_set/call_enable hookThomas Martitz2009-03-17
| | | | | | | a) lcd_enabled() is now lcd_active(), and is available for HAVE_LCD_SLEEP only targets (e.g. ipod video) too. It was depandent on HAVE_LCD_ENALE only before b) rename the hook accordingly, and implement the hook for other other targets too (e.g. the clip [the only mono target with lcd_enable/lcd_sleep yet, so the code is still in the lcd driver], ipod, fuze, c200) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20331 a1c6a512-1295-4272-9138-f99709370657
* Make the H10 5GB bootloader able to load the OF again. From FS#9955.Barry Wardell2009-03-02
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20185 a1c6a512-1295-4272-9138-f99709370657
* Reclaim .iram areas in DRAM by overlapping their load addresses with the ↵Michael Sevakis2009-02-20
| | | | | | uninitialized data sections. I did what I could test out-- not any flash image linker scripts or other target processors. Move any .iram copies in crt0.S's to be the first operation even if not _strictly_ necessary to be emphatic (aka. 'beware'). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20061 a1c6a512-1295-4272-9138-f99709370657
* Various files: make function implementations consistent with their ↵Bertrik Sikken2009-01-31
| | | | | | | | | declaration in the header file or static if they're local. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19892 a1c6a512-1295-4272-9138-f99709370657
* Move the PP5020 ADC defines to the c-file instead of repeating them across ↵Mark Arigo2009-01-27
| | | | | | the header files. Also, the Tatung TPJ1022 should use the common PP5020 ADC driver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19864 a1c6a512-1295-4272-9138-f99709370657
* H10 can distinguish USB and MAIN charger input so return proper flags. H100s ↵Michael Sevakis2008-12-24
| | | | | | were misconfigured and should use CHARGING_SIMPLE. Comment more on what charging types mean in config.h. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19582 a1c6a512-1295-4272-9138-f99709370657
* Simplify powermgmt thread loops so it calls functions turn (no more ↵Michael Sevakis2008-12-24
| | | | | | power_thread_sleep). Do other target-friendly simplifications, generic battery switch handling and split sim-specific code. Whoever can, please verify charging on the Archos Recorder (due to change in the charger duty cycle code). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19579 a1c6a512-1295-4272-9138-f99709370657
* Straighten out some powermanagement stuff. Give target complete control over ↵Michael Sevakis2008-12-03
| | | | | | how power inputs are sensed. Clean SIMULATOR stuff out of target files. Get rid of USB charging option on targets that don't support it or don't implement it yet. Menu string remains to avoid language incompatibility but should be removed on next cleanup for targets not using it (notice in english.lang). global_settings becomes incompatible for some builds and so plugin API version is incremented. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19315 a1c6a512-1295-4272-9138-f99709370657
* Common data must be included in .bss or it won't get zeroed in crt0. Fix the ↵Jens Arnold2008-11-07
| | | | | | archos self-extractor as well to play safe. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19033 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* Targets with HAVE_LCD_ENABLE: Provide a means to receive notifications when ↵Michael Sevakis2008-05-28
| | | | | | the lcd is enabled and the image is refreshed so overlayed drawing can also be refreshed. Chiefly mpegplayer needs this so it can redraw the YUV data after the backlight is turned on while paused or when using 'Set Start Time'. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17640 a1c6a512-1295-4272-9138-f99709370657
* Straigten-out lcd sleeping on Gigabeat F/X. Add a service function to ↵Michael Sevakis2008-05-14
| | | | | | backlight.c to handle lcd sleep timer. Make HAVE_LCD_SLEEP useable without a setting and use HAVE_LCD_SLEEP_SETTING when a setting is available in addition to HCD_HAVE_SLEEP. If a setting isn't used, the target must define the timeout to be used in the config. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17505 a1c6a512-1295-4272-9138-f99709370657
* H10: Disable IDE controller when the disk is powered down like on ipods.Jens Arnold2008-05-07
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17402 a1c6a512-1295-4272-9138-f99709370657
* Make the H10 bootloader work again. Also fix the same problem that might be ↵Barry Wardell2008-05-04
| | | | | | affecting other PP bootloaders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17357 a1c6a512-1295-4272-9138-f99709370657