serial: smh: Implement puts for DM
authorSean Anderson <sean.anderson@seco.com>
Mon, 4 Apr 2022 18:18:00 +0000 (14:18 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 14 Apr 2022 19:39:15 +0000 (15:39 -0400)
commit34855b39beb63ca3cdeabbd704ea610268837ced
treeb3e48c196c19c47ffbfe986b02d40a6aa9f384bd
parent679190c41a25592103e711718c93d2655d344713
serial: smh: Implement puts for DM

This adds an implementation of puts for DM. The implementation is not as
clean as for the non-DM puts because we have to handle non-nul-terminated
string. We also handle short writes (though these are probably very
unusual).

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
drivers/serial/Kconfig
drivers/serial/serial_semihosting.c