summaryrefslogtreecommitdiff
path: root/util/ec_uartd.c
Commit message (Collapse)AuthorAgeFilesLines
* use _DEFAULT_SOURCE for newer glibcMike Frysinger2015-12-081-1/+2
| | | | | | | | | | | | | | | Newer versions of glibc have moved to _DEFAULT_SOURCE and away from _BSD_SOURCE. Trying to use the BSD define by itself leads to warnings which causes build failures. BRANCH=none BUG=None TEST=precq still works Signed-off-by: Mike Frysinger <vapier@chromium.org> Change-Id: Ice24b84dc6a540695fc7b76e8f22a4c85c301976 Reviewed-on: https://chromium-review.googlesource.com/316730 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
* ec_uartd: bugfix for buffer pointer on partial write to FD.stabilize-swanky-5841.55.Bstabilize-gnawty-5841.84.Bstabilize-5841.83.Bstabilize-5841.76.Brelease-R36-5841.BTodd Broch2014-05-091-1/+13
| | | | | | | | | | | | | | | | | | | | | Previously I neglected to increment the buffer pointer which would allow double writing of same data and exclude tail if write didn't complete in one call. Also fixing bug with EAGAIN/EWOULDBLOCK to retry in those cases. Previously we'd just have just failed for those errno values. Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=none BUG=chromium:371147 TEST=still compiles Change-Id: I30dbe56b2a4c735c487464349786a9db430130a8 Reviewed-on: https://chromium-review.googlesource.com/199052 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org>
* Add support for igloo board to ec_uartdVic (Chun-Ju) Yang2013-12-271-2/+17
| | | | | | | | | | | | | | The igloo board has a different product ID than bds board. Add the new product ID to ec_uartd. BUG=chrome-os-partner:24713 TEST=Run ec_uartd with igloo board BRANCH=None Change-Id: Idcbb08072661e12ed744a60fb04a55d4f58cf89b Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/181082 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
* Allow either libftdi or libftdi1 at compile time.Todd Broch2013-04-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Todd Broch <tbroch@chromium.org> BRANCH=none BUG=chromium:222299 TEST=manual, from chroot: 1. Install libftdi1 (https://gerrit.chromium.org/gerrit/#/c/44731/) 2. cd <path>/ec && make -B - compiles successfully 3. Install libftdi 4. cd <path>/ec && make -B - still compiles successfully Change-Id: I6818d53faa1389937872b0a9826534db4760e448 Reviewed-on: https://gerrit.chromium.org/gerrit/47875 Tested-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Commit-Queue: Todd Broch <tbroch@chromium.org>
* Force header file stdlib.h to declare ptsname_r()Rong Chang2011-12-141-0/+4
| | | | | | | | | | | | Macro _GNU_SOURCE is not automatically defined in chroot host toolchain. Add this macro to let stdlib.h header file declare ptsname_r() function. BUG=None TEST=Run "gcc -V" to check if the toolchain version >= 4.6.0. And run "make clean; make" in Chromium OS dev chroot. Change-Id: I02d8a6f9ac9a6e51da3f2cd2ecbec9ec1f096c6a Signed-off-by: Rong Chang <rongchang@chromium.org>
* Add ec_uartd build-side utilityRandall Spangler2011-12-131-0/+126
This provides a pty for the EC UART channel on the BD-ICDI-B FTDI daughtercard for EC debugging. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=make && build/bds/util/ec_uartd (with EC attached to FTDI board) Change-Id: I51fe50d0da6345962affb860b923425197a04fa1