/* * Copyright (c) 2010-2012 Samsung Electronics Co., Ltd. * http://www.samsung.com * * EXYNOS - GPIO lib support * * 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 __ASM_ARCH_GPIO_H #define __ASM_ARCH_GPIO_H __FILE__ /* Macro for EXYNOS GPIO numbering */ #define EXYNOS_GPIO_NEXT(__gpio) \ ((__gpio##_START) + (__gpio##_NR) + CONFIG_S3C_GPIO_SPACE + 1) /* EXYNOS4 GPIO bank sizes */ #define EXYNOS4_GPIO_A0_NR (8) #define EXYNOS4_GPIO_A1_NR (6) #define EXYNOS4_GPIO_B_NR (8) #define EXYNOS4_GPIO_C0_NR (5) #define EXYNOS4_GPIO_C1_NR (5) #define EXYNOS4_GPIO_D0_NR (4) #define EXYNOS4_GPIO_D1_NR (4) #define EXYNOS4_GPIO_E0_NR (5) #define EXYNOS4_GPIO_E1_NR (8) #define EXYNOS4_GPIO_E2_NR (6) #define EXYNOS4_GPIO_E3_NR (8) #define EXYNOS4_GPIO_E4_NR (8) #define EXYNOS4_GPIO_F0_NR (8) #define EXYNOS4_GPIO_F1_NR (8) #define EXYNOS4_GPIO_F2_NR (8) #define EXYNOS4_GPIO_F3_NR (6) #define EXYNOS4_GPIO_J0_NR (8) #define EXYNOS4_GPIO_J1_NR (5) #define EXYNOS4_GPIO_K0_NR (7) #define EXYNOS4_GPIO_K1_NR (7) #define EXYNOS4_GPIO_K2_NR (7) #define EXYNOS4_GPIO_K3_NR (7) #define EXYNOS4_GPIO_L0_NR (8) #define EXYNOS4_GPIO_L1_NR (3) #define EXYNOS4_GPIO_L2_NR (8) #define EXYNOS4_GPIO_X0_NR (8) #define EXYNOS4_GPIO_X1_NR (8) #define EXYNOS4_GPIO_X2_NR (8) #define EXYNOS4_GPIO_X3_NR (8) #define EXYNOS4_GPIO_Y0_NR (6) #define EXYNOS4_GPIO_Y1_NR (4) #define EXYNOS4_GPIO_Y2_NR (6) #define EXYNOS4_GPIO_Y3_NR (8) #define EXYNOS4_GPIO_Y4_NR (8) #define EXYNOS4_GPIO_Y5_NR (8) #define EXYNOS4_GPIO_Y6_NR (8) #define EXYNOS4_GPIO_Z_NR (7) /* EXYNOS4 GPIO bank numbers */ enum exynos4_gpio_number {