Rabin Vincent | 3e339ff | 2010-02-18 08:48:03 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 ST-Ericsson |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 2, as |
| 6 | * published by the Free Software Foundation. |
| 7 | */ |
| 8 | |
| 9 | #ifndef __ASM_ARCH_DEVICES_H__ |
| 10 | #define __ASM_ARCH_DEVICES_H__ |
| 11 | |
Rabin Vincent | 159e9aa | 2010-02-19 19:16:26 +0530 | [diff] [blame] | 12 | struct platform_device; |
| 13 | struct amba_device; |
| 14 | |
| 15 | void __init u8500_register_device(struct platform_device *dev, void *data); |
| 16 | void __init u8500_register_amba_device(struct amba_device *dev, void *data); |
| 17 | |
Rabin Vincent | de601d5 | 2010-03-15 13:54:49 +0530 | [diff] [blame] | 18 | extern struct platform_device u8500_gpio_devs[]; |
| 19 | extern struct platform_device u5500_gpio_devs[]; |
Rabin Vincent | f5cc84a | 2010-03-09 11:06:14 +0530 | [diff] [blame] | 20 | |
Rabin Vincent | 3e339ff | 2010-02-18 08:48:03 +0530 | [diff] [blame] | 21 | extern struct platform_device u8500_msp0_device; |
| 22 | extern struct platform_device u8500_msp1_device; |
| 23 | extern struct platform_device u8500_msp2_device; |
| 24 | extern struct amba_device u8500_msp2_spi_device; |
Rabin Vincent | 82fb0b3 | 2010-02-19 19:41:31 +0530 | [diff] [blame] | 25 | extern struct platform_device u8500_i2c0_device; |
NAMIT JAIN | f36076d | 2010-03-24 17:51:13 +0530 | [diff] [blame] | 26 | extern struct platform_device ux500_i2c_controller1; |
| 27 | extern struct platform_device ux500_i2c_controller2; |
| 28 | extern struct platform_device ux500_i2c_controller3; |
Rabin Vincent | 82fb0b3 | 2010-02-19 19:41:31 +0530 | [diff] [blame] | 29 | extern struct platform_device u8500_i2c4_device; |
Jimmy Rubin | 1453f82 | 2010-05-27 15:25:41 +0200 | [diff] [blame] | 30 | extern struct platform_device ux500_mcde_device; |
Rabin Vincent | 3e339ff | 2010-02-18 08:48:03 +0530 | [diff] [blame] | 31 | extern struct platform_device u8500_hsit_device; |
| 32 | extern struct platform_device u8500_hsir_device; |
| 33 | extern struct platform_device u8500_shrm_device; |
Rabin Vincent | f5cc84a | 2010-03-09 11:06:14 +0530 | [diff] [blame] | 34 | extern struct platform_device ux500_b2r2_device; |
Rabin Vincent | 3e339ff | 2010-02-18 08:48:03 +0530 | [diff] [blame] | 35 | extern struct platform_device u8500_pmem_device; |
| 36 | extern struct platform_device u8500_pmem_mio_device; |
| 37 | extern struct platform_device u8500_pmem_hwb_device; |
Rabin Vincent | f5cc84a | 2010-03-09 11:06:14 +0530 | [diff] [blame] | 38 | extern struct amba_device ux500_rtc_device; |
| 39 | extern struct platform_device ux500_dma_device; |
Joakim Bech | 528d6a6 | 2010-04-15 14:07:13 +0200 | [diff] [blame] | 40 | extern struct platform_device ux500_hash1_device; |
Rabin Vincent | 3e339ff | 2010-02-18 08:48:03 +0530 | [diff] [blame] | 41 | extern struct amba_device u8500_ssp0_device; |
| 42 | extern struct amba_device u8500_ssp1_device; |
Rabin Vincent | f5cc84a | 2010-03-09 11:06:14 +0530 | [diff] [blame] | 43 | extern struct amba_device ux500_spi0_device; |
| 44 | extern struct amba_device ux500_sdi4_device; |
| 45 | extern struct amba_device ux500_sdi0_device; |
| 46 | extern struct amba_device ux500_sdi1_device; |
| 47 | extern struct amba_device ux500_sdi2_device; |
Rabin Vincent | 3e339ff | 2010-02-18 08:48:03 +0530 | [diff] [blame] | 48 | extern struct platform_device u8500_ab8500_device; |
Rabin Vincent | f5cc84a | 2010-03-09 11:06:14 +0530 | [diff] [blame] | 49 | extern struct platform_device ux500_musb_device; |
| 50 | extern struct amba_device ux500_uart0_device; |
| 51 | extern struct amba_device ux500_uart1_device; |
| 52 | extern struct amba_device ux500_uart2_device; |
Naveen Kumar Gaddipati | e8704ac | 2010-06-16 10:34:44 +0530 | [diff] [blame] | 53 | extern struct platform_device ske_keypad_device; |
Magnus Templing | f8a8a20 | 2010-06-18 07:50:32 +0200 | [diff] [blame] | 54 | extern struct platform_device u5500_pwm0_device; |
| 55 | extern struct platform_device u5500_pwm1_device; |
| 56 | extern struct platform_device u5500_pwm2_device; |
| 57 | extern struct platform_device u5500_pwm3_device; |
Rabin Vincent | 3e339ff | 2010-02-18 08:48:03 +0530 | [diff] [blame] | 58 | |
Paer-Olof Haakansson | 7fb4b43 | 2010-06-01 11:49:20 +0200 | [diff] [blame] | 59 | #ifdef CONFIG_U5500_MLOADER_HELPER |
| 60 | extern struct platform_device mloader_helper_device; |
| 61 | #endif |
| 62 | |
Rabin Vincent | 159e9aa | 2010-02-19 19:16:26 +0530 | [diff] [blame] | 63 | /* |
| 64 | * Do not use inside drivers. Check it in the board file and alter platform |
| 65 | * data. |
| 66 | */ |
| 67 | extern int platform_id; |
| 68 | #define MOP500_PLATFORM_ID 0 |
| 69 | #define HREF_PLATFORM_ID 1 |
| 70 | |
Naveen Kumar Gaddipati | ce731e3 | 2010-06-01 18:03:51 +0530 | [diff] [blame] | 71 | #define MOP500_PLATFORM_ID 0 |
| 72 | #define HREF_PLATFORM_ID 1 |
| 73 | |
| 74 | /** |
| 75 | * Touchpanel related macros declaration |
| 76 | */ |
| 77 | #define TOUCH_GPIO_PIN 84 |
| 78 | |
| 79 | #define TOUCH_XMAX 384 |
| 80 | #define TOUCH_YMAX 704 |
| 81 | |
| 82 | #define PRCMU_CLOCK_OCR 0x1CC |
| 83 | #define TSC_EXT_CLOCK_9_6MHZ 0x840000 |
| 84 | #define TSC_AVDD_VOLTAGE_2_5 0x08 |
| 85 | #define TSC_AVDD_AUX1_REGULATOR 0x01 |
Rabin Vincent | 3e339ff | 2010-02-18 08:48:03 +0530 | [diff] [blame] | 86 | #endif |