mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 17:41:54 +00:00
Move parts of usb_pd_config.h that are not part of the phy layer out of usb_pd_config.h and into board.h. This cleans up the division between the TCPC and TCPM as only the TCPC needs to use usb_pd_config.h. Also cleans up the use of the CC detection voltage thresholds by creating standard macros to use based on Rp strength for the board. BUG=none BRANCH=none TEST=make -j buildall Change-Id: I946cceb38bea8233095b8a4b287102bb8a3a296d Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/270337 Reviewed-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
36 lines
666 B
C
36 lines
666 B
C
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* USB Power delivery board configuration */
|
|
|
|
#include "test_util.h"
|
|
|
|
test_mockable void pd_select_polarity(int port, int polarity)
|
|
{
|
|
/* Not implemented */
|
|
}
|
|
|
|
test_mockable void pd_tx_init(void)
|
|
{
|
|
/* Not implemented */
|
|
}
|
|
|
|
test_mockable void pd_set_host_mode(int port, int enable)
|
|
{
|
|
/* Not implemented */
|
|
}
|
|
|
|
test_mockable void pd_config_init(int port, uint8_t power_role)
|
|
{
|
|
/* Not implemented */
|
|
}
|
|
|
|
test_mockable int pd_adc_read(int port, int cc)
|
|
{
|
|
/* Not implemented */
|
|
return 0;
|
|
}
|
|
|