Krzysztof Kozlowski | 84b2170 | 2017-12-25 20:54:32 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Kukjin Kim | 232910d | 2013-01-02 10:18:58 -0800 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2006 Ben Dooks <ben-linux@fluff.org> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 4 | * |
| 5 | * Copyright (c) 2005 Simtec Electronics |
| 6 | * http://armlinux.simtec.co.uk/ |
| 7 | * Ben Dooks <ben@simtec.co.uk> |
| 8 | * |
Kukjin Kim | 232910d | 2013-01-02 10:18:58 -0800 | [diff] [blame] | 9 | * iPAQ H1940 series definitions |
Krzysztof Kozlowski | 84b2170 | 2017-12-25 20:54:32 +0100 | [diff] [blame^] | 10 | */ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 11 | |
Kukjin Kim | 232910d | 2013-01-02 10:18:58 -0800 | [diff] [blame] | 12 | #ifndef __MACH_S3C24XX_H1940_H |
| 13 | #define __MACH_S3C24XX_H1940_H __FILE__ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 14 | |
Kukjin Kim | 232910d | 2013-01-02 10:18:58 -0800 | [diff] [blame] | 15 | #define H1940_SUSPEND_CHECKSUM (0x30003ff8) |
| 16 | #define H1940_SUSPEND_RESUMEAT (0x30081000) |
| 17 | #define H1940_SUSPEND_CHECK (0x30080000) |
| 18 | |
Mika Westerberg | c673a2b | 2014-10-31 13:40:58 +0200 | [diff] [blame] | 19 | struct gpio_desc; |
| 20 | |
Kukjin Kim | 232910d | 2013-01-02 10:18:58 -0800 | [diff] [blame] | 21 | extern void h1940_pm_return(void); |
Mika Westerberg | c673a2b | 2014-10-31 13:40:58 +0200 | [diff] [blame] | 22 | extern int h1940_led_blink_set(struct gpio_desc *desc, int state, |
Kukjin Kim | 232910d | 2013-01-02 10:18:58 -0800 | [diff] [blame] | 23 | unsigned long *delay_on, |
| 24 | unsigned long *delay_off); |
| 25 | |
| 26 | #include <linux/gpio.h> |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 27 | |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 28 | #define H1940_LATCH_GPIO(x) (S3C_GPIO_END + (x)) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 29 | |
| 30 | /* SD layer latch */ |
| 31 | |
Vasily Khoruzhick | 53193dd | 2010-09-27 09:28:00 +0300 | [diff] [blame] | 32 | #define H1940_LATCH_LCD_P0 H1940_LATCH_GPIO(0) |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 33 | #define H1940_LATCH_LCD_P1 H1940_LATCH_GPIO(1) |
| 34 | #define H1940_LATCH_LCD_P2 H1940_LATCH_GPIO(2) |
| 35 | #define H1940_LATCH_LCD_P3 H1940_LATCH_GPIO(3) |
| 36 | #define H1940_LATCH_MAX1698_nSHUTDOWN H1940_LATCH_GPIO(4) |
| 37 | #define H1940_LATCH_LED_RED H1940_LATCH_GPIO(5) |
| 38 | #define H1940_LATCH_SDQ7 H1940_LATCH_GPIO(6) |
| 39 | #define H1940_LATCH_USB_DP H1940_LATCH_GPIO(7) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 40 | |
| 41 | /* CPU layer latch */ |
| 42 | |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 43 | #define H1940_LATCH_UDA_POWER H1940_LATCH_GPIO(8) |
| 44 | #define H1940_LATCH_AUDIO_POWER H1940_LATCH_GPIO(9) |
| 45 | #define H1940_LATCH_SM803_ENABLE H1940_LATCH_GPIO(10) |
| 46 | #define H1940_LATCH_LCD_P4 H1940_LATCH_GPIO(11) |
Vasily Khoruzhick | 48cd65a | 2010-09-27 00:27:41 +0300 | [diff] [blame] | 47 | #define H1940_LATCH_SD_POWER H1940_LATCH_GPIO(12) |
Vasily Khoruzhick | 1447709 | 2010-09-08 12:39:46 +0300 | [diff] [blame] | 48 | #define H1940_LATCH_BLUETOOTH_POWER H1940_LATCH_GPIO(13) |
| 49 | #define H1940_LATCH_LED_GREEN H1940_LATCH_GPIO(14) |
| 50 | #define H1940_LATCH_LED_FLASH H1940_LATCH_GPIO(15) |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 51 | |
Kukjin Kim | 232910d | 2013-01-02 10:18:58 -0800 | [diff] [blame] | 52 | #endif /* __MACH_S3C24XX_H1940_H */ |