initial commit: import libplepaper v0.6
anyfb: add anyfb_crop to crop any area down to active area

This uses the internal crop area, by default set to the display
resolution or specified with anyfb_set_crop_area.  The coordibates
are updates in-place in the fbrect structure.

Change-Id: Ia34c3adf29ea71d44accf01af589b7f708e244e7
epdc-plapi: fix update area coordinates convention

The PL Display API library uses a different convention where the
last x and y coordinates are not inclusive in the update region.
The libanyfb expects them to be inclusive, so now they are
incremented to compensate this.

Change-Id: Ic2366cf7e342b5e7b4e2e50411489bf3f73379bc
Add EPDC_MONO_9_9 and EPDC_HIGHLIGHT waveforms

to allow tests to use these waveforms.

Change-Id: I7874d5b21e7ae0e12d77985b5623ab29eb159079
epdc: fix support for fast mono waveforms

* epdc-plapi:
  * use ARRAY_SIZE
  * fix mapping to Display API v1.2 waveform names
  * add fast mono 6 and 3

Change-Id: Icf551e0b87f197b9247f80fb18019a2f856746c7
bump to 0.7

Change-Id: Iab954e61be29c75d0fe5bf3c5cd92698da499746
ChangeLog v0.6 -> v0.7

Change-Id: Ifddf70042bb4aa018a9513a5ce1327101e7daba8
epdc: fix epdc_get_wfid

Return epdc_id instead of the index in the table when looking for
a waveform name (which defeated the point of having that table).
add missing includes for fast builder
anyfb: fix color888 macro (for 32bpp GRB 888)
add support for plepdc with synchronous updates

* add epdc-plepdc with epif implementation to use the plepdc driver
* simplify the default fb0 device name mechanism
* remove some noisy log messages
* fix some copyright notices
* let the epif implementations populate and allocate/free the
  epif->device field
* rename epif->update_area -> epif->update and remove
  epif->update that used to be for full screen updates only
* epdc_update is now used to update regions, and
  update_update_screen for full screen
* add `sync' option to epif->update to ask for a synchronous
  update
  Note: If the implementation cannot do a synchronous update
  while one is being asked by the client code, epif->can_sync is
  false and the epdc API will wait for the hard-coded waveform
  duration.
* add EPDC_MODE_PLEPDC
global review and clean-up

* make consistent error handling in initialisation functions
* use stdint in fbcolor_t format (uint32_t instead of unsigned long...)
* epdc: simplify code to handle modes with a table
* add missing copyright statements
* set version string to 0.8
bump to 0.8
ChangeLog v0.7 -> v0.8
anyfb_get_grey: fix `green' effect with RGB565
epdc: add _get_mode and _wait_power

* add epdc_get_mode to get the current EPDC implementation
  mode (PL display API, PL ePDC...)
* add epdc_wait_power to wait for the epdc power to be on or
  off (when supported by the ePDC implementation)
epdc-plapi: use PL Display API unless NO_PLDISPLAYAPI is set

Change-Id: I4afcc335370756228ad8547bf8554ab3b2987390
epdc: fix usage of NO_PLDISPLAYAPI to use Display API
Revert "epdc: fix epdc_get_wfid"

This reverts commit 336a807a4bf396c71c99a8bd29d94a6ca56389d5.
plepdc: fix waveform id's and B&W thresholds

Change-Id: Ie3a0d391142a14f4d75f9593fe3e0e252e51284c