From 9efa182dfd1331384ebba364e65859e2e696dc58 Mon Sep 17 00:00:00 2001 From: Stepan Moskovchenko Date: Wed, 21 Sep 2011 16:52:16 -0700 Subject: [PATCH] ks8851: Add GPIO configuration platform data Add platform data for the KS8851 SPI Ethernet device to enable proper GPIO configuration for the reset and interrupt pins. Change-Id: I79adae4628f38a2ca5bc17825258c41ab5e1623d Signed-off-by: Stepan Moskovchenko (cherry picked from commit 93d79ecd11a79a097a5c051438d9c3502902af6e) Conflicts: arch/arm/mach-msm/board-msm8960.c drivers/net/ks8851.c --- include/linux/ks8851.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 include/linux/ks8851.h diff --git a/include/linux/ks8851.h b/include/linux/ks8851.h new file mode 100644 index 00000000000..6970f47ee95 --- /dev/null +++ b/include/linux/ks8851.h @@ -0,0 +1,23 @@ +/* Copyright (c) 2011, Code Aurora Forum. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/* struct ks8851_pdata - platform data definition for a KS8851 device + * @irq_gpio - GPIO pin number for the KS8851 IRQ line + * @rst_gpio - GPIO pin number for the KS8851 Reset line + * + * Platform data may be omitted (or individual GPIO numbers set to -1) to + * avoid doing any GPIO configuration in the driver. + */ +struct ks8851_pdata { + int irq_gpio; + int rst_gpio; +};