Commit cf2f2c3a authored by Andy Shevchenko's avatar Andy Shevchenko
Browse files

pinctrl: icelake: Use generic flag for special GPIO base treatment



Since we have a generic flag for special GPIO base treatment,
use it in the driver.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 5ba092ed
Loading
Loading
Loading
Loading
+14 −16
Original line number Original line Diff line number Diff line
@@ -29,8 +29,6 @@
		.gpio_base = (g),			\
		.gpio_base = (g),			\
	}
	}


#define ICL_NO_GPIO	-1

#define ICL_COMMUNITY(b, s, e, g)			\
#define ICL_COMMUNITY(b, s, e, g)			\
	{						\
	{						\
		.barno = (b),				\
		.barno = (b),				\
@@ -319,15 +317,15 @@ static const struct intel_padgroup icllp_community1_gpps[] = {


static const struct intel_padgroup icllp_community4_gpps[] = {
static const struct intel_padgroup icllp_community4_gpps[] = {
	ICL_GPP(0, 153, 176, 224),			/* GPP_C */
	ICL_GPP(0, 153, 176, 224),			/* GPP_C */
	ICL_GPP(1, 177, 182, ICL_NO_GPIO),	/* HVCMOS */
	ICL_GPP(1, 177, 182, INTEL_GPIO_BASE_NOMAP),	/* HVCMOS */
	ICL_GPP(2, 183, 206, 256),			/* GPP_E */
	ICL_GPP(2, 183, 206, 256),			/* GPP_E */
	ICL_GPP(3, 207, 215, ICL_NO_GPIO),	/* JTAG */
	ICL_GPP(3, 207, 215, INTEL_GPIO_BASE_NOMAP),	/* JTAG */
};
};


static const struct intel_padgroup icllp_community5_gpps[] = {
static const struct intel_padgroup icllp_community5_gpps[] = {
	ICL_GPP(0, 216, 223, 288),			/* GPP_R */
	ICL_GPP(0, 216, 223, 288),			/* GPP_R */
	ICL_GPP(1, 224, 231, 320),			/* GPP_S */
	ICL_GPP(1, 224, 231, 320),			/* GPP_S */
	ICL_GPP(2, 232, 240, ICL_NO_GPIO),	/* SPI */
	ICL_GPP(2, 232, 240, INTEL_GPIO_BASE_NOMAP),	/* SPI */
};
};


static const struct intel_community icllp_communities[] = {
static const struct intel_community icllp_communities[] = {