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

Commit 85649711 authored by Linus Walleij's avatar Linus Walleij
Browse files

ARM: gemini: delete <mach/gpio.h>



The Gemini has no need of a <mach/gpio.h> header as this is only
used by the machine-local gpio.c gpiochip driver, which is also
only using the irq_to_gpio() macro. Delete the file, move the single
macro into the driver and remove the NEED_MACH_GPIO_H flag.

Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a72be8b8
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -388,7 +388,6 @@ config ARCH_GEMINI
	select ARCH_REQUIRE_GPIOLIB
	select ARCH_REQUIRE_GPIOLIB
	select ARCH_USES_GETTIMEOFFSET
	select ARCH_USES_GETTIMEOFFSET
	select CPU_FA526
	select CPU_FA526
	select NEED_MACH_GPIO_H
	help
	help
	  Support for the Cortina Systems Gemini family SoCs
	  Support for the Cortina Systems Gemini family SoCs


+1 −1
Original line number Original line Diff line number Diff line
@@ -21,9 +21,9 @@


#include <mach/hardware.h>
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <mach/irqs.h>
#include <mach/gpio.h>


#define GPIO_BASE(x)		IO_ADDRESS(GEMINI_GPIO_BASE(x))
#define GPIO_BASE(x)		IO_ADDRESS(GEMINI_GPIO_BASE(x))
#define irq_to_gpio(x)		((x) - GPIO_IRQ_BASE)


/* GPIO registers definition */
/* GPIO registers definition */
#define GPIO_DATA_OUT		0x0
#define GPIO_DATA_OUT		0x0
+0 −20
Original line number Original line Diff line number Diff line
/*
 * Gemini gpiolib specific defines
 *
 * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 */

#ifndef __MACH_GPIO_H__
#define __MACH_GPIO_H__

#include <mach/irqs.h>

#define gpio_to_irq(x)	((x) + GPIO_IRQ_BASE)
#define irq_to_gpio(x)	((x) - GPIO_IRQ_BASE)

#endif /* __MACH_GPIO_H__ */