1 /* 2 * Header file for the ST Microelectronics SPEAr3xx pinmux 3 * 4 * Copyright (C) 2012 ST Microelectronics 5 * Viresh Kumar <viresh.linux@gmail.com> 6 * 7 * This file is licensed under the terms of the GNU General Public 8 * License version 2. This program is licensed "as is" without any 9 * warranty of any kind, whether express or implied. 10 */ 11 12 #ifndef __PINMUX_SPEAR3XX_H__ 13 #define __PINMUX_SPEAR3XX_H__ 14 15 #include "pinctrl-spear.h" 16 17 /* pad mux declarations */ 18 #define PMX_FIRDA_MASK (1 << 14) 19 #define PMX_I2C_MASK (1 << 13) 20 #define PMX_SSP_CS_MASK (1 << 12) 21 #define PMX_SSP_MASK (1 << 11) 22 #define PMX_MII_MASK (1 << 10) 23 #define PMX_GPIO_PIN0_MASK (1 << 9) 24 #define PMX_GPIO_PIN1_MASK (1 << 8) 25 #define PMX_GPIO_PIN2_MASK (1 << 7) 26 #define PMX_GPIO_PIN3_MASK (1 << 6) 27 #define PMX_GPIO_PIN4_MASK (1 << 5) 28 #define PMX_GPIO_PIN5_MASK (1 << 4) 29 #define PMX_UART0_MODEM_MASK (1 << 3) 30 #define PMX_UART0_MASK (1 << 2) 31 #define PMX_TIMER_2_3_MASK (1 << 1) 32 #define PMX_TIMER_0_1_MASK (1 << 0) 33 34 extern struct spear_pingroup spear3xx_firda_pingroup; 35 extern struct spear_pingroup spear3xx_gpio0_pin0_pingroup; 36 extern struct spear_pingroup spear3xx_gpio0_pin1_pingroup; 37 extern struct spear_pingroup spear3xx_gpio0_pin2_pingroup; 38 extern struct spear_pingroup spear3xx_gpio0_pin3_pingroup; 39 extern struct spear_pingroup spear3xx_gpio0_pin4_pingroup; 40 extern struct spear_pingroup spear3xx_gpio0_pin5_pingroup; 41 extern struct spear_pingroup spear3xx_i2c_pingroup; 42 extern struct spear_pingroup spear3xx_mii_pingroup; 43 extern struct spear_pingroup spear3xx_ssp_cs_pingroup; 44 extern struct spear_pingroup spear3xx_ssp_pingroup; 45 extern struct spear_pingroup spear3xx_timer_0_1_pingroup; 46 extern struct spear_pingroup spear3xx_timer_2_3_pingroup; 47 extern struct spear_pingroup spear3xx_uart0_ext_pingroup; 48 extern struct spear_pingroup spear3xx_uart0_pingroup; 49 50 #define SPEAR3XX_COMMON_PINGROUPS \ 51 &spear3xx_firda_pingroup, \ 52 &spear3xx_gpio0_pin0_pingroup, \ 53 &spear3xx_gpio0_pin1_pingroup, \ 54 &spear3xx_gpio0_pin2_pingroup, \ 55 &spear3xx_gpio0_pin3_pingroup, \ 56 &spear3xx_gpio0_pin4_pingroup, \ 57 &spear3xx_gpio0_pin5_pingroup, \ 58 &spear3xx_i2c_pingroup, \ 59 &spear3xx_mii_pingroup, \ 60 &spear3xx_ssp_cs_pingroup, \ 61 &spear3xx_ssp_pingroup, \ 62 &spear3xx_timer_0_1_pingroup, \ 63 &spear3xx_timer_2_3_pingroup, \ 64 &spear3xx_uart0_ext_pingroup, \ 65 &spear3xx_uart0_pingroup 66 67 extern struct spear_function spear3xx_firda_function; 68 extern struct spear_function spear3xx_gpio0_function; 69 extern struct spear_function spear3xx_i2c_function; 70 extern struct spear_function spear3xx_mii_function; 71 extern struct spear_function spear3xx_ssp_cs_function; 72 extern struct spear_function spear3xx_ssp_function; 73 extern struct spear_function spear3xx_timer_0_1_function; 74 extern struct spear_function spear3xx_timer_2_3_function; 75 extern struct spear_function spear3xx_uart0_ext_function; 76 extern struct spear_function spear3xx_uart0_function; 77 78 #define SPEAR3XX_COMMON_FUNCTIONS \ 79 &spear3xx_firda_function, \ 80 &spear3xx_gpio0_function, \ 81 &spear3xx_i2c_function, \ 82 &spear3xx_mii_function, \ 83 &spear3xx_ssp_cs_function, \ 84 &spear3xx_ssp_function, \ 85 &spear3xx_timer_0_1_function, \ 86 &spear3xx_timer_2_3_function, \ 87 &spear3xx_uart0_ext_function, \ 88 &spear3xx_uart0_function 89 90 extern struct spear_pinctrl_machdata spear3xx_machdata; 91 92 #endif /* __PINMUX_SPEAR3XX_H__ */ 93