sdl: Fix the sdl init so the sim will get a taskbar item

Change-Id: Ib0049f96c54b4471a8185937d92bb6e8a492142a
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: I3725c51518be724ce7aacee9877663c2de6866fa
Refactor lcd_clear_viewport().

* Unify 16bit implementaitons (move to 16bit-common.c).
* Add viewport clipping (within #ifdef HAVE_VIEWPORT_CLIP) like other lcd_* functions have.

Change-Id: I4e96b2efdb94d2f7bc5bcdb710554117989579ec
lcd_fillrect(): Unify 16bit implementations (move to 16bit-common.c)

Change-Id: I457ea9fcb67869fdac7f1201a059a362b087e908
Remove left-over debug statement (oops).

Change-Id: Ic672ad77bd9e30285f4bd95275a170f8ec75869b
revert changes in test_disk.c introduced by accident in r30459

Change-Id: Ib133070e8f307be7d54b422c37a33ddac67ec639
Don't hardcode cpu frequency in test_codec

Change-Id: Idcd7b024edb7a550b42b935fadfb3d869bab14c6
android: Add facility for java code to wait native code to be ready.

Especially when unzipping rockbox.zip, the native code can be initialized
a lot later than the java code. The java code needs to be prevented from
accessing rockbox structures (e.g. current_tick, event queues) before they're
ready.

This commit adds wait_rockbox_ready() and fixes dodgy behavior of starting
rockbox via widget play button, headset remote buttons or multimedia keys.
Also fixes wrong small list items before first redraw.

Change-Id: I1caf925e829a9c1c6bb6e0016d5c80574574c91e
Redraw simplelist if/when necessary-

Change-Id: I14a1cce8967af60a52d2d13e0b035b71fece8a63
android: lcd_update/_rect() changes

* rename some java methods (to update(), initialize())
* re-create the ByteBuffer object from the framebuffer on every update.
  This is needed now since 2c71aa9 added the possiblity for lcd_framebuffer to change.
* do so, along with the creation of the dirty Rect object, in native code.

Change-Id: Id39ea8e4b6148987c5f216a87e0ff3c8e7babe92
android: Remove hack not needed anymore (since 58e097d).

Change-Id: I3396a1245fe5fcbb5d2494bfabf8972c7617e6b1
rk27xx: implement system_init()

For now it contains explicit SDRAM setup, cutting clock for unused
modules and turning off unused PLLs. This improves slightly mem
throughput as well as saves quite a bit of power.

Change-Id: I19a2827ac90a6868856c676fbe1e051c42f0d608
Merge branch 'master' of git://git.rockbox.org/rockbox
ignore ipodpatcher binary

Change-Id: I5156d220dd23b9a6dd5ae4c492c49e932bbc2ef8
buflib/shrink_callback: Resume playback only if it was playing (not paused).

Change-Id: Ie4884ec4554890f8bdb03f48bcf215ece00a5560
android: clean-up and some refactoring in java code.

Change-Id: I78cadb0b71bcb65a55006bf52cfe3e6cda891a38
android: only output unzip log message when performing the unzip.

Change-Id: I16dda180d51832569097d7dd1866ba7f56cdf876
skin_engine: fix scrolling lines with dynamic content

Change-Id: If85220c8b59123814e0e6b1a3b8e00c981271021
build system: unify/simplify library handling a bit.

libs in $ROOT/lib now add to $(CORE_LIBS) and $(EXTRA_LIBS) and are
automatically linked by the core and codecs/plugins respectively.

Change-Id: Iff482c792a8c8142718f6a16a450c6e2f1497c9a
Fix sim/checkwps build failure.

Change-Id: Iefd533fe26495a29f8e79113b38748b504d94213