Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Copyright 2006 Ben Dooks <ben-linux@fluff.org>
0004  *
0005  * Copyright (c) 2005 Simtec Electronics
0006  *  http://armlinux.simtec.co.uk/
0007  *  Ben Dooks <ben@simtec.co.uk>
0008  *
0009  * iPAQ H1940 series definitions
0010  */
0011 
0012 #ifndef __MACH_S3C24XX_H1940_H
0013 #define __MACH_S3C24XX_H1940_H __FILE__
0014 
0015 #define H1940_SUSPEND_CHECKSUM      (0x30003ff8)
0016 #define H1940_SUSPEND_RESUMEAT      (0x30081000)
0017 #define H1940_SUSPEND_CHECK     (0x30080000)
0018 
0019 struct gpio_desc;
0020 
0021 extern void h1940_pm_return(void);
0022 extern int h1940_led_blink_set(struct gpio_desc *desc, int state,
0023                    unsigned long *delay_on,
0024                    unsigned long *delay_off);
0025 
0026 #include <linux/gpio.h>
0027 
0028 #define H1940_LATCH_GPIO(x)     (S3C_GPIO_END + (x))
0029 
0030 /* SD layer latch */
0031 
0032 #define H1940_LATCH_LCD_P0      H1940_LATCH_GPIO(0)
0033 #define H1940_LATCH_LCD_P1      H1940_LATCH_GPIO(1)
0034 #define H1940_LATCH_LCD_P2      H1940_LATCH_GPIO(2)
0035 #define H1940_LATCH_LCD_P3      H1940_LATCH_GPIO(3)
0036 #define H1940_LATCH_MAX1698_nSHUTDOWN   H1940_LATCH_GPIO(4)
0037 #define H1940_LATCH_LED_RED     H1940_LATCH_GPIO(5)
0038 #define H1940_LATCH_SDQ7        H1940_LATCH_GPIO(6)
0039 #define H1940_LATCH_USB_DP      H1940_LATCH_GPIO(7)
0040 
0041 /* CPU layer latch */
0042 
0043 #define H1940_LATCH_UDA_POWER       H1940_LATCH_GPIO(8)
0044 #define H1940_LATCH_AUDIO_POWER     H1940_LATCH_GPIO(9)
0045 #define H1940_LATCH_SM803_ENABLE    H1940_LATCH_GPIO(10)
0046 #define H1940_LATCH_LCD_P4      H1940_LATCH_GPIO(11)
0047 #define H1940_LATCH_SD_POWER        H1940_LATCH_GPIO(12)
0048 #define H1940_LATCH_BLUETOOTH_POWER H1940_LATCH_GPIO(13)
0049 #define H1940_LATCH_LED_GREEN       H1940_LATCH_GPIO(14)
0050 #define H1940_LATCH_LED_FLASH       H1940_LATCH_GPIO(15)
0051 
0052 #endif /* __MACH_S3C24XX_H1940_H */