summaryrefslogtreecommitdiff
path: root/board/dingdong/build.mk
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2014-10-07 09:55:11 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-08 05:07:29 +0000
commitc1714dac125bc8f0483e0e63ae17f0ce630097ca (patch)
treedf229ce42c74e80da83d01d69d5cb0eefe830f8d /board/dingdong/build.mk
parent7f55a51ced7a714c1765116a0d279b9d97847b02 (diff)
downloadchrome-ec-c1714dac125bc8f0483e0e63ae17f0ce630097ca.tar.gz
dingdong: Initial board and USB PD support.
Allows dingdong to receive initial USB PD communication (source capabilities payload) and with some manual manipulation (see 'TEST=') drive DPout. CL is based heavily off hoho dongle where all files were copied from board/hoho: 7b1e58c ectool: Add host command support to set fan RPM for each fan separately Files gpio.inc, board.h & board.c were modified but others should be identical. BRANCH=none BUG=chrome-os-partner:31193 TEST=manual, When attaching dingdong to samus_pd and configured via 'pd dualrole source' I see following on samus_pd console: C1 st9 Switch to 5000 V 900 mA (for 900/900 mA) C1 st10 C1 st11 C1 st12 showing power constract and transition to SRC_RDY: > pd 1 state Port C1, Enabled - Role: SRC Polarity: CC1 State: SRC_READY > typec 1 dp Also if I connect in CC1 configuration and get access to dingdong console I can > gpioset PD_SBU_ENABLE 1 And see dingdong drive external monitor Change-Id: I30ef6f8503a3fb015cfb8806bc36fb98f5150e40 Signed-off-by: Todd Broch <tbroch@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/221913 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/dingdong/build.mk')
-rw-r--r--board/dingdong/build.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/board/dingdong/build.mk b/board/dingdong/build.mk
new file mode 100644
index 0000000000..92bb84b52c
--- /dev/null
+++ b/board/dingdong/build.mk
@@ -0,0 +1,14 @@
+# -*- makefile -*-
+# 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.
+#
+# Board specific files build
+
+# the IC is STmicro STM32F072B
+CHIP:=stm32
+CHIP_FAMILY:=stm32f0
+CHIP_VARIANT:=stm32f07x
+
+board-y=board.o
+board-$(CONFIG_USB_POWER_DELIVERY)+=usb_pd_policy.o