aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-02-29 16:05:03 -0500
committerArnd Bergmann <arnd@arndb.de>2012-02-29 16:05:03 -0500
commit235ecf4c59ebe13e065a40755d999fa9850b8179 (patch)
treefc1048fe799b67413bb5716c1f0775f188500822 /arch/arm/plat-omap
parentfb0b82b32ce17564bc64cede50bf4a3204eecc60 (diff)
parent967809bd7faf71ddc29c8081e0f21db8b201a0f4 (diff)
Merge branch 'omap1' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/boards
* 'omap1' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: input: serio: ams-delta: toggle keyboard power over GPIO omapfb: lcd_ams_delta: drive control lines over GPIO MTD: NAND: ams-delta: use GPIO instead of custom I/O LED: drop leds-ams-delta driver ARM: OMAP1: ams-delta: supersede custom led device by leds-gpio ARM: OMAP1: ams-delta: convert latches to basic_mmio_gpio ARM: OMAP1: ams-delta: register latch dependent devices later
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r--arch/arm/plat-omap/include/plat/board-ams-delta.h48
1 files changed, 22 insertions, 26 deletions
diff --git a/arch/arm/plat-omap/include/plat/board-ams-delta.h b/arch/arm/plat-omap/include/plat/board-ams-delta.h
index 51b102dc906..027e79eead5 100644
--- a/arch/arm/plat-omap/include/plat/board-ams-delta.h
+++ b/arch/arm/plat-omap/include/plat/board-ams-delta.h
@@ -28,30 +28,6 @@
28 28
29#if defined (CONFIG_MACH_AMS_DELTA) 29#if defined (CONFIG_MACH_AMS_DELTA)
30 30
31#define AMS_DELTA_LATCH1_PHYS 0x01000000
32#define AMS_DELTA_LATCH1_VIRT 0xEA000000
33#define AMS_DELTA_MODEM_PHYS 0x04000000
34#define AMS_DELTA_MODEM_VIRT 0xEB000000
35#define AMS_DELTA_LATCH2_PHYS 0x08000000
36#define AMS_DELTA_LATCH2_VIRT 0xEC000000
37
38#define AMS_DELTA_LATCH1_LED_CAMERA 0x01
39#define AMS_DELTA_LATCH1_LED_ADVERT 0x02
40#define AMS_DELTA_LATCH1_LED_EMAIL 0x04
41#define AMS_DELTA_LATCH1_LED_HANDSFREE 0x08
42#define AMS_DELTA_LATCH1_LED_VOICEMAIL 0x10
43#define AMS_DELTA_LATCH1_LED_VOICE 0x20
44
45#define AMS_DELTA_LATCH2_LCD_VBLEN 0x0001
46#define AMS_DELTA_LATCH2_LCD_NDISP 0x0002
47#define AMS_DELTA_LATCH2_NAND_NCE 0x0004
48#define AMS_DELTA_LATCH2_NAND_NRE 0x0008
49#define AMS_DELTA_LATCH2_NAND_NWP 0x0010
50#define AMS_DELTA_LATCH2_NAND_NWE 0x0020
51#define AMS_DELTA_LATCH2_NAND_ALE 0x0040
52#define AMS_DELTA_LATCH2_NAND_CLE 0x0080
53#define AMD_DELTA_LATCH2_KEYBRD_PWR 0x0100
54#define AMD_DELTA_LATCH2_KEYBRD_DATA 0x0200
55#define AMD_DELTA_LATCH2_SCARD_RSTIN 0x0400 31#define AMD_DELTA_LATCH2_SCARD_RSTIN 0x0400
56#define AMD_DELTA_LATCH2_SCARD_CMDVCC 0x0800 32#define AMD_DELTA_LATCH2_SCARD_CMDVCC 0x0800
57#define AMS_DELTA_LATCH2_MODEM_NRESET 0x1000 33#define AMS_DELTA_LATCH2_MODEM_NRESET 0x1000
@@ -66,9 +42,29 @@
66#define AMS_DELTA_GPIO_PIN_CONFIG 11 42#define AMS_DELTA_GPIO_PIN_CONFIG 11
67#define AMS_DELTA_GPIO_PIN_NAND_RB 12 43#define AMS_DELTA_GPIO_PIN_NAND_RB 12
68 44
45#define AMS_DELTA_GPIO_PIN_LCD_VBLEN 240
46#define AMS_DELTA_GPIO_PIN_LCD_NDISP 241
47#define AMS_DELTA_GPIO_PIN_NAND_NCE 242
48#define AMS_DELTA_GPIO_PIN_NAND_NRE 243
49#define AMS_DELTA_GPIO_PIN_NAND_NWP 244
50#define AMS_DELTA_GPIO_PIN_NAND_NWE 245
51#define AMS_DELTA_GPIO_PIN_NAND_ALE 246
52#define AMS_DELTA_GPIO_PIN_NAND_CLE 247
53#define AMS_DELTA_GPIO_PIN_KEYBRD_PWR 248
54#define AMS_DELTA_GPIO_PIN_KEYBRD_DATAOUT 249
55#define AMS_DELTA_GPIO_PIN_SCARD_RSTIN 250
56#define AMS_DELTA_GPIO_PIN_SCARD_CMDVCC 251
57#define AMS_DELTA_GPIO_PIN_MODEM_NRESET 252
58#define AMS_DELTA_GPIO_PIN_MODEM_CODEC 253
59
60#define AMS_DELTA_LATCH2_GPIO_BASE AMS_DELTA_GPIO_PIN_LCD_VBLEN
61#define AMS_DELTA_LATCH2_NGPIO 16
62
69#ifndef __ASSEMBLY__ 63#ifndef __ASSEMBLY__
70void ams_delta_latch1_write(u8 mask, u8 value); 64void ams_delta_latch_write(int base, int ngpio, u16 mask, u16 value);
71void ams_delta_latch2_write(u16 mask, u16 value); 65#define ams_delta_latch2_write(mask, value) \
66 ams_delta_latch_write(AMS_DELTA_LATCH2_GPIO_BASE, \
67 AMS_DELTA_LATCH2_NGPIO, (mask), (value))
72#endif 68#endif
73 69
74#endif /* CONFIG_MACH_AMS_DELTA */ 70#endif /* CONFIG_MACH_AMS_DELTA */