summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Singer <felix.singer@secunet.com>2020-09-22 12:55:25 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-09-28 09:30:57 +0000
commit1bdbcd751028799105c4288e86d600d2d0aa9428 (patch)
treef456c2045b39be20bee6d25f010b0b9613d984bc
parentba49d859eeaeced032403b2da6a5f34ea2a93a94 (diff)
azalia_device.h: Add new macro to configure pins as NC
Change-Id: I740d0d756599688165458a9c6e925d5d94754bb2 Signed-off-by: Felix Singer <felix.singer@secunet.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/45604 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/include/device/azalia_device.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/device/azalia_device.h b/src/include/device/azalia_device.h
index d510123515..9246d4bc87 100644
--- a/src/include/device/azalia_device.h
+++ b/src/include/device/azalia_device.h
@@ -128,6 +128,8 @@ enum azalia_pin_location_2 {
(((codec) << 28) | ((pin) << 20) | (0x71f << 8) \
| (((val) >> 24) & 0xff))
+#define AZALIA_PIN_CFG_NC(n) (0x411111f0 | (n & 0xf))
+
#define AZALIA_RESET(pin) \
(((pin) << 20) | 0x7ff00), (((pin) << 20) | 0x7ff00), \
(((pin) << 20) | 0x7ff00), (((pin) << 20) | 0x7ff00)