libpayload udc: add interface to add string descriptors

Hardware / Coreboot - Patrick Georgi [google.com] - 23 June 2015 01:20 UTC

They're ASCII only, with only one language at a time, but they should be good enough to report device names and serial numbers.

BUG=none BRANCH=none TEST=with depthcharge CL, check dmesg on the host device

Change-Id: If888e05b2f372f7f0f43fadb108ca7ef4ed3b7c1

f4227c4 libpayload udc: add interface to add string descriptors
payloads/libpayload/drivers/udc/chipidea.c | 1 +
payloads/libpayload/drivers/udc/udc.c | 68 ++++++++++++++++++++++++++++
payloads/libpayload/include/udc/udc.h | 21 +++++++++
3 files changed, 90 insertions(+)

Upstream: review.coreboot.org


  • Share