blob: 596d9f64c5b67e080d137004c9d85c70d31f5414 [file] [log] [blame]
Kukjin Kim232910d2013-01-02 10:18:58 -08001/*
2 * Copyright 2006 Ben Dooks <ben-linux@fluff.org>
Russell Kinga09e64f2008-08-05 16:14:15 +01003 *
4 * Copyright (c) 2005 Simtec Electronics
5 * http://armlinux.simtec.co.uk/
6 * Ben Dooks <ben@simtec.co.uk>
7 *
Kukjin Kim232910d2013-01-02 10:18:58 -08008 * iPAQ H1940 series definitions
Russell Kinga09e64f2008-08-05 16:14:15 +01009 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13*/
14
Kukjin Kim232910d2013-01-02 10:18:58 -080015#ifndef __MACH_S3C24XX_H1940_H
16#define __MACH_S3C24XX_H1940_H __FILE__
Russell Kinga09e64f2008-08-05 16:14:15 +010017
Kukjin Kim232910d2013-01-02 10:18:58 -080018#define H1940_SUSPEND_CHECKSUM (0x30003ff8)
19#define H1940_SUSPEND_RESUMEAT (0x30081000)
20#define H1940_SUSPEND_CHECK (0x30080000)
21
Mika Westerbergc673a2b2014-10-31 13:40:58 +020022struct gpio_desc;
23
Kukjin Kim232910d2013-01-02 10:18:58 -080024extern void h1940_pm_return(void);
Mika Westerbergc673a2b2014-10-31 13:40:58 +020025extern int h1940_led_blink_set(struct gpio_desc *desc, int state,
Kukjin Kim232910d2013-01-02 10:18:58 -080026 unsigned long *delay_on,
27 unsigned long *delay_off);
28
29#include <linux/gpio.h>
Russell Kinga09e64f2008-08-05 16:14:15 +010030
Vasily Khoruzhick14477092010-09-08 12:39:46 +030031#define H1940_LATCH_GPIO(x) (S3C_GPIO_END + (x))
Russell Kinga09e64f2008-08-05 16:14:15 +010032
33/* SD layer latch */
34
Vasily Khoruzhick53193dd2010-09-27 09:28:00 +030035#define H1940_LATCH_LCD_P0 H1940_LATCH_GPIO(0)
Vasily Khoruzhick14477092010-09-08 12:39:46 +030036#define H1940_LATCH_LCD_P1 H1940_LATCH_GPIO(1)
37#define H1940_LATCH_LCD_P2 H1940_LATCH_GPIO(2)
38#define H1940_LATCH_LCD_P3 H1940_LATCH_GPIO(3)
39#define H1940_LATCH_MAX1698_nSHUTDOWN H1940_LATCH_GPIO(4)
40#define H1940_LATCH_LED_RED H1940_LATCH_GPIO(5)
41#define H1940_LATCH_SDQ7 H1940_LATCH_GPIO(6)
42#define H1940_LATCH_USB_DP H1940_LATCH_GPIO(7)
Russell Kinga09e64f2008-08-05 16:14:15 +010043
44/* CPU layer latch */
45
Vasily Khoruzhick14477092010-09-08 12:39:46 +030046#define H1940_LATCH_UDA_POWER H1940_LATCH_GPIO(8)
47#define H1940_LATCH_AUDIO_POWER H1940_LATCH_GPIO(9)
48#define H1940_LATCH_SM803_ENABLE H1940_LATCH_GPIO(10)
49#define H1940_LATCH_LCD_P4 H1940_LATCH_GPIO(11)
Vasily Khoruzhick48cd65a2010-09-27 00:27:41 +030050#define H1940_LATCH_SD_POWER H1940_LATCH_GPIO(12)
Vasily Khoruzhick14477092010-09-08 12:39:46 +030051#define H1940_LATCH_BLUETOOTH_POWER H1940_LATCH_GPIO(13)
52#define H1940_LATCH_LED_GREEN H1940_LATCH_GPIO(14)
53#define H1940_LATCH_LED_FLASH H1940_LATCH_GPIO(15)
Russell Kinga09e64f2008-08-05 16:14:15 +010054
Kukjin Kim232910d2013-01-02 10:18:58 -080055#endif /* __MACH_S3C24XX_H1940_H */