~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/arm/mach-pxa/gumstix.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*
  3  *  arch/arm/mach-pxa/include/mach/gumstix.h
  4  */
  5 
  6 #include "irqs.h" /* PXA_GPIO_TO_IRQ */
  7 
  8 /* BTRESET - Reset line to Bluetooth module, active low signal. */
  9 #define GPIO_GUMSTIX_BTRESET          7
 10 #define GPIO_GUMSTIX_BTRESET_MD         (GPIO_GUMSTIX_BTRESET | GPIO_OUT)
 11 
 12 
 13 /*
 14 GPIOn - Input from MAX823 (or equiv), normalizing USB +5V into a clean
 15 interrupt signal for determining cable presence. On the gumstix F,
 16 this moves to GPIO17 and GPIO37. */
 17 
 18 /* GPIOx - Connects to USB D+ and used as a pull-up after GPIOn
 19 has detected a cable insertion; driven low otherwise. */
 20 
 21 #define GPIO_GUMSTIX_USB_GPIOn          35
 22 #define GPIO_GUMSTIX_USB_GPIOx          41
 23 
 24 /* usb state change */
 25 #define GUMSTIX_USB_INTR_IRQ            PXA_GPIO_TO_IRQ(GPIO_GUMSTIX_USB_GPIOn)
 26 
 27 #define GPIO_GUMSTIX_USB_GPIOn_MD       (GPIO_GUMSTIX_USB_GPIOn | GPIO_IN)
 28 #define GPIO_GUMSTIX_USB_GPIOx_CON_MD   (GPIO_GUMSTIX_USB_GPIOx | GPIO_OUT)
 29 #define GPIO_GUMSTIX_USB_GPIOx_DIS_MD   (GPIO_GUMSTIX_USB_GPIOx | GPIO_IN)
 30 
 31 /*
 32  * SD/MMC definitions
 33  */
 34 #define GUMSTIX_GPIO_nSD_WP             22 /* SD Write Protect */
 35 #define GUMSTIX_GPIO_nSD_DETECT         11 /* MMC/SD Card Detect */
 36 #define GUMSTIX_IRQ_GPIO_nSD_DETECT     PXA_GPIO_TO_IRQ(GUMSTIX_GPIO_nSD_DETECT)
 37 
 38 /*
 39  * SMC Ethernet definitions
 40  * ETH_RST provides a hardware reset line to the ethernet chip
 41  * ETH is the IRQ line in from the ethernet chip to the PXA
 42  */
 43 #define GPIO_GUMSTIX_ETH0_RST           80
 44 #define GPIO_GUMSTIX_ETH0_RST_MD        (GPIO_GUMSTIX_ETH0_RST | GPIO_OUT)
 45 #define GPIO_GUMSTIX_ETH1_RST           52
 46 #define GPIO_GUMSTIX_ETH1_RST_MD        (GPIO_GUMSTIX_ETH1_RST | GPIO_OUT)
 47 
 48 #define GPIO_GUMSTIX_ETH0               36
 49 #define GPIO_GUMSTIX_ETH0_MD            (GPIO_GUMSTIX_ETH0 | GPIO_IN)
 50 #define GUMSTIX_ETH0_IRQ                PXA_GPIO_TO_IRQ(GPIO_GUMSTIX_ETH0)
 51 #define GPIO_GUMSTIX_ETH1               27
 52 #define GPIO_GUMSTIX_ETH1_MD            (GPIO_GUMSTIX_ETH1 | GPIO_IN)
 53 #define GUMSTIX_ETH1_IRQ                PXA_GPIO_TO_IRQ(GPIO_GUMSTIX_ETH1)
 54 
 55 
 56 /* CF reset line */
 57 #define GPIO8_RESET                     8
 58 
 59 /* CF slot 0 */
 60 #define GPIO4_nBVD1                     4
 61 #define GPIO4_nSTSCHG                   GPIO4_nBVD1
 62 #define GPIO11_nCD                      11
 63 #define GPIO26_PRDY_nBSY                26
 64 #define GUMSTIX_S0_nSTSCHG_IRQ          PXA_GPIO_TO_IRQ(GPIO4_nSTSCHG)
 65 #define GUMSTIX_S0_nCD_IRQ              PXA_GPIO_TO_IRQ(GPIO11_nCD)
 66 #define GUMSTIX_S0_PRDY_nBSY_IRQ        PXA_GPIO_TO_IRQ(GPIO26_PRDY_nBSY)
 67 
 68 /* CF slot 1 */
 69 #define GPIO18_nBVD1                    18
 70 #define GPIO18_nSTSCHG                  GPIO18_nBVD1
 71 #define GPIO36_nCD                      36
 72 #define GPIO27_PRDY_nBSY                27
 73 #define GUMSTIX_S1_nSTSCHG_IRQ          PXA_GPIO_TO_IRQ(GPIO18_nSTSCHG)
 74 #define GUMSTIX_S1_nCD_IRQ              PXA_GPIO_TO_IRQ(GPIO36_nCD)
 75 #define GUMSTIX_S1_PRDY_nBSY_IRQ        PXA_GPIO_TO_IRQ(GPIO27_PRDY_nBSY)
 76 
 77 /* CF GPIO line modes */
 78 #define GPIO4_nSTSCHG_MD                (GPIO4_nSTSCHG | GPIO_IN)
 79 #define GPIO8_RESET_MD                  (GPIO8_RESET | GPIO_OUT)
 80 #define GPIO11_nCD_MD                   (GPIO11_nCD | GPIO_IN)
 81 #define GPIO18_nSTSCHG_MD               (GPIO18_nSTSCHG | GPIO_IN)
 82 #define GPIO26_PRDY_nBSY_MD             (GPIO26_PRDY_nBSY | GPIO_IN)
 83 #define GPIO27_PRDY_nBSY_MD             (GPIO27_PRDY_nBSY | GPIO_IN)
 84 #define GPIO36_nCD_MD                   (GPIO36_nCD | GPIO_IN)
 85 
 86 /* for expansion boards that can't be programatically detected */
 87 extern int am200_init(void);
 88 extern int am300_init(void);
 89 
 90 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php