aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/include/mach/devices.h
blob: d334ef897c49af16eeeea80087ae8972e49eeca5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
 * Copyright (C) 2010 ST-Ericsson
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2, as
 * published by the Free Software Foundation.
 */

#ifndef __ASM_ARCH_DEVICES_H__
#define __ASM_ARCH_DEVICES_H__

struct platform_device;
struct amba_device;

void __init u8500_register_device(struct platform_device *dev, void *data);
void __init u8500_register_amba_device(struct amba_device *dev, void *data);

extern struct platform_device u8500_gpio_devs[];
extern struct platform_device u5500_gpio_devs[];

extern struct platform_device u8500_msp0_device;
extern struct platform_device u8500_msp1_device;
extern struct platform_device u8500_msp2_device;
extern struct amba_device u8500_msp2_spi_device;
extern struct platform_device u8500_i2c0_device;
extern struct platform_device ux500_i2c_controller1;
extern struct platform_device ux500_i2c_controller2;
extern struct platform_device ux500_i2c_controller3;
extern struct platform_device u8500_i2c4_device;
extern struct platform_device ux500_mcde_device;
extern struct platform_device u8500_hsit_device;
extern struct platform_device u8500_hsir_device;
extern struct platform_device u8500_shrm_device;
extern struct platform_device ux500_b2r2_device;
extern struct platform_device u8500_pmem_device;
extern struct platform_device u8500_pmem_mio_device;
extern struct platform_device u8500_pmem_hwb_device;
extern struct amba_device ux500_rtc_device;
extern struct platform_device ux500_dma_device;
extern struct platform_device ux500_hash1_device;
extern struct amba_device u8500_ssp0_device;
extern struct amba_device u8500_ssp1_device;
extern struct amba_device ux500_spi0_device;
extern struct amba_device ux500_sdi4_device;
extern struct amba_device ux500_sdi0_device;
extern struct amba_device ux500_sdi1_device;
extern struct amba_device ux500_sdi2_device;
extern struct platform_device u8500_ab8500_device;
extern struct platform_device ux500_musb_device;
extern struct amba_device ux500_uart0_device;
extern struct amba_device ux500_uart1_device;
extern struct amba_device ux500_uart2_device;
extern struct platform_device ske_keypad_device;
extern struct platform_device u5500_pwm0_device;
extern struct platform_device u5500_pwm1_device;
extern struct platform_device u5500_pwm2_device;
extern struct platform_device u5500_pwm3_device;

#ifdef CONFIG_U5500_MLOADER_HELPER
extern struct platform_device mloader_helper_device;
#endif

/*
 * Do not use inside drivers.  Check it in the board file and alter platform
 * data.
 */
extern int platform_id;
#define MOP500_PLATFORM_ID	0
#define HREF_PLATFORM_ID	1

#define MOP500_PLATFORM_ID	0
#define HREF_PLATFORM_ID	1

/**
 * Touchpanel related macros declaration
 */
#define TOUCH_GPIO_PIN 	84

#define TOUCH_XMAX 384
#define TOUCH_YMAX 704

#define PRCMU_CLOCK_OCR 0x1CC
#define TSC_EXT_CLOCK_9_6MHZ 0x840000
#define TSC_AVDD_VOLTAGE_2_5 0x08
#define TSC_AVDD_AUX1_REGULATOR 0x01
#endif