summaryrefslogtreecommitdiff
path: root/board/daisy/board.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2013-06-13 15:37:56 -0700
committerChromeBot <chrome-bot@google.com>2013-06-13 18:13:23 -0700
commit1695760e95a9d86eb11ca239da28cfe48a142af8 (patch)
tree09962a52db077c6316411231b6bb9705d84c8fcf /board/daisy/board.c
parentf2fa913320c274661e969a49e4dac65622971851 (diff)
downloadchrome-ec-1695760e95a9d86eb11ca239da28cfe48a142af8.tar.gz
Rename GPIO_HI_Z macros to more descriptive GPIO_ODR_HIGH/LOW
GPIO_HI_Z was a bit misleading (it's high impedance by default, but it's actually an output not an input), but when we added GPIO_HI_Z_OPEN to mean "open-drain output, pulled low by default", it got too confusing. This renames those macros to: #define GPIO_ODR_HIGH (GPIO_OUTPUT | GPIO_OPEN_DRAIN | GPIO_HIGH) #define GPIO_ODR_LOW (GPIO_OUTPUT | GPIO_OPEN_DRAIN | GPIO_LOW) BUG=chrome-os-partner:18788 BRANCH=none TEST=none No functional change, just renaming some macros. If it compiles, it should be unchanged in behavior. Change-Id: Ic84d7be8531f2b240a8eca4f6cfe5291ebd2d5ef Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/58596 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'board/daisy/board.c')
-rw-r--r--board/daisy/board.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/daisy/board.c b/board/daisy/board.c
index 777073cb77..dbd27ed0ef 100644
--- a/board/daisy/board.c
+++ b/board/daisy/board.c
@@ -79,8 +79,8 @@ const struct gpio_info gpio_list[GPIO_COUNT] = {
{"ENTERING_RW", GPIO_H, (1<<0), GPIO_OUT_LOW, NULL},
{"CHARGER_EN", GPIO_B, (1<<2), GPIO_OUT_LOW, NULL},
{"POWER_LED_L", GPIO_B, (1<<3), GPIO_OUT_HIGH, NULL},
- {"EC_INT", GPIO_B, (1<<9), GPIO_HI_Z, NULL},
- {"CODEC_INT", GPIO_H, (1<<1), GPIO_HI_Z, NULL},
+ {"EC_INT", GPIO_B, (1<<9), GPIO_ODR_HIGH, NULL},
+ {"CODEC_INT", GPIO_H, (1<<1), GPIO_ODR_HIGH, NULL},
{"KB_OUT00", GPIO_B, (1<<0), GPIO_KB_OUTPUT, NULL},
{"KB_OUT01", GPIO_B, (1<<8), GPIO_KB_OUTPUT, NULL},
{"KB_OUT02", GPIO_B, (1<<12), GPIO_KB_OUTPUT, NULL},