blob: d334ef897c49af16eeeea80087ae8972e49eeca5 [file] [log] [blame]
Rabin Vincent3e339ff2010-02-18 08:48:03 +05301/*
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 Vincent159e9aa2010-02-19 19:16:26 +053012struct platform_device;
13struct amba_device;
14
15void __init u8500_register_device(struct platform_device *dev, void *data);
16void __init u8500_register_amba_device(struct amba_device *dev, void *data);
17
Rabin Vincentde601d52010-03-15 13:54:49 +053018extern struct platform_device u8500_gpio_devs[];
19extern struct platform_device u5500_gpio_devs[];
Rabin Vincentf5cc84a2010-03-09 11:06:14 +053020
Rabin Vincent3e339ff2010-02-18 08:48:03 +053021extern struct platform_device u8500_msp0_device;
22extern struct platform_device u8500_msp1_device;
23extern struct platform_device u8500_msp2_device;
24extern struct amba_device u8500_msp2_spi_device;
Rabin Vincent82fb0b32010-02-19 19:41:31 +053025extern struct platform_device u8500_i2c0_device;
NAMIT JAINf36076d2010-03-24 17:51:13 +053026extern struct platform_device ux500_i2c_controller1;
27extern struct platform_device ux500_i2c_controller2;
28extern struct platform_device ux500_i2c_controller3;
Rabin Vincent82fb0b32010-02-19 19:41:31 +053029extern struct platform_device u8500_i2c4_device;
Jimmy Rubin1453f822010-05-27 15:25:41 +020030extern struct platform_device ux500_mcde_device;
Rabin Vincent3e339ff2010-02-18 08:48:03 +053031extern struct platform_device u8500_hsit_device;
32extern struct platform_device u8500_hsir_device;
33extern struct platform_device u8500_shrm_device;
Rabin Vincentf5cc84a2010-03-09 11:06:14 +053034extern struct platform_device ux500_b2r2_device;
Rabin Vincent3e339ff2010-02-18 08:48:03 +053035extern struct platform_device u8500_pmem_device;
36extern struct platform_device u8500_pmem_mio_device;
37extern struct platform_device u8500_pmem_hwb_device;
Rabin Vincentf5cc84a2010-03-09 11:06:14 +053038extern struct amba_device ux500_rtc_device;
39extern struct platform_device ux500_dma_device;
Joakim Bech528d6a62010-04-15 14:07:13 +020040extern struct platform_device ux500_hash1_device;
Rabin Vincent3e339ff2010-02-18 08:48:03 +053041extern struct amba_device u8500_ssp0_device;
42extern struct amba_device u8500_ssp1_device;
Rabin Vincentf5cc84a2010-03-09 11:06:14 +053043extern struct amba_device ux500_spi0_device;
44extern struct amba_device ux500_sdi4_device;
45extern struct amba_device ux500_sdi0_device;
46extern struct amba_device ux500_sdi1_device;
47extern struct amba_device ux500_sdi2_device;
Rabin Vincent3e339ff2010-02-18 08:48:03 +053048extern struct platform_device u8500_ab8500_device;
Rabin Vincentf5cc84a2010-03-09 11:06:14 +053049extern struct platform_device ux500_musb_device;
50extern struct amba_device ux500_uart0_device;
51extern struct amba_device ux500_uart1_device;
52extern struct amba_device ux500_uart2_device;
Naveen Kumar Gaddipatie8704ac2010-06-16 10:34:44 +053053extern struct platform_device ske_keypad_device;
Magnus Templingf8a8a202010-06-18 07:50:32 +020054extern struct platform_device u5500_pwm0_device;
55extern struct platform_device u5500_pwm1_device;
56extern struct platform_device u5500_pwm2_device;
57extern struct platform_device u5500_pwm3_device;
Rabin Vincent3e339ff2010-02-18 08:48:03 +053058
Paer-Olof Haakansson7fb4b432010-06-01 11:49:20 +020059#ifdef CONFIG_U5500_MLOADER_HELPER
60extern struct platform_device mloader_helper_device;
61#endif
62
Rabin Vincent159e9aa2010-02-19 19:16:26 +053063/*
64 * Do not use inside drivers. Check it in the board file and alter platform
65 * data.
66 */
67extern int platform_id;
68#define MOP500_PLATFORM_ID 0
69#define HREF_PLATFORM_ID 1
70
Naveen Kumar Gaddipatice731e32010-06-01 18:03:51 +053071#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 Vincent3e339ff2010-02-18 08:48:03 +053086#endif