acpi_device: Replace polarity with active_low in acpi_gpio for GpioIo

As per ACPI spec, GpioIo does not have any polarity associated with
it. Linux kernel uses `active_low` argument within GPIO _DSD property
to allow BIOS to indicate if the corresponding GPIO should be treated
as active low. Thus, if GPIO has active high polarity or if it does
not have any polarity associated with it, then the `active_low`
argument is supposed to be set to 0.

Having a `polarity` field in acpi_gpio seems confusing because GPIOs
might not always have polarity associated with them. Example, in case
of DMIC-select GPIO where 0 means select DMIC0 and 1 means select
DMIC1, there is no polarity associated with the GPIO. Thus, it would
be clearer for mainboard to use macros without having to specify a
particular polarity. In order to enable mainboards to provide GPIO
information without polarity for GpioIo usage, this change also adds
`ACPI_GPIO_OUTPUT` and `ACPI_GPIO_INPUT` macros.

BUG=b:157603026

Change-Id: I39d2a6ac8f149a74afeb915812fece86c9b9ad93
Signed-off-by: Furquan Shaikh <furquan@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42968
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
diff --git a/src/drivers/i2c/rt5663/rt5663.c b/src/drivers/i2c/rt5663/rt5663.c
index da12a4d..272cf78 100644
--- a/src/drivers/i2c/rt5663/rt5663.c
+++ b/src/drivers/i2c/rt5663/rt5663.c
@@ -53,7 +53,7 @@
 	dp = acpi_dp_new_table("_DSD");
 	if (config->irq_gpio.pin_count)
 		acpi_dp_add_gpio(dp, "irq-gpios", acpi_device_path(dev), 0, 0,
-			 config->irq_gpio.polarity == ACPI_GPIO_ACTIVE_LOW);
+			 config->irq_gpio.active_low);
 	RT5663_DP_INT("dc_offset_l_manual", config->dc_offset_l_manual);
 	RT5663_DP_INT("dc_offset_r_manual", config->dc_offset_r_manual);
 	RT5663_DP_INT("dc_offset_l_manual_mic", config->dc_offset_l_manual_mic);