From 51e2296bca7c4ed9bbd1b34e39c2d4fdc5bb3a2b Mon Sep 17 00:00:00 2001 From: Andrew McRae Date: Fri, 22 Jul 2022 09:42:32 +1000 Subject: zephyr: gpio: Return configured value of output rather than pin value When getting the value of an output GPIO, use the configured output of the pin rather than the pin value itself. The configured output is the value that was last set on the GPIO output, whereas the value of the pin may not reflect this setting (i.e the pin may be open-drain with a low voltage, or the GPIO may be an output only GPIO). BUG=b:236094811 TEST=zmake testall; zmake build nivviks; flash & run BRANCH=none Signed-off-by: Andrew McRae Change-Id: Ic4a551ffa3c1d2e5e02e22a26645071de3c2395e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3782022 Reviewed-by: Keith Short --- zephyr/boards/arm/mec1727/mec1727_defconfig | 1 + 1 file changed, 1 insertion(+) (limited to 'zephyr/boards/arm/mec1727/mec1727_defconfig') diff --git a/zephyr/boards/arm/mec1727/mec1727_defconfig b/zephyr/boards/arm/mec1727/mec1727_defconfig index 69f0ff53f5..fb7235be82 100644 --- a/zephyr/boards/arm/mec1727/mec1727_defconfig +++ b/zephyr/boards/arm/mec1727/mec1727_defconfig @@ -28,6 +28,7 @@ CONFIG_PINCTRL=y # GPIO Controller CONFIG_GPIO=y +CONFIG_GPIO_GET_CONFIG=y # Clock configuration CONFIG_CLOCK_CONTROL=y -- cgit v1.2.1 From b719d38f1a02fbe3f003b5f2b840166496b3326c Mon Sep 17 00:00:00 2001 From: Keith Short Date: Thu, 21 Jul 2022 13:32:06 -0600 Subject: zephyr: Delete CONFIG_PLATFORM_EC_ADC CONFIG_PLATFORM_EC_ADC is redundant with the Zephyr Kconfig option, CONFIG_ADC. Use the Zephyr option directly. Note - projects based on the "minimal" config do not compare. The minimal config disabled CONFIG_ADC, but the CONFIG_PLATFORM_EC_ADC_CMD was still enabled. With this CL, CONFIG_PLATFORM_EC_ADC_CMD now depends on CONFIG_ADC. BUG=none BRANCH=none TEST=zmake testall --static; compare binaries Signed-off-by: Keith Short Change-Id: I129a3f490abd5c8234bc06ed6f86f2d7ff8a13b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3791659 Reviewed-by: Jeremy Bettis --- zephyr/boards/arm/mec1727/mec1727_defconfig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'zephyr/boards/arm/mec1727/mec1727_defconfig') diff --git a/zephyr/boards/arm/mec1727/mec1727_defconfig b/zephyr/boards/arm/mec1727/mec1727_defconfig index fb7235be82..f60fcb7865 100644 --- a/zephyr/boards/arm/mec1727/mec1727_defconfig +++ b/zephyr/boards/arm/mec1727/mec1727_defconfig @@ -12,6 +12,10 @@ CONFIG_RTOS_TIMER=y CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32768 CONFIG_SYS_CLOCK_TICKS_PER_SEC=32768 +# ADC +CONFIG_ADC=y +CONFIG_ADC_SHELL=n + # Serial Drivers CONFIG_SERIAL=y CONFIG_UART_INTERRUPT_DRIVEN=y -- cgit v1.2.1 From 71b2ef709dcb14260f5fdaa3ab4ced005a29fb46 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 12 Sep 2022 14:54:36 -0400 Subject: Update license boilerplate text in source code files Normally we don't do this, but enough changes have accumulated that we're doing a tree-wide one-off update of the name & style. BRANCH=none BUG=chromium:1098010 TEST=`repo upload` works Change-Id: Icd3a1723c20595356af83d190b2c6a9078b3013b Signed-off-by: Mike Frysinger Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3891203 Reviewed-by: Jeremy Bettis Reviewed-by: Jack Rosenthal --- zephyr/boards/arm/mec1727/mec1727_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zephyr/boards/arm/mec1727/mec1727_defconfig') diff --git a/zephyr/boards/arm/mec1727/mec1727_defconfig b/zephyr/boards/arm/mec1727/mec1727_defconfig index f60fcb7865..b6aa0dd1e9 100644 --- a/zephyr/boards/arm/mec1727/mec1727_defconfig +++ b/zephyr/boards/arm/mec1727/mec1727_defconfig @@ -1,4 +1,4 @@ -# Copyright 2022 The Chromium OS Authors. All rights reserved. +# Copyright 2022 The ChromiumOS Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -- cgit v1.2.1