Thread (1 message) 1 message, 1 author, 2011-12-08

RE: [PATCH v2 3/8] arm/tegra: Split Seaboard GPIO table to allow for Ventana

From: Stephen Warren <hidden>
Date: 2011-12-08 00:16:53
Also in: linux-tegra

Olof Johansson wrote at Wednesday, December 07, 2011 5:11 PM:
On Wed, Dec 07, 2011 at 03:13:44PM -0700, Stephen Warren wrote:
quoted
Seaboard and Ventana share some GPIOs, but others are different. Split the
GPIO table into common, seaboard-specific, and ventana-specific tables, so
that only the correct ones are enabled for each board. Add a few missing
audio-related GPIOs for Ventana.
...
quoted
+static struct tegra_gpio_table ventana_gpio_table[] = {
+	/* hp_det */
+	{ .gpio = TEGRA_GPIO_PW2,		.enable = true },
+	/* int_mic_en */
+	{ .gpio = TEGRA_GPIO_PX0,		.enable = true },
+	/* ext_mic_en */
+	{ .gpio = TEGRA_GPIO_PX1,		.enable = true },
+};
These should be given symbolical names instead.
I only gave the Seaboard GPIOs symbolic names because they all ended up
being used in multiple places; in this GPIO table, in platform data,
etc. Given that Ventana is a DT-only board, and this is the only place
that the GPIOs will ever be named by code rather than *.dts files, does
it make sense to require symbolic names? If you do think so, I don't
really have any objection to making names.

-- 
nvpublic
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help