Mark MPIO HD300 as stable in tools/builds.pm

Change-Id: Ib2c9e02703de5801d08e05c1eb1066cb7c3328a5
Introduce gmtime.c and use it in the AS3514 RTC driver

Change-Id: I00a09ae28a68f8153fb8fa854fea741ddfb0bf09
Reviewed-on: http://gerrit.rockbox.org/175
Tested-by: Bertrik Sikken <bertrik@sikken.nl>
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Reviewed-by: Rafaël Carré <rafael.carre@gmail.com>
gmtime: reduce array size: days in month fit in 8 bits

Change-Id: Idcebdf0ae120cfc82a1f471d0553d23ca36d7eef
Coldfire: Optimize emac context save/restore in mixer ISR.

Save only once if emac is used in ISR and restore only once per ISR
call if already saved.

Change-Id: I0e40db5d4aab2a8552480f76873f59ff6ccd9977
Reviewed-on: http://gerrit.rockbox.org/176
Tested-by: Michael Sevakis <jethead71@rockbox.org>
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Change EQ settings to use a struct array in global_settings.

The previous pseudo array access of separate members wasn't very
nice or clear.

Change-Id: I74a2b39bb9c71a1370a455c01c4d5a860765e040
Reviewed-on: http://gerrit.rockbox.org/179
Reviewed-by: Michael Sevakis <jethead71@rockbox.org>
Tested-by: Michael Sevakis <jethead71@rockbox.org>
rds: show rds clock-time as broken down time instead of UTC time in debug menu

Change-Id: I931182ccd20cf8899f3ce9b6b8d7c7c5f4ea006f
fix year calculation in gmtime

Change-Id: I9a5f29ad73b5620096d38874c70351db9bd90062
Fix minor bookmark problems/Enhance bookmark functions

This fix:

-fixes when the bookmark menu and submenus are displayed and hidden
 in the context menu.
     -'Create Bookmark' should be hidden when tracks are queued in
      the playlist or nothing is currently playing (previously it was
      never hidden)
     -'List Bookmarks' should be hidden if and only if no bookmark
      file exists for the current playlist (previously it was hidden
      if tracks were queued or nothing was playing neither of which
      hinder loading bookmarks)
     -'Bookmarks' main menu should be hidden if both 'Create
      Bookmarks' and 'List Bookmarks' submenus are hidden

-fixes a problem where the 'Bookmark Error' message was not always
 displayed on bookmarking failure

-adds BOOKMARK_USB_CONNECTED return value to the bookmark functions
 to distinguish if the bookmark list was exited due to a USB
 connection.

-fixes other minor logic problems in the bookmarking functions

Change-Id: If6394b2e77f027773a7c94ffdcb52dbb15e2922b
Reviewed-on: http://gerrit.rockbox.org/177
Reviewed-by: Osborne Jacobs <ozziejacks@gmail.com>
Tested-by: Osborne Jacobs <ozziejacks@gmail.com>
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
Test: check retrieved version string as well.

As originally intended check if the retrieved version string is correct instead
of ignoring it.

Change-Id: If4dad224e999a90607dee3eb723400c12f5b7362
Fix false positive in version detection.

Some git revisions are falsely detected as release version. Extend test and fix
the wrong regexp. Corrects font download trying to get the wrong file for some
current builds.

Change-Id: Ia779896c927385ec0d7ba68ee3d953f3c6e4494c
Enable MPIO HD200 and HD300 installation.

HD300 has been promoted to stable. The state of a port is retrieved from the
download server anyway, so there is no reason to keep the HD200 disabled.

Change-Id: Ic28c663c8999558dda5b10f4fa584e2f6732264a
Update manual for boot behaviour on clip+, clipv2 and fuzev2.

The bootloader doesn't boot into the Original Firmware anymore since a while.
Remove the claim that Rockbox will always boot the OF on USB, and add a note
about older builds not providing USB support.

Change-Id: I44f37eeb849b522a2024eb26cee064e848bc4d17
Add new actions to %Tp (Touchscreen areas)

Add the following actions to %Tp:
createbookmark   create a new bookmark from the wps
listbookmarks    list bookmarks from the wps
trackinfo        show track info from the wps

My main motivation was to allow bookmarking and jumping around audio books
from the wps on touch enabled targets.  You can do it now through the context
menu but it requires 4 screen presses instead of 1.

Change-Id: I1fa1bf0064dfd22b897eca7c56acc1ce8956f14c
Reviewed-on: http://gerrit.rockbox.org/171
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
Update manual for %cs and %T tags

Added missing %T actions and %cs states.

Change-Id: Id7ec897c84141ac3d604e23b41e1138bbadc5c77
Reviewed-on: http://gerrit.rockbox.org/180
Reviewed-by: Jonathan Gordon <rockbox@jdgordon.info>
Convert IMX233 RTC driver (used in fuze+) to use mktime and gmtime

Change-Id: Ie71d495509a81db5e02078398f5d722c00136072
Fix FS#12606 - next track can cause the screen to be cleared

This is a bit of a hack. We now trigger an event when the skin engine
is doing a full redraw (which means fullscreen clear) before the
lcd_update() to give the current screen a chance to redraw to avoid the
screen flicker.

This commit fixes the issue for screens which are entirely the list
widget (i.e browser and menus), other screens will need aditional fixes
(i.e quickscreen, time&date screen)

Change-Id: I3ffdcd8ccad2c663732f8d5983049c837de00fe5
Revert "Fix FS#12606 - next track can cause the screen to be cleared"

This reverts commit cb9bc3bbc8a66c3d5296bfbc68f4487c39c6ac68.
Fuze+: update minor keymaps mapping for manual consistency/simplicity

    HID navigator zoom reset: moved from Play to long Play
    this will avoid having a new /opt{fuzeplus} entry in manual

Change-Id: Ic1dbc7258eb280b35c761b451dcda428245978cb
Reviewed-on: http://gerrit.rockbox.org/117
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
Fuze+/calendar's plugin update keymaps and manual

- fuze+ keymaps for calculator updated
- manual updated accordingly
- also correct a little problem with a line only used by mpio hd300
manual but that appears on all other target's manual.

Change-Id: I9c4d3c21dc6174079edbde8035bad318e09ec74a
Reviewed-on: http://gerrit.rockbox.org/125
Reviewed-by: Amaury Pouly <amaury.pouly@gmail.com>
skin_engine: New tag to draw a rectangle (optionally with a gradient)

%dr(x, y, width, height, [colour1[, colour2]]):
x,y - viewport relative pixel coordinates to start the rectangle.
width, height - obvious. can be '-' to fill the viewport
if both colours are left out the viewports foreground colour will be used
if one colour is specified it will fill the rectangle that colour.
if both colours are specified it will gradient fill the rectangle.

Change-Id: Iad451e99ded663bc7c5d182443659db7d909b388