summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2017-09-01 09:55:18 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-09-07 22:34:40 +0000
commit6deae42f4cc0dd72010f8a623089db55613dab0e (patch)
treecbf55ab58b446572a90da1cb77ee2a430551c08b /core
parent7e212201c520b91be7ab18411a7a38d0ce40e49e (diff)
downloadchrome-ec-6deae42f4cc0dd72010f8a623089db55613dab0e.tar.gz
Clean up CONFIG_CASE_CLOSED_DEBUG usage
CCD_CHANGE_HOOK should use CONFIG_CASE_CLOSED_DEBUG_V1. All boards which use chip/g either use both CONFIG_USB_SERIALNO and CONFIG_CASE_CLOSED_DEBUG or neither of them, so just depend on CONFIG_USB_SERIALNO. This is in preparation for making common/case_closed_debug refer only to the usb_pd_protocol version (with mode=disabled/partial/enabled), and cr50 will have its own version (with only enabled/disabled, and tied more closely to CCD config). No functionality changes. BUG=none BRANCH=cr50 TEST=make buildall -j; boot cr50 and see change hook called Change-Id: I1985c8c48c1a85fed4549402a7b47b8a9cf135d7 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/648067 Reviewed-by: Mary Ruthven <mruthven@chromium.org> (cherry picked from commit 29d8cc67c35c0e8d17400202fb548707bf448218) Reviewed-on: https://chromium-review.googlesource.com/656420 Commit-Queue: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/ec.lds.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index 58f8fccbdd..41e2a0a816 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -192,7 +192,7 @@ SECTIONS
KEEP(*(.rodata.HOOK_BATTERY_SOC_CHANGE))
__hooks_battery_soc_change_end = .;
-#ifdef CONFIG_CASE_CLOSED_DEBUG
+#ifdef CONFIG_CASE_CLOSED_DEBUG_V1
__hooks_ccd_change = .;
KEEP(*(.rodata.HOOK_CCD_CHANGE))
__hooks_ccd_change_end = .;