mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	ARM: 7101/1: arm/tegra: Replace <mach/gpio.h> with <mach/gpio-tegra.h>
This will eventually allow <mach/gpio.h> to be deleted. This mirrors LinusW's recent equivalent work on various other ARM platforms. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Olof Johansson <olof@lixom.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
		
							parent
							
								
									ab05be0572
								
							
						
					
					
						commit
						ea5abbd215
					
				
					 9 changed files with 51 additions and 39 deletions
				
			
		|  | @ -17,6 +17,8 @@ | |||
| #ifndef _MACH_TEGRA_BOARD_HARMONY_H | ||||
| #define _MACH_TEGRA_BOARD_HARMONY_H | ||||
| 
 | ||||
| #include <mach/gpio-tegra.h> | ||||
| 
 | ||||
| #define HARMONY_GPIO_TPS6586X(_x_)	(TEGRA_NR_GPIOS + (_x_)) | ||||
| #define HARMONY_GPIO_WM8903(_x_)	(HARMONY_GPIO_TPS6586X(4) + (_x_)) | ||||
| 
 | ||||
|  |  | |||
|  | @ -17,6 +17,8 @@ | |||
| #ifndef _MACH_TEGRA_BOARD_PAZ00_H | ||||
| #define _MACH_TEGRA_BOARD_PAZ00_H | ||||
| 
 | ||||
| #include <mach/gpio-tegra.h> | ||||
| 
 | ||||
| #define TEGRA_GPIO_SD1_CD		TEGRA_GPIO_PV5 | ||||
| #define TEGRA_GPIO_SD1_WP		TEGRA_GPIO_PH1 | ||||
| #define TEGRA_GPIO_SD1_POWER		TEGRA_GPIO_PT3 | ||||
|  |  | |||
|  | @ -17,6 +17,8 @@ | |||
| #ifndef _MACH_TEGRA_BOARD_SEABOARD_H | ||||
| #define _MACH_TEGRA_BOARD_SEABOARD_H | ||||
| 
 | ||||
| #include <mach/gpio-tegra.h> | ||||
| 
 | ||||
| #define TEGRA_GPIO_SD2_CD		TEGRA_GPIO_PI5 | ||||
| #define TEGRA_GPIO_SD2_WP		TEGRA_GPIO_PH1 | ||||
| #define TEGRA_GPIO_SD2_POWER		TEGRA_GPIO_PI6 | ||||
|  |  | |||
|  | @ -17,6 +17,8 @@ | |||
| #ifndef _MACH_TEGRA_BOARD_TRIMSLICE_H | ||||
| #define _MACH_TEGRA_BOARD_TRIMSLICE_H | ||||
| 
 | ||||
| #include <mach/gpio-tegra.h> | ||||
| 
 | ||||
| #define TRIMSLICE_GPIO_SD4_CD	TEGRA_GPIO_PP1	/* mmc4 cd */ | ||||
| #define TRIMSLICE_GPIO_SD4_WP	TEGRA_GPIO_PP2	/* mmc4 wp */ | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										39
									
								
								arch/arm/mach-tegra/include/mach/gpio-tegra.h
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								arch/arm/mach-tegra/include/mach/gpio-tegra.h
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,39 @@ | |||
| /*
 | ||||
|  * arch/arm/mach-tegra/include/mach/gpio.h | ||||
|  * | ||||
|  * Copyright (C) 2010 Google, Inc. | ||||
|  * | ||||
|  * Author: | ||||
|  *	Erik Gilling <konkers@google.com> | ||||
|  * | ||||
|  * This software is licensed under the terms of the GNU General Public | ||||
|  * License version 2, as published by the Free Software Foundation, and | ||||
|  * may be copied, distributed, and modified under those terms. | ||||
|  * | ||||
|  * 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. | ||||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #ifndef __MACH_TEGRA_GPIO_TEGRA_H | ||||
| #define __MACH_TEGRA_GPIO_TEGRA_H | ||||
| 
 | ||||
| #include <linux/types.h> | ||||
| #include <mach/irqs.h> | ||||
| 
 | ||||
| #define TEGRA_NR_GPIOS		INT_GPIO_NR | ||||
| 
 | ||||
| #define TEGRA_GPIO_TO_IRQ(gpio) (INT_GPIO_BASE + (gpio)) | ||||
| 
 | ||||
| struct tegra_gpio_table { | ||||
| 	int	gpio;	/* GPIO number */ | ||||
| 	bool	enable;	/* Enable for GPIO at init? */ | ||||
| }; | ||||
| 
 | ||||
| void tegra_gpio_config(struct tegra_gpio_table *table, int num); | ||||
| void tegra_gpio_enable(int gpio); | ||||
| void tegra_gpio_disable(int gpio); | ||||
| 
 | ||||
| #endif | ||||
|  | @ -1,39 +0,0 @@ | |||
| /*
 | ||||
|  * arch/arm/mach-tegra/include/mach/gpio.h | ||||
|  * | ||||
|  * Copyright (C) 2010 Google, Inc. | ||||
|  * | ||||
|  * Author: | ||||
|  *	Erik Gilling <konkers@google.com> | ||||
|  * | ||||
|  * This software is licensed under the terms of the GNU General Public | ||||
|  * License version 2, as published by the Free Software Foundation, and | ||||
|  * may be copied, distributed, and modified under those terms. | ||||
|  * | ||||
|  * 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. | ||||
|  * | ||||
|  */ | ||||
| 
 | ||||
| #ifndef __MACH_TEGRA_GPIO_H | ||||
| #define __MACH_TEGRA_GPIO_H | ||||
| 
 | ||||
| #include <linux/types.h> | ||||
| #include <mach/irqs.h> | ||||
| 
 | ||||
| #define TEGRA_NR_GPIOS		INT_GPIO_NR | ||||
| 
 | ||||
| #define TEGRA_GPIO_TO_IRQ(gpio) (INT_GPIO_BASE + (gpio)) | ||||
| 
 | ||||
| struct tegra_gpio_table { | ||||
| 	int	gpio;	/* GPIO number */ | ||||
| 	bool	enable;	/* Enable for GPIO at init? */ | ||||
| }; | ||||
| 
 | ||||
| void tegra_gpio_config(struct tegra_gpio_table *table, int num); | ||||
| void tegra_gpio_enable(int gpio); | ||||
| void tegra_gpio_disable(int gpio); | ||||
| 
 | ||||
| #endif | ||||
|  | @ -28,6 +28,7 @@ | |||
| #include <linux/usb/otg.h> | ||||
| #include <linux/usb/ulpi.h> | ||||
| #include <asm/mach-types.h> | ||||
| #include <mach/gpio-tegra.h> | ||||
| #include <mach/usb_phy.h> | ||||
| #include <mach/iomap.h> | ||||
| 
 | ||||
|  |  | |||
|  | @ -27,6 +27,7 @@ | |||
| 
 | ||||
| #include <asm/mach/irq.h> | ||||
| 
 | ||||
| #include <mach/gpio-tegra.h> | ||||
| #include <mach/iomap.h> | ||||
| #include <mach/suspend.h> | ||||
| 
 | ||||
|  |  | |||
|  | @ -22,6 +22,8 @@ | |||
| #include <linux/mmc/host.h> | ||||
| 
 | ||||
| #include <asm/gpio.h> | ||||
| 
 | ||||
| #include <mach/gpio-tegra.h> | ||||
| #include <mach/sdhci.h> | ||||
| 
 | ||||
| #include "sdhci-pltfm.h" | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Stephen Warren
						Stephen Warren