diff options
author | Tony Lindgren <tony@atomide.com> | 2012-03-01 18:20:00 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-03-01 18:20:00 -0500 |
commit | 42392762149cba0a74c1c5b1b1bb868d86e62383 (patch) | |
tree | 3be8e3cbb4f09749a2e51d1fa162afd2181e19e6 /arch/arm/plat-omap | |
parent | 6b21d18ed50c7d145220b0724ea7f2613abf0f95 (diff) | |
parent | 967809bd7faf71ddc29c8081e0f21db8b201a0f4 (diff) |
Merge branch 'omap1' into ams-delta
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/board-ams-delta.h | 48 |
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 51b102dc906b..027e79eead5e 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__ |
70 | void ams_delta_latch1_write(u8 mask, u8 value); | 64 | void ams_delta_latch_write(int base, int ngpio, u16 mask, u16 value); |
71 | void 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 */ |