Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 409d8783 authored by Alban Bedel's avatar Alban Bedel Committed by Linus Walleij
Browse files

gpio: ath79: Allow building in compile tests



To allow building the driver in compile tests we must drop the
dependency on asm/mach-ath79/ar71xx_regs.h. For this we replace the
include with local definition of the registers needed for this driver.

Signed-off-by: default avatarAlban Bedel <albeu@free.fr>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ab32770e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -129,7 +129,7 @@ config GPIO_AMDPT
config GPIO_ATH79
config GPIO_ATH79
	tristate "Atheros AR71XX/AR724X/AR913X GPIO support"
	tristate "Atheros AR71XX/AR724X/AR913X GPIO support"
	default y if ATH79
	default y if ATH79
	depends on ATH79
	depends on ATH79 || COMPILE_TEST
	select GPIO_GENERIC
	select GPIO_GENERIC
	help
	help
	  Select this option to enable GPIO driver for
	  Select this option to enable GPIO driver for
+4 −1
Original line number Original line Diff line number Diff line
@@ -16,7 +16,10 @@
#include <linux/platform_data/gpio-ath79.h>
#include <linux/platform_data/gpio-ath79.h>
#include <linux/of_device.h>
#include <linux/of_device.h>


#include <asm/mach-ath79/ar71xx_regs.h>
#define AR71XX_GPIO_REG_OE		0x00
#define AR71XX_GPIO_REG_IN		0x04
#define AR71XX_GPIO_REG_SET		0x0c
#define AR71XX_GPIO_REG_CLEAR		0x10


struct ath79_gpio_ctrl {
struct ath79_gpio_ctrl {
	struct gpio_chip gc;
	struct gpio_chip gc;