Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 1 | /* arch/arm/mach-s3c2410/include/mach/h1940-latch.h |
| 2 | * |
| 3 | * Copyright (c) 2005 Simtec Electronics |
| 4 | * http://armlinux.simtec.co.uk/ |
| 5 | * Ben Dooks <ben@simtec.co.uk> |
| 6 | * |
| 7 | * iPAQ H1940 series - latch definitions |
| 8 | * |
| 9 | * This program is free software; you can redistribute it and/or modify |
| 10 | * it under the terms of the GNU General Public License version 2 as |
| 11 | * published by the Free Software Foundation. |
| 12 | */ |
| 13 | |
| 14 | #ifndef __ASM_ARCH_H1940_LATCH_H |
| 15 | #define __ASM_ARCH_H1940_LATCH_H |
| 16 | |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 17 | #include <mach/gpio.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 18 | |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 19 | #define H1940_LATCH_GPIO(x) (S3C_GPIO_END + (x)) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 20 | |
| 21 | /* SD layer latch */ |
| 22 | |
Vasily Khoruzhick | 53193dd | 2010-09-27 09:28:00 +0300 | [diff] [blame] | 23 | #define H1940_LATCH_LCD_P0 H1940_LATCH_GPIO(0) |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 24 | #define H1940_LATCH_LCD_P1 H1940_LATCH_GPIO(1) |
| 25 | #define H1940_LATCH_LCD_P2 H1940_LATCH_GPIO(2) |
| 26 | #define H1940_LATCH_LCD_P3 H1940_LATCH_GPIO(3) |
| 27 | #define H1940_LATCH_MAX1698_nSHUTDOWN H1940_LATCH_GPIO(4) |
| 28 | #define H1940_LATCH_LED_RED H1940_LATCH_GPIO(5) |
| 29 | #define H1940_LATCH_SDQ7 H1940_LATCH_GPIO(6) |
| 30 | #define H1940_LATCH_USB_DP H1940_LATCH_GPIO(7) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 31 | |
| 32 | /* CPU layer latch */ |
| 33 | |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 34 | #define H1940_LATCH_UDA_POWER H1940_LATCH_GPIO(8) |
| 35 | #define H1940_LATCH_AUDIO_POWER H1940_LATCH_GPIO(9) |
| 36 | #define H1940_LATCH_SM803_ENABLE H1940_LATCH_GPIO(10) |
| 37 | #define H1940_LATCH_LCD_P4 H1940_LATCH_GPIO(11) |
Vasily Khoruzhick | 48cd65a | 2010-09-27 00:27:41 +0300 | [diff] [blame] | 38 | #define H1940_LATCH_SD_POWER H1940_LATCH_GPIO(12) |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 39 | #define H1940_LATCH_BLUETOOTH_POWER H1940_LATCH_GPIO(13) |
| 40 | #define H1940_LATCH_LED_GREEN H1940_LATCH_GPIO(14) |
| 41 | #define H1940_LATCH_LED_FLASH H1940_LATCH_GPIO(15) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 42 | |
| 43 | #endif /* __ASM_ARCH_H1940_LATCH_H */ |