2017-12-26 03:54:32 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2013-01-03 02:18:58 +08:00
|
|
|
/*
|
|
|
|
* Copyright 2006 Ben Dooks <ben-linux@fluff.org>
|
2006-02-11 06:40:51 +08:00
|
|
|
*
|
2006-12-18 03:02:01 +08:00
|
|
|
* Copyright (c) 2005 Simtec Electronics
|
2006-02-11 06:40:51 +08:00
|
|
|
* http://armlinux.simtec.co.uk/
|
|
|
|
* Ben Dooks <ben@simtec.co.uk>
|
|
|
|
*
|
2013-01-03 02:18:58 +08:00
|
|
|
* iPAQ H1940 series definitions
|
2017-12-26 03:54:32 +08:00
|
|
|
*/
|
2006-02-11 06:40:51 +08:00
|
|
|
|
2013-01-03 02:18:58 +08:00
|
|
|
#ifndef __MACH_S3C24XX_H1940_H
|
|
|
|
#define __MACH_S3C24XX_H1940_H __FILE__
|
2006-02-11 06:40:51 +08:00
|
|
|
|
2013-01-03 02:18:58 +08:00
|
|
|
#define H1940_SUSPEND_CHECKSUM (0x30003ff8)
|
|
|
|
#define H1940_SUSPEND_RESUMEAT (0x30081000)
|
|
|
|
#define H1940_SUSPEND_CHECK (0x30080000)
|
|
|
|
|
2014-10-31 19:40:58 +08:00
|
|
|
struct gpio_desc;
|
|
|
|
|
2013-01-03 02:18:58 +08:00
|
|
|
extern void h1940_pm_return(void);
|
2014-10-31 19:40:58 +08:00
|
|
|
extern int h1940_led_blink_set(struct gpio_desc *desc, int state,
|
2013-01-03 02:18:58 +08:00
|
|
|
unsigned long *delay_on,
|
|
|
|
unsigned long *delay_off);
|
|
|
|
|
|
|
|
#include <linux/gpio.h>
|
2006-02-11 06:40:51 +08:00
|
|
|
|
2010-09-08 17:39:46 +08:00
|
|
|
#define H1940_LATCH_GPIO(x) (S3C_GPIO_END + (x))
|
2006-02-11 06:40:51 +08:00
|
|
|
|
|
|
|
/* SD layer latch */
|
|
|
|
|
2010-09-27 14:28:00 +08:00
|
|
|
#define H1940_LATCH_LCD_P0 H1940_LATCH_GPIO(0)
|
2010-09-08 17:39:46 +08:00
|
|
|
#define H1940_LATCH_LCD_P1 H1940_LATCH_GPIO(1)
|
|
|
|
#define H1940_LATCH_LCD_P2 H1940_LATCH_GPIO(2)
|
|
|
|
#define H1940_LATCH_LCD_P3 H1940_LATCH_GPIO(3)
|
|
|
|
#define H1940_LATCH_MAX1698_nSHUTDOWN H1940_LATCH_GPIO(4)
|
|
|
|
#define H1940_LATCH_LED_RED H1940_LATCH_GPIO(5)
|
|
|
|
#define H1940_LATCH_SDQ7 H1940_LATCH_GPIO(6)
|
|
|
|
#define H1940_LATCH_USB_DP H1940_LATCH_GPIO(7)
|
2006-02-11 06:40:51 +08:00
|
|
|
|
|
|
|
/* CPU layer latch */
|
|
|
|
|
2010-09-08 17:39:46 +08:00
|
|
|
#define H1940_LATCH_UDA_POWER H1940_LATCH_GPIO(8)
|
|
|
|
#define H1940_LATCH_AUDIO_POWER H1940_LATCH_GPIO(9)
|
|
|
|
#define H1940_LATCH_SM803_ENABLE H1940_LATCH_GPIO(10)
|
|
|
|
#define H1940_LATCH_LCD_P4 H1940_LATCH_GPIO(11)
|
2010-09-27 05:27:41 +08:00
|
|
|
#define H1940_LATCH_SD_POWER H1940_LATCH_GPIO(12)
|
2010-09-08 17:39:46 +08:00
|
|
|
#define H1940_LATCH_BLUETOOTH_POWER H1940_LATCH_GPIO(13)
|
|
|
|
#define H1940_LATCH_LED_GREEN H1940_LATCH_GPIO(14)
|
|
|
|
#define H1940_LATCH_LED_FLASH H1940_LATCH_GPIO(15)
|
2006-02-11 06:40:51 +08:00
|
|
|
|
2013-01-03 02:18:58 +08:00
|
|
|
#endif /* __MACH_S3C24XX_H1940_H */
|