MIPS: ath79: Add OF support to the GPIO driver
Replace the simple GPIO chip registration by a platform driver and make ath79_gpio_init() just register the device. Signed-off-by: Alban Bedel <albeu@free.fr> Cc: linux-mips@linux-mips.org Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
d6743a496c
commit
2ddf3a7922
3 changed files with 127 additions and 22 deletions
19
include/linux/platform_data/gpio-ath79.h
Normal file
19
include/linux/platform_data/gpio-ath79.h
Normal file
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Atheros AR7XXX/AR9XXX GPIO controller platform data
|
||||
*
|
||||
* Copyright (C) 2015 Alban Bedel <albeu@free.fr>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 as
|
||||
* published by the Free Software Foundation.
|
||||
*/
|
||||
|
||||
#ifndef __LINUX_PLATFORM_DATA_GPIO_ATH79_H
|
||||
#define __LINUX_PLATFORM_DATA_GPIO_ATH79_H
|
||||
|
||||
struct ath79_gpio_platform_data {
|
||||
unsigned ngpios;
|
||||
bool oe_inverted;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue