mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-31 02:51:26 +00:00
Ryu: Share SensorHub UART control with Servo
Previously the EC UART connected to the SensorHub console was being driven push/pull potentially fighting with a connected servo. This way servo wins, but at least we don't drive the line in opposite directions causing a large current flow. Signed-off-by: Anton Staaf <robotboy@chromium.org> BRANCH=None BUG=None TEST=make buildall -j Change-Id: I02b8e09af6c902b523494b757f4bc7ea4365df2e Reviewed-on: https://chromium-review.googlesource.com/255954 Tested-by: Anton Staaf <robotboy@chromium.org> Reviewed-by: Vic Yang <victoryang@chromium.org> Commit-Queue: Anton Staaf <robotboy@chromium.org> Trybot-Ready: Anton Staaf <robotboy@chromium.org>
This commit is contained in:
committed by
ChromeOS Commit Bot
parent
9e9ccfa24b
commit
d32be0292f
@@ -117,10 +117,12 @@ GPIO(AP_UART_RX, B, 7, GPIO_INPUT, NULL)
|
||||
|
||||
UNIMPLEMENTED(AP_RESET_L)
|
||||
|
||||
#define GPIO_ODR_UP GPIO_OPEN_DRAIN | GPIO_PULL_UP
|
||||
|
||||
ALTERNATE(B, 0x0008, 5, MODULE_USB_PD, 0) /* SPI1: SCK(PB3) */
|
||||
ALTERNATE(B, 0x0002, 2, MODULE_USB_PD, 0) /* TIM3_CH4: PB1 */
|
||||
ALTERNATE(B, 0x00C0, 7, MODULE_USART, 0) /* USART1: PB6/PB7 */
|
||||
ALTERNATE(D, 0x0060, 7, MODULE_UART, GPIO_PULL_UP) /* USART2: PD4/PD5 */
|
||||
ALTERNATE(C, 0x0C00, 7, MODULE_USART, 0) /* USART3: PC10/PC11 */
|
||||
ALTERNATE(C, 0x0C00, 7, MODULE_USART, GPIO_ODR_UP) /* USART3: PC10/PC11 */
|
||||
ALTERNATE(A, 0xC600, 4, MODULE_I2C, 0) /* I2C SLAVE:PA9/10 MASTER:PA14/15 */
|
||||
ALTERNATE(A, 0x1800,14, MODULE_USB, 0) /* USB: PA11/12 */
|
||||
|
||||
Reference in New Issue
Block a user