svc: clean up AP_ID message macros and debug messaging

Rename the message macros to match the change to AP_ID. Also
explicitly mention the module and device id in the debug
message.

Signed-off-by: Matt Porter <mporter@linaro.org>
gpio: add BeagleBone Black gpio backend

Add support for presenting a greybus gpio controller with 6
lines to the host. The first four gpio lines are connected
to the USR3..0 LEDs on the board. The second two gpio lines
are on the expansion connectors at P9-12 and P8-26. The LEDs
are useful for a quick check of gpio output and the other
pins can be used as inputs with a switch or a loopback to
drive and read an input for a hands-off test.

Signed-off-by: Matt Porter <mporter@linaro.org>
gbsim: Fix greybus protocol -> protocol_id renaming issue

Trying to build gbsim with the latest greybus, I'm hitting the
following build issue:

manifest.c: In function ‘identify_descriptor’:
manifest.c:77:32: error: ‘struct greybus_descriptor_cport’ has no
member named ‘protocol’

Related to the fact that the greybus cport protocol field is now
named protocol_id. This patch fixes it by renaming the usage.

Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Matt Porter <mporter@linaro.org>
gbsim: add pwm protocol handler

Add a PWM protocol handler. This handler operates in
the usual software only mode which dumps out the PWM
protocol packets sent to/from the AP. In addition, a
BeagleBone Black hardware backend is provided which
leverages libsoc to drive hardware PWMs on the BBB
expansion header.

Signed-off-by: Matt Porter <mporter@linaro.org>